A
Appendix
A-4 CP1L Programming Examples
130 SYSMAC CP1L/CP1E Introduction Manual
■Programming Example
●Ladder Program
MSKS (interrupt mask set) instructions will be used to assign the "up" specification
to the interrupt input, and to set the interrupt permission for enabling the interrupt
inputs.
MSKS(690)
#0
110(114)
MSKS(690)
#0
100(104)
SET
100.01
RSET
100.00
P_First_Cycle
100.02
NG output sensor input 1
0.05
RESET input
100.03
NG output sensor input 2
100.04
NG output sensor input 3
Interrupt input 0
(CP1E: Interrupt input 4)
Interrupt input 0
(CP1E: Interrupt input 4)
Up specification for input
Allow interrupt
RSET
100.01
RSET
100.02
RSET
100.03
RSET
100.04