Appendix CSample Programs
115
Program Example
The following program can be executed only with the C200HS, C200HX/HG/HE CPU Units.
ZCP(88)
101
DM0000
DM0001
25506(=) 25503((ERR)
Operation condition
Conversion value
Lower limit (16-bit binary)
Upper limit (16-bit binary)
Alarm Flag
Sample Program 4: Upper- and Lower-limit Alarm
(With Sequence)
Comparisons are made to the upper and lower limits of the A/D conversion values or D/A output values after the
value falls within the range between the upper limit and lower limit following the beginning of operation. If they fall
outside the specified range, the Alarm Flag will turn ON.
Upper limit
Lower limit
Alarm Flag
ON
OFF
Unit Settings
Item Setting contents Actual settings
Unit C200H-AD003 ---
Unit number #0 Unit number switch: 0
Operation mode Normal mode Back-panel DIP switch: All OFF
Input 1 used --- DM 1000 = 0001
Input signal range Input number 1, 0 to 10 V DM 1001 = 0001
Program Example
The following program can be executed only with the C200HS, C200HX/HG/HE CPU Units.
ZCP(88)
101
DM0000
DM0001
25506(=) 25503((ERR)
KEEP(11)
02001
02001
02001 25503((ERR)25506(=)
Execution condition
Execution
condition
Conversion value
Lower limit (16-bit binary)
Upper limit (16-bit binary)
Alarm Flag