Programming Precautions - Omron SYSMAC C20P Operation Manual

Sysmac programmable controllers
Hide thumbs Also See for SYSMAC C20P:
Table of Contents

Advertisement

Programming Precautions

4–6

Programming Precautions

If there is no End instruction anywhere in the program, the program will not
be executed at all.
The number of conditions that can be used in series or parallel is unlimited.
Therefore, use as many conditions as required to draw a clear diagram. Al-
though very complicated diagrams can be drawn with instruction lines almost
forming mazes, there must not be any conditions on instruction lines running
vertically between two other instruction lines. Diagram A shown below, for
example, is not possible, and should be redrawn as diagram B.
0000
0002
0004
0001
0003
0001
0004
0000
0000
0004
0001
The number of times any particular bit can be assigned to conditions is not
limited, so use them as many times as required to simplify your program.
Often, complicated programs are the result of attempts to reduce the number
of times a bit is used.
Every instruction line must also have at least one condition on it to determine
the execution condition for the instruction at the right. Again, diagram A , be-
low, must be redrawn as diagram B. If an instruction must always be exe-
cuted (e.g., if an output must always be kept ON while the program is being
executed), the Always ON Flag (1813) in the SR area can be used.
1813
There are, however, a few exceptions to this rule, including the Interlock
Clear, Jump End, and Step Instructions. Each of these instructions is used as
the second of a pair of instructions and is controlled by the execution condi-
Diagram A
0002
0003
Diagram B
Diagram A
Diagram B
Section 4–6
Instruction 1
Instruction 2
Instruction 1
Instruction 2
Instruction
Instruction
43

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c28pSysmac c40pSysmac c60p

Table of Contents