3. Instructions
188
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
When the execution condition for MILH(517) (or MILR(518)) with interlock number N is OFF, the outputs
for all instructions between that MILH(517)/MILR(518) instruction and the next MILC(519) with interlock
number N are interlocked.
When the execution condition for MILH(517) (or MILR(518)) with interlock number N is ON, the
instructions between that MILH(517)/MILR(518) instruction and the next MILC(519) with interlock
number N are executed normally.
z Interlock Status
The following table shows the treatment of various outputs in an interlocked section between
MILH(517)/MILR(518) instruction and the next MILC(519).
Note Bits and words in all other instructions including TTIM(087), TTIMX(555), MTIM(543), MTIMX(554), SET,
RSET, CNT, CNTX(546), CNTR(012), CNTRX(548), SFT, and KEEP(011) retain their previous status.
z Nesting
Interlocks are nested when an interlocked program section (MILH(517)/MILR(518) and MILC(519)
combination) is placed within another interlocked program section (MILH(517)/MILR(518) and
MILC(519) combination). Interlocks can be nested up to 16 levels.
Nesting can be used for the following kinds of applications.
Instruction Treatment
Bits specified in OUT, OUT NOT, or OUTB(534) OFF
TIM, TIMX(550), TIMH(015),
TIMHX(551), TMHH(540),
TMHHX(552), TIML(542), and
TIMXL(553)
Completion Flag OFF (reset)
PV Time set value (reset)
TIMU(541), TIMUX(556),
TMUH(544), and TMUHX(557)
Cannot be refer-
enced.
Bits/words specified in all other instructions (See note.) Retain previous status.
The MILH(517)/MILR(518) instruction turns
OFF the Interlock Status Bit (operand D)
when the interlock is in engaged and turns ON
the bit when the interlock is not engaged.
Consequently, the Interlock Status Bit can be
monitored to check whether or not the
interlock for a given interlock number is
engaged.
Example 1
Interlocking the entire program with one
condition and interlocking a part of the
program with another condition (1 nesting
level)
MILH
n
d
MILC
n
Input condition
Interlocked program
section
Input condition ON
(Normal operation)
Input condition OFF
Normal
operation
Interlock
Status Bit
(d) ON
Outputs interlocked.
(Outputs OFF,
timers reset, etc.)
Interlock Status Bit
(d) OFF
Global interlock
(Emergency stop)
A1 (Peripheral processing)
Partial interlock
(Conveyor RUN)
A2 (Conveyor operation)