Appendix EProgramming Instructions
125
IR SR HR TR AR LR TC DM #
00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315 TC 000 to 511 Read/Wr: DM 0000 to DM 0999
Rd only: DM 1000 to DM 1999
0000 to 9999
or 0000 to FFFF
These footnote tables show the actual ranges of all data areas. Bit numbers are provided (except for DM and TC areas); remove the rightmost two digits for word numbers.
Data
Areas
Name
Mnemonic
Operand Data AreasFunctionSymbol
END
END(01)
END(01)
Required at the end of each program. In-
structions
located after END(01)
will not be
executed.
None
INTERLOCK
IL(02)
INTERLOCK CLEAR
ILC(03)
IL(02)
ILC(03)
If
an interlock condition is OFF
, all outputs
and all timer PVs between the current
IL(02)
and the next ILC(03) are turned OFF
or reset, respectively. Other instructions
are
treated as NOP
. Counter PVs are main
-
tained.
If the execution condition is ON, ex
-
ecution continues normally.
None
JUMP
JMP(04)
JUMP END
JME(05)
N
JMP(04)
JME(05)
N
When the execution condition for the
JMP(04) instruction is ON, all instructions
between JMP(04) and the corresponding
JME(05) are to be ignored or treated as
NOP(00). For direct jumps, the corre-
sponding JMP(04) and JME(05) instruc-
tions have the same N value in the range
01 through 99. Direct jumps are usable
only once each per program (i.e., N is 01
through 99 can be used only once each)
and the instructions between the JUMP
and JUMP END instructions are ignored;
00
may be used as many times as neces
-
sary,
instructions
between JMP 00 and the
next JME 00 are treated as NOP, thus in-
creasing cycle time, as compared with di-
rect jumps.
N:
00 to 99
(not applicable for
CjjP, C jjK, or
C120 PCs)
FAILURE ALARM
(@)FAL(06)
FAL(06)
N
Assigns a failure alarm code to the given
execution
condition.When N can be given
a
value between 01 and 99 to indicate that
a non-fatal error
(i.e.,
one that will not stop
the CPU) has occurred. This is indicated
by the PC outputting N (the FAL number)
to the FAL output area. To reset the FAL
area, N can be defined as 00. This will
cause all previously recorded FAL num-
bers in the FAL area to be deleted. FAL
data
sent after a 00 will be recorded in the
normal way
.
The same code numbers can
be used for both FAL(06) and FALS(07).
N:
00 to 99
SEVERE FAILURE
ALARM
FALS(07)
FALS(07)
N
A
fatal error is indicated by outputting N to
the FAL output area and the CPU is
stopped.
The same F
AL numbers are
used
for both FAL(06) and FALS(07).
N:
01 to 99
STEP DEFINE
STEP(08)
STEP(08)
B
When used with a control bit (B), defines
the
start of a new
step and resets the pre
-
vious
step. When used without B, it defines
the end of step execution.
B:
IR
HR
AR
LR
STEP START
SNXT(09)
SNXT(09)
B
Used with a control bit (B) to indicate the
end
of the step, reset the step, and start the
next
step which has been defined with
the
same control bit.
B:
IR
HR
AR
LR
Downloaded from Elcodis.com electronic components distributor