TO(P)
TO(P)
5.2 Using gain and offset in a program
I/O characteristics of the FX-2DA can be adjusted by changing the gain and offset parameters. These can
be changed by the switches of the FX-2DA with the aid of Voltage & Current meters or simply changed by
writting these settings from the programmable controller.
Only the gain and offset values in the memory of the FX-2DA need be adjusted. A voltmeter or an ammeter
for the analog output is not needed. A program for the programmable controller will be needed however.
The following is an example; changing the offset value to 0mA and gain value to 20mA on output channel
CH2 of the FX-2DA connected as block No.1.
Example: Adjusting gain/offset via software settings
X010
M0
T0
T1
K1
K1
H10
K1
K0
K21
K1
K1
K1
K0
K22
K1
TO
TO(P)
TO(P)
TO(P)
TO(P)
K1
K1
K1
K1
K23
K24
K22
K21
K0
K20000
HC
RST
K2
K1
K1
K1
M0
K1
●
Adjustment start.
●
(H10)
→
BFM #0 (initialize input channels)
In the program shown at left, the programmable
controller should be in RUN status, and MODE
switch of the FX-2DA in the READY position.
●
(K1)
→
BFM #21
BFM #0 should be of HEX value H10, and (b1,
b0) of BFM #21 should be (0, 1).
●
(K0)
→
BFM #22 (offset/adjust)
Reset adjust bits.
T0
K4
●
(K20000)
→
BFM #24 (gain)
●
(K0)
→
BFM #23 (offset)
This statement may be omitted if BFM #23 is already
at its default value.
●
(HC)
→
BFM #22 (offset/gain set)
A delay of 300ms may be needed between setting
BFM #0 and #22 (see section 3.4 “caution” )
●
Adjustment end.
●
(K2)
→
BFM #21
BFM #21 gain/offset adjust prohibit.
M0
SET
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com