Appendix CSample Programs
114
Program Example
MOV(21)
DM0000
101
10915
Output Setting Error Flag
Reset condition
Output Setting Error Flag
Set value
Execution condition
Sample Program 3: Upper- and Lower-limit Alarm
(Regular Monitoring)
Comparisons are made to the upper and lower limits of the A/D conversion values or D/A output values from 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
When using the upper- or lower-limit alarm for input conversion values:
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
When using the upper- or lower-limit alarm for output set values:
Item Setting contents Actual settings
Unit C200H-DA003 ---
Unit number #0 Unit number switch: 0
Operation mode Normal mode Back-panel DIP switch: All OFF
Output 1 used --- DM 1000 = 0001
Output signal range Output number 1, 0 to 10 V DM 1001 = 0001