5 Applied Instructions and Basic Usage
D0
D1
D2
D3
D4
D5
CR #5
CR #6
CR #7
CR #8
CR #9
CR #10
16 -bit instruciton: n=
Device
specified
Control register
specified
D0
D1
D2
D3
D4
D5
CR #5
CR #6
CR #7
CR #8
CR #9
CR #10
32 -bit instruction: n=
Device
specified
Control register
specified
The application of the instruciton FROM/TO is described below.
Example 1
The characteristic curve of DVP04AD-H2 is adjusted. The offset for channel 1 is
0 V (K0
LSB
), and the gain for channel 1 is 2.5 V (K2,000
LSB
).
M1002
TO K0 K1 H0 K1
TO K0 K33 H0 K1
X0
TO
K0 K18 K0 K1
TO
K0 K24 K2000 K1
1. H0 is written into CR#1 in the analog input module whose number is 0, and
channel 1 is set to mode 0 (voltage input: -10 V~+10 V).
2. H0 is written into CR#33. Channel 1~channel 4 can be tuned.
3. When X0 is turned from OFF to ON, the offset K0
LSB
is writtedn into CR#18,
and the gain K2,000
LSB
is written into CR#24.
Example 2
The characteristic curve of DVP04AD-H2 is adjusted. The offset for channel 2 is
2 mA (K400
LSB
), and the gain for channel 2 is 18 mA (K3,600
LSB
).
M1002
TO K0 K1 H18 K1
TO K0 K33 H0 K1
X0
TO
K0 K19 K400 K1
TO
K0 K25 K3600 K1
1. H18 is written into CR#1 in the analog input module whose number is 0, and
channel 2 is set to mode 3 (current input: -20 mA~+20 mA).
2. H0 is written into CR#33. Channel 1~channel 4 can be tuned.
3. When X0 is turned from OFF to ON, the offset K400
LSB
is writtedn into
CR#19, and the gain K3,600
LSB
is written into CR#25.
DVP-20PM Application Manual
5-83