Omron SYSMAC C200H-AD003 Operation Manual page 132

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

Advertisement

Sample Programs
Program Example
The following program can be executed only with the C200HS, C200HX/HG/HE CPU Units.
• Data Flow (Unit Number 0): Word 101 (AD Conversion Value) → DM 0001 (Mean Value Result)
Execution condition
The number of samplings will be no more than 64 when the AVG instruction is used.
Sample Program 9: Peak Value Holding
This is a program for Analog Output Unit peak value holding. If the output value range is exceeded, the output
voltage or current is held when the Conversion Enable Bit turns OFF.
5 V (03E8)
0 V (0000)
Unit Settings
Item
Unit
Unit number
Operation mode
Output 1 used
Output signal range
Output hold function
Program Example
Execution condition
DM Area Settings
When program is started
Setting contents
C200H-DA003
#0
Normal mode
---
All output numbers, –10 to 10 V
HOLD
25503((ERR)
25506(=)
DM0001: 0000
DM0002: 03E8
AVG
Conversion value
#101
Number of samplings
#0064
Mean value
DM0001
Set value
Actual output value
Actual settings
---
Unit number switch: 0
Back-panel DIP switch: All OFF
DM 1000 = 0001
DM 1001 = 0000
DM 1002 = 0001
MOV(21)
Set value
DM0000
101
ZCP(88)
101
DM0001
Lower limit
DM0002
Upper limit
Conversion Enable Flag
10100
for output 1
Lower limit: 0 V
Upper limit: 5 V
Appendix C
121

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SYSMAC C200H-AD003 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Sysmac c200h-da003Sysmac c200h-da004Sysmac c200h-mad01

Table of Contents

Save PDF