A
A-4 CP1L Programming Examples
114
SYSMAC CP1L Getting Started Guide
Ap
pend
ix
A-4 CP1L Programming Examples
This section provides examples for wiring, DIP switch settings, and programming.
For details on wiring and settings, refer to
CP Series CP1L CPU Unit User's Manual
(W462). For details on
CP1L instructions, refer to
CP Series CP1H/CP1L CPU Unit Programming Manual
(W451). For details on
using CX-Programmer, refer to
CX-Programmer Operation Manual
(W446).
A-4-1 Using Adjusters to Set Timers
Functions Used
z
External Analog Settings Input
Analog values can be digitized according to the external analog settings input (0 to
10V, resolution: 256). Converted values are sent to the auxiliary area (A643CH).
This function is useful for changing settings based on inputs such as change in
outside temperature or feedback from a variable resistor.
An example using input from a variable resistor is shown below.
Operation Overview
A photoelectric sensor is placed in front of a gate. When the sensor detects a car,
the gate is opened.
When the car passes the gate, the sensor is turned OFF.
When a set amount of time passes after the sensor is turned OFF, the gate is closed.
The time until the gate closure will be adjusted with by a variable resistor connected
to CP1L.
Photoelectric sensor
CP1L
Gate
Open
Time to OFF
Min. 2.0s to Max. 27s
Sensor input
Contact 0.00
Gate output
Contact 100.00
(Min. 2.0s to Max. 27s)
Variable resistor
Adjustment range
W07E-EN-02+CP1L+GettingStartedGuide.book Seite 114 Montag, 15. September 2008 11:15 11