Omron C200H Operation Manual page 41

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

Advertisement

Data Setting and Programming Examples
2-4-2 Programming
Reading Output Data
Reading Output Data
(–10 to +10 V Input Range)
Peak Value Setting
The converted data (or the results of calculations performed on it) can be read
from the output words IR n+1 to IR n+8 and moved to other words in memory
using MOV(21) and/or XFER(70). MOV(21) is used to move one word at a time
and XFER(70) is used to move more than one word at a time.
Input condition
Input condition
The sign bit will be set to "1" when the input setting range is set to –10 to 10 V and
the input signal is negative. To separate the sign bit and the actual voltage, use a
program that masks the sign bit, as in the following example.
In this example, the A/D Unit's output data is displayed on a display device
through the High-density Output Unit with unit number 2.
CN1 (IR 120): Actual data
CN2 (IR 121): Signed data (Bit IR 12100 indicates the sign.)
Input condition
IR 10115
(Sign bit)
The following example shows how to set the peak value function for input 4.
Moves the output data from
MOV(21)
IR 101 (input 1) to DM 0001.
101
DM 0001
Moves the output data from
XFER(70)
IR 101 through IR 105 (inputs 1
#0005
through 5) to DM 0001 through
101
DM 0005.
DM 0001
ANDW (34)
Moves the actual voltage data
#7FFF
to IR 120 (CN1).
105
120
Moves the sign data to
12100
IR 12100 (CN2).
Input condition
10003
Section 2-4
31

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad002Da002

Table of Contents