Download Print this page

Mitsubishi Electric MELSEC FX-2DA User Manual page 10

Special function block
Hide thumbs Also See for MELSEC FX-2DA:

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
TO(P)
K1
TO
K1
T0
TO(P)
K1
TO(P)
K1
TO(P)
K1
T1
TO(P)
K1
SET
M0
K0
H10
K1
K21
K1
K1
K22
K0
K1
T0
K4
K23
K0
K1
K24
K20000
K1
K22
HC
K1
RST
M0
K21
K2
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.
(K0) → BFM #23 (offset)
This statement may be omitted if BFM #23 is already
at its default value.
(K20000) → BFM #24 (gain)
(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.

Advertisement

loading