Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 2 of 2

FX-2DA Special Function Block User's Guide, pages 7 to 12

Pages 7 to 12 of 12

The original document is the PDF (94 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Mitsubishi FX-2DA

Page 7

(5) Status information BFM #29 Bit b 0 : error b 1 : Offset/Gain error b 2 : Power abnormality

ON When any of b1 to b3 is ON D/A conversion is stopped for the error channel Offset/Gain data in EEPROM is corrupted or adjustment error DC 24V power supply failure

OFF No error Offset/Gain data normal Power supply normal b 3 : Hardware error b 8 : Not READY

D/A converter or other hardware failure Hardware normal FX-2DA MODE switch is not set to READY. READY mode Digital input value or analog output is outside b10: Range error Analog output value is normal. the specified range. b12: Offset/Gain adjust Permit-(b1, b0) of BFM #21 is Prohibit-(b1, b0) of BFM #21 is set at (1, 0). prohibit set at (1, 0). Bits b4 to b7, b9, b11 and b13 are undefined.

(6) Model code number BFM #30 The identification code for a Special Block is read using the FROM command. The identification code for the FX-2DA unit is K3010. The PC can use this facility in the program to identify the special block before commencing any data transfer from and to the special block.

CAUTION ●

Values of BFM #0, #5, #21, #23 and #24 are stored in EEPROM memory of the FX-2DA. BFM #23 and BFM #24 are only copied when the gain/offset setting command BFM #22 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.

●

Because of the time needed to write to the EEPROM memory, a delay of 300ms is required between instructions that cause a change to the EEPROM. Therefore, a delay timer should be used before writing to the EEPROM a second time.

Page 8

4

DEFINING GAIN AND OFFSET

〈GAIN〉

(a)

(b)

Analog

〈 OFFSET〉 Analog

(c)

Gain value

(d) (e)

Digital value 0 (f)

1000 Digital Digital Offset value

Gain is the angle or slope of the calibration line identified at a digital value of 1000. (a) Large gain – low reading resolution (b) Zero gain - – default 5V or 20mA (c) Small gain – high reading resolution

Offset is the 'Potion' of the calibrated line, identified at a digital value of 0. (d) Positive offset (e) Zero offset – default (4-20mA default is 4mA) ( f ) Negative offset

Offset and gain can be used independently or together. Reasonable offset ranges are -5V to +5V or -20mA to 20mA, and gain-offset difference 1V to 15V or 4mA to 32mA. Gain and offset can be adjusted by software in the FX base unit (see program example 2) or by the switches on the FX-2DA (with the aid of a voltmeter/ammeter). ● Bit device's b0, b1 of the gain/offset BFM (#21) should be set to 0, 1 to allow adjustment. Once adjustment is complete these bit device should be set to 1, 0 to prohibit any further changes. ● Channel initialization (BFM #0) should be set to the nearest range, i. e. voltage/current etc. 1. Power up the system the FX base unit can be in either RUN or STOP mode. 2. Connect the load and voltmeter or ammeter to the CH1 terminals. 3. Set the FX-2DA MODE switch to output CH1. 4. Press the OFFSET button once. The offset value is output. Use the UP/DOWN switch to reach the desired offset value. 5. Press the GAIN button once. The gain value is output. Use the UP/DOWN switch to reach the desired offset value. 6. Repeat operations 3 to 5 for each channel you wish to use. 7. Set the FX-2DA MODE switch to READY to complete gain and offset adjustment. NOTE : If the MODE switch is not set to a channel number, the FX-2DA is regarded as being in the READY status and no adjustments can be made.

Page 9

5

EXAMPLE PROGRAM

5.1 Basic program In the following example, channel CH1 is set to voltage output, while CH2 is set to current output. The FX2DA unit is connected at the position of special function block No.1. If the programmable controller is changed to the STOP mode, the last data sent will remain and the outputs will hold.

M8000

FROM(P) K1

K30

D4

K1

CMP K3010

D4

M0

K1

H10

K1

RUN monitor

M1

TO(P)

K0

The ID code for the special function block at position “1”is read from BFM #30 of that block and stored at D4 in the FX base unit. This is compared to check the block is an FX-2DA, if OK M1 is turned ON. These two program steps are not strictly needed to perform an analog output. They are however a useful check and are recommended as good practice. The analog output channels (CH1, CH2) are set up by writing H10 to BFM #0 of the FX-2DA.

Set CH1 setting to D0 (-2,000 to +2,000) ●Set CH2 setting to D1 ( 0 to +1,000) ●

TO

K1

K1

D0

FROM

K1

K29 K4M10

M10

M18

NO error

Output READY range normal

K2

K1

M20 M3

(D0 → BFM #1 (output to CH1)) (D1 → BFM #2 (output to CH2)) The operational status of the FX-2DA is read from BFM #29 and output as bit devices at the FX base unit. Output data normal

Page 10

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

SET

M0

TO(P)

K1

K0

H10

K1

TO(P)

K1

K21

K1

K1

TO

K1

K22

K0

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.

T0 K4 ●

T0 TO(P)

K1

K23

K0

K1

TO(P)

K1

K24

K20000

K1

●

●

TO(P)

K1

K22

HC

K1

RST

M0

K2

K1

(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” )

T1

TO(P)

K1

K21

●

●

Adjustment end. (K2) → BFM #21 BFM #21 gain/offset adjust prohibit.

Page 11

6

DIAGNOSTICS

6.1 Preliminary checks 1. Check whether the output wiring and/or expansion cables are properly connected on FX-2DA analog special function block. 2. 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. 3. Ensure that the correct operating range has been selected for the application. 4. Check that the MODE switch on the FX-2DA panel is set to the READY position. 5. Check that there is no power overload on either the 5V or 24V power source, remember the loading on the FX base unit or a powered extension unit varies according to the number of extension blocks or special function blocks connected. 6. Pit the main processing unit into RUN.

6.2 Error checking If the FX-2DA special function block does not seem to operate normally, check the following items. ●

Check the status of the POWER LED. Lit. : The extension cable is properly connected. Otherwise : Check the connection of the extension cable.

●

Check the external wiring.

●

Check the status of“24V” LED (top right cover of the FX-2DA). Lit. : FX-2DA is OK, 24V DC power source is OK. Otherwise : Possible 24V DC power failure, if OK then possible FX-2DA failure.

●

Check the status of th “D/A” LED (top right cover of the FX-2DA) Lit. : D/A conversion is proceeding normally Otherwise : Check buffer memory #29 (error status). If any bits (b2 and b3) are ON, then this is why the D/A LED is OFF.

Page 12

Guidelines for the safety of the user and protection of the FX-2DA 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-2DA 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-2DA 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.

Manual number : JY992D52801 Manual revision : C Data : AUGUST 1996

HEAD OFFICE : MITSUBISHI DENKI BLDG MARUNOUCH TOKYO 100 HIMEJI WORKS : 840, CHIYODA CHO, HIMEJI, JAPAN

JY992D52801C

TELEX : J24532 CABLE MELCO TOKYO

Effective AUG. 1996 Specifications are subject to change without notice.