Download Print this page

Mitsubishi Melsec FX-2DA User Manual page 11

Special function block

Advertisement

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
TO(P)
K1
K0
TO(P)
K1
K21
TO
K1
K22
T0
TO(P)
K1
K23
TO(P)
K1
K24
TO(P)
K1
K22
T1
TO(P)
K1
K21
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Adjustment start.
SET
M0
(H10) → BFM #0 (initialize input channels)
H10
K1
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
K1
K1
BFM #0 should be of HEX value H10, and (b1,
b0) of BFM #21 should be (0, 1).
(K0) → BFM #22 (offset/adjust)
K0
K1
Reset adjust bits.
T0
K4
(K0) → BFM #23 (offset)
This statement may be omitted if BFM #23 is already
K0
K1
at its default value.
(K20000) → BFM #24 (gain)
K20000
K1
(HC) → BFM #22 (offset/gain set)
A delay of 300ms may be needed between setting
HC
K1
BFM #0 and #22 (see section 3.4 "caution" )
RST
M0
Adjustment end.
(K2) → BFM #21
K2
K1
BFM #21 gain/offset adjust prohibit.

Advertisement

loading