➇ [BFM #29]Error status: When an error occurs, use the FROM command toread out the details of the error.
Bit Name Status when bit is set to“1" (turned on)
Status when bit is setto ”0"
(turned off)
b0 Error Error if any of b1 throughb4 is turned on Noerror
b1 O/G error
Offset/gain data in EEPROMis abnormal or a
data setting error occurs.
Offset/Gain data normal
b2 Powersupply error 24V DC power failure Power supplied normally
b3 Hardware error DefectiveD/A converter or other hardware Non-detective hardware
b10 Range error
The digital inputor analog output value is out of
the specified range.
The input or outputvalue 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]Theidentification code for a special block is readusing the FROM command.The identification code for
the FX2N-4DA unit is K3020.TheMPU can use this facility in the program to identify thespecial block before
commencing any datatransfer 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 whenthe gain/offset setting command BFM #8, #9 is used. Also, BFM #20causes resetting of
the EEPROM memory. The EEPROMhas a life of about 10,000 cycles (changes), so do not useprograms which
frequently change theseBFMs.
• A mode change of BFM #0automatically involves a change of the corresponding offsetand gain values. Because
of the time needed towrite the new values to the internal EEPROM memory, a delay of3 s is required between instructions changingBFM #0 and instructions writing to the corresponding BFM #10through BFM #17.
Therefore, a delay timer shouldbe used before writing to BFM #10 through #17.
If the factory-set I/O characteristicsare not changed and the status information isnot used, you can operate the
FX2N-4DA using the followingsimple program. For the FROM and TO commands, refer to the FX ProgrammingManual.
CH1 and CH2: Voltage outputmode (-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 respectivedata 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 (outputto CH1)
Data register D1 → BFM #2 (outputto CH2)
Data register D2 → BFM #3 (outputto CH3)
Data register D3 → BFM #4 (outputto CH4)
Operation procedure
➀ Turnoff the power of the MPU, and then connect the FX2N-4DA. After that, wire the I/O lines of the FX2N-4DA.
➁ Setthe MPU to STOP, and turn on the power. Write the above programthen switch the MPU to RUN.
➂ Analogvalues 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 stoppingthe MPU will remain
output. (The outputwill be held.)
➃ Whenthe 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 positionNo. 1 are used as
voltage output channels, CH3as a current output channel (+4 mA to +20 mA), and CH4 asa current output channel (0
mA to +20 mA). When the MPU is in STOP, theoutput will be held. In addition, the status informationis used.
BFM #30 data (modelcode) of block No. 1 Transferred to data
register D4.
M1 will be turnedon 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 expansioncables are properly connected on FX
2N-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/Ois equal or less than 256 I/O.
➂ Ensure that the correct output mode has been selectedfor the application.
➃ Check that there is no power overload on either the5V or 24V power source, remember the loading on theFX2N
MPU or a powered extensionunit varies according to the number of extension blocksor special function blocks
connected.
➄ Put the main processing unit into RUN.
➅ After turning on or off the 24 VDC power for analogsignals, the analog output may fluctuate for approximately 1
second. This is due to time delaysin the power supply from the MPU or differences in start time. For this reason,
be sure to take preventivemeasures so that this output fluctuation will not affectthe external units.
[Example of preventivemeasure]
I/O characteristics
The standard characteristics(factory default) are shown by the solid lines in thefigure below. These characteristics can
be adjusted accordingto the conditions of the user’s system.
● . . . Gain value : Analog outputvalue when the digital input is +1,000
▲ . . . Offset value : Analog output valuewhen the digital input is 0
When the slope of theI/O characteristic line is steep: Slight changes to the digital input will greatly increaseor reduce
the analog output.
When the slope of theI/O characteristic line is gentle: Slightchanges to the digital input will not always changethe
analog output.
Note that the resolution(minimum possible change of analog output) of the FX
2N-4DA is fixed.
Adjustment of I/O Characteristics
To adjust the I/O characteristics,set the offset and gain of the FX
2N-4DA either using pushbutton switches connected
to input terminalsof the programmable controller or using the forced on/offfunction of a programming panel. To change
the offset and gain,just change the conversion constants of the FX
2N-4DA. Metering of the analogoutput is not needed
for adjustment, howevera program should be created in the MPU.
An example programfor adjustment is shown below. The example shows that for channelCH2 of FX2N-4DA block No.
1, the offset value ischanged to 7 mA, and the gain value to 20 mA. Note that for CH1, CH3, and CH4,the standard
voltage output characteristicsare 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. (Offsetvalue: 7 mA)
(K20000)→BFM#13
Sets the gain data. (Gainvalue: 20 mA)
(H1100)→BFM#8
CH2 offset/gain setting command
OPERATION END
(K2)→BFM#21
Inhibits adjustment ofI/O characteristics
Outline of FROM and TO commands:For a detailed description, refer to the FX ProgrammingManual.
m1 : Special unit or block number (K0to K7, numbered from the MPU)
m2 : Buffer memory head address (K0 to K31)
D• : Head device number of destinationdata. T, C, D, KnM, KnY, KnS, V, and Z can be used to designate the
head device. Each devicenumber can be qualified using an index.
n : Number of transfer points (K1 to K32) (K1 to K16 for 32-bitcommand)
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 headdevice. Each device number can be qualified using an index.
• When X010 and X011are off, transfer will not be executed, therefore the destinationdata value will not be changed.
If the FX2N-4DA does not operateproperly, check the following items
➀ Checkthe external wiring. Refer to section 3 of this manual.
➁ Checkstatus 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 powersupply capacity.
➂ Checkstatus 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.
➃ Checkthe status of the D/A conversion indicator lamp (LED) of theFX2N-4DA.
Flash : D/A conversion is normal.
On or off : The ambient conditions are not suitablefor the FX2N-4DA, or the FX2N-4DA is defective.
➄ Checkthat the external load resistance connected to each analogoutput terminal does not exceed the capacity of
the FX2N-4DA drive (voltageoutput: 2kΩ to 1 MΩ / current output: 500Ω ).
➅ Checkthe output voltage or current value using a voltmeteror ammeter, and confirm that the output meets the I/O
characteristics. If the output does not meet the I/O characteristics, adjust theoffset and gain again. Refer to
section 8.
Note
To test the withstand voltageof the FX2N-4DA, connect all the terminals to the groundingterminal.
Guidelines for the safetyof the user and protection of the FX2N-4DA special function block
• This manual has been written tobe used by trained and competent personnel. This is definedby
the European directivesfor machinery, low voltage and EMC.
• If in doubt at any stage duringthe installation of the FX
2N-4DA always consult a professional
electrical engineerwho is qualified and trained to the local and nationalstandards. If in doubt
about the operationor use of the FX2N-4DA please consult the nearest MitsubishiElectric
distributor.
• Under no circumstances will MitsubishiElectric be liable or responsible for any consequential
damage that may ariseas a result of the installation or use of this equipment.
• All examples and diagrams shown inthis manual are intended only as an aid to understanding
the text, not to guaranteeoperation. Mitsubishi Electric will accept no responsibilityfor actual
use of the product basedon these illustrative examples.
HEAD OFFICE:MITSUBISHI DENKIBLDG MARUNOUCHI TOKYO 100 TELEX:J24532 CABLE MELCO TOKYO
HIMEJI WORKS:840, CHIYODACHO, HIMEJI, JAPAN
JY992D65901A
Effective JUN. 1997
Specifications aresubject to
change withoutnotice
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 characteristicsof current
output (+4mA to +20mA)
Standard characteristicsof current
output (0mA to +20mA)
6
7
8 9
24V DC power
supply
FX -4DA spec ial
function block
2N
Analog data cut
off circuit
E xterna l
analog unit
Power switch
Analog
output
Digital input
+10V
+10.235 V
-2,00 0
+2,000
-10V
-10.2 4V
-2,04 8
+2,047
+5V
o
u
t
p
u
t
mo
d
e
0
+1,000
Analog
output
+4mA
Digital input
+20mA
0
+1,000
O
u
tpu
t
m
ode
1
Analog
output
+20mA
0
Digital input
+1,000
Ou
tp
u
t
mo
d
e
2
After adjustment, the I/O
characteristics will be asfollows
Digital input
+1,000