➇[BFM #29] Error status: When an error occurs, use the FROM command to read out the details of the error.
Bit Name Status when bit is set to “1" (turned on) Status when bit is set to ”0"
(turned off)
b0 Error Error if any of b1 through b4 is turned on No error
b1 O/G error Offset/gain data in EEPROM is abnormal or a
data setting error occurs. Offset/Gain data normal
b2 Power supply error 24V DC power failure Power supplied normally
b3 Hardware error Defective D/A converter or other hardware Non-detective hardware
b10 Range error The digital input or analog output value is out of
the specified range.
The input or output value is in
the specified range.
b12 G/O-Adjustment
prohibit status BFM #21 is not set to “1". Adjustable status
(BFM #21 = 1)
Bits b4 through b9, b11, b13 through b15 are not defined.
➈[BFM #30]The identification code for a special block is read using the FROM command.The identification code for
the FX2N-4DA unit is K3020.The MPU can use this facility in the program to identify the special block before
commencing any data transfer from and to the special block.
Note : BFM #’s marked E/(E).
•Values of BFM #0, #5, and #21, (marked E) are stored in EEPROM memory of the FX2N-4DA. BFM #10 to #17 are
copied to EEPROM when the gain/offset setting command BFM #8, #9 is used. Also, BFM #20 causes resetting of
the EEPROM memory. The EEPROM has a life of about 10,000 cycles (changes), so do not use programs which
frequently change these BFMs.
•A mode change of BFM #0 automatically involves a change of the corresponding offset and gain values. Because
of the time needed to write the new values to the internal EEPROM memory, a delay of 3 s is required between in-
structions changing BFM #0 and instructions writing to the corresponding BFM #10 through BFM #17.
Therefore, a delay timer should be used before writing to BFM #10 through #17.
If the factory-set I/O characteristics are not changed and the status information is not used, you can operate the
FX2N-4DA using the following simple program. For the FROM and TO commands, refer to the FX Programming Manual.
CH1 and CH2: Voltage output mode (-10 V to +10 V)
CH3: Current output mode (+4 mA to +20 mA)
CH4: Current output mode (0 mA to +20 mA)
(H2100) →BFM #0
CH1 and CH2: Voltage output CH3: Current output (+4mA to
+20 mA) CH4: Current output (0 mA to +20 mA)
Write data in respective data registers while observing the
following ranges:
Data register D0 and D1: -2,000 to +2,000 Data registers D2 and
D3: 0 to +1,000
Data register D0 →BFM #1 (output to CH1)
Data register D1 →BFM #2 (output to CH2)
Data register D2 →BFM #3 (output to CH3)
Data register D3 →BFM #4 (output to CH4)
Operation procedure
➀Turn off the power of the MPU, and then connect the FX2N-4DA. After that, wire the I/O lines of the FX2N-4DA.
➁Set the MPU to STOP, and turn on the power. Write the above program then switch the MPU to RUN.
➂Analog values will be sent from D0 (BFM #1), D1 (BFM #2), D2 (BFM #3), and D3 (BFM #4) to the respective output
channels of the FX2N-4DA. When the MPU is in STOP, the analog values set before stopping the MPU will remain
output. (The output will be held.)
➃When the MPU is in STOP, the offset values can also be output. For a detailed description, refer to Section 5, ➂.
Program example
For the following program, CH1 and CH2 of the FX2N-4DA connected at special block position No. 1 are used as
voltage output channels, CH3 as a current output channel (+4 mA to +20 mA), and CH4 as a current output channel (0
mA to +20 mA). When the MPU is in STOP, the output will be held. In addition, the status information is used.
BFM #30 data (model code) of block No. 1 Transferred to data
register D4.
M1 will be turned on when the model code is set to K3020
(FX2N-4DA).
H2100 →BFM #0 (unit No.1)
CH1 and CH2: Voltage output CH3: Current output (+4 mA to
+20 mA) CH4: Current output (0 mA to +20 mA)
D0 →BFM #1 (CH1 output)
D1 →BFM #2 (CH2 output)
D2 →BFM #3 (CH3 output)
D3 →BFM #4 (CH4 output)
BFM #29 (b15 to b0) →(M25 to M10)
Reads out the status data.
Output data abnormal
➀Check whether the output wiring and/or expansion cables are properly connected on FX2N-4DA analog special
function block.
➁Check that the FX2N system configuration rules have not been broken, i.e. the number of blocks does not exceed 8
and the total system I/O is equal or less than 256 I/O.
➂Ensure that the correct output mode has been selected for the application.
➃Check that there is no power overload on either the 5V or 24V power source, remember the loading on the FX2N
MPU or a powered extension unit varies according to the number of extension blocks or special function blocks
connected.
➄Put the main processing unit into RUN.
➅After turning on or off the 24 VDC power for analog signals, the analog output may fluctuate for approximately 1
second. This is due to time delays in the power supply from the MPU or differences in start time. For this reason,
be sure to take preventive measures so that this output fluctuation will not affect the external units.
[Example of preventive measure]
I/O characteristics
The standard characteristics (factory default) are shown by the solid lines in the figure below. These characteristics can
be adjusted according to the conditions of the user’s system.
●. . . Gain value : Analog output value when the digital input is +1,000
▲. . . Offset value : Analog output value when the digital input is 0
When the slope of the I/O characteristic line is steep: Slight changes to the digital input will greatly increase or reduce
the analog output.
When the slope of the I/O characteristic line is gentle: Slight changes to the digital input will not always change the
analog output.
Note that the resolution (minimum possible change of analog output) of the FX2N-4DA is fixed.
Adjustment of I/O Characteristics
To adjust the I/O characteristics, set the offset and gain of the FX2N-4DA either using push button switches connected
to input terminals of the programmable controller or using the forced on/off function of a programming panel. To change
the offset and gain, just change the conversion constants of the FX2N-4DA. Metering of the analog output is not needed
for adjustment, however a program should be created in the MPU.
An example program for adjustment is shown below. The example shows that for channel CH2 of FX2N-4DA block No.
1, the offset value is changed to 7 mA, and the gain value to 20 mA. Note that for CH1, CH3, and CH4, the standard
voltage output characteristics are set.
OPERATION START
(H0010)→BFM#0 Sets the
mode of the output channel.
(K1)→BFM#21
Permits adjustment of I/O
characteristics.
(K7000)→BFM#12
Sets the offset data. (Offset value: 7 mA)
(K20000)→BFM#13
Sets the gain data. (Gain value: 20 mA)
(H1100)→BFM#8
CH2 offset/gain setting command
OPERATION END
(K2)→BFM#21
Inhibits adjustment of I/O characteristics
Outline of FROM and TO commands: For a detailed description, refer to the FX Programming Manual.
m1 : Special unit or block number (K0 to K7, numbered from the MPU)
m2 : Buffer memory head address (K0 to K31)
D•: Head device number of destination data. T, C, D, KnM, KnY, KnS, V, and Z can be used to designate the
head device. Each device number can be qualified using an index.
n : Number of transfer points (K1 to K32) (K1 to K16 for 32-bit command)
m1,m2,n : Same as above
S•: Head device number of source data. T, C, D, KnX, KnM, KnY, KnS, V, Z, K, and H can be used to
designate the head device. Each device number can be qualified using an index.
•When X010 and X011 are off, transfer will not be executed, therefore the destination data value will not be changed.
If the FX2N-4DA does not operate properly, check the following items
➀Check the external wiring. Refer to section 3 of this manual.
➁Check status of the POWER indicator lamp (LED) of the FX2N-4DA.
On : The extension cable is properly connected.
Off or flash : Check connection of extension cable. Also check the 5 V power supply capacity.
➂Check status of the 24 V power indicator lamp (LED) of the FX2N-4DA.
On : 24 VDC is supplied.
Off : Supply 24 VDC (+10%) to the FX2N-4DA.
➃Check the status of the D/A conversion indicator lamp (LED) of the FX2N-4DA.
Flash : D/A conversion is normal.
On or off : The ambient conditions are not suitable for the FX2N-4DA, or the FX2N-4DA is defective.
➄Check that the external load resistance connected to each analog output terminal does not exceed the capacity of
the FX2N-4DA drive (voltage output: 2kΩto 1 MΩ/ current output: 500Ω).
➅Check the output voltage or current value using a voltmeter or ammeter, and confirm that the output meets the I/O
characteristics. If the output does not meet the I/O characteristics, adjust the offset and gain again. Refer to
section 8.
Note
To test the withstand voltage of the FX2N-4DA, connect all the terminals to the grounding terminal.
Guidelines for the safety of the user and protection of the FX2N-4DA special function block
•This manual has been written to be used by trained and competent personnel. This is defined by
the European directives for machinery, low voltage and EMC.
•If in doubt at any stage during the installation of the FX2N-4DA always consult a professional
electrical engineer who is qualified and trained to the local and national standards. If in doubt
about the operation or use of the FX2N-4DA please consult the nearest Mitsubishi Electric
distributor.
•Under no circumstances will Mitsubishi Electric be liable or responsible for any consequential
damage that may arise as a result of the installation or use of this equipment.
•All examples and diagrams shown in this manual are intended only as an aid to understanding
the text, not to guarantee operation. Mitsubishi Electric will accept no responsibility for actual
use of the product based on these illustrative examples.
HEAD OFFICE:MITSUBISHI DENKI BLDG MARUNOUCHI TOKYO 100 TELEX:J24532 CABLE MELCO TOKYO
HIMEJI WORKS:840, CHIYODA CHO, HIMEJI, JAPAN
JY992D65901A
Effective JUN. 1997
Specifications are subject to
change without notice
FROM K1 K30 D4 K1
CMP K3020 D4 M0
TO K1 K0 H2100 K1
P
M1
TO K1 K1 D0 K4
Set the data to
M10 M20
No error In specified
output range
M8000
RUN
monitor
D0 and D1 = -2,000 to +2,000
D2 and D3 = 0 to +1,000
FROM K1 K29 K4M10 K1
M3
M8002
initial pulse
TO K1 K0 H2100 K1
Write the data for CH1 to D0, CH2 to D1,
CH3 to D2 and CH4 to D3.
TO K1 K1 D0 K4
M8000
RUN
monitor
X010
SET M0
TO K1 K0 H0010 K1
P
TO K1 K21 K1 K1
P
M0
T0
TO K1 K12 K7000 K1
P
TO K1 K13 K20000 K1
P
TO K1 K8 H1100 K1
T0
T1
TO K0 K21 K2 K1
P
T1
RST M0
P
K30
K30
Standard characteristics
of voltage output
Standard characteristics of current
output (+4mA to +20mA)
Standard characteristics of current
output (0mA to +20mA)
6
7
8 9
24V DC power
s upply
F X -4DA s pe cia l
function block
2N
Ana log data cut
off circuit
E xternal
analog unit
P ower s witch
Ana log
output
Digital input
+10V
+10. 235V
-2, 00 0
+2,000
-10 V
-10 .2 4V
-2, 04 8
+2,047
+5V
outputmode0
+1,000
Ana log
output
+4mA
Digital input
+20mA
0+1,000
Outputmode 1
Ana log
output
+20mA
0
Digital input
+1,000
Outputmode2
After adjustment, the I/O
characteristics will be as follows
Digital input
+1,000