A
Appendix
A-4 CP1L Programming Examples
122 SYSMAC CP1L/CP1E Introduction Manual
■System Configuration
●Wiring Example
■Programming Example
●Ladder Program
(A): To set a minimal value of 2sec, first convert the external analog input value
A643 to a BCD value of D0, increment it by 20BCD/2sec, and then store it as
D1.
(B): TIM will act as a decrementing ON timer with 0.1sec intervals.
0.00
External analog setting
input connector
Sensor input
Gate output
100.00
1k (1/4W)
1.4k
(1/2W)
Variable resistor
CP1L
DC24V
0.00
T0010
100.00
Gate
Photoelectric
sensor
100.00
P_On
TIM
0010
D1
0.00
100.00
Gate
Photoelectric
sensor
B
+B
#20
D0
D1
A
BCD
A643
D0