INTRODUCTION TERMINAL LAYOUTS FX2N-4AD SPECIAL FUNCTION BLOCK USER S GUIDE

Similar documents
FX-2DA SPECIAL FUNCTION BLOCK USER'S GUIDE

LX3V-4AD User manual Website: Technical Support: Skype: Phone: QQ Group: Technical forum:

INTRODUCTION TERMINAL LAYOUTS FX2N-4AD-TC SPECIAL FUNCTION BLOCK USER S GUIDE

FX-4AD-TC SPECIAL FUNCTION BLOCK USER'S GUIDE

FX0N-3A SPECIAL FUNCTION BLOCK

USER S MANUAL. FX2N-8AD Analog input block

FX2N-2DA SPECIAL FUNCTION BLOCK

FX2N-2AD SPECIAL FUNCTION BLOCK

ANALOG I/O MODULES AD268 / DA264 / TC218 USER S MANUAL

FX2N-232IF RS232C INTERFACE BLOCK

C200H-AD002/DA002 Analog I/O Units Operation Guide

SAFETY PRECAUTIONS. (Read these precautions before using this product.)

Vorne Industries. 87/719 Analog Input Module User's Manual Industrial Drive Itasca, IL (630) Telefax (630)

Operating Instructions

WECON LX3V-2TC2DA BD Board

MELSEC-L Digital-Analog Converter Module User's Manual -L60DA4 -L60DAVL8 -L60DAIL8

MG-XV operating instruction. Measuring of norm signals, 4-8-digit. Panel instrument type MG-BV Construction instrument type MG-AV

K3NX Process Meter OPERATION MANUAL

MELSEC iq-f FX5 User's Manual (Analog Control - Intelligent function module)

K-BUS Dimmer Module User manual-ver. 1

MICROMASTER Encoder Module

AI-1204Z-PCI. Features. 10MSPS, 12-bit Analog Input Board for PCI AI-1204Z-PCI 1. Ver.1.04

LAUREL ELECTRONICS, INC.

Analogue output module DAO 081

WECON LX3V-2PT2DA BD Board

32 Channel CPCI Board User Manual

Model Number Structure

Industriefunkuhren. Technical Manual. IRIG-B Generator-Module for analogue / digital Signals of Type: IRIG-B / IEEE C / AFNOR NF S87-500

Electrical connection

SIMATIC. ET 200S distributed I/O 2AO U HS analog electronic module (6ES7135-4FB52-0AB0) Preface. Properties 1. Parameters 2.

User Manual CC DC 24 V 5A. Universal Control Unit UC-1-E. General Information SET. Universal Control Unit UC-1 Of Central Lubrication PAUSE CONTACT

E6CP-A. An Absolute Encoder at About the Same Price as an Incremental Encoder. Ideal for robot limit signals. Low-cost Encoder with Diameter of 50 mm

Installation and User Guide 458/CTR8 8-Channel Ballast Controller Module

Operating Instructions

CM1-AD08V 0~5V, 1~5V, -10~10V, 0~10V An input signal is converted to a digital value from 0 to or from 8000 to 8000.

PicoScope 3000 Series Automotive User guide

Multifunction Digital Timer

LED DRIVERS. LQC4D-V1 4 channels. User Manual FEATURES

PicoScope 4000 Automotive PC Oscilloscopes

R1MS-GH3 BEFORE USE... POINTS OF CAUTION INSTRUCTION MANUAL THERMOCOUPLE & DC INPUT MODULE MODEL. (8 points; isolated)

NTB-500A. Medium Speed Network Terminal Box. Supports dynamic measurement at medium-speed synchronous sampling!

(Cat. No IJ, -IK)

PACSystems* RX3i Thermocouple Input Module, 12 Channels, IC695ALG412-CB

Agilent Understanding the Agilent 34405A DMM Operation Application Note

AD12-16U(PCI)EV. Features. High-Speed Analog Input Board for PCI AD12-16U(PCI)EV 1. Ver.1.01

A/D and D/A convertor 0(4) 24 ma DC, 16 bits

16-BIT LOAD CELL/DUAL STATUS INPUT

GT1030-LBD(W) / GT1030-LBD(W)2 GT1020-LBD(W) / GT1020-LBD(W)2 / GT1020-LBL(W)

MicroLogix 1200 Thermocouple/mV Input Module

Troubleshooting. 1. Symptom: Status indicator (Red LED) on SSR is constant on. 2. Symptom: Output indicator (Yellow LED) on SSR is flashing.

Safety Light Curtain C 4000

Ocean Sensor Systems, Inc. Wave Staff, OSSI F, Water Level Sensor With 0-5V, RS232 & Alarm Outputs, 1 to 20 Meter Staff

Ocean Sensor Systems, Inc. Wave Staff III, OSSI With 0-5V & RS232 Output and A Self Grounding Coaxial Staff

AI-1664LAX-USB. Features. 100KSPS 16-bit Analog Input Unit for USB AI-1664LAX-USB 1. Ver.1.01

AK-PVE4 Operating Instructions. Measuring of norm signals in wall-type units. Performance:

ORDERING Page 6 BASLER RELAY STANDARDS, DIMENSIONS, ACCESSORIES Request bulletin SDA

Weekly Timer. Mounting track 50 cm (1.64 ft) length PFP-50N 1 m (3.28 ft) length PFP-100N

3M Sensored Termination (15 kv) QX-T15I-vi1-E

Assembly. Front view. LEDs. Parametrization interface. Power Bus

User Guide. HDMI Fiber Optic Extender. DVI-7350a

User s Manual TOS7200. Insulation Resistance Tester DANGER. 1. Preface Preparation Safety Precautions during Testing 19

Scanning Laser Range Finder Smart-URG mini UST-10LX (UUST003) Specification

L, LTC, LTM, LT are registered trademarks of Linear Technology Corporation. Other product

Kramer Electronics, Ltd. USER MANUAL. Models: TR-1YC, s-video Isolation Transformer TR-2YC, s-video Dual Isolation Transformers

Standard signal metering in wall-mounting case

LED control gear Compact fixed output. Uconverter LCI 55 W 1400 ma O010 TOP series Ø4,4. Ordering data

PicoScope 2000 Series PC Oscilloscopes

KNX Dimmer RGBW - User Manual

AD16-16U(PCI)EV. Features. High-Speed & Resolution Analog Input Board for PCI AD16-16U(PCI)EV 1. Ver.1.02

Triple RTD. On-board Digital Signal Processor. Linearization RTDs 20 Hz averaged outputs 16-bit precision comparator function.

UDC100 Universal Digital Controller. Specification. Overview. Features. Features, continued /99 Page 1 of 4

Vocia VI-6. Operation Manual

Standard RS232 RS ma

V6118 EM MICROELECTRONIC - MARIN SA. 2, 4 and 8 Mutiplex LCD Driver

MODEL: 40DPT. Digital Panel Meters 40 Series. [3] OPTIONS blank: none /Q: With options (specify the specification)

ZU 251. Incremental Counter Module With Analogue Output and Serial Interface. Operating Instructions. control motion interface

SCALE & WEIGHT DISPLAYS

BE1-81O/U Frequency Protection. Washington State University Hands-On Relay School.

Dynatel Advanced Cable Locator 2250

Magnecraft Power Relays

Gamma instabus. Technical product information

TRIPLETT. PairMaster. Lan Cable Test Set. Instruction Manual

IV 251. Signal Converter SSI Analogue and SSI Serial. Operating Instructions. control motion interface

AD16-64(LPCI)LA. Non-isolated high precision analog input board for Low Profile PCI AD16-64(LPCI)LA 1. Ver.1.01

PQ-Box 100 Quick Start Instructions

SAFETY TERMS AND SYMBOLS

DA8-T DA8-T MANUAL

Sensor module. Safety instructions. Function Correct use. Product characteristics. Structure of the device. Operation. Ref.No.

Specifications. End-Point Linearity - ±5% F.S., when used with HACO SCR-speed control

Digital Delay / Pulse Generator DG535 Digital delay and pulse generator (4-channel)

PROGRAMMABLE DC SOURCE VIEW RECORDERS Programmable DC Source FEATURES

Self Excited Automatic Voltage Regulator For Generator Compatible with Marathon SE350* Operation Manual

PACSystems* RX3i. Isolated Thermocouple Input Module, 6 Channels, IC695ALG306-EB Isolated Thermocouple Input Module, 12 Channels, IC695ALG312-EB

Operating Manual (Edition 04/2004) sinamics. Line Reactors SINAMICS G130

Nutube.US. 6P1 Evaluation Board. User Manual

Installation Guide VL-MV10. Model No.

Troubleshooting CS800/LC900 Bikes

Level Measurement silometer FMC 420, FMC 423

9 Control Equipment. Measurement- and Control Equipment Series 8214, 8218

User s Manual. Log Scale (/LG) GX10/GX20/GP10/GP20/GM10 IM 04L51B01-06EN. 3rd Edition

Transcription:

FX2N-4AD SPECIAL FUNCTION BLOCK USER S GUIDE JY992D6520B This manual contains text, diagrams and explanations which will guide the reader in the correct installation and operation of the FX2N-4AD and should be read and understood before attempting to install or use the unit. Further information can be found in the FX SERIES PROGRAMMING MANUAL, FX2N SERIES HARDWARE MANUAL. INTRODUCTION The FX2N-4AD analog special function block has four input channels. The input channels receive analog signals and convert them into a digital value. This is called an A/D conversion. The FX2N-4AD has maximum resolution of 2 bits. The selection of voltage or current based input/output is by user wiring. Analog ranges of -0 to 0V DC (resolution: 5mV), and/or 4 to 20mA, -20 to 20mA(resolution: 20µA) may be selected. Data transfer between the FX2N-4AD and the FX2N main unit is by buffer memory exchange. There are 32 buffer memories (each of 6 bits) in the FX2N-4AD. The FX2N-4AD occupies 8 points of I/O on the FX2N expansion bus. The 8 points can be allocated from either inputs or outputs. The FX2N-4AD draws 30mA from the 5V rail of the FX2N main unit or powered extension unit.. EXTERNAL DIMENSIONS Weight : Approx. 0.3 kg (0.66 lbs) Dimensions : mm (inches) 2-0V to +0V CH4 V+ 250W I+ CH4 2 VI- FG Shielded AG -20mA to +20mA CH V+ 250W I+ CH 3 VI- FG Shielded 4 DC24V 55mA +5V 24+ 5 DC/DC AG converter 24- -5V Class 3 Grounding (00Wor less) PC Extension cable FX2N-4AD Analog Input Block TERMINAL LAYOUTS ➀ The analog input is received through a twisted pair shielded cable. This cable should be wired separately from power lines or any other lines which may induce electrical noise. ➁ If a voltage ripple occurs during input, or there is electrically induced noise on the external wiring, connect a smoothing capacitor of 0. to 0.47µF, 25V. ➂ If you are using current input, connect the V+ and I+ terminals to each other. ➃ If there is excessive electrical noise, connect the FG frame ground terminal with the grounded terminal on the FX2N-4AD. ➄ Connect the ground terminal on the FX2N-4AD unit with the grounded terminal on the main unit. Use class 3 grounding on the main unit, if available.

3 3. Environment specification INSTALLATION NOTES AND USAGE Environmental specifications (excluding following) Dielectric withstand voltage Same as those for the FX2N main unit 500VAC, min (between all terminals and ground) 3.2 Power supply specification Analog circuits circuits 24V DC ± 0%, 55mA (external power supply from main unit) 5V DC, 30mA (internal power supply from main unit) 3.3 Performance specification Analog Inputs Analog input range Either voltage or current input can be selected with your choice of input terminal. Up to four input points can be used at one time. DC -0V to +0V (input resistance: 200kΩ). Warning: this unit may be damaged by input voltage in excess of ±5V. DC -20mA to +20mA (input resistance: 250Ω). Warning: this unit may be damaged by input currents in excess of ±32mA. output 2-bit conversion stored in 6-bit 2 s complement form. Maximum value: +2047 Minimum value: -2048 Resolution 5mV (0V default range /2000) 20µA (20mA default range /000) Over all accuracy ±% (for the range of -0V to +0V) ±% (for the range of -20mA to +20mA) Conversion speed 5ms/channel (Normal speed), 6ms/channel (High speed) Analog Inputs continued... Preset 0 (-0V to +0V) Preset (+4mA to +20mA) Preset 2 (-20mA to +20mA) -0.240V +2,000 output -0V -2,048 +2,047 +0.235V +0V -2,000 output +,750 0 +4mA +20mA +32mA -32mA output -20mA -,600 +,600 +32mA +20mA -,000 NOTE: Preset ranges are selected by an appropriate setting in buffer memory of the analog block. Current/ selection must match the correct input terminal connections. Miscellaneous Isolation Number of occupied I/O points Photo-coupler isolation between analog and digital circuits. DC/DC converter isolation of power from FX2N MPU. No isolation between analog channels. 8 points taken from the FX2N expansion bus (can be either inputs or outputs)

3.4 Allocation of buffer memories (BFM) BFM Contents *#0 Channel initialization Default = H0000 *# Channel Contains the number of samples ( to *#2 Channel 2 4096) to be used for an averaged result. The default setting is 8-normal speed. High *#3 Channel 3 speed operation can be selected with a *#4 Channel 4 value of. #5 Channel #6 Channel 2 #7 Channel 3 #8 Channel 4 #9 Channel #0 Channel 2 # Channel 3 #2 Channel 4 #3-#4 Reserved #5 These buffer memories contain the averaged input values for the number of samples entered for the channel in buffer memories # to #4 respectively. These buffer memories contain the present value currently being read by each input channel. When set to 0, a normal speed is selected Selection of A/D of 5ms/ch (default) conversion speed see note 2 When set to, a high speed is selected of 6ms/ch In buffer memory locations (BFMs) marked with an * data can be written from the PC using the TO command. For buffer memories (BFMs) without * mark, data can be read to the PC using the FROM command. Before reading from the analog special function block, ensure these settings have been sent to the analog special function block. Otherwise, the previous values held in the analog block will be used. BFM b7 b6 b5 b4 b3 b2 b b0 #6-#9 Reserved *#20 Reset to Defaults and Preset. Default = 0 *#2 Offset, Gain Adjust Prohibit. Default = (0, ) Permit *#22 Offset, Gain Adjust G4 O4 G3 O3 G2 O2 G O *#23 Offset Value Default = 0 *#24 Gain Value Default = 5,000 #25-#28 Reserved #29 Error status #30 Identification code K200 #3 Cannot be used The buffer memory also gives a facility to adjust offset and gain by software. Offset (intercept): The analog input value when the digital output becomes 0. Gain (slope): The analog input value when the digital output becomes +000. () Channel Selection Channel initialization is made by a 4 character HEX number HOOOO in buffer memory BFM #0. The least significant character controls channel and the 4 character controls channel 4. Setting of each character is as follows: O = 0: Preset range (-0V to +0V) O = 2: Preset range (-20mA to +20mA) O = : Preset range (+4mA to +20mA) O = 3: Channel OFF Example: H330 CH: Preset range (-0V to +0V) CH2: Preset range (+4mA to +20mA) CH3, CH4: Channel OFF (2) Analog to Conversion Speed Change By writing 0 or into BFM #5 of the FX2N-4AD, the speed at which A/D conversion is performed can be changed. However the following points should be noted: To maintain a high speed conversion rate, use the FROM/TO commands as seldom as possible. NOTES: When a conversion speed change is made, BFM #-#4 are set to their default values immediately after the change. This is regardless of the values they held originally. Bear this in mind if a speed change will be made as part of the normal program execution. (3) Adjusting Gain and Offset values (a) When buffer memory BFM #20 is activated by setting it to K, all settings within the analog special function block are reset to their default settings. This is a very quick method to erase any undesired gain and offset adjustments. (b) If (b, b0) of BFM #2 is set to (,0), gain and offset adjustments are prohibited to prevent inadvertent changes by the operator. In order to adjust the gain and offset values, bits (b, b0) must be set to (0,). The default is (0,). (c) Gain and offset values of BFM #23 and #24 are sent to non-volatile memory gain and offset registers of the specified input channels. Input channels to be adjusted are specified by the appropriate G-O (gain-offset) bits of BFM #22 Example: If bits G and O are set to, input channel will be adjusted when BFM #22 is written to by a TO instruction. (d) Channels can be adjusted individually or together with the same gain and offset values. (e) Gain and offset values in BFM #23 #24 are in units of mv or µa. Due to the resolution of the unit the actual response will be in steps of 5mV or 20µA.

(4) Status Information BFM #29 Bit devices of BFM #29 ON OFF b0 : Error When any of b to b4 is ON. If any of b2 to b4 is ON, A/D conversion of all the channels is stopped No error b : Offset / gain error Offset/Gain data in EEPROM is corrupted or adjustment error. Offset/Gain data normal b2 : Power source abnormality 24V DC power supply failure Power supply normal b3 : Hardware error A/D converter or other hardware failure Hardware Normal b0 : range error output value is less than -2048 or more than +2047 output value is normal. Number of averaging samples is 4097 or Averaging is normal. b: Averaging error more or 0 or less (default of 8 will be used) (between and 4096) b2: Offset / gain adjust prohibit Prohibit-(b, b0) of BFM #2 is set to (, 0) Permit-(b, b0) of BFM #2 is set to (0,) NOTE: b4 to b7, b9 and b3 to b5 are undefined. (5) Identification Code BFM #30 The identification (or ID) code number for a Special Function Block is read using the FROM command. This number for the FX2N-4AD unit is K200. The user s program in the PC can use this facility in the program to identify the special function block before commencing data transfer from and to the special function block. CAUTION Values of BFM #0, #23 and #24 are copied to EEPROM memory of the FX2N-4AD. BFM #2 and BFM #22 are only copied when data is written to the gain/offset command buffer BFM #22. Also, BFM #20 causes writing to the EEPROM memory. The EEPROM has a life of about 0,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 300 ms is required between instructions that cause a write to the EEPROM. Therefore, a delay timer should be used before writing to the EEPROM a second time. 4 DEFINING GAIN AND OFFSET Gain (a) (b) Offset (d) (e) (f) (c) 0 Offset value Gain value Analog Analog Gain determines the angle or slope of the calibration line, identified at a digital value of 000. (a) Small gain Large steps in digital readings (b) Zero gain default : 5V or 20mA (c) Large gain Small steps in digital readings Offset is the Position of the calibrated line, identified at a digital value of 0. (d) Negative offset (e) Zero offset default : 0V or 4mA (f) Positive offset Offset and gain can be set independently or together. Reasonable offset ranges are -5 to +5V or -20mA to 20mA, and gain values V to 5V or 4mA to 32mA. Gain and offset can be adjusted by software in the FX2N main unit (see program example 2) Bit device s b, b2 of the gain/offset BFM #2 should be set to 0, to allow adjustment. Once adjustment is complete these bit devices should be set to, 0 to prohibit any further changes. Channel initialization (BFM #0) should be set to the nearest range, i. e. voltage/current etc.

5 EXAMPLE PROGRAM 5. Basic Program In the following example channels CH and CH2 are used as voltage inputs. The FX2N-4AD block is connected at the position of special function block No.0. Averaging is set at 4 and data registers D0 and D of the PC receive the averaged digital data. M8002 initial pulse M FROM K0 K30 D4 K CMP K200 D4 TO P K0 K0 H3300 K The ID code for the special function block at position 0" is read from BFM #30 of that block and stored at D4 in the main unit. This is compared to check the block is a FX2N-4AD, if OK M is turned ON. These two program steps are not strictly needed to perform an analog read. They are however a useful check and are recommended as good practice. The analog input channels (CH, CH2) are setup by writing H3300 to BFM #0 of the FX2N-4AD. TO K0 K K4 K2 FROM K0 K29 K4M0 K The number of averaged samples for CH and CH2 is set to 4 by writing 4 to BFM # and #2 respectively. Do not execute the pulse. The operational status of the FX2N-4AD is read from BFM #29 and output as bit devices at the FX2N main unit. NO error M0 M20 FROM K0 K5 D0 K2 output value is normal If there are no errors in the operation of the FX2N-4AD, then the averaged data BFM s are read. In the case of this example BFM #5 and #6 are read into the FX2N main unit and stored at D0 and D. These devices contain the averaged data for CH and CH2 respectively. 5.2 Using gain and offset in a program The gain and offset of the FX2N-4AD can be adjusted using push-button switches on the input terminal of the PC. It can also be adjusted using software settings sent from the PC. Only the gain and offset values in the memory of the FX2N-4AD need be adjusted. A voltmeter or an ammeter for the analog input is not needed. A program for the PC will be needed however. The following is an example of changing the offset value on input channel CH to 0V and the gain value to 2.5V. The FX2N-4AD block is in the position of block No.0 (i.e. closest to the FX2N main unit). Example: Adjusting gain/offset via software settings X00 SET Adjustment start. TO P K0 K0 H0000 K TO P K0 K2 K K (H0000) BFM #0 (initialize input channels) Enter the instructions on the left and RUN the PC. (K) BFM #2 BFM #2 (gain/offset adjust prohibit) must be set to permit with (b, b0) = (0,). TO P K0 K22 K0 K (K0) BFM #22 (offset/gain adjust) Reset adjust bits. TO TO TO P K0 K23 K0 K K4 (K0) BFM #23 (offset) TO P K0 K24 K2500 K (K2500) BFM #24 (gain) T TO P K0 K22 H0003 K RST T TO P K0 K2 K2 K K4 (H0003) BFM #22 (offset/gain adjust) 3 = 00 i.e. O =, G =. Therefore channel is adjusted. Adjustment end. (K2) BFM #2 BFM #2 gain/offset adjust prohibit.

6 DIAGNOSTICS 6. _Preliminary checks I. Check whether the input wiring and/or extension cables are properly connected on FX2N-4AD analog special function block II. Check that the FX2N system configuration rules have not been broken, i.e. the number of special function blocks does not exceed 8 and the total system I/O is equal or less than 256 I/O. III. Ensure that the correct operating range has been selected for the application. IV. Check that there is no power overload on either the 5V or 24V power sources, remember the loading on a FX2N main unit or a powered extension unit varies according to the number of extension blocks or special function blocks connected. V. Put the FX2N main unit into RUN. 6.2 Error checking If the FX2N-4AD 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 fo the 24V LED (top right corner of the FX2N-4AD). Lit : FX2N-4AD is OK, 24V DC power source is OK. Otherwise : Possible 24VDC power failure, if OK possible FX2N-4AD failure. Check the status fo the A/D LED (top right corner of the FX2N-4AD). Lit : A/D conversion is proceeding normally. Otherwise : Check buffer memory #29 (error status). If any bits (b2 and b3) are ON, then this is why the A/D LED is OFF. Guidelines for the safety of the user and protection of the FX2N-4AD 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-24AD 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-4AD 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 : JY992D6520 Manual revision : B Date : APRIL 998 HEAD OFFICE:MITSUBISHI DENKI BLDG MARUNOUCHI TOKYO 00 TELEX:J24532 CABLE MELCO TOKYO HIMEJI WORKS:840, CHIYODA CHO, HIMEJI, JAPAN JY992D6520B Effective APR. 998 s are subject to change without notice

FX2N-4AD SPECIAL FUNCTION BLOCK USER S GUIDE JY992D6520B This manual contains text, diagrams and explanations which will guide the reader in the correct installation and operation of the FX2N-4AD and should be read and understood before attempting to install or use the unit. Further information can be found in the FX SERIES PROGRAMMING MANUAL, FX2N SERIES HARDWARE MANUAL. 3 3. Environment specification Environmental specifications (excluding following) Dielectric withstand voltage 3.2 Power supply specification Analog circuits circuits INSTALLATION NOTES AND USAGE Same as those for the FX2N main unit 500VAC, min (between all terminals and ground) 24V DC ± 0%, 55mA (external power supply from main unit) 5V DC, 30mA (internal power supply from main unit) 3.4 Allocation of buffer memories (BFM) BFM Contents *#0 Channel initialization Default = H0000 *# Channel Contains the number of samples ( to *#2 Channel 2 4096) to be used for an averaged result. The default setting is 8-normal speed. High *#3 Channel 3 speed operation can be selected with a *#4 Channel 4 value of. #5 Channel #6 Channel 2 #7 Channel 3 #8 Channel 4 #9 Channel #0 Channel 2 # Channel 3 #2 Channel 4 #3-#4 Reserved #5 These buffer memories contain the averaged input values for the number of samples entered for the channel in buffer memories # to #4 respectively. These buffer memories contain the present value currently being read by each input channel. When set to 0, a normal speed is selected Selection of A/D of 5ms/ch (default) conversion speed see note 2 When set to, a high speed is selected of 6ms/ch In buffer memory locations (BFMs) marked with an * data can be written from the PC using the TO command. For buffer memories (BFMs) without * mark, data can be read to the PC using the FROM command. Before reading from the analog special function block, ensure these settings have been sent to the analog special function block. Otherwise, the previous values held in the analog block will be used. INTRODUCTION The FX2N-4AD analog special function block has four input channels. The input channels receive analog signals and convert them into a digital value. This is called an A/D conversion. The FX2N-4AD has maximum resolution of 2 bits. The selection of voltage or current based input/output is by user wiring. Analog ranges of -0 to 0V DC (resolution: 5mV), and/or 4 to 20mA, -20 to 20mA(resolution: 20µA) may be selected. Data transfer between the FX2N-4AD and the FX2N main unit is by buffer memory exchange. There are 32 buffer memories (each of 6 bits) in the FX2N-4AD. The FX2N-4AD occupies 8 points of I/O on the FX2N expansion bus. The 8 points can be allocated from either inputs or outputs. The FX2N-4AD draws 30mA from the 5V rail of the FX2N main unit or powered extension unit. 3.3 Performance specification Analog Inputs Analog input range Either voltage or current input can be selected with your choice of input terminal. Up to four input points can be used at one time. DC -0V to +0V (input resistance: 200kΩ). Warning: this unit may be damaged by input voltage in excess of ±5V. DC -20mA to +20mA (input resistance: 250Ω). Warning: this unit may be damaged by input currents in excess of ±32mA. 2-bit conversion stored in 6-bit 2 s complement form. output Maximum value: +2047 Minimum value: -2048 Resolution 5mV (0V default range /2000) 20µA (20mA default range /000) BFM b7 b6 b5 b4 b3 b2 b b0 #6-#9 Reserved *#20 Reset to Defaults and Preset. Default = 0 *#2 Offset, Gain Adjust Prohibit. Default = (0, ) Permit *#22 Offset, Gain Adjust G4 O4 G3 O3 G2 O2 G O *#23 Offset Value Default = 0 *#24 Gain Value Default = 5,000 #25-#28 Reserved #29 Error status #30 Identification code K200 #3 Cannot be used The buffer memory also gives a facility to adjust offset and gain by software. Offset (intercept): The analog input value when the digital output becomes 0. Gain (slope): The analog input value when the digital output becomes +000. Over all accuracy ±% (for the range of -0V to +0V) ±% (for the range of -20mA to +20mA) Conversion speed 5ms/channel (Normal speed), 6ms/channel (High speed). EXTERNAL DIMENSIONS Analog Inputs continued... () Channel Selection Weight : Approx. 0.3 kg (0.66 lbs) Dimensions : mm (inches) Preset 0 (-0V to +0V) Preset (+4mA to +20mA) Preset 2 (-20mA to +20mA) Channel initialization is made by a 4 character HEX number HOOOO in buffer memory BFM #0. The least significant character controls channel and the 4 character controls channel 4. -0.240V NOTE: output -0V +2,000-2,048-2,000 +2,047 +0.235V +0V output +,750 0 +4mA +20mA Preset ranges are selected by an appropriate setting in buffer memory of the analog block. Current/ selection must match the correct input terminal connections. +32mA -32mA output -20mA -,600 -,000 +,600 +20mA +32mA Setting of each character is as follows: O = 0: Preset range (-0V to +0V) O = 2: Preset range (-20mA to +20mA) O = : Preset range (+4mA to +20mA) O = 3: Channel OFF Example: H330 CH: Preset range (-0V to +0V) CH2: Preset range (+4mA to +20mA) CH3, CH4: Channel OFF (2) Analog to Conversion Speed Change By writing 0 or into BFM #5 of the FX2N-4AD, the speed at which A/D conversion is performed can be changed. However the following points should be noted: To maintain a high speed conversion rate, use the FROM/TO commands as seldom as possible. NOTES: When a conversion speed change is made, BFM #-#4 are set to their default values immediately after the change. This is regardless of the values they held originally. Bear this in mind if a speed change will be made as part of the normal program execution. 2-0V to +0V CH4 V+ 250W I+ CH4 2 VI- FG Shielded AG -20mA to +20mA CH V+ 250W I+ CH 3 VI- FG Shielded 4 DC24V 55mA +5V 24+ 5 DC/DC AG converter 24- -5V Class 3 Grounding (00Wor less) PC Extension cable FX2N-4AD Analog Input Block TERMINAL LAYOUTS ➀ The analog input is received through a twisted pair shielded cable. This cable should be wired separately from power lines or any other lines which may induce electrical noise. ➁ If a voltage ripple occurs during input, or there is electrically induced noise on the external wiring, connect a smoothing capacitor of 0. to 0.47µF, 25V. ➂ If you are using current input, connect the V+ and I+ terminals to each other. ➃ If there is excessive electrical noise, connect the FG frame ground terminal with the grounded terminal on the FX2N-4AD. ➄ Connect the ground terminal on the FX2N-4AD unit with the grounded terminal on the main unit. Use class 3 grounding on the main unit, if available. Miscellaneous Isolation Number of occupied I/O points Photo-coupler isolation between analog and digital circuits. DC/DC converter isolation of power from FX2N MPU. No isolation between analog channels. 8 points taken from the FX2N expansion bus (can be either inputs or outputs) (3) Adjusting Gain and Offset values (a) When buffer memory BFM #20 is activated by setting it to K, all settings within the analog special function block are reset to their default settings. This is a very quick method to erase any undesired gain and offset adjustments. (b) If (b, b0) of BFM #2 is set to (,0), gain and offset adjustments are prohibited to prevent inadvertent changes by the operator. In order to adjust the gain and offset values, bits (b, b0) must be set to (0,). The default is (0,). (c) Gain and offset values of BFM #23 and #24 are sent to non-volatile memory gain and offset registers of the specified input channels. Input channels to be adjusted are specified by the appropriate G-O (gain-offset) bits of BFM #22 Example: If bits G and O are set to, input channel will be adjusted when BFM #22 is written to by a TO instruction. (d) Channels can be adjusted individually or together with the same gain and offset values. (e) Gain and offset values in BFM #23 #24 are in units of mv or µa. Due to the resolution of the unit the actual response will be in steps of 5mV or 20µA.

(4) Status Information BFM #29 Bit devices of BFM #29 ON OFF b0 : Error When any of b to b4 is ON. If any of b2 to b4 is ON, A/D conversion of all the channels is stopped No error b : Offset / gain error Offset/Gain data in EEPROM is corrupted or adjustment error. Offset/Gain data normal b2 : Power source abnormality 24V DC power supply failure Power supply normal b3 : Hardware error A/D converter or other hardware failure Hardware Normal b0 : range error output value is less than -2048 or more than +2047 output value is normal. Number of averaging samples is 4097 or Averaging is normal. b: Averaging error more or 0 or less (default of 8 will be used) (between and 4096) b2: Offset / gain adjust prohibit Prohibit-(b, b0) of BFM #2 is set to (, 0) Permit-(b, b0) of BFM #2 is set to (0,) NOTE: b4 to b7, b9 and b3 to b5 are undefined. 5 EXAMPLE PROGRAM 6 DIAGNOSTICS 5. Basic Program In the following example channels CH and CH2 are used as voltage inputs. The FX2N-4AD block is connected at the position of special function block No.0. Averaging is set at 4 and data registers D0 and D of the PC receive the averaged digital data. M8002 initial pulse M FROM K0 K30 D4 K CMP K200 D4 TO P K0 K0 H3300 K The ID code for the special function block at position 0" is read from BFM #30 of that block and stored at D4 in the main unit. This is compared to check the block is a FX2N-4AD, if OK M is turned ON. These two program steps are not strictly needed to perform an analog read. They are however a useful check and are recommended as good practice. The analog input channels (CH, CH2) are setup by writing H3300 to BFM #0 of the FX2N-4AD. 6. _Preliminary checks I. Check whether the input wiring and/or extension cables are properly connected on FX2N-4AD analog special function block II. Check that the FX2N system configuration rules have not been broken, i.e. the number of special function blocks does not exceed 8 and the total system I/O is equal or less than 256 I/O. III. Ensure that the correct operating range has been selected for the application. IV. Check that there is no power overload on either the 5V or 24V power sources, remember the loading on a FX2N main unit or a powered extension unit varies according to the number of extension blocks or special function blocks connected. V. Put the FX2N main unit into RUN. (5) Identification Code BFM #30 The identification (or ID) code number for a Special Function Block is read using the FROM command. This number for the FX2N-4AD unit is K200. The user s program in the PC can use this facility in the program to identify the special function block before commencing data transfer from and to the special function block. CAUTION Values of BFM #0, #23 and #24 are copied to EEPROM memory of the FX2N-4AD. BFM #2 and BFM #22 are only copied when data is written to the gain/offset command buffer BFM #22. Also, BFM #20 causes writing to the EEPROM memory. The EEPROM has a life of about 0,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 300 ms is required between instructions that cause a write to the EEPROM. Therefore, a delay timer should be used before writing to the EEPROM a second time. NO error M0 M20 TO K0 K K4 K2 FROM K0 K29 K4M0 K FROM K0 K5 D0 K2 output value is normal The number of averaged samples for CH and CH2 is set to 4 by writing 4 to BFM # and #2 respectively. Do not execute the pulse. The operational status of the FX2N-4AD is read from BFM #29 and output as bit devices at the FX2N main unit. If there are no errors in the operation of the FX2N-4AD, then the averaged data BFM s are read. In the case of this example BFM #5 and #6 are read into the FX2N main unit and stored at D0 and D. These devices contain the averaged data for CH and CH2 respectively. 6.2 Error checking If the FX2N-4AD 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 fo the 24V LED (top right corner of the FX2N-4AD). Lit : FX2N-4AD is OK, 24V DC power source is OK. Otherwise : Possible 24VDC power failure, if OK possible FX2N-4AD failure. Check the status fo the A/D LED (top right corner of the FX2N-4AD). Lit : A/D conversion is proceeding normally. Otherwise : Check buffer memory #29 (error status). If any bits (b2 and b3) are ON, then this is why the A/D LED is OFF. 4 Gain (a) (b) DEFINING GAIN AND OFFSET Offset (d) (e) (f) (c) 0 Offset value Analog Gain value Analog 5.2 Using gain and offset in a program The gain and offset of the FX2N-4AD can be adjusted using push-button switches on the input terminal of the PC. It can also be adjusted using software settings sent from the PC. Only the gain and offset values in the memory of the FX2N-4AD need be adjusted. A voltmeter or an ammeter for the analog input is not needed. A program for the PC will be needed however. The following is an example of changing the offset value on input channel CH to 0V and the gain value to 2.5V. The FX2N-4AD block is in the position of block No.0 (i.e. closest to the FX2N main unit). Example: Adjusting gain/offset via software settings X00 SET TO P K0 K0 H0000 K Adjustment start. (H0000) BFM #0 (initialize input channels) Enter the instructions on the left and RUN the PC. (K) BFM #2 BFM #2 (gain/offset adjust prohibit) must be set to permit with (b, b0) = (0,). Guidelines for the safety of the user and protection of the FX2N-4AD 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-24AD 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-4AD 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. TO P K0 K2 K K Gain determines the angle or slope of the calibration line, identified at a digital value of 000. (a) Small gain Large steps in digital readings (b) Zero gain default : 5V or 20mA (c) Large gain Small steps in digital readings Offset is the Position of the calibrated line, identified at a digital value of 0. (d) Negative offset (e) Zero offset default : 0V or 4mA (f) Positive offset Offset and gain can be set independently or together. Reasonable offset ranges are -5 to +5V or -20mA to 20mA, and gain values V to 5V or 4mA to 32mA. Gain and offset can be adjusted by software in the FX2N main unit (see program example 2) TO TO P K0 K22 K0 K TO TO P K0 K23 K0 K TO P K0 K24 K2500 K K4 (K0) BFM #22 (offset/gain adjust) Reset adjust bits. (K0) BFM #23 (offset) (K2500) BFM #24 (gain) Manual number : JY992D6520 Manual revision : B Date : APRIL 998 Bit device s b, b2 of the gain/offset BFM #2 should be set to 0, to allow adjustment. Once adjustment is complete these bit devices should be set to, 0 to prohibit any further changes. Channel initialization (BFM #0) should be set to the nearest range, i. e. voltage/current etc. TO P K0 K22 H0003 K T K4 (H0003) BFM #22 (offset/gain adjust) 3 = 00 i.e. O =, G =. Therefore channel is adjusted. HEAD OFFICE:MITSUBISHI DENKI BLDG MARUNOUCHI TOKYO 00 TELEX:J24532 CABLE MELCO TOKYO HIMEJI WORKS:840, CHIYODA CHO, HIMEJI, JAPAN T RST Adjustment end. TO P K0 K2 K2 K (K2) BFM #2 BFM #2 gain/offset adjust prohibit. JY992D6520B Effective APR. 998 s are subject to change without notice