drbitboy
Lifetime Supporting Member
[Update: fixed a typo in the image.]
See the image below, especially the blue-ish annotations.
The three rungs ending in output coils -( ) are part of the business logic of the program I was writing.
The diagnostic counters (C003 and C005) were inserted to investigate the behavior I thought I was seeing in the simulator control widgets at the bottom. The counters' middle input pins being used are the counter pins; the pin above that is the Reset pin; the pin below that is the Direction pin (for counting up or down; if not connected it counts down).
From this test, I would guess that, for Siemens LOGO!, the order of evaluation of the rungs is indeterminate, which would I think be quite a problem for a programmer writing ladder code.
Am I missing something? Is this a bug in the LOGO! Simulator, or does LOGO! hardware behave the same way? Is it a bug at all?
I apologize in advance for the oversized image.
See the image below, especially the blue-ish annotations.
The three rungs ending in output coils -( ) are part of the business logic of the program I was writing.
The diagnostic counters (C003 and C005) were inserted to investigate the behavior I thought I was seeing in the simulator control widgets at the bottom. The counters' middle input pins being used are the counter pins; the pin above that is the Reset pin; the pin below that is the Direction pin (for counting up or down; if not connected it counts down).
From this test, I would guess that, for Siemens LOGO!, the order of evaluation of the rungs is indeterminate, which would I think be quite a problem for a programmer writing ladder code.
Am I missing something? Is this a bug in the LOGO! Simulator, or does LOGO! hardware behave the same way? Is it a bug at all?
I apologize in advance for the oversized image.
Last edited: