USER’S MANUAL FX2N-5A Special function block
FX2N-5A Special function block Foreword • This manual contains text, diagrams and explanations which will guide the reader in the correct installation and operation of the FX2N-5A Special function block. It should be read and understood before attempting to install or use the unit. • Further information can be found in the FX0N/FX1N/FX2N/FX2NC/FX3U/FX3UC Series Hardware Manual for connecting main unit, and the FX Series Programming Manual(ΙΙ).
FX2N-5A Special function block FX2N-5A Special function block USER’S MANUAL Manual number : JY997D11401 Manual revision : D Date : September 2008 This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.
FX2N-5A Special function block ii
FX2N-5A Special function block Guidelines for the Safety of the User and Protection of the FX2N-5A Special function block. This manual provides information for the use of the FX 2N -5A Special function block. The manual has been written to be used by trained and competent personnel.
FX2N-5A Special function block Notes on the Symbols Used in this Manual At various times throughout this manual certain symbols will be used to highlight points which are intended to ensure the users personal safety and protect the integrity of equipment. Whenever any of the following symbols are encountered its associated note must be read and understood. Each of the symbols used will now be listed with a brief description of its meaning.
FX2N-5A Special function block • Under no circumstances will Mitsubishi Electric be liable 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.
FX2N-5A Special function block Note Concerning the CE Marking This document does not guarantee that a mechanical system including this product will comply with the following standards. Compliance to EMC standards of the entire mechanical system should be checked by the user / manufacturer. Compliance to LVD standards of the entire mechanical system should be checked by the user / manufacturer.
FX2N-5A Special function block EMC The following products have shown compliance through direct testing (of the identified standards below) and design analysis (through the creation of a technical construction file) to the European Directive for Electromagnetic Compatibility (89/336/EEC) when used as directed by the appropriate documentation. Refer to a manual or related material of each product other than the following.
FX2N-5A Special function block viii
FX2N-5A Special function block Contents. Guideline............................................................................................................................iii 1. 2. 3. 4. 5. Introduction .........................................................................................1-1 External Dimensions and Parts...........................................................2-1 Installation ...........................................................................................
FX2N-5A Special function block 7.2.12 7.2.13 7.2.14 7.2.15 7.2.16 7.2.17 7.2.18 7.2.19 7.2.20 7.2.21 7.2.22 7.2.23 7.2.24 7.2.25 7.2.26 7.2.27 7.2.28 7.2.29 7.2.30 7.2.31 7.2.32 7.2.33 7.2.34 7.2.35 Contents. BFM 21 Writes I/O characteristics (offset/gain Scaling function setting) (READ/WRITE) ................................................................................................. 7-21 BFM 22 Convenient functions setting (READ/WRITE)......................................
FX2N-5A Special function block Contents. 8. Adjustment of I/O Characteristics........................................................8-1 8.1 8.2 Standard I/O characteristics............................................................................. 8-1 Adjustment of I/O characteristics ..................................................................... 8-8 9. Example program................................................................................9-1 9.1 9.
FX2N-5A Special function block Contents.
FX2N-5A Special function block 1. Introduction 1 Introduction The FX2N-5A analog special function block has four input channels and one output channel. The input channels receive analog signals and converts them to the comparable digital values. The output channel takes a digital value and outputs an equivalent analog signal. 1) Analog signal inputs can be selected from either voltage or current input. The applicable analog signal input is set using the TO instruction supplied by the PLC main unit.
FX2N-5A Special function block Introduction 1 MEMO 1-2
FX2N-5A Special function block 2. External Dimensions and Parts 2 External Dimensions and Parts Dimensions: mm(inches) 55(2.17") 87(3.43") 3) 80(3.15") I+ VI- VI- V+ I+ V+ I+ VIIN3 IN4 4(0.16") 5A 9(0.35") IN2 I+ 9) VI- V+ I+ V+ I+ VIIN3 IN4 7) 24V AD/DA VI- V+ V+ VIIN2 6) FX2N-5A I+ IN1 VI- V+ I+ IN1 90(3.54") 5) V+ POWER 4) OUT 24- V+ I+ 24+ VIOUT 1) 10) Terminal arrangement 24- V+ I+ 24+ VI- 2) 4(0.16") 55(2.17") 8) Mass (Weight): 0.3kg (0.
FX2N-5A Special function block External Dimensions and Parts 2 1) Direct mounting hole (2-φ4.5) (0.18) 2) Extension cable 3) Power indicator lamp (LED) 5V power is supplied from the programmable controller to light this indicator lamp. 4) Power supply terminals (Screw terminal: M3 (0.12)) 5) Analog output terminals (Screw terminal: M3 (0.12)) 6) Analog input terminals (Screw terminal: M3 (0.
FX2N-5A Special function block 3. Installation 3 Installation Install the FX2N-5A to the right side of a main unit, extension unit, extension block or special block of the FX0N/FX1N/FX2N/FX2NC/FX3U/FX3UC Series PLC. The FX2N-5A can be installed with DIN rail (DIN46277 of 35 mm in width) or directly installed with screws M4. For the details, refer to the handy manual supplied together with the PLC main unit.
FX2N-5A Special function block Installation 3 Figure 3.1: Installation with DIN rail • The FX2N-5A can be installed on DIN rail (DIN46277) of 35 mm in width as it is. For removal, pull down on the DIN rail mounting hook, then remove the FX2N-5A. POWER FX2N-5A 24V AD/DA Hook for DIN rail Figure 3.2: Direct installation 80(3.15) Installation screw M4 • The FX2N-5A can be installed directly by inserting screws (M4) into installation holes.
FX2N-5A Special function block 4. Connection to PLC 4 Connection to PLC Connect the FX2N-5A to the right side of a main unit, extension unit or extension block of FX0N/ FX1N/FX2N/FX2NC/FX3U/FX3UC Series PLC with an extension cable. For connection to a basic unit or extension block of the FX2NC Series PLC, use an FX2NC-CNVIF. For connection to a basic unit or extension block of the FX3UC Series PLC, use an FX2NC-CNVIF or FX3UC-1PS-5V.
FX2N-5A Special function block Connection to PLC 4 MEMO 4-2
FX2N-5A Special function block 5. Wiring 5.1 Caution Wiring 5 1) Do not lay signal cabling near to high voltage power cabling or house them in the same trunking duct. Effects of noise or surge induction may occur. Keep signal cables at safe distance of more than 100 mm (3.94") from these power cables. 2) The terminal screws of the FX2N-5A are M3 (0.12"), therefore crimp style terminals (see drawing) suitable for use with these screws should be fitted to the cable for wiring. Figure 5.
FX2N-5A Special function block 5.2 Wiring 5 Input Wiring Figure 5.2: Input Wiring *1 Use a two-core, shielded twisted pair for the analog input line, and separate it +15V from other power lines or a lines easily DC/DC induced. converter AG FX2N-5A 24+ 24- *5 24V DC *4 Connected to " terminal of PLC main unit " -15V Class D grounding Voltage input Current input IN1 *2 *1 Shielded cable V+ I+ VI- 4.7kΩ 250Ω 200kΩ IN2 4.7kΩ V+ I+ VI- *3 CH1 250Ω 200kΩ IN4 V+ I+ VI- CH2 4.
FX2N-5A Special function block 5.3 Wiring 5 Output Wiring Please refer to 5.2 for the wiring for "24+", "24-" terminals. Figure 5.3: Output Wiring Voltage output *1 Shielded cable Inverter, etc. *3 *2 FX2N-5A OUT V+ I+ VI- *2 Apply 1-point grounding at the load side of the output cable (grounding: 100Ω or less). FX2N-5A Current output OUT *1 N.C. V+ Shielded cable I+ VI- Recorder, etc. *1 Use a twisted pair shielded cable for the analog output.
FX2N-5A Special function block Wiring 5 MEMO 5-4
FX2N-5A Special function block 6. Specifications 6 Specifications Table 6.1: General specifications Item Specifications Ambient temperature range 0 to +55 °C during operation, -20 to +70 °C during storage Ambient humidity 35 to 85 % RH during operation (Dew condensation shall not be allowed.) Frequency 10 to 57 Hz, half amplitude 0.075 mm, 57 to 150 Hz, acceleration 9.8 m/s2, 10 times in each of X, Y and Z directions (80 min.
FX2N-5A Special function block Specifications 6 Table 6.2: Power supply specifications Item Specifications Interface driving power supply 24 V DC±10%, 90 mA (maximum), externally supplied CPU driving power supply 5 V DC, 70 mA, supplied via extension cable from PLC main unit Table 6.
FX2N-5A Special function block Specifications 6 Table 6.
FX2N-5A Special function block Specifications 6 Table 6.4: Voltage/current input specifications Item Voltage input Current input Resolution • 312.5 µV (20 V × 1/64000) -10 to +10V at input • 50µV (200 mV × 1/4000) -100 to +100mV at input • 10 µA (40 mA × 1/4000) -20 to +20 mA at input • 1.25 µA (40 mA × 1/32000) -20 to +20 mA at input • 10 µA (40 mA × 1/4000) +4 to +20 mA at input • 1.25 µA (40 mA × 1/32000) +4 to +20 mA at input Total accuracy Ambient temperature: 25 °C ± 5 °C -10 to +10V DC : ±0.
FX2N-5A Special function block Specifications 6 Table 6.5: Voltage/current output specifications Item Voltage output Current output -10 to +10 V DC (External load resistance:5 kΩ to 1MΩ) Adjustment is enabled with the following conditions: Offset value: -10000 to +5000 mV Analog output range Gain value: -9000 to +5000 mV "Gain - Offset": > 1000 mV (Resolution is constant.) Change is disabled while absolute voltage output mode is used.
FX2N-5A Special function block Specifications 6 MEMO 6-6
FX2N-5A Special function block 7. Buffer Memory (BFM) 7 Buffer Memory (BFM) Caution 1) Do not access the “Reserved” buffer memories “Reserved” (BFM #16, #17, #24, #31 to #40, #46 to #50, #56 to #70, #75 to #80, #85 to #90, #95 to #98, #100, #110, #120 to #199) using FROM/TO instructions. Accessing the reserved buffer memories may cause abnormal behavior in the FX2N-5A module.
FX2N-5A Special function block 7.1 Buffer Memory (BFM) 7 Buffer Memories (BFM) lists Table 7.1: BFM Lists BFM No. Description Hold against power failure Initial value #0 Specifies input mode of CH1 to CH4. { H0000 at shipment #1 Specifies output mode of CH1.
FX2N-5A Special function block Buffer Memory (BFM) 7 Table 7.1: BFM Lists BFM No. Description Hold against power failure Initial value #18 Hold last value / reset output to offset value when PLC is stopped { K0 #19 Disables setting change of I/O characteristics and convenient functions.
FX2N-5A Special function block Buffer Memory (BFM) 7 Table 7.1: BFM Lists BFM No.
FX2N-5A Special function block Buffer Memory (BFM) 7 Table 7.1: BFM Lists BFM No.
FX2N-5A Special function block Buffer Memory (BFM) 7 Table 7.1: BFM Lists BFM No.
FX2N-5A Special function block Buffer Memory (BFM) 7 Table 7.1: BFM Lists BFM No.
FX2N-5A Special function block Buffer Memory (BFM) 7 Table 7.1: BFM Lists BFM No.
FX2N-5A Special function block Buffer Memory (BFM) 7 Table 7.1: BFM Lists BFM No.
FX2N-5A Special function block Buffer Memory (BFM) 7 Table 7.1: BFM Lists BFM No.
FX2N-5A Special function block Buffer Memory (BFM) 7 Table 7.1: BFM Lists BFM No.
FX2N-5A Special function block 7.2 Details of buffer memories 7.2.1 BFM 0 input mode specification (READ/WRITE) Buffer Memory (BFM) 7 BFM 0 specifies the input mode of CH1 to CH4. The BFM consists of a 4-digit hexadecimal code, where one digit is assigned to each input channel. The range for each digit is a Hex value between 0 to F. The highest digit corresponds to input ch4, whereas the lowest digit corresponds to input ch1.
FX2N-5A Special function block Buffer Memory (BFM) 7 8: Voltmeter display mode (-100mV to + 100mV) (Display range -10000 to +10000) 9: Scaling function Voltage input mode (-10 to +10 V) (maximum Display range -32768 to +32767); default = -32640 to +32640 A:Scaling function Current input mode (4 to +20 mA) (maximum Display range -32768 to +32767); default = -32640 to +32640 B:Scaling function Voltage input mode (-100 to +100 mV) (maximum Display range -32768 to +32767); default = -32640 to +32640 F: channe
FX2N-5A Special function block 7.2.2 Buffer Memory (BFM) 7 BFM 1 output mode specification (READ/WRITE) BFM 1 specifies the output mode of the analog output CH1. The BFM consists of a 4-digit hexadecimal code, where only the lowest digit is assigned to the analog output channel. The range for the digit is a Hex value between 0 to A. The highest 3 digits are simply ignored by the module, whereas the lowest digit corresponds to output ch1.
FX2N-5A Special function block Buffer Memory (BFM) 7 The output characteristics such as the offset and gain settings are automatically changed depending on the settings of BFM 1. A mode change in BFM 1 will also affect the settings of BFM 45 (offset data), BFM 55 (gain data), and BFM 240 to 249 (Scaling function data).
FX2N-5A Special function block 7.2.3 Buffer Memory (BFM) 7 BFM 2 to BFM 5 Number of averaging times (READ/WRITE) The number of averaging times of BFM 2 to BFM 5 specify the number of samples that is used to calculate the average values which are displayed in BFM 6 to BFM 9. The setting range of the number of averaging times is 1 to 256. When the number is set to K1, the immediate data (current values) are stored in BFM 6 to BFM 9. This data is the same as those data displayed in BFM 10 to BFM13.
FX2N-5A Special function block 7.2.4 Buffer Memory (BFM) 7 BFM 6 to BFM 9 Averaged Input Channel data (READ only) The average A/D conversion data of each input channel is displayed in BFM 6 to BFM 9. The number of samples to calculate the average data is influenced by the setting in BFM 2 to BFM 5) described above.
FX2N-5A Special function block 7.2.9 Buffer Memory (BFM) 7 BFM 18 hold/ reset analog output when PLC is stopped (READ/WRITE) If BFM 18 is 0, while the PLC base unit is in Stop mode the value of BFM15 (value of BFM14 + direct output function) will be output. If the direct output function is active, the output value will be continuously updated, when the input channel values are changing.
FX2N-5A Special function block 7.2.
FX2N-5A Special function block 7.2.11 Buffer Memory (BFM) 7 BFM 20 Initialization function (reset all values to default) (READ/WRITE) BFM 20 will reset the FX2N-5A to the factory default. By initialization, the modes, average numbers, offset/gain settings, direct output control function, lower/upper-limit settings, Scaling function and sudden change function are all reset to factory default (voltage input/output, default offset/gain values).
FX2N-5A Special function block 7.2.12 Buffer Memory (BFM) 7 BFM 21 Writes I/O characteristics (offset/gain Scaling function setting) (READ/WRITE) The b0 to b4 bits of BFM 21 are assigned to each channel of the FX2N-5A. (Bit 4 is assingned to the analog output channel, bit 3 is assigned to input channel 4, bit 0 is assigned to input channel 1.
FX2N-5A Special function block 7.2.13 Buffer Memory (BFM) 7 BFM 22 Convenient functions setting (READ/WRITE) The functions described below are assigned to b0 to b3 of BFM 22. When a bit is set ON, the assigned functions become valid. Other bits, not specified by the values below, will simply be ignored by the module if they are accidentally set by the user. When a bit is set OFF, the assigned functions become invalid.
FX2N-5A Special function block Buffer Memory (BFM) 7 b8 to b11: switch off range over/range under alarm for corresponding input channel The value of BFM 22 is stored non-volatile in the internal EEPROM. There is a safety function to protect the internal EEPROM from being destroyed by accidentally writing the same value continuously to BFM 22. 7.2.
FX2N-5A Special function block Buffer Memory (BFM) 7 BFM#0 H{{{{ CH1 CH2 CH3 CH4 Example: Value in BFM 23 is set to H1234. Output value (BFM 15) = BFM 14(TO) - BFM 10 - BFM 7 + BFM 12 + BFM 9 If at least one Hex digit in BFM 23 is set to a Hex number between 1 and 4, after calculating of the digital output value in BFM 15, the offset/gain setting calculation or the Scaling function calculation is applied to these digital data in order to achieve the real analog output.
FX2N-5A Special function block 7.2.16 Buffer Memory (BFM) 7 BFM 25 Filter-level selection register (READ/WRITE) The following Table shows the possible values of BFM 25 for using the digital Filter of the FX2N-5A-Device: Table 7.2: Bit assignment in BFM 25 Bit No. Channel No. b0 b1 b2 Filter: CH1 to CH4 0 = off 1 = 2nd level 2 = 5th level 3 = 7th level CH1 to CH4 Cut-off frequency factor F1: 0 = no cut-off frequency selected 1 = (0.1×1/sampling time)Hz 2 = (0.05×1/sampling time)Hz 3 = (0.
FX2N-5A Special function block Buffer Memory (BFM) 7 Formula for filter cut-off frequency fL: fL = F1/(sampling time × no. of active channels) [Hz] with cut-off frequency factor F1=0.1, 0.05, 0.025 or 0.01. There are two filter parameters that can be changed, the filter-level and the cut-off frequency. This selection is done in bit0 to bit7. The selected filter values apply to all channels 1 through 4 in the same way.
FX2N-5A Special function block Buffer Memory (BFM) 7 A/D conversion value when input filter is used. Input filter and when cut-off frequency is used When input filter is used Analog value Digital value Analog value Digital value The change in shorter width than cut-off frequency is disregarded. The change of the A/D conversion value becomes smooth. It is smooth when numerical value at level is large. Time The change of the A/D conversion value becomes smooth.
FX2N-5A Special function block 7.2.17 Buffer Memory (BFM) 7 BFM 26 Upper/lower limit value alarm status (READ only) If the upper/lower limit value detection function (BFM 22 b0, b1) is used, the detection results are written to BFM 26. The lower limit value alarm or the upper limit value alarm of each channel is assigned to each bit of BFM 26.
FX2N-5A Special function block Buffer Memory (BFM) 7 Table 7.4: Bit assignment in BFM 26 Bit No. b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15 Channel No.
FX2N-5A Special function block 7.2.18 Buffer Memory (BFM) 7 BFM 27 A/D data sudden change detection status (READ only) When the sudden change detection function is used, the detection result is written to BFM 27. The sudden change detection is activated, if the values in BFM 91 to BFM 94 are bigger than 0. The sudden change detection in + direction or the sudden change detection in - direction of each channel is assigned to each corresponding bit of BFM 27.
FX2N-5A Special function block Buffer Memory (BFM) 7 Table 7.5: Bit assignment in BFM27 Bit No. b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10 b11 b12 b13 b14 b15 Channel No.
FX2N-5A Special function block 7.2.19 Buffer Memory (BFM) 7 BFM 28 Scale over status (READ/WRITE) When the analog input value of each channel (BFM 10 to BFM 13) is outside the maximum range of the A/D converter, arange error alarm is written to BFM 28. This will also happen if a sensor is disconnected and ±100mV mode has been selected. Additionally, the alarm is set if the Scaling function is used and the conversion result is outside the specified values for this channel.
FX2N-5A Special function block Buffer Memory (BFM) 7 Table 7.6: Bit assignment in BFM28 Bit No. b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 Channel No.
FX2N-5A Special function block 7.2.20 Buffer Memory (BFM) 7 BFM 29 Error status The error information is assigned to each bit of BFM 29. Table 7.7: Bit assignment in BFM 29 Bit No. Assignment Description b0 Error detected b0 is ON if at least one output of b1 to b5 is ON. b1 Offset/gain set value error or Scaling function setting error. Offset/gain value or Scaling function value is outside setting range.Set a correct value. Previously valid values or default values are used.
FX2N-5A Special function block Buffer Memory (BFM) 7 Table 7.7: Bit assignment in BFM 29 Bit No. Assignment Description Number of averaging times is incorrectly set.Set it within range from 1 to 256. If the no. of average data was set to a value outside the range of 1 to 256, the corresponding BFM was set to 1. In this case, the direct conversion value will be displayed for the corresponding channel.
FX2N-5A Special function block Buffer Memory (BFM) 7 The error b1 appears when: - in voltage-mode: - in current-mode: offset data > 5000 gain data < -5000 gain data - offset data < 1000 offset data > 10000 gain data < -10000 gain data - offset data < 1000 All errors except b2 and b3 will be cleared automatically, when the error is not existing any more, or when the corresponding alarm/error bits in other BFMs (sudden change/ scale over/ upper/lower limit) are cleared.
FX2N-5A Special function block 7.2.21 Buffer Memory (BFM) 7 BFM 30 Model ID code (READ only) BFM 30 stores the fixed value K1010. Write attempts by TO instruction are ignored. 7.2.22 BFM 31 to BFM 40 reserved 7.2.23 BFM 41 to BFM 44 Analog input Offset data (READ/WRITE) Input Offset data: Analog input value when the digital value is "0". For default values and setting ranges, see table below (BFM 51 to BFM 54). The values of BFM 41 to 44 are stored non-volatile in the internal EEPROM.
FX2N-5A Special function block 7.2.25 Buffer Memory (BFM) 7 BFM 51 to BFM 54 Analog Input Gain data (READ/WRITE) Input Gain data: Analog input value when the digital value is 16000 (or 1000 in mode 4). The offset data and the gain data for each channel can be set independently. The set value is written in "mV" for voltage input (-10V/+10V), in "µA" for current input and in 10µV units for ±100mV input. The values of BFM 51 to 54 are stored non-volatile in the internal EEPROM.
FX2N-5A Special function block Buffer Memory (BFM) 7 Setting range Table 7.
FX2N-5A Special function block 7.2.26 Buffer Memory (BFM) 7 BFM 55 Analog output Gain data (READ/WRITE) Output Gain data: Analog output voltage or current if digital input in BFM 14 is 16000 (or 1000 as stated in table below) default gain value for voltage mode (-10V/+10V) is 5V (=K5000), for current mode (4 - 20mA) is 12mA(=K12000) and for current mode (0 - 20mA) is 10mA (=K10000). The value of BFM 55 is stored non-volatile in the internal EEPROM.
FX2N-5A Special function block Buffer Memory (BFM) 7 7.2.27 BFM 71 to BFM 74 Lower limit, alarm set value (READ/WRITE) 7.2.28 BFM 81 to BFM 84 Upper limit, alarm set value (READ/WRITE) The upper/lower limit value of the alarm detection function (BFM 22 b0, b1) is written to the lower limit value of each channel from BFM 71 to BFM 74 and the upper limit value of each channel from BFM 81 to BFM 84. The values of BFM 71 to 74 and BFM 81 to 84 are stored non-volatile in the internal EEPROM.
FX2N-5A Special function block Buffer Memory (BFM) 7 Input mode (BFM#0) Range of setting A: Scaling function current input mode -32768 to +32767 B: Scaling function voltage input mode -32768 to +32767 C to E: It is not possible to set.
FX2N-5A Special function block 7.2.29 Buffer Memory (BFM) 7 BFM 91 to BFM 94 Sudden change detection set value (READ/WRITE) When using the sudden change detection functions, the set value to judge the sudden change is written to BFM 91 to 94. If the value is 0, the function is disabled. The valid setting range is between 0 and 32000.
FX2N-5A Special function block Buffer Memory (BFM) 7 Input mode (BFM#0) Range of setting B: Scaling function voltage input mode 7.2.30 0 to 32000 C to E: It is not possible to set. Invalid F: No input channel use Invalid BFM 99: Clears upper/lower limit value error and sudden change detection error (READ/ WRITE) The commands to clear the lower limit value error, upper limit value error and sudden change detection error are assigned to the lower three bits of BFM 99.
FX2N-5A Special function block 7.2.31 BFM 101 to BFM 108 Peak value (minimum value) (READ only) 7.2.32 BFM 111 to BFM 118 Peak value (maximum value) (READ only) Buffer Memory (BFM) 7 When the peak value hold function (BFM 22 b2,b3) is used the minimum average values of the data (BFM 6 to BFM 9) of each channel is written from BFM 101 to BFM 104, the immediate value minimums (BFM 10 to BFM 13) are written from BFM 105 to 108.
FX2N-5A Special function block Buffer Memory (BFM) 7 7.2.33 BFM 109: Peak value reset flag (minimum value) (READ/WRITE) 7.2.34 BFM 119: Peak value reset flag (maximum value) (READ/WRITE) When the peak value hold function (BFM 22 b2, b3) is used, BFM 109 clears the peak value (minimum value) stored in BFM 101 to BFM 108, and BFM 119 clears the peak value (maximum value) stored in BFM 111 to BFM 118. The channel No. to be reset is assigned to each bit of BFM 109 and BFM 119.
FX2N-5A Special function block 7.2.35 Buffer Memory (BFM) 7 BFM 200 to BFM 249 Scaling function (READ/WRITE) The Scaling function enables an analog input or output curve, for processes that are not linear over the whole data range. The user can specify up to 5 analog/digital values, that will define an input characteristic curve.
FX2N-5A Special function block Buffer Memory (BFM) 7 Scaling function setting procedures The Scaling function is set according to the following procedure. 1) Please make a set change in the I/O characteristic permission (BFM19=K1). ↓ 2) Please write the mode which uses the Scaling function in BFM0 and BFM1. ↓ 3) Please write the value of BFM200 to 249 allocated to the analog input/output channel. ↓ 4) Make the value of BFM200 to 249 effective by analog input channel of writes I/O characteristics.
FX2N-5A Special function block Buffer Memory (BFM) 7 Program example when Scaling function is used Initial pulse M8002 TO K0 K19 K1 K1 Set change permission of I/O characteristic TO K0 K0 H9 K1 Input mode setting Analog input CH1 is set in Scaling function TO K0 K200 K-10000 K1 Analog scale value of change point 1 TO K0 K201 K-10000 K1 Digital value of change point 1 TO K0 K202 K10000 K1 Analog scale value of change point 2 TO K0 K203 K10000 K1 Digital value of change point
FX2N-5A Special function block RUN monitor M8000 Buffer Memory (BFM) 7 FROM K0 K6 D106 K1 FROM K0 K10 D110 K1 FROM K0 K28 D128 K1 FROM K0 K29 D129 K1 Reading of average value data of analog input CH1 (Average value of CH1→D106) Reading of immediate data of analog input CH1 (Immediate data of CH1→D110) Reads the scale over status BFM#28→D128 Reads the error status BFM#29→D129 END 7-50
FX2N-5A Special function block Buffer Memory (BFM) 7 • The range in which the analog scale value and digital value can be set varies according to the I/O mode selected for BFM0 and BFM1. When setting the analog scale value, write the value converted to percentage (1/100).
FX2N-5A Special function block Buffer Memory (BFM) 7 Setting range of analog input Set BFM 0 to 9 Analog scale value: -10000 to +10000 Digital value : -32768 to +32767 Digital value 32767 Change point 2 -10000 (-10V) Digital value Change point 4 Change point 3 Change point 1 Set BFM 0 to A Analog scale value: 2000 to 10000 Digital value : -32768 to +32767 32767 Change point 2 Change point 5 Change point 1 Analog scale value (Unit : 1/100 %) 0 -32768 10000 (10V) 0 2000 (4mA) Change point 4 Ch
FX2N-5A Special function block Buffer Memory (BFM) 7 Set BFM 0 to B Analog scale value: -10000 to +10000 Digital value : -32768 to +32767 Digital value 32767 Change point 3 Change point 4 Change Change point 2 point 1 -10000 (-100mV) Change point 5 Analog scale value (Unit : 1/100 %) 0 10000 (100mV) -32768 7-53
FX2N-5A Special function block Buffer Memory (BFM) 7 Setting range of analog output Set BFM 1 to 9 Analog scale value: -10000 to +10000 Digital value : -32768 to +32767 10000 (10V) Change point 3 Change point 1 -32768 Set BFM 1 to A Analog scale value: 0 to 10000 Digital value : -32768 to +32767 Analog scale value (Unit : 1/100 %) 10000 (20mA) Change Change point 5 point 4 Change point 2 Change point 4 Digital value 0 Analog scale value (Unit : 1/100 %) Change point 2 Change point 5 Change poin
FX2N-5A Special function block Buffer Memory (BFM) 7 • The value which can be set depends on the selection of BFM 0 and 1. Analog values and digital values outside the range selected by BFM 0 and 1 are set, thus, offset/gain set value error (BFM 29 b1) will occur.
FX2N-5A Special function block Buffer Memory (BFM) 7 ✔ ✗ (Available) Digital value Change point 3 Change point 2 (Not available) Digital value Change point 2 Analog scale value Change point 1 Change point 1 Analog scale value Change point 3 Figure 2 • When using K0 as a change point setting value, the subsequent change point value must the larger in both the "Digital value" and "Analog scale value". (See figure 2.
FX2N-5A Special function block Buffer Memory (BFM) 7 The figure below shows the example for an analog input.
FX2N-5A Special function block Buffer Memory (BFM) 7 Table 7.
FX2N-5A Special function block 8. Adjustment of I/O Characteristics 8 Adjustment of I/O Characteristics The factory, the FX2N-5A has standard I/O characteristics in accordance with each input mode (BFM #0, BFM #1) set as the factory default. In the voltage input mode and current input mode, adjust the standard I/O characteristics for each channel. (The user cannot adjust the standard I/O characteristics in the analog value direct input mode and the analog value direct output mode.) 8.
FX2N-5A Special function block Adjustment of I/O Characteristics 8 Input characteristics 0. Voltage input, -10 to 10V → -32000 to +32000 1. Current input, 4 to 20mA → 0 to 32000 Digital value Digital value Approx. -10.240V Input voltage (V) Approx. 10.240V Approx.32767 32000 -10 Approx. 32767 32000 10 -32000 Approx.-32768 Approx. 20.
FX2N-5A Special function block Adjustment of I/O Characteristics 8 2.Current input, -20 to 20mA → -32000 to +32000 3.Voltage input, -100 to 100mV → 32000 to +32000 Digital value Digital value Approx. -20.480mA 0 20 -32000 Approx.-32768 Input voltage (mV) Approx. 102.397mV -20 Approx.32767 32000 -100 Approx. -102.400mV Input current (mA) Approx. 20.480mA Approx.32767 32000 100 -32000 Approx.-32768 4.Voltage input, -100 to 100mV → -2000 to +2000 5.
FX2N-5A Special function block Adjustment of I/O Characteristics 8 6. Direct current input, 2 to 20mA 7. Direct current input, -20 to 20mA Digital value Digital value Input current (mA) Approx. -20.478mA Approx. 20.478mA 20000 4000 2000 0 2 4 20 Input current (mA) Approx. 20.478mA Approx.20478 20000 Approx. 20478 -20 0 20 -20000 Approx.-20478 8. Direct voltage input, -100 to 100mV Digital value Approx. -102.400mV Input voltage (mV) Approx. 102.397mV Approx.
FX2N-5A Special function block Adjustment of I/O Characteristics 8 Output characteristics 0.Voltage output, -32000 to +32000 → -10 to 10V 1.Voltage output, -2000 to +2000 → -10 to 10V Output Voltage (V) Approx.-32768 Digital value -32000 32000 -10 Approx.-10.240 Approx.10.240 10 Digital value Approx.2047 Approx.10.240 10 Approx.-2048 Approx.32767 Output Voltage (V) -2000 2000 -10 Approx.-10.
FX2N-5A Special function block 2. Current output, 0 to 32000 → 4 to 20mA Adjustment of I/O Characteristics 8 3. Current output, 0 to 1000 → 4 to 20mA Output current (mA) Output current (mA) Approx. 20.38 20 Approx. 20.38 20 4 4 0 32000 Approx. Digital value 32767 4. Current output, 0 to 32000 → 0 to 20mA Output current (mA) Approx. 20.48 0 5. Current output, 0 to 1000 → 0 to 20mA Output current (mA) Approx. 20.48 20 20 0 0 0 32000 Approx. Digital value 32767 1000 Approx.
FX2N-5A Special function block Adjustment of I/O Characteristics 8 6. Analog value direct output, -10 to 10V Output current (mA) Approx.10239 Output Voltage (V) Approx.10.239 10 Digital value -10000 7. Analog value direct output, 4 to 20mA Approx. 20.479 20 Approx.-10240 10000 4 -10 Approx.-10.240 0 4000 20000 Approx. 20479 Digital value 8. Analog value direct output, 0 to 20mA Output current (mA) Approx. 20.479 20 0 0 20000 Approx.
FX2N-5A Special function block 8.2 Adjustment of I/O Characteristics 8 Adjustment of I/O characteristics Adjust the I/O characteristics using the buffer memories in the FX2N-5A. At first, write the input/output mode to BFM #0 and BFM #1, write the offset data to BFM #41 to BFM #45, then write the gain data to BFM #51 to BFM #55. Finally, update the offset data and the gain data of each channel using BFM #21.
FX2N-5A Special function block Adjustment of I/O Characteristics 8 Figure 8.1: Example program X0 Operation start instruction PLS M100 M100 TO K0 K0 H1600 K1 Specifies the input mode of CH1 to CH4. TO K0 K1 H0001 K1 Specifies the output mode. TO K0 K41 K0 K1 Writes the offset value of CH1. TO K0 K42 K0 K1 Writes the offset value of CH2. TO K0 K51 K6000 K1 Writes the gain value of CH1. TO K0 K52 K6000 K1 Writes the gain value of CH2.
FX2N-5A Special function block Adjustment of I/O Characteristics 8 MEMO 8-10
FX2N-5A Special function block 9. Example program 9.1 Program example for analog input/output Example program 9 The section introduces an example program to manipulate analog input/output using the FX2N-5A. Condition System configuration: The FX2N-5A (unit No. 0) is connected as a special function block nearest to the FX0N/ FX1N/FX2N/FX2NC Series PLC main unit.
FX2N-5A Special function block Example program 9 Figure 9.1: Example program Initial pulse M8002 RUN monitor M8000 Change of analog output value X000 FNC 79 TO K0 K0 H1100 K1 Specifies the input mode of CH1 to CH4. FNC 79 TO K0 K1 H0000 K1 Specification of analog output channel's output mode.
FX2N-5A Special function block Example program 9 X001 Clears the scale over error M200 RUN monitor M8000 PLS M200 FNC 79 TO K0 K28 H0000 K1 Clears the scale over error FNC 78 FROM K0 K29 K4M120 K1 Reading of error status (BFM#29→M120 to M135) FNC 12 K4M120 K4Y010 MOV Output of error status b0→Y010 b1→Y011. . .
FX2N-5A Special function block 9.2 Example program 9 Outline of FROM/TO commands FX2N-5A reads and writes FROM/TO commands of PLC. FROM/TO commands are outlined as follows. FNC78 D FROM P BFM reading X010 FROM m1 m2 D• n K2 K26 D120 K2 BFM#26 to #27 of special unit No. 2 → D120 through D121 Read command m1 : Special unit or block No. (K0 to K7 numbered from the unit nearest to the basic unit) m2 : Head instructed number (m2=K0 to K31) of buffer memory D • : It is the head element No.
FX2N-5A Special function block Appendix A Appendix A: Associated Manuals List For further information manual about FX Series, refer to following table: Table A-1: Further Information Manual Manual Name Manual No. Description FX0/FX0N Hardware Manual This manual contains hardware explanations of wiring, JY992D47501 installation and specifications for FX0 and FX0N Series programmable controllers.
FX2N-5A Special function block Table A-1: Appendix A Further Information Manual Manual Name Manual No. Description FX Programming Manual This manual contains instruction explanations for the JY992D48301 FX0, FX0S, FX0N, FX, FX2C, FX2N and FX2NC Series programmable controllers. FX Programming Manual ΙΙ This manual contains instruction explanations for the JY992D88101 FX1S, FX1N, FX2N and FX2NC Series programmable controllers.
USER’S MANUAL FX2N-5A Special function block HEAD OFFICE: TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN HIMEJI WORKS: 840, CHIYODA CHO, HIMEJI, JAPAN MODEL FX2N-5A-U-E MODEL CODE 09R616 JY997D11401D (MEE) Effective September 2008 Specifications are subject to change without notice.