Topic: DMD0183 Instruction Flags |
|
Do-more Designer uses the differently colored triangles in the upper left corner (called instruction flags) to draw attention to instructions that require special consideration when using them.
|
|
The concern with these instructions is including them in a section of ladder logic (Program, Task, or Stage) that ends before the instruction has completed. This will leave the shared device in a locked state, making it unavailable for use by any other instruction that needs it.
Another consideration is that most instructions in this class have success and error status bits that are set to mark the completion of the instruction. To make sure that these instructions operate as designed, the ladder logic must stay enabled until these instructions have completed and set the state of their status bits.
There are some instructions with inputs that need to see an OFF-to-ON transition; for example the Count input of the Counter (CNT) instruction needs to see an OFF-to-ON transition to register as a legitimate count. Instructions with edge-triggered inputs will require the same minimum of two scans to operate as expected.
There are also instructions that are power-flow driven that require multiple scans to operate properly. A good example of this type of instruction is the TMR which only accumulates time when it is enabled.
|
|
See Also:
|
|