Mitsubishi Electric MELSEC FX2N-4da User Manual

This manual containstext, diagrams and explanations which will guide the readerin the correct installation and operation of the FX
2N-4DA special functionblock and should be read and understood before attemptingto install or use
the unit. Further informationcan be found in the FX PROGRAMMING MANUAL, FX2N SERIES HARDWARE MANUAL .
The FX2N-4DA analog specialfunction block has four output channels. The output channels takea digital value and
output an equivalentanalog signal. This is called a D/A conversion. The FX
bits.
The selection of voltageor current based input/output is by user wiring. Analog rangesof -10 to 10V DC (resolution:
5mV), and/or 0 to 20mA(resolution: 20µA) maybe selected independently foreach channel.
Data transfer betweenthe FX2N-4DA and the FX2N main unit is by buffer memory exchange. There are 32 buffer
memories (each of 16 bits)in the FX2N-4DA.
The FX2N-4DA occupies 8 pointsof I/O on the FX2N expansion bus. The 8 points can be allocated from eitherinputs
or outputs. The FX2N-4DAdraws 30mA from the 5V rail of the FX2N main unit or powered extension unit.
Weight : Approx. 0.3kg (0.66 lbs) Accessory: Special blocknumber label
Handling of crimp-styleterminal
Be sure to use thecrimp-style terminals that satisfy the dimen-
sional requirementsshown in the left figure.
Apply 0.5 to 0.8 Nm (5to 8 kgfcm) torque to tighten the termi-
nals. Firmly tighten the terminalsto prevent abnormal operation.
POW ER
D/A
24V
FX2N -4DA
I+
V+
I+
VI-
CH4
CH3
CH2
CH1
V+
I+V+
I+
V+
24+
24-
VI-
VI-
VI-
8
9
1
4(0. 16)
2
55(2. 17)
90(3. 54)
87(3. 43)
55(2. 17)
80(3. 15)
9(0. 35)
7
6
5
4
3
4(0. 16)
CH1
V+
24+
24-
VI-
CONNECTION TO PROGRAMMABLE CONTROLLER
Various special blockscontrolled by the FROM/TO commands, such as the analog input blockshigh-speed counter blocks, etc. can be connectedto the FX2N programmablecontroller (MPU), or connected to theright side of the other extension blocks orunits. Up to eight specialblocks can be connected to a single MPU in the numeric orderof No. 0 to No. 7.
WIRING: The terminal layout shown belowmay differ from the actual layout. For the correct terminallayout, refer to section 2 External Dimensionsand Parts.
ENVIRONMENTAL SPECIFICATIONS
Item Specification
Environmental specifications(excluding following) Same as thosefor the FX
2N main unit
Dielectric withstandvoltage 500V AC, 1min (betweenall terminals and ground)
PERFORMANCE SPECIFICATIONS
Item Voltage output Currentoutput
Analog output range
-10V DC to +10V DC (Externalload resistance: 2kto 1M).
DC 0mA to +20mA (Externalload resistance: 500).
Digital input 16 bits, binary, withsign (Effective bits for numeric value: 11 bits and sign bit (1bit))
Resolution
5mV (10V × 1/2000) 20µA (20mA × 1/1000)
Total accuracy
±1% (at full scale of +10V) ±1% (at full scale of +20mA)
Conversion speed
2.1ms for 4 channels (Changein the number of channels used will not change theconversion speed.)
Isolation
Photo-coupler isolationbetween analog and digital circuits. DC/DC converter isolationof power from FX
2N main unit.
No isolation betweenanalog channels.
External power
supply
24V DC ±10% 200mA
Number of occupied
I/O points
8 points taken from theFX
2N expansion bus (can be either inputsor outputs)
Power consumption 5V, 30mA (Internal power supplyfrom MPU or powered extension unit)
I/O characteristics
(Default: mode 0) Follow the procedure described in section8
to change
At load resistance of10k At load resistance of250
At load resistance of250
Command sent from the programmablecontroller can change the mode. The voltage/currentoutput mode selected will determinethe output terminals used.
Data is transmitted betweenthe FX2N-4DA and the MPU via buffer memories (16-bit 32-pointRAM).
Buffer memories marked“W” can be written to using the T0 instructionin the MPU.
The status of BFM #0, #5,and #21, (marked E) will be written to EEPROM,therefore the set values will be retainedeven after turning off the power.
[BFM#0] Output mode select: The value of BFM #0 switches the analogoutput between voltage and current on
each channel. It takes the formof a 4 digit hexadecimal number. The first digit will be the command forchannel 1 (CH1), and the seconddigit for channel 2 (CH2) etc. The numeric values of these four digitsrespectively represent the followingitems:
O = 0:Sets the voltageoutput mode (-10 V to +10 V). O = 1:Sets the currentoutput mode (+4 mA to 20 mA). O = 2:Sets the currentoutput mode (0 mA to +20 mA).
Switching the outputmode resets the I/O characteristics to the factory-set characteristics. Refer to the performance specifications describedin section 4.
Example: H2110 CH1 : Voltage output (-10V to +10 V)
CH2 and CH3 : Current output (+4 mA to +20 mA) CH4 : Currentoutput (0 mA to +20 mA)
[BFM#1, #2, #3 and #4]: Output data channels CH1, CH2, CH3, and CH4
BFM #1: Output data ofCH1 (Initial value: 0) BFM #2: Output data ofCH2 (Initial value: 0) BFM #3: Output data ofCH3 (Initial value: 0) BFM #4: Output data ofCH4 (Initial value: 0)
[BFM#5]: Data holding mode: While the programmable controlleris in the STOP mode, the last output value in the
RUN mode will be held. To reset the value to the offset value, write the hexadecimalvalue in BFM #5 as follows:
O = 0: Holds the output. O = 1: Resets to the offsetvalue.
Example: H0011 ⋅⋅⋅⋅⋅⋅ CH1 and CH2 = Offsetvalue CH3and CH4 = Output holding
In addition to theabove functions, the buffer memories can adjust the I/O characteristicsof the FX2N-4DA, and report the status of the FX
2N-4DA to the programmablecontroller.
Buffer memories marked “W”can be written to using the TO instructionin the MPU. The status of BFM #0, #5, and#21, (marked E) will be written toEEPROM, therefore the set values will be retainedeven after turning off the power.
*1:Offset data: Actualanalog output value
when correspondingoutput data (BFM #1 through#4) is 0
*2:Gain data: Actualanalog output value
when correspondingoutput data (BFM #1 through#4) is +1,000
*3: When current outputmode 1 (+4 mA to
+20 mA) is set, the offsetdata will be automatically set to+4,000 and the gain data to +20,000. When the current output mode 2 (0 mA to+20 mA) is set, the offset data willbe automatically set to 0 and the gain datato +20,000.
[BFM#8 and #9] Offset/gain setting command: Changes offset and gainvalues of channels CH1 through CH4 by
writing 1 to the correspondingHex digits of BFM #8 or #9. The current values will be validuntil this command is output.
BFM #8 BFM #9
O = 0: No changes done. O = 1: Change data value. (Program example : seesection 8.)
[BFM#10 through #17] Offset/gain data: The offset and gainvalues are changed by writing new data to BFM #10
through #17. The units of thedata to be written is mV or µA. The data should be written and thenBFM #8 and #9 set. Note that the datavalue will be rounded down to the nearest 5mV or 20µA.
[BFM#20] Initialize: When K1 is written in BFM #20, all valueswill be initialized to the factory-settings.
(Note that the BFM #20data will override the BFM #21 data.) This initialize functionis convenient if you have an error in adjustment.
[BFM#21] I/O characteristics adjustment inhibit: Setting BFM #21to 2 inhibits the user from inadvertent adjustment
of I/O characteristics. The adjustment inhibit function, once set, will be valid untilthe Permit command (BFM #21=1) is set. The initialvalue is 1 (Permit). The set value will be retainedeven after power-off.
FX2N-4DA
JY992D65901A
2
ExtensioncablePower indicatorlamp (LED)
5 V power is suppliedfrom the programmable controller to lightthis indicator lamp.
Power supplyterminals
(Screw terminal: M3 (0.12))
Analogoutput terminals
(Screw terminals : M3 (0.12))
24V power indicator lamp (LED)
24 VDC power is suppliedto the terminals of the FX
2N-4DA to light this indicatorlamp.
D/Aconversion indicator lamp (LED)
Flashes at a high speedif D/A conversion is performing without aproblem.
Hookfor DIN railGroovefor DIN rail mounting
(Width of DIN rail : 35mm 1.38")
Holefor direct mounting (2-φ4.5) (0.18)
*1: Use a twisted pair shielded cable for theanalog
output. This cable shouldbe wired away from power lines or any other lineswhich could induce noise.
*2: Apply 1-point grounding at the load sideof the output
cable (class 3 grounding:100or less).
*3: If electrical noise or a voltage rippleexists at the
output, connect a smoothingcapacitor of 0.1 to
0.47µF, 25V.
*4: Connect the terminal on the FX
2N-4DA with the
terminal on the MPU ofthe programmable
controller.
*5: Shorting the voltage output terminal orconnecting the
current output loadto the voltage output terminal may damage the FX2N-4DA.
*6: The 24V DC service power of the programmable
controller can alsobe used.
*7: Do not connect any unit to the unused terminal
BFM Description
W
#0 E Output mode select. Factory setting H0000
#1
Output data (Signed16 bits binary: actual value 11 bits + sign) #1: CH1, #2: CH2, #3: CH3,#4: CH4
#2
#3
#4
#5 E Data holding mode. Factory setting H0000
#6, #7 Reserved
BFM Description
W
#8(E) Offset/gain setting commandCH1, CH2 Initial value H0000 #9(E) Offset/gain setting commandCH3, CH4 Initial value H0000 #10 Offset data CH1 *1
Unit: mV or µA Initial offset value:0 Initial gain value:+5,000
#11 Gain data CH1 *2 #12 Offset data CH2 *1 #13 Gain data CH2 *2 #14 Offset data CH3 *1 #15 Gain data CH3 *2 #16 Offset data CH4 *1 #17 Gain data CH4 *2
#18, #19 Reserved
W
#20(E) Initialize. initial value = 0 #21 E I/Ocharacteristics adjustment inhibit (Initialvalue 1)
#22-#28 Reserved
#29 Error status #30 K3020 identificationcode #31 Reserved
1
3
4
5
Mode 1 (Current output: +4mAto +20mA)
Mode 2 (Current output: 0mAto +20mA)
6 .2mm
(0.24 inches )
or less
FOR M3(0. 12)
FX -16E X
X000 -X02 7 Y00 0-Y 027
X030
- X047
2N
FX -48M R- ES /UL
2N
FX -4AD
2N
No. 2
2N
FX -4AD -PT
X050 -X06 7 Y03 0-Y 047
2N
FX -32 ER
2N
FX -4DA
FX -4 8MR -E S /UL
2N
POWER
A/D 24V
FX
-4AD
2N
POWER
D/A 24V
FX -4DA
2N
No. 1
No. 0
POWER
24V A/D
Spe cial bloc k
Spe cial bloc k
Spe cial bloc k
X0
X5
72 456130
1611 1514 1710 12 13
14 171510 12 13
72 456130
1611
OUT
IN
L
X11 X13 X15 X17
X6 X10 X12 X 14 X16
24+
N
COM X4
X7
COM4
COM2Y4Y5Y6Y7 COM3
Y10
Y11
Y12
Y13
COM1Y0Y1Y2Y3
Y14
Y15
Y16
Y17
X3X2X1
POWER
762720 222 3 24252621
1617
14 1 71510 1213
724561302 720 222 3 24252621
1611
IN
LX5X7
X13 X15 X17 X21 X23 X25
X4 X6 X10
X14 X16 X20 X22 X24
24+N
COM
X0X1X2
COM4
Y24
Y25
COM5
Y27COM2
Y4Y5Y6
Y7
COM3
Y10
Y13COM1
Y0 Y2
Y3
Y14
Y15
Y20
Y21
Y22
Y23
Y26
POWER
T.V
CPU.E
PROG.E
*6
DC2 4V±10 %200 mA
*4
Clas s 3 Grounding (100
or les s)
PC
Exte nsion c able
24+
24-
FX -4DA
2N
DC/DC
converter
AG
+15V
+15V
CH1
CH2
V+
I +
VI -
V+
I +
VI -
*2
*5
*2
Mixed output from the sa me c hannel is not pos sible.
*1 *7
*3 Inverte r,etc.
Re corder, etc.
*1
Analog ou tput
Digital input
+10V
+10.235 V
-2,00 0 +2,000
-10V
-10.2 4V
-2,04 8
+2,047
Mode 0 (Voltage output: -10Vto +10V)
Analog output
+4mA
Digital input
+20mA
0
+1,000
Analog output
Digital input
+20mA
0
+1,000
CH 4 C H3 CH 2 C H1
H
G2
H
O2 G 1
O1
CH 4 C H3 CH 2 C H1
H
G4
H
O4 G 3
O3
*3
Output  mode 0
资料提供 
思南工控
  http://GKong.com
特殊功能模块
使用指南
引言
外部端子和部件
说明
安装与接线
缓存(BFM)的分配
[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 in­structions 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: 2kto 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
A
nalog
o
utput
+7mA
+20mA
0
FNC 78
FROM
D P
X010
Read command
FROM K1 K30 D0 K1
Read BFM
BFM #30 of special unit No.1® D0
m1 m2
n
FNC 79
TO
D P
X011
Write command
TO K1 K1 D2 K2
Write BFM
D2 and D3® BFM #1 and #2
of special unit No.1
m1 m2 n
思南工控
http://GKong.com Sinan@sina.com 欢迎常来坐坐,多多交流
操作和编程示范
操作上的警示
I/O调节器的说明
故障排除
Loading...