4-5
4 Understanding Programming
CP2E CPU Unit Software User’s Manual(W614)
4-1 Programming
4
4-1-3 Basics of Programming
• A location error will occur if an instruction is not connected directly to the right bus bar.
An input condition cannot be inserted after an OUT instruction or other output instruction. The
input condition must be inserted before an OUT instruction or other output instruction. If it is
inserted after an output instruction, then a location error will occur during the program check in the
CX-Programmer.
• A warning will occur if the same output bit is used more than once in an OUT instruction.
One output bit can be used in one instruction only. Instructions in a ladder program are executed
in order from the top rung in each cycle. The result of an OUT instruction in a lower rung will be
eventually saved in the output bit. The results of any previous instructions controlling the same bit
will be overwritten and not output.
0.00 0.03 0.04
0.01
102.01
102.01
Output bit CIO 100.00
Output bit CIO 100.00