Memory and scan cycle.

The processor or CPU is the more important part of the controller; it is the responsible for executing all tasks for which it was schedule through instructions and data that are locate in the memory. The controller memory is split into data memory and program memory

Data memory

All variables that the processor uses are located into a memory area called data memory. These variables are updated by the program in the controller or come from outside through I/O modules or networks connected to operator interfaces or to others controllers. Into the data memory is the input memory, where the state of the digital and analog input modules is stored and the output memory where the state of digital and analog output modules are stored.

Booleans, integers, float points and strings are among the data types that are stored into data memory. Some controller instructions use a more complex data structure as the timers and the counters. For example, the timer, at least need an integer for the final value, an integer for the current value and a Boolean for indicate that the current value reached the final value. In some processors, the three variables are grouped into one variable, which is used with the timer instruction. If the instructions set of the controller have instructions more complex, there are more data types that are stored in the data memory.

Processor memory

Processor memory

Program Memory

Instructions are put in ordered way into the routines to indicate the actions that the controller is going to execute. The way to put the instructions is depending of the type of language used. The IEC 61131 standard indicate 4 type of the language, these are: Instruction List (IL), Structured Text (ST), Ladder Diagram (LD) and Function Block Diagram (FBD). Moreover, the same standard includes the special function chart, which is a way to organize the routines based in Petri nets.

Both data memory and program memory are preserved with a battery or capacitor, such a way that in absent of electric energy, neither data nor the program are lost. The controller has at least a communication port which is used for download the program and the data.

LENGUAJES

Scan Cycle

The execution of operations for which the controller is programmed occurs as follows:

  1. Read the input. The input state is read from input module and it is stored in the input memory.
  2. Scan program. All routines in the controller are executed and the data memory is updated.
  3. Write to the output. The information in the output memory is writes to the output modules.
  4. Process any communications requests
  5. Verify if the processor is working correctly.

This sequence of operations is called scan cycle. A watchdog time can be configured, the time of the scan cycle must be less than watchdog time otherwise an error will be occur.

In the PLCs more advanced, the operations of scan cycle do not occur in sequential way, each operation is executed cyclically in periods of time, in independent way. Some operations can be executed when events occur.

 scan

25 Comments

  1. Pgyryh

    ivermectin uk – buy candesartan 8mg without prescription buy carbamazepine generic

    Reply
  2. Kathryn Martin

    I cannot thank you enough for the article post.Really looking forward to read more. Much obliged.

    Reply
  3. cod voucher

    I just like the helpful info you provide in your articles.I’ll bookmark your blog and check again right here frequently.I’m reasonably certain I will be informed lots of new stuff proper here!Best of luck for the following!

    Reply
  4. this website

    ivermectin dosage dog ivermectin drops for birds

    Reply
  5. bokep mantap

    Good info. Lucky me I ran across your blog by accident (stumbleupon). I have book marked it for later!

    Reply
  6. casino royal club promo code

    F*ckin’ remarkable issues here. I’m very glad to see your article. Thank you a lot and i am taking a look ahead to touch you. Will you please drop me a e-mail?

    Reply
  7. 貼海報

    Hey are using WordPress for your blog platform?I’m new to the blog world but I’m trying to get started and create my own. Do you need any html coding expertise tomake your own blog? Any help would be greatly appreciated!

    Reply
  8. mua traffic

    Hello there, just became aware of your blog through Google, and found that it’s really informative. I am gonna watch out for brussels. I will be grateful if you continue this in future. A lot of people will be benefited from your writing. Cheers!

    Reply
  9. Wedding photography

    This is nicely expressed. ! aarp approved canadian online pharmacies

    Reply
  10. tour tiet kiem

    Thanks , I have recently been looking for info approximately this topic for a while and yours is the greatest I’ve discovered till now. But, what concerning the bottom line? Are you certain about the source?

    Reply
  11. rank keywords quick

    It’s fantastic that you are getting ideas from this article aswell as from our argument made at this place.

    Reply
  12. Ryvrfb

    buy accutane 10mg generic – dexona drug linezolid 600mg tablet

    Reply
  13. xhamster porn

    hello!,I really like your writing so so much! percentage we communicate more about your post on AOL? I need an expert on this house to solve my problem. May be that is you! Having a look ahead to look you.

    Reply
  14. Gitjly

    order amoxicillin online – ipratropium online order combivent 100 mcg over the counter

    Reply
  15. 谷歌SEO公司

    Thanks again for the blog post.Thanks Again. Really Cool.

    Reply
  16. Blow molding machine

    I really like and appreciate your article.Thanks Again. Keep writing.

    Reply
  17. biyapay

    Thanks so much for the blog post. Great.

    Reply
  18. cheap Dropshipping

    Muchos Gracias for your article. Will read on…

    Reply
  19. Sports Rehabilitation

    Thank you for your article.Really thank you! Really Great.

    Reply
  20. Dumpster rental near Riverside

    I really liked your post. Will read on…

    Reply
  21. linkin love ai

    Thank you ever so for you post.Really looking forward to read more. Awesome.

    Reply
  22. porn gokil

    I want to to thank you for this great read!! I certainly loved every bit of it. I have you book marked to look at new things you postÖ

    Reply
  23. linkinlove

    This is one awesome blog post.Thanks Again. Keep writing.

    Reply
  24. handheld bluetooth massager

    Thanks again for the article.Thanks Again. Great.

    Reply
  25. fillersfairy

    Im grateful for the article. Awesome.

    Reply

Leave a Comment

Your email address will not be published. Required fields are marked *