A
A-4 CP1L Programming Examples
SYSMAC CP1L Getting Started Guide
115
Ap
pend
ix
System Configuration
z
Wiring Example
Programming Example
z
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
2
3
4
5
6
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
W07E-EN-02+CP1L+GettingStartedGuide.book Seite 115 Montag, 15. September 2008 11:15 11