
FNC78
FROM
Read BFM
FNC79
TO
Write BFM
(Offset value:7mA)
(K20000)→BFM#13
Sets the gain data.
OPERATION END
HEAD OFFICE : MITSUBISHI DENKI BLDG MARUNOUCHI TOKYO 100 TELEX : J24532 CABLE MELCO TOKYO
HIMEJI WORKS : 840, CHIYODA CHO, HIMEJI, JAPAN
Manual number : JY992D61001
Manual revison : B
Date : November 1996
●••••••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.
Check whether the output wiring and/or expansion cables are properly connected on FX-4DA analog special
function block.
Check that the FX 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 FX
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 24V DC 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.
①
②
③
④
⑤
⑥
Adjustment of I/O Characteristics
To adjust the I/O characteristics, set the offset and gain of the FX-4DA either using pushbutton 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 FX-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 FX-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.
Note that the resolution (minimum possible change of analog output) of the FX-4DA is fixed.
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.
Standard characteristics
of voltage output Standard characteristics of current
output (+4mA to +20mA) Standard characteristics of current
output (0mA to +20mA)
Digital input Digital input
-2,000
-10.24V -10V
+2,000+1,000
+10.235V
Outline of FROM and TO commands: For a detailed description, refer to the FX Programming Manual.
DP
Read command
X010 FROM K1 K30 D0 K1 BFM #30 of special unit No.1 →D0
m1 m2 D• n
m1
m2
D•
n
:
:
:
:
Special unit or block number (K0 to K7, numbered from the MPU)
Buffer memory head address (K0 to K31)
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.
Number of transfer points (K1 to K32) (K1 to K16 for 32-bit command)
DP
X011 TO K1 K1 D2 K2 D2 and D3 →BFM #1 and #2 of special unit No.1
m1, m2, n
S• :
:
If the FX-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 FX-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 FX-4DA.
On: 24V DC is supplied.
Off: Supply 24V DC (+10%) to the FX-4DA.
Check the status of the D-A conversion indicator lamp (LED) of the FX-4DA.
Flash: D-A conversion is normal.
On or off: The ambient conditions are not suitable for the FX-4DA, or the FX-4DA is defective.
Check that the external load resistance connected to each analog output terminal does not exceed the
capacity of the FX-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.
D0 and D1 = -2,000 to +2,000
D2 and D3 = 0 to +1,000
Set the data to
In specified
output range
No error
BFM #30 data (model code) of block No. 1 Transferred to
data register D4.
BFM #29 (b15 to b0) →(M25 to M10)
Reads out the status data.
M1 will be turned on when the model code is set to K3020
(FX-4DA).
D0 →BFM #1 (CH1 output)
D1 →BFM #2 (CH2 output)
D2 →BFM #3 (CH3 output)
D3 →BFM #4 (CH4 output)
⑧[BFM #29] Error status: When an error occurs, use the FROM command to read out the details of the error.
Error status
00+1,000
Analog
output
00+1,000
+20mA
Digital input
After adjustment, the I/O
characteristics will be as follows
+1,000
Analog
output
+7mA
0
●When X010 and X011 are off, transfer will not be executed, therefore the destination data value will not be
changed.
Note
To test the withstand voltage of the FX-4DA, connect all the terminals to the grounding terminal.
Guidelines for the safety of the user and protection of
the FX-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 FX-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 FX-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.
JY992D61001B Effective NOV. 1996
Specifications are subject
to change without notice.
7 CAUTION REGARDING OPERATION
8 ADJUSTMENT OF I/O CHARACTERISTICS 9 TROUBLESHOOTING
Output data abnormal
M20
M10
M1
M8000
RUN
monitor
+10V
+5V
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)
Same as above
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.
m1 m2 S• n
Write command
+20mA
FROM
CMP
TO
TO
FROM
K1
K3020
K1
K1
K1
K30
D4
K0
K1
K29
D4
M0
H2100
D0
K4M10
K1
K1
K2
K1
•
•
•
•
Initial pulse
RUN
monitor
M8002
M8000
K1
K4
H2100
D0
TO
TO
K0
K1
K1
K1
Write the data for CH1 to D0, CH2 to D1,
CH3 to D2 and CH4 to D3.
(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)
①
②
③
④
Turn off the power of the MPU, and then connect the FX-4DA. After that, wire the I/O lines of the
FX-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 FX-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, ③.
Operation procedure
Program example
For the following program, CH1 and CH2 of the FX-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.
FX-4DA special
function block External
analog unit
Analog data cut
off circuit
24V DC power
supply
Power switch
[Example of preventive measure]
Output mode 0
Analog
output
Digital input
+2,047
-2,048
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 24 VDC power failure Power supplied normally
b3 Hardware error Defective D-A converter or other hardware Non-defective 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.
If the factory-set I/O characteristics are not changed and the status information is not used, you can operate the
FX-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)
6 OPERATION AND PROGRAM EXAMPLES
P
⑨[BFM #30]The identification code for a special block is read using the FROM command.The identification
code for the FX-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 FX-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 instructions 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 BFM#17.
K1
K1
H0010
K1
K1
K1
K0
K21
M0
X10
T0 TO
TO
TO
TO
K1
K1
K1
K1 K21
K12
K13
K8
SET
K2
RST
K7000
K20000
H1100
K1
M0
K1
K1
K1
M0
T1
T0
K30
K30
(K7000)→BFM#12
Sets the offset data.
(K1)→BFM#21
Permits adjustment of I/O characteristics.
(H0010)→BFM#0
Sets the mode of the output channel.
OPERATION START
(Gain value:20mA)
(H1100)→BFM#8
CH2 offset/gain setting command
(K2)→BFM#21
Inhibits adjustment of I/O characteristics
T1
TO
TO
P
P
P
P
P
P
M3
+4mA
+20mA
Analog
output
Downloaded from ManualsNet.com search engine