Zmotion ZMIO310 Manual page 62

Verticale bus expansion module
Table of Contents

Advertisement

Analog converted from DA is represented by Y.
Digital input from PC, namely, the scale value is represented by X.
And DA output value can be calculated from the above graphic: Y-(-
10V)]/ [10V-(-10V)] = (X-0)/ (0xFFFF -0), namely,
0xFFFF – 10V.
Value X is the known condition of current PC side, then value Y can be
gained through DA conversion. Same, get DA output value firstly, then
calculate value X reversely.
OUT_GEN_INT3
Get the output state value of DA channel 2.
The meaning of date value:
0x0000~0xFFFF means the scale value of analog, input scale values
from PC output analogs converted from DA.
For example: if the current range of DA module is 0~20mA:
03h
Analog converted from DA is represented by Y.
Digital input from PC, namely, the scale value is represented by X.
And DA output value can be calculated from the above graphic: (Y-0)/
(20mA-0) = (X-0)/ (0xFFFF -0), namely,
Value X is the known condition of current PC side, then value Y can be
gained through DA conversion. Same, get DA output value firstly, then
ZMIO310 Vertical Bus Expansion Module User Manual V1.0
0x0000
0
~0xFFFF
Y = 20mA *X / 0xFFFF.
Y = [10V-(-10V)] *X /
UNSIGND16
RW

Advertisement

Table of Contents
loading

Table of Contents