C Sample Programs - Omron SYSMAC C200H-AD003 Operation Manual

Analog i/o units
Hide thumbs Also See for SYSMAC C200H-AD003:
Table of Contents

Advertisement

Sample Program 1:
Obtaining Analog Input Unit Conversion Values
This is a program for obtaining the Analog Input Unit's conversion values. Individual input values are obtained by
MOV(21) when their Disconnection Detection Flags turn OFF. (With the C200H-AD003, there are no causes for
errors in normal mode other than disconnections, so a disconnection can be determined merely by seeing that bit
15 of word 109 is ON.)
Unit Settings
Item
Unit
Unit number
Operation mode
Inputs 1 to 8 used
Input signal range
Program Example
10900
10901
10907
10915
Disconnection Detection Error Flag
Sample Program 2: Writing Analog Output Unit Set Values
This is a program for writing Analog Output Unit set values. (With the C200H-DA003/DA004, there are no causes
for errors in normal mode other than output setting errors, so an output setting error can be determined merely by
seeing that bit 15 of word 109 is ON.)
Unit Settings
Item
Unit
Unit number
Operation mode
Output 1 used
Output signal range
Appendix C
Sample Programs
Setting contents
C200H-AD003
#0
Normal mode
---
All input numbers, 1 to 5 V
Reset condition
Setting contents
C200H-DA003
#0
Normal mode
---
Output number 1, 0 to 10 V
Actual settings
---
Unit number switch: 0
Back-panel DIP switch: All OFF
DM 1000 = 00FF
DM 1001 = AAAA
MOV(21)
Conversion value
101
DM0000
MOV(21)
Conversion value
102
DM0001
MOV(21)
108
Conversion value
DM0007
Disconnection
Detection Error
Flag
Actual settings
---
Unit number switch: 0
Back-panel DIP switch: All OFF
DM 1000 = 0001
DM 1001 = 0001
113

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c200h-da003Sysmac c200h-da004Sysmac c200h-mad01

Table of Contents