•This manual contains text, diagrams and explanations which will guide the reader in the correct installation
and operation of the FX
install or use the unit.
-5A Special function block. It should be read and understood before attempting to
2N
•Further information can be found in the FX
/FX1N/FX2N/FX
0N
/FX3U/FX
2NC
Series Hardware Manual for
3UC
connecting main unit, and the FX Series Programming Manual(ΙΙ).
•If in doubt at any stage of the installation of FX
-5A Special function block always consult a professional
2N
electrical engineer who is qualified and trained to the local and national standards that applies to the
installation site.
•If in doubt about the operation or use of FX
-5A Special function block please consult the nearest Mitsubishi
2N
Electric distributor.
•This manual is subject to change without notice.
FX2N-5A Special function block
FX
2N
-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 FX2N-5A Special function block. The
manual has been written to be used by trained and competent personnel. The definition of
such a person or persons is as follows:
a) Any engineer who is responsible for the planning, design and construction of automatic
equipment using the product associated with this manual, should be of a competent
nature, trained and qualified to the local and national standards required to fulfill that
role. These engineers should be fully aware of all aspects of safety with regards to
automated equipment.
b) Any commissioning or service engineer must be of a competent nature, trained and
qualified to the local and national standards required to fulfill that job. These engineers
should also be trained in the use and maintenance of the completed product. This
includes being completely familiar with all associated documentation for said product. All
maintenance should be carried out in accordance with established safety practices.
c) All operators of the completed equipment (see Note) should be trained to use this
product in a safe manner in compliance to established safety practices. The operators
should also be familiar with documentation which is associated with the actual operation
of the completed equipment.
Note :
The term ‘completed equipment’ refers to a third party constructed device which
contains or uses the product associated with this manual.
iii
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.
Hardware Warnings
1) Indicates that the identified danger
2) Indicates that the identified danger could
damage.
3) Indicates a point of further interest or further explanation.
Software Warnings
4) Indicates special care must be taken when using this element of software.
5) Indicates a special point which the user of the associate software element should
be aware.
6) Indicates a point of interest or further explanation.
WILL
cause physical and property damage.
POSSIBLY
cause physical and property
iv
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.
•Please contact a Mitsubishi Electric distributor for more information concerning applications
in life critical situations or high reliability.
v
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.
vi
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.
Type :Programmable Controller (Open Type Equipment)
Models :FX
2N
-5A manufactured
from November 1st, 2003 to April 30th, 2006 are
compliant with EN50081-2 and EN61131-2:1994+A11:1996+A12:2000
after May 1st, 2006 are compliant with EN61131-2:2003
StandardRemark
EN50081-2:1993 Electromagnetic compatibility
- Generic emission standard
Industrial environment
EN61131-2:1994 Programmable controllers
/A11:1996- Equipment requirements
/A12:2000 and tests
EN61131-2:2003 Programmable controllers
- Equipment requirements
and tests
Compliance with all relevant aspects of the standard.
(Radiated Emissions and Mains Terminal Voltage
Emissions)
Compliance with all relevant aspects of the standard.
(RF Immunity, Fast Transients , ESD and Damped
oscillatory wave)
Compliance with all relevant aspects of the standard.
(Radiated Emissions, Mains Terminal Voltage
Emissions, RF immunity, Fast Transients, ESD,
Surge, Voltage drops and interruptions, Conducted
and Power magnetic fields)
F o r m o r e d e t a i l s , p l e a s e c o n t a c t t h e l o c a l M i t s u b i s h i E l e c t r i c s a l e s s i t e .
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.
This PLC instruction is used to select different analog input signal types for each
corresponding channel.
Introduction 1
2) The FX
2N
-5A can be connect to FX0N/FX1N/FX2N/FX
3) Up to 2 FX
2N
-5A units can be connected to FX0N main unit, FX0N extension unit, FX1N Main
2NC
/FX3U/FX
unit.
Up to 8 FX
Up to 4 FX
2N
-5A units can be connected to FX2N/FX3U/FX
2N
-5A units can be connected to one FX
For connection to the FX
For connection to the FX
2NC
Series PLC, an FX
3UC
Series PLC, an FX
2NC
Series PLC.
2NC
-CNV-IF is required.
2NC
-CNV-IF or FX
3UC
*1
Series PLC.
Data transfer with the PLC is performed via buffer memories of the FX
TO Instructions.
*1 Up to 7 units can be connected to an FX
3UC
-32MT-LT PLC.
3UC
series PLC
3UC
-1PS-5V is required.
2N
-5A using FROM/
1-1
FX2N-5A Special function blockIntroduction 1
MEMO
1-2
FX2N-5A Special function block
2.External Dimensions and Parts
External Dimensions and Parts 2
Dimensions: mm(inches)
1)
10)
9)
9(0.35")
87(3.43")
4(0.16")
2)
80(3.15")
90(3.54")
4(0.16")
55(2.17")
2N
FX -5A
POWER
24V
AD/DA
3)
8)
7)
55(2.17")
Terminal
arrangement
24+
OUT
IN1
IN2
IN4IN3
VI-
V+
I+
VI-
V+
I+
VI-
24-
V+
I+
VI-
V+
I+
VI-
V+
I+
5A
4)
5)
6)
Mass (Weight): 0.3kg (0.66lbs)
OUT
IN1
IN2
IN4IN3
24+
VI-
V+
I+
VI-
V+
I+
VI-
24-
V+
I+
VI-
V+
I+
VI-
V+
I+
2-1
FX2N-5A Special function blockExternal 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.12))
7) 24V power indicator lamp (LED) 24V DC power is supplied to the terminals of the FX
to light this indicator lamp.
8) AD/DA conversion indicator lamp (LED)
Flashes at a high speed if AD/DA conversion is performing without a problem.
9) DIN rail mounting clip
10)DIN rail mounting slot (width of DIN rail: 35mm 1.38")
2N
-5A
2-2
FX2N-5A Special function block
3.Installation
Install the FX2N-5A to the right side of a main unit, extension unit, extension block or special
Installation 3
block of the FX
The FX
2N
-5A can be installed with DIN rail (DIN46277 of 35 mm in width) or directly installed
0N
/FX1N/FX2N/FX
2NC
/FX3U/FX
3UC
Series PLC.
with screws M4. For the details, refer to the handy manual supplied together with the PLC main
unit.)
3-1
FX2N-5A Special function blockInstallation 3
Figure 3.1: Installation with DIN rail
POWER
2N
FX -5A
24V
AD/DA
Hook for DIN rail
Figure 3.2: Direct installation
Installation
screw M4
•The FX
2N
-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 FX
•The FX
2N
-5A can be installed directly by
2N
-5A.
inserting screws (M4) into installation holes.
For the pitch and the position of installation
holes, refer to the figure on the left.
51(2.01)
Dimensions: mm(inch)
80(3.15)
3-2
FX2N-5A Special function block
4.Connection to PLC
Connect the FX2N-5A to the right side of a main unit, extension unit or extension block of FX0N/
Connection to PLC 4
1N
FX
/FX2N/FX
For connection to a basic unit or extension block of the FX
2NC
/FX3U/FX
3UC
Series PLC with an extension cable.
2NC
Series PLC, use an FX
2NC
-CNVIF.
For connection to a basic unit or extension block of the FX
3UC
IF or FX
-1PS-5V.
3UC
Series PLC, use an FX
Please check the power supply availability to determine the number of FX
be connected to the FX
0N
/FX1N/FX2N/FX
2NC
/FX3U/FX
3UC
PLCs.
2N
-5A blocks that can
2NC
-CNV-
A unit No. 0 to 7 is automatically assigned to each special unit or special block connected to a
PLC basic unit from the one nearest to the basic unit.
*1
The data is read from and written to the FX2N-5A by FROM/TO instructions supplied by the
main unit.
*1 Because the unit No.0 is assigned to the built-in CC-Link/LT master in the FX
3UC
-32MT-LT,
unit numbers assigned to special extension units/blocks begins with No.1.
4-1
FX2N-5A Special function blockConnection to PLC 4
MEMO
4-2
FX2N-5A Special function block
5.Wiring
5.1Caution
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.
Wiring 5
2) The terminal screws of the FX
2N
-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.1: Crimp Terminals
For M3 (0.12")
6.2 mm (0.24" )
or less
3) The terminal tightening torque is 0.5 to 0.8 N
6.2 mm (0.24")
or less
x
m. Tighten securely to avoid malfunction.
For M3 (0.12")
4) Cut off all phases of power source before installation or performing wiring work in order to
avoid electric shock or product damage.
5) Remount the provided terminal cover before supplying power and operating the unit after
installation or wiring work in order to avoid electric shock.
5-1
FX2N-5A Special function blockWiring 5
5.2Input Wiring
Figure 5.2: Input Wiring
*5
24V DC
*4
Connected to " "
terminal of PLC
main unit
Class D
grounding
Voltage
input
Current
input
*1
Shielded
cable
*3
IN1
*2
IN2
IN4
24+
24-
V+
I+
VI-
V+
I+
VI-
V+
I+
VI-
FX2N-5A
250
Ω
Ω
250
Ω
250
DC/DC
converter
4.7k
Ω
200k
4.7k
200k
4.7k
200k
AG
Ω
Ω
Ω
Ω
Ω
+15V
AG
-15V
CH1
CH2
CH4
*1 Use a two-core, shielded twisted pair
for the analog input line, and separate it
from other power lines or a lines easily
induced.
*2 If there is voltage ripple in the input
signal or there is noise in the external
wiring, connect a bipolar capacitor of
approximately 0.1 to 0.47 µF, 25 V.
*3 For the current input, short-circuit the
“V+” terminal and the “I+” terminal.
*4 Make sure to connect the terminal
to the terminal of the PLC basic
unit to which Class D grounding (100
Ω
or less) is performed.
*5 The 24 V DC service power supply of
the PLC is also available.
-For the terminal arrangement, refer to
Section 2.
5-2
FX2N-5A Special function blockWiring 5
5.3Output Wiring
Please refer to 5.2 for the wiring for "24+", "24-" terminals.
Figure 5.3: Output Wiring
-5A
FX
Voltage output
Inverter,
etc.
*1
Shielded cable
*3
*2
2N
OUT
V+
I+
VI-
*1 Use a twisted pair shielded cable for the
analog output. This cable should be wired
away from power lines or any other lines
which could induce noise.
*2 Apply 1-point grounding at the load side of
the output cable (grounding: 100Ω or less).
*3 If electrical noise or a voltage ripple exists at
Current output
Recorder,
etc.
*1
Shielded cable
*2
Figure 5.4: Crimp Terminals
6.2 mm (0.24" )
or less
FX
2N
OUT
N.C.
V+
I+
VI-
For M3 (0.12")
-5A
the output, connect a smoothing capacitor of
0.1 to 0.47µF, 2 5 V.
-Shorting the voltage output terminal or
connecting the current output load to the
voltage output terminal may damage the
2N
FX
-5A.
-For the terminal arrangement, refer to Section
2.
For M3 (0.12")
6.2 mm (0.24")
or less
5-3
FX2N-5A Special function blockWiring 5
MEMO
5-4
FX2N-5A Special function block
6.Specifications
Table 6.1:General specifications
ItemSpecifications
Specifications 6
Ambient
0 to +55 °C during operation, -20 to +70 °C during storage
temperature range
Ambient humidity35 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
2
m/s
, 10 times in each of X, Y and Z directions (80 min. in each direction)
Vibration resistance
(For product installed with DIN rail: Frequency 10 to 57 Hz, half amplitude 0.035
2
)
Impact resistance
mm, 57 to 150 Hz, acceleration 4.9 m/s
147 m/s
2
for 11 ms, 3 times in each of X, Y and Z directions with half-sine pulses
By noise simulator of noise voltage 1,000 Vp-p, noise width 1 µs and frequency
Noise resistance
30 to 100 Hz
500 V AC for 1 min
Withstand voltage
(between analog input terminal and each terminal of PLC main unit)
Insulation resistance 5 MΩ or more by 500 V DC Megger (between all terminals as a whole and earth)
Operating
Corrosive gas and much dusts shall not be detected.
atmosphere
Working altitude
<2000m
*1
*1 If the pressure is higher than the atmospheric pressure, do not use FX2N-8AD.
Malfunctions may occur.
6-1
FX2N-5A Special function blockSpecifications 6
Table 6.2:Power supply specifications
ItemSpecifications
Interface driving
24 V DC±10%, 90 mA (maximum), externally supplied
power supply
CPU driving power
5 V DC, 70 mA, supplied via extension cable from PLC main unit
supply
Table 6.3:Performance specifications
ItemSpecifications
Channel for voltage/current input: 1 ms x Number of used channels
Conversion speed
Insulation method
Number of occupied
I/O points
Applicable PLC
Channel for voltage/current output: 2 ms
(See BFM 25)
Photocoupler insulates the analog input/output area from PLC.
DC/DC converter insulates the power supply from analog I/O.
Channels are not insulated against each other.
8 points (including input and output points)
FX
, FX1N, FX2N, FX
0N
For connection to the FX
For connection to the FX
required.
, FX3U, FX
2NC
2NC
3UC
Series PLC
3UC
Series PLC, an FX
Series PLC, an FX
-CNV-IF is required.
2NC
-CNV-IF or FX
2NC
-1PS-5V is
3UC
Built-in memoryEEPROM
6-2
FX2N-5A Special function blockSpecifications 6
Table 6.4:Voltage/current input specifications
ItemVoltage inputCurrent input
-10 to +10 V DC
(input resistance: 200 kΩ)
Adjustment is enabled with the
Analog input range
following conditions:
Offset value: -32000 to +5000 mV
Gain value: -5000 to +32000 mV
"Gain - Offset":
-100 to +100mV DC
(input resistance: 200kΩ)
Adjustment is enabled with the
following conditions:
Offset value: -320000 to +50000µV
Gain value: -50000 to +320000µV
"Gain - Offset":
(Resolution is constant.)
Change is disabled while the Voltmeter
display mode is used.
Maximum absolute input: ±15 V
1000 mV
>
10000 µV
>
-20 to +20 mA DC, +4 to +20 mA DC
(input resistance: 250 Ω)
Adjustment is enabled with the
following conditions:
Offset value: -32000 to +10000 µA
Gain value: -10000 to +32000 µA
"Gain - Offset":
(Resolution is constant.)
Change is disabled while the
Amperemeter display mode is used.
Maximum absolute input: ±30 mA
1000 µA
>
Digital output
Signed 16-bit binary
(-10 to +10V at input)
Signed 15-bit binary
Signed 12-bit binary
(-100 to +100mV at input)
6-3
FX2N-5A Special function blockSpecifications 6
Table 6.4:Voltage/current input specifications
ItemVoltage inputCurrent input
• 10 µA (40 mA × 1/4000)
-20 to +20 mA at input
• 312.5 µV (20 V × 1/64000)
-10 to +10V at input
Resolution
• 50µV (200 mV × 1/4000)
-100 to +100mV 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
Ambient temperature: 25 °C ± 5 °C
-10 to +10V DC :
-20 to +20mA DC :
±0.3% (±60 mV) against full scale 20V
±0.5% (±200 µA) against full scale 40
-100 to +100mV DC :
mA
±0.5% (±100 mV) against full scale 20V
+4 to +20mA input is same (±200 µA)
Ambient temperature: 0 to +55 °C
Ambient temperature: 0 to +55 °C
-10 to +10V DC :
-20 to +20mA DC :
±0.5% (±100 mV) against full scale
±1.0% (±400 µA) against full scale
20V
40 mA
-100 to +100mV DC :
+4 to +20mA input is same (±400 µA)
±1.0% (±200 mV) against full scale 20V
6-4
FX2N-5A Special function blockSpecifications 6
Table 6.5:Voltage/current output specifications
ItemVoltage outputCurrent output
-10 to +10 V DC
(External load resistance:5 kΩ to 1MΩ)
Adjustment is enabled with the
following conditions:
Analog output range
Digital inputSigned 12-bit binary10-bit binary
Resolution
Total accuracy
Offset value: -10000 to +5000 mV
Gain value: -9000 to +5000 mV
"Gain - Offset":
(Resolution is constant.)
Change is disabled while absolute
voltage output mode is used.
5mV (10 V × 1/4000)
-10 to +10V at output
Ambient temperature: 25 °C ± 5 °C
±0.5%(±100mV) against full scale 20V
Ambient temperature: 0 to +55 °C
±1.0%(±200mV) against full scale 20V
1000 mV
>
0 to 20 mA DC, 4 to 20 mA DC
(External load resistance:500Ω or less)
Adjustment is enabled with the
following conditions:
Offset value: 0 to +10000 µA
Gain value: 3000 to +30000 µA
(Resolution is constant.)
Change is disabled while absolute
current output mode is used.
20 µA (20 mA × 1/1000)
0 to 20 mA at output
4 to 20mA at output
Ambient temperature: 25 °C ± 5 °C
±0.5% (0 to 20mA at output ±200 µA)
against full scale 40 mA
4 to 20mA output is same (±200 µA)
Ambient temperature: 0 to +55 °C
±1.0% (0 to 20mA at output ±400 µA)
against full scale 40 mA
4 to 20mA output is same (±400 µA)
"Gain - Offset":
3000 µA
>
6-5
FX2N-5A Special function blockSpecifications 6
MEMO
6-6
FX2N-5A Special function block
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
Buffer Memory (BFM) 7
abnormal behavior in the FX
Data transfer between the FX
memories (hereafter referred to as "BFM") of the FX
2N
-5A module.
2N
-5A and the PLC main unit is performed through buffer
2N
-5A.
Each BFM consists of 1 word, 16 bits. The BFM No. 0 to 249 and a function are assigned to
each BFM.
Use FROM/TO instructions to read and write the data between the BFM and the PLC.
When the power is turned on, the initial value is written to each BFM. When you would like to
use different contents of the BFM, create a program for the PLC so that the desired contents
are written to the BFM every time the power of the PLC is turned on.
(The contents stored in BFM #0, #1, #18, #19, #22, #25, #41 to #45, #51 to #55, #71 to #74,
#81 to #84, #200 to #249 are stored in the built-in EEPROM, and held against power failure.)
7-1
FX2N-5A Special function blockBuffer Memory (BFM) 7
7.1Buffer Memories (BFM) lists
Table 7.1:BFM Lists
BFM
No.
#0Specifies input mode of CH1 to CH4.
#1Specifies output mode of CH1.
#2Number of averaging times for CH1 Setting range: 1 to 256 times
#3Number of averaging times for CH2 Setting range: 1 to 256 times
#4Number of averaging times for CH3 Setting range: 1 to 256 times
#5Number of averaging times for CH4 Setting range: 1 to 256 times
#6CH1 Data (average data)
#7CH2 Data (average data)
#8CH3 Data (average data)
#9CH4 Data (average data)
#10CH1 data (immediate data)
#11CH2 data (immediate data)
Description
Hold against
power failure
{
{
⎯
⎯
⎯
⎯
⎯⎯
⎯⎯
⎯⎯
⎯⎯
⎯⎯
⎯⎯
Initial value
H0000 at shipment
H0000 at shipment
8
8
8
8
#12CH3 data (immediate data)
#13CH4 data (immediate data)
#14CH1 output data
#15
#16Reserved
#17Reserved
Calculated Analog output data if direct output control function is
active (= BFM 14 + effective direct output value)
⎯⎯
⎯⎯
⎯⎯
⎯⎯
⎯⎯
⎯⎯
7-2
FX2N-5A Special function blockBuffer Memory (BFM) 7
Table 7.1:BFM Lists
BFM
No.
#18Hold last value / reset output to offset value when PLC is stopped
Disables setting change of I/O characteristics and convenient
functions. The following BFMs are protected:
BFM 0 (input channel mode settings)
BFM 1 (output channel mode settings)
BFM 18 (hold/reset last value output)
BFM 20 (reset all values to default)
#19
#20
BFM 21 (offset/gain adjustment settings)
BFM 22 (convenient function settings)
BFM 25 (digital filter selection)
BFM 41 to 45 (offset data settings)
BFM 51 to 55 (gain data settings)
BFM 200 to 249 (Scaling function settings)
Disables change.: K2, Enables change.: K1
Initialize function.
(Initialize function at K1, then returns automatically to K0 after
initialization is completed.)
Description
Hold against
power failure
{
{
⎯
Initial value
K0
K1 at shipment
K0
#21
#22
#23Set parameter for direct control function between input and output
#24Reserved
Writes I/O characteristics. (Returns automatically to K0 after write of
offset/gain value or Scaling function value is finished.)
Sets convenient functions (upper/lower limit value detection,
immediate data and average data peak value hold, switch off
function for range over error for each channel).
⎯
{
⎯
⎯⎯
K0 at shipment
K0
H0000
7-3
FX2N-5A Special function blockBuffer Memory (BFM) 7
Table 7.1:BFM Lists
BFM
No.
#25Filter mode selection register
#26Upper/lower limit value alarm status (valid while BFM #22 b0 or b1 is ON)
#27
#28Scale over status and disconnection detection
#29Error status
#30Model code (K1010)
#31Reserved
#32Reserved
#33Reserved
#41CH1 offset data (mV, 10µV or µA)
A/D data sudden change detection status
(valid while BFM #91 to #94 are different to 0)
•
•
Reserved
•
Description
Hold against
power failure
{
⎯
⎯
⎯
⎯
⎯
⎯⎯
⎯⎯
⎯⎯
⎯⎯
{
Initial value
K0
K0
K0
K0
K0
K1010
K0 at shipment
#42CH2 offset data (mV, 10µV or µA)
#43CH3 offset data (mV, 10µV or µA)
#44CH4 offset data (mV, 10µV or µA)
#45Output CH1 offset data (mV or µA)
#46Reserved
#47Reserved
#48Reserved
{
{
{
{
⎯⎯
⎯⎯
⎯⎯
K0 at shipment
K0 at shipment
K0 at shipment
K0 at shipment
7-4
FX2N-5A Special function blockBuffer Memory (BFM) 7
Table 7.1:BFM Lists
BFM
No.
•
•
Reserved
•
#51CH1 gain data (mV, 10µV or µA)
#52CH2 gain data (mV, 10µV or µA)
#53CH3 gain data (mV, 10µV or µA)
#54CH4 gain data (mV, 10µV or µA)
#55Output CH1 gain data (mV or µA)
#56Reserved
#57Reserved
#58Reserved
#59
#60
#61Reserved
Reserved
Description
Hold against
power failure
⎯⎯
{
{
{
{
{
⎯⎯
⎯⎯
⎯⎯
⎯⎯
⎯⎯
Initial value
K5000 at shipment
K5000 at shipment
K5000 at shipment
K5000 at shipment
K5000 at shipment
#62Reserved
#63Reserved
#64Reserved
#65Reserved
#66Reserved
#67Reserved
#68Reserved
⎯⎯
⎯⎯
⎯⎯
⎯⎯
⎯⎯
⎯⎯
⎯⎯
7-5
FX2N-5A Special function blockBuffer Memory (BFM) 7
Table 7.1:BFM Lists
BFM
No.
•
•
Reserved
•
#71
#72
#73
#74
#75Reserved
#76Reserved
#77Reserved
#78Reserved
CH1 lower limit value alarm set value (valid while BFM #22 b0 or b1
is ON)
CH2 lower limit value alarm set value (valid while BFM #22 b0 or b1
is ON)
CH3 lower limit value alarm set value (valid while BFM #22 b0 or b1
is ON)
CH4 lower limit value alarm set value (valid while BFM #22 b0 or b1
is ON)
Description
Hold against
power failure
⎯⎯
{
{
{
{
⎯ ⎯
⎯ ⎯
⎯ ⎯
⎯ ⎯
Initial value
K-32000
K-32000
K-32000
K-32000
•
•
•
#81
#82
#83
Reserved
CH1 upper limit value alarm set value (valid while BFM #22 b0 or b1
is ON)
CH2 upper limit value alarm set value (valid while BFM #22 b0 or b1
is ON)
CH3 upper limit value alarm set value (valid while BFM #22 b0 or b1
is ON)
⎯⎯
{
{
{
K32000
K32000
K32000
7-6
FX2N-5A Special function blockBuffer Memory (BFM) 7
Table 7.1:BFM Lists
BFM
No.
#84
#85Reserved
#86Reserved
#87Reserved
#88Reserved
#91
#92
#93
CH4 upper limit value alarm set value (valid while BFM #22 b0 or b1
is ON)
•
•
Reserved
•
CH1 sudden change detection set value
Setting range: 0 to 32000 (0 means function is disabled)
CH2 sudden change detection set value
Setting range: 0 to 32000 (0 means function is disabled)
CH3 sudden change detection set value
Setting range: 0 to 32000 (0 means function is disabled)
Description
Hold against
power failure
{
⎯ ⎯
⎯ ⎯
⎯ ⎯
⎯ ⎯
⎯⎯
⎯
⎯
⎯
Initial value
K32000
K0
K0
K0
#94
#95Reserved
#96Reserved
#97Reserved
#98Reserved
CH4 sudden change detection set value
Setting range: 0 to 32000 (0 means function is disabled)
⎯
⎯⎯
⎯⎯
⎯⎯
⎯⎯
K0
7-7
FX2N-5A Special function blockBuffer Memory (BFM) 7
Table 7.1:BFM Lists
BFM
No.
#99
•
•
•
#101
#102
#103
#104
#105
Description
Clear upper and lower limit value alarm and sudden change
detection alarm
Reserved
CH1 average data peak value (minimum value) (valid while BFM #22
b2 is ON)
CH2 average data peak value (minimum value) (valid while BFM #22
b2 is ON)
CH3 average data peak value (minimum value) (valid while BFM #22
b2 is ON)
CH4 average data peak value (minimum value) (valid while BFM #22
b2 is ON)
CH1 immediate data peak value (minimum value) (valid while BFM
#22 b3 is ON)
Hold against
power failure
⎯
⎯⎯
⎯⎯
⎯⎯
⎯⎯
⎯⎯
⎯⎯
Initial value
K0
#106
#107
#108
#109Peak value (minimum value) reset flags
#110Reserved
CH2 immediate data peak value (minimum value) (valid while BFM
#22 b3 is ON)
CH3 immediate data peak value (minimum value) (valid while BFM
#22 b3 is ON)
CH4 immediate data peak value (minimum value) (valid while BFM
#22 b3 is ON)
⎯⎯
⎯⎯
⎯⎯
⎯
⎯⎯
K0
7-8
FX2N-5A Special function blockBuffer Memory (BFM) 7
Table 7.1:BFM Lists
BFM
No.
#111
#112
#113
#114
#115
#116
#117
Description
CH1 average data peak value (maximum value) (valid while BFM
#22 b2 is ON)
CH2 average data peak value (maximum value) (valid while BFM
#22 b2 is ON)
CH3 average data peak value (maximum value) (valid while BFM
#22 b2 is ON)
CH4 average data peak value (maximum value) (valid while BFM
#22 b2 is ON)
CH1 immediate data peak value (maximum value) (valid while BFM
#22 b3 is ON)
CH2 immediate data peak value (maximum value) (valid while BFM
#22 b3 is ON)
CH3 immediate data peak value (maximum value) (valid while BFM
#22 b3 is ON)
Hold against
power failure
⎯⎯
⎯⎯
⎯⎯
⎯⎯
⎯⎯
⎯⎯
⎯⎯
Initial value
#118
#119Peak value (maximum value) reset flags
#198Reserved
#199Reserved
CH4 immediate data peak value (maximum value) (valid while BFM
#22 b3 is ON)
•
•
Reserved
•
⎯⎯
⎯
⎯⎯
⎯⎯
⎯⎯
K0
7-9
FX2N-5A Special function blockBuffer Memory (BFM) 7
Table 7.1:BFM Lists
BFM
No.
#200
#201
#202
#203
•
•
•
#208
#209
CH1 Scaling function
Analog Value 1
CH1 Scaling function
Digital Value 1
CH1 Scaling function
Analog Value 2
CH1 Scaling function
Digital Value 2
CH1 Scaling function
Analog Value 5
CH1 Scaling function
Digital Value 5
Description
This function defines a
Scaling input curve (similar to
a look up table) for each
channel.
Hold against
power failure
{
{
{
{
{
{
Initial value
K-10200
K-32640
K10200
K32640
K0
K0
#210
#211
•
•
•
#218
CH2 Scaling function
Analog Value 1
CH2 Scaling function
Digital Value 1
CH2 Scaling function
Analog Value 5
{
{
{
K-10200
K-32640
K0
7-10
FX2N-5A Special function blockBuffer Memory (BFM) 7
Table 7.1:BFM Lists
BFM
No.
#219
•
•
•
#238
#239
#240
#241
#242
CH2 Scaling function
Digital Value 5
CH4 Scaling function
Analog Value 5
CH4 Scaling function
Digital Value 5
Output CH1 Scaling function
Digital output Value 1
Output CH1 Scaling function
Analog output Value 1
Output CH1 Scaling function
Digital output Value 2
Description
This function defines a
Scaling input curve (similar to
a look up table) for each
channel.
Hold against
power failure
{
{
{
{
{
{
Initial value
K0
K0
K0
K-32640
K-10200
K32640
#243
•
•
•
#248
#249
Output CH1 Scaling function
Analog output Value 2
Output CH1 Scaling function
Digital output Value 5
Output CH1 Scaling function
Analog output Value 5
{
{
{
K10200
K0
K0
7-11
FX2N-5A Special function blockBuffer Memory (BFM) 7
7.2Details of buffer memories
7.2.1BFM 0 input mode specification (READ/WRITE)
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.
BFM#0
{{{{
H
CH1
CH2
CH3
CH4
The meaning of the digits is as follows:
0: Voltage input mode (-10 to +10 V) (Display range -32000 to +32000)
1: Current input mode (4 to 20 mA) (Display range 0 to +32000) if current is less than 2mA, a
range error alarm will be set in BFM 28
2: Current input mode (-20 to +20 mA) (Display range -32000 to +32000)
3: Voltage input mode (-100 to +100 mV) (Display range -32000 to +32000)
4: Voltage input mode (-100 to +100 mV) (Display range -2000 to +2000)
5: Voltmetor display mode (-10V to + 10V) (Display range -10000 to +10000)
6: Amperemeter display mode (4mA to +20mA) (Display range 2000 to +20000 = 2mA to
20mA) if current is less than 2mA, a range error alarm will be set in BFM 28
7: Amperemeter display mode (-20mA to +20mA) (Display range -20000 to +20000)
7-12
FX2N-5A Special function blockBuffer 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: channel disabled, channel returns always 0.
C to E: not valid; the module will automatically restore the last valid setting.
The input characteristics such as the offset and gain settings are automatically changed
depending on the settings of BFM 0. A mode change in BFM 0 will also affect the settings of
BFM 41 to 44 (offset data), BFM 51 to 54 (gain data), and BFM 200 to 239 (Scaling function
data). Before changing offset/gain or Scaling function data, the appropriate input mode
specification must be set in BFM 0, otherwise, the offset/gain or Scaling function data will be
overwritten by the default data of the selected input mode.
The scale over status (BFM 28) value present before the mode change will not automatically
be cleared when performing a mode change.
Disabling a channel will increase the scanning frequency of the other channels.
The default value of BFM 0 is H0000.
The value of BFM 0 is stored in the internal EEPROM (non-volatile). The module contains a
safety function to protect the internal EEPROM from being destroyed when the same value is
accidentally written continuously to BFM 0.
7-13
FX2N-5A Special function blockBuffer Memory (BFM) 7
7.2.2BFM 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.
BFM#1
{{{{
H
Specify of output mode
Invalid
The meaning of the digits is as follows:
0: Voltage output mode (-10 to +10 V) (output range -32000 to +32000)
1: Voltage output mode (-10 to +10 V) (output range -2000 to +2000)
2: Current output mode (4 to 20 mA) (output range 0 to 32000)
3: Current output mode (4 to 20 mA) (output range 0 to 1000)
4: Current output mode (0 to 20 mA) (output range 0 to 32000)
5: Current output mode (0 to 20 mA) (output range 0 to 1000)
6: Absolute Voltage output mode (-10 to +10 V) (output range -10000 to +10000)
7: Absolute Current output mode (4 to 20mA) (output range 4000 to 20000)
8: Absolute Current output mode (0 to 20mA) (output range 0 to 20000)
9: Scaling Voltage output mode (-10 to +10 V) (maximum output range -32768 to +32767)
A: Scaling Current output mode (0 to 20 mA) (maximum output range 0 to 32767)
B to F: not valid; the module will automatically restore the last valid setting.
7-14
FX2N-5A Special function blockBuffer 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). Before
changing offset/gain or Scaling function data, the appropriate output mode specification must
be set, otherwise, the offset/gain or Scaling function data will be overwritten by the default data
of the selected output mode.
The scale over status (BFM 28) value present before the mode change will not automatically
be cleared when performing a mode change.
The default value of BFM 1 is H0000.
The value of BFM 1 is stored in the internal EEPROM (non-volatile). The module contains a
safety function to protect the internal EEPROM from being destroyed when the same value is
accidentally written continuously to BFM 1.
7-15
FX2N-5A Special function blockBuffer Memory (BFM) 7
7.2.3BFM 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.
When the number of averaging times is set to K0, the value is automatically changed to K1. If
the value is set to K257 or more it is also changed to K1 automatically. In either case, a number
of averaging times setting error (BFM 29 b10) occurs.
The initial value of BFM 2 to BFM 5 is K8.
Update of average data
The average data of (BFM 6 to BFM 9) are updated every time the A/D conversion processing
is performed.
BFM 6 to 9 will always contain the most recent average sum of the number of samples
specified in BFM 2 to BFM5 divided by this number. For example the formula for BFM 6 is as
follows:
If the averaging process has just started or when the number of average samples has been
changed during operation, the sampling values that have not been converted until that time are
not considered for the calculation. In that case the number of samples used to calculate the
average value is calculated based on the number of available samples at this time.
7-16
FX2N-5A Special function blockBuffer Memory (BFM) 7
7.2.4BFM 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. The data displayed is "processed data", therefore, offset and gain
calculations and Scaling function calculations and digital filtering (if selected) are already
performed before the average value is calculated.
7.2.5BFM 10 to BFM 13 Immediate Input Channel data (READ only)
The immediate A/D conversion data of each channel is displayed BFM 10 to BFM 13. The data
displayed "processed data", therefore, offset and gain calculations, Scaling function
calculations and digital filtering (if selected) are already performed.
7.2.6BFM 14 Analog Output data (READ/WRITE)
BFM 14 receives the analog output data for the DA (Digital Analog) converter. For this data,
offset/gain calculations or the Scaling function calculation will be performed, and direct
output function calculation. Thus, "processed" data will be sent to the DA converter.
7.2.7BFM 15 Calculated Analog output data (when direct control function is active)
(READ only)
If the direct output control function (see BFM 23) is enabled, the result of the calculation
process that is written to the analog output is read back to the PLC via BFM 15.
7.2.8BFM 16 to BFM 17 Reserved
7-17
FX2N-5A Special function blockBuffer Memory (BFM) 7
7.2.9BFM 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.
If BFM18 is set to K1, and there is no TO instruction access for more than 200 ms from the
main unit to the FX
2N
-5A, consequently, the output will be stopped. In this case the last value of
BFM 15 (value of BFM14 + direct output function) will be output.
If BFM18 is set to K2, and there is no TO instruction access for more than 200 ms from the
main unit to the FX
2N
-5A, consequently, the output will be reset to the defined offset value.
If BFM18 is set to K1 or K2, a FROM/TO-Watchdog-Timer will be activated. If there is no
FROM/TO access for longer than 200ms, the action described above will be taken. (FROM/TO
Watchdog timer has barked, bit 8 of BFM18 is set.) This can be checked by monitoring BFM 18
or reading it by a FROM command. The FROM/TO Watchdog timer will automatically be reset
by a TO access to BFM 14.
The value of BFM 18 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 18.
7-18
FX2N-5A Special function blockBuffer Memory (BFM) 7
BFM 19 permits or prohibits the change of the I/O characteristics for the following functions:
BFM 0 (input channel mode settings)
BFM 1 (output channel mode settings)
BFM18 (hold/reset last value output)
BFM 20 (reset all values to default)
BFM 21 (offset/gain adjustment settings)
BFM 22 (convenient function settings)
BFM 25 (digital filter mode)
BFM 41 to 45 (offset data settings)
BFM 51 to 55 (gain data settings)
BFM 200 to 249 (Scaling function settings)
The permitted values are as follows:
K1: Enables change (selected at shipment from factory).
K2: Disables change.
On fault input, the module will return to the last valid input saved in EEPROM (values other than
K1 or K2 will be ignored).
The value of BFM 19 is stored as 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 19.
7-19
FX2N-5A Special function blockBuffer Memory (BFM) 7
7.2.11BFM 20 Initialization function (reset all values to default) (READ/WRITE)
BFM 20 will reset the FX
2N
-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).
Permitted values are as follows:
K0:Normal state, nothing is performed
K1:initialization will be executed. After writing K1, the BFM will return automatically to K0 when
initialization is completed.
On fault input, the module will ignore other values than K1 and perform nothing except keeping
K0 as content of BFM 20.
Writing to BFM 20 triggers several data items to be written to the internal EEPROM. To protect
the internal EEPROM from damage by permanently writing K1 to BFM 20, there is a safety
function, which will memorize the reset in order to protect the internal EEPROM from being
destroyed by accidentally writing K1 continuously to BFM 20.
Writing K1 to BFM 20 will set the following BFM to their default values as stated below:
BFM 0 to 5, BFM 18, BFM 22, BFM 23, BFM 25, BFM 41 to 45, BFM 51 to 55, BFM 71 to 74,
BFM 81 to 84, BFM 91 to 94, BFM 200 to 249.
7-20
FX2N-5A Special function blockBuffer Memory (BFM) 7
7.2.12BFM 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 FX
2N
-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.)
When a bit is set to ON, the offset data (BFM 41 to BFM 45) and the gain data (BFM 51 to BFM
55) or the Scaling function data (BFM 200 to BFM 249) of the assigned channel are written to
the built-in memory (EEPROM).
It is possible to adjust the settings for two or more channels at the same time (writing "H1F",
will set the new offset/gain data for all channels). After writing is completed, BFM 21 returns
automatically to K0.
On fault input, the module will ignore other bits than b0 to b4 and perform nothing except
keeping K0 as content of BFM21.
Scale over status (BFM 28) data existing before a change of the I/O characteristics will not be
automatically cleared by performing a change of the I/O characteristics.
Writing to BFM 21 triggers data to be written to the internal EEPROM. To protect the internal
EEPROM from being destroyed by permanently writing the same value to BFM 21, there is a
safety function which will memorize the value of BFM 21 to protect the internal EEPROM from
being destroyed by accidentally writing the same value continuously to BFM
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.
b0: Upper/lower limit average value detection function
If the A/D averaged conversion data of a channel (BFM 6 to BFM 9) is outside the range set
between the lower limit value (BFM 71 to BFM 74) and the upper limit value (BFM 81 to BFM
84), corresponding alarm bits for each channel (lower limit alarm or higher limit alarm) are set
in BFM 26.
b1: Upper/lower limit immediate value detection function
If the A/D immediate conversion data of a channel (BFM 10 to BFM 13) is outside the range set
between the lower limit value (BFM 71 to BFM 74) and the upper limit value (BFM 81 to BFM
84), corresponding alarm bits for each channel (lower limit alarm or higher limit alarm) are set
in BFM 26.
b2: Average data Peak value hold function
The minimum value of the average data (BFM 6 to BFM 9) of each channel is written to BFM
101 to BFM 104, and the maximum value is written to BFM 111 to BFM 114.
b3: Immediate data Peak value hold function
The minimum value of the immediate data (BFM 10 to BFM 13) of each channel is written to
BFM 105 to BFM 108, and the maximum value is written to BFM 115 to BFM 118.
7-22
FX2N-5A Special function blockBuffer 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.14BFM 23 Set parameter for direct control between the input channel and output channel
(READ/WRITE)
In BFM 23, the user can specify direct control feedback between all 4 analog input channels
and the analog output channel.
The format of BFM 23 is a 4 digit hex value and each digit is represents the operation of one
input channel.
The values of the Hex digits are as follows:
H0:The corresponding analog input channel has no influence on the analog output value.
H1:The average input value (BFM 6 to BFM 9) of the corresponding analog input channel is
added to the analog output value in BFM 14.
H2:The immediate input value (BFM 10 to BFM 13) of the corresponding analog input channel
is added to the analog output value in BFM 14.
H3:The average input value (BFM 6 to BFM 9) of the corresponding analog input channel is
subtracted from the analog output value in BFM 14.
H4:The immediate input value (BFM 10 to BFM 13) of the corresponding analog input channel
is subtracted from the analog output value in BFM 14.
H5 to HF: The corresponding analog input channel has no influence on the analog output
value, however, the direct output control error bit (bit 15) in BFM 29 will be switched
on.
7-23
FX2N-5A Special function blockBuffer 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. If the
direct control function is switched off for all channels, BFM 14 will be regarded as the analog
output value.
The settings of BFM 25 will also influence the direct control function values.
7.2.15BFM 24 Reserved
7-24
FX2N-5A Special function blockBuffer Memory (BFM) 7
The following Table shows the possible values of BFM 25 for using the digital Filter of the
2N
FX
-5A-Device:
Table 7.2:Bit assignment in BFM 25
Bit No.Channel No.Description
b0
b1
b2
b3
b4
b5
b6
b7
b8
b9
b10
b11
b12
CH1 to CH4
CH1 to CH4
Filter:0 = off
1 = 2nd level
2 = 5th level
3 = 7th level
Cut-off frequency factor F
0 = no cut-off frequency selected
1 = (0.1×1/sampling time)Hz
2 = (0.05×1/sampling time)Hz
3 = (0.025×1/sampling time)Hz
4 = (0.01×1/sampling time)Hz
reserved
reserved
reserved
reserved
reserved
1
:
b13
b14
b15
reserved
reserved
reserved
7-25
FX2N-5A Special function blockBuffer Memory (BFM) 7
Formula for filter cut-off frequency fL: fL = F1/(sampling time × no. of active channels) [Hz] with
cut-off frequency factor F
1
=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. Selecting a non existing filter mode or selecting a filter mode without
specifying a cut-off frequency will lead to an error in BFM 29. In this case the previously valid
settings will be kept.
The filter settings for the module also have a direct influence on the sampling rate and
conversion speed of the module. The relation between selected filter level and sampling rate is
as follows:
Table 7.3:Setting range
Filter Level
(value in BFM25, b0 to b3)
filter off (K0)1ms / chupdate every 2 ms
2nd level digital filter (K1)*3ms / chupdate every 6 ms
5th level digital filter (K2)*4ms / chupdate every 8 ms
sampling time per input
channel
refresh rate of analog output
channel
7th level digital filter (K3)*4.5ms / chupdate every 9 ms
* In these cases b4 to b7 must be set to a value between K1 to K4.
The value of BFM 25 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 25.
7-26
FX2N-5A Special function blockBuffer Memory (BFM) 7
A/D conversion value when input filter is used.
When input filter is used
The change of the A/D conversion value
becomes smooth.
It is smooth when numerical value at level
is large.
Analog value
Digital value
Time
Input filter and when cut-off frequency is used
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
7-27
FX2N-5A Special function blockBuffer Memory (BFM) 7
7.2.17BFM 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.
If the A/D averaged conversion data of a channel (BFM 6 to BFM 9) is outside the range set
between the lower limit value (BFM 71 to BFM 74) and the upper limit value (BFM 81 to BFM
84), the corresponding alarm bits b0 to b7 for each channel (lower limit alarm or higher limit
alarm) are set in BFM 26.
If the A/D immediate conversion data of a channel (BFM 10 to BFM 13) is outside the range set
between the lower limit value (BFM 71 to BFM 74) and the upper limit value (BFM 81 to BFM
84), the corresponding alarm bits b8 to b15 for each channel (lower limit alarm or higher limit
alarm) are set in BFM 26.
Once a bit turns ON, it remains ON until it is reset by BFM 99 or the power is turned off.
Even while an upper/lower limit value alarm is detected, the data (BFM 6 to BFM 13) of each
channel are continuously updated.
7-28
FX2N-5A Special function blockBuffer Memory (BFM) 7
Table 7.4:Bit assignment in BFM 26
Bit No.Channel No.Description
b0
average data lower limit value alarm
CH1
b1average data upper limit value alarm
b2
average data lower limit value alarm
CH2
b3average data upper limit value alarm
b4
average data lower limit value alarm
CH3
b5average data upper limit value alarm
b6
average data lower limit value alarm
CH4
b7average data upper limit value alarm
b8
immediate data lower limit value alarm
CH1
b9immediate data upper limit value alarm
b10
immediate data lower limit value alarm
CH2
b11immediate data upper limit value alarm
b12
immediate data lower limit value alarm
CH3
b13immediate data upper limit value alarm
b14
immediate data lower limit value alarm
CH4
b15immediate data upper limit value alarm
7-29
FX2N-5A Special function blockBuffer Memory (BFM) 7
7.2.18BFM 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. When the immediate data
(BFM 10 to BFM 13) of each channel is updated, if the difference between the previous value
and the new value is larger than the sudden change detection set value (BFM 91 to BFM 94),
the corresponding bit turns ON.
When the new value is larger than the previous value, a bit for the + direction turns ON. If, the
new value is smaller than the previous value, a bit for the - direction turns ON.
Once a bit turns ON, it remains ON until it is reset by BFM 99 or the power is turned off.
Even while a sudden change alarm is detected, the data (BFM 6 to BFM 13) of each channel is
continuously updated.
7-30
FX2N-5A Special function blockBuffer Memory (BFM) 7
Table 7.5:Bit assignment in BFM27
Bit No.Channel No.Description
b0
average data sudden change error in - direction
CH1
b1average data sudden change error in + direction
b2
average data sudden change error in - direction
CH2
b3average data sudden change error in + direction
b4
average data sudden change error in - direction
CH3
b5average data sudden change error in + direction
b6
average data sudden change error in - direction
CH4
b7average data sudden change error in + direction
b8
immediate date sudden change error in - direction
CH1
b9immediate date sudden change error in + direction
b10
immediate date sudden change error in - direction
CH2
b11immediate date sudden change error in + direction
b12
immediate date sudden change error in - direction
CH3
b13immediate date sudden change error in + direction
b14
immediate date sudden change error in - direction
CH4
b15immediate date sudden change error in + direction
7-31
FX2N-5A Special function blockBuffer Memory (BFM) 7
7.2.19BFM 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.
To avoid the alarm being set for unused channels, they should be completely disabled in BFM
0. It is also possible to inhibit only the scale over alarm by setting the corresponding bits of
BFM22.
Once a bit turns ON, it remains ON until it is overwritten with the OFF status using a TO
instruction to BFM 28 or the power is turned off. Single alarm bits can be masked, by writing a
bit mask code to BFM 28. For example, HFFF0 will only clear the lowest 4 bits.
Even while a scale over error is detected, the data (BFM 6 to BFM 13) of each channel is
continuously updated.
7-32
FX2N-5A Special function blockBuffer Memory (BFM) 7
Table 7.6:Bit assignment in BFM28
Bit No.Channel No.Description
b0
Scale over: Less than lower limit and disconnection detection
CH1
b1Scale over: More than upper limit
b2
Scale over: Less than lower limit and disconnection detection
CH2
b3Scale over: More than upper limit
b4
Scale over: Less than lower limit and disconnection detection
CH3
b5Scale over: More than upper limit
b6
Scale over: Less than lower limit and disconnection detection
CH4
b7Scale over: More than upper limit
b8
Scale over: Less than lower limit
output CH
b9Scale over: More than upper limit
b10reserved
b11reserved
b12reserved
b13reserved
b14reserved
b15reserved
7-33
FX2N-5A Special function blockBuffer Memory (BFM) 7
7.2.20BFM 29 Error status
The error information is assigned to each bit of BFM 29.
Table 7.7:Bit assignment in BFM 29
Bit No.AssignmentDescription
b0Error detectedb0 is ON if at least one output of b1 to b5 is ON.
b1
Offset/gain set value error or
Scaling function setting error.
b2Power errorExternal 24 V power is not supplied.
b3Hardware errorFX
b4A/D conversion value error
b5D/A conversion value error
b6reserved
b7reserved
b8Set value error detectedThis bit is ON while either bit among b9 to b15 is ON.
b9Input/output mode 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.
2N
-5A hardware error (EEPROM, MCU periphery)
A/D conversion value is out of range / wire break.
See scale over data (BFM 28)
D/A conversion value is out of range, value in BFM 14/BFM
15 is too large.
Input/output mode (BFM 0, BFM 1) is incorrectly set.
Set it within range from 0 to B or F (BFM 0) or 0 to A
(BFM 1).
7-34
FX2N-5A Special function blockBuffer Memory (BFM) 7
Table 7.7:Bit assignment in BFM 29
Bit No.AssignmentDescription
Number of averaging times is incorrectly set.Set it within
range from 1 to 256.
b10
Number of averaging times
setting error
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.
b11
Attempt of setting change while
BFM19 was looked
Sudden change detection set
b12
value error
Upper/lower limit value set
b13
value error
b14Filter mode setting error
Direct output control function
b15
setting error
Although the value in BFM 19 prohibits to change the
setting, a write access to a protected BFM was registered.
No setting changes have been executed.
The sudden change detection value is set to an incorrect
value. (valid range 0 to 32000)
Upper/lower limit alarm value is set to an incorrect value
(valid range: -32000 ≤ X ≤ +32000).
Filter mode (BFM 25) is incorrectly set. Set the lowest two
digits to a valid range according to the description of BFM
25.
The direct output control function is set to an undefined
value. Set each digit between a range of 0 and 4.
The number was reset to the previous value.
7-35
FX2N-5A Special function blockBuffer Memory (BFM) 7
The error b1 appears when:
- in voltage-mode: offset data > 5000
gain data < -5000
gain data - offset data < 1000
- in current-mode: 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.
In case of a power error or a hardware error, the error bits are latched, until K0 or another
mask value i. e. HFFF3 to clear the bits is written to BFM 29, or until the power is turned off.
7-36
FX2N-5A Special function blockBuffer Memory (BFM) 7
7.2.21BFM 30 Model ID code (READ only)
BFM 30 stores the fixed value K1010.
Write attempts by TO instruction are ignored.
7.2.22BFM 31 to BFM 40 reserved
7.2.23BFM 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. There is a safety
function to protect the internal EEPROM from being destroyed by accidentally writing the same
value continuously to a BFM.
7.2.24BFM 45 Analog output Offset data (READ/WRITE)
Output Offset data: Analog output voltage or current if digital input in BFM 14 is 0.
Default offset value for voltage mode (-10V/+10V) is 0V(=K0), for current mode (4 - 20mA) is
4mA(=K4000) and for current mode (0 - 20mA) is 0mA(=K0).
The value of BFM 45 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 45.
7-37
FX2N-5A Special function blockBuffer Memory (BFM) 7
7.2.25BFM 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 "
µ
10
V units for ±100mV input.
µ
A" for current input and in
The values of BFM 51 to 54 are 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 a BFM.
Initial offset/gain value (Unit: mV for voltage input,
µ
A for current input and 10µV for ±100mV
input)
Table 7.8:Initial offset/gain input value
1
6
Amperemeter mode
(4 to 20mA)
7
Amperemeter mode
(-20 to +20mA)
to
(-10
0
+10V)
5
+10V)
to
(4 to 20mA)2(-20 to +20mA)
Input mode
(BFM 0)
Initial offset value04000000
Initial gain value5000 unit:mV12000 unit:µA10000 unit:µA5000 unit:10µV5000 unit:10µV
Input mode
(BFM 0)
(-10
Voltmeter mode
3
(-100 to
+100mV)
Voltmeter mode
(-100 to +100mV)
4
(-100
+100mV)
to
8
Initial offset value0 fixed0 fixed0 fixed0 fixed
Initial gain value
16000 fixed
unit:mV
16000 fixed
µ
unit:
A
16000 fixed
unit:µA
16000 fixed
unit:10µV
Note: This table is not applicable for modes 9 to B (see Scaling function settings.)
7-38
FX2N-5A Special function blockBuffer Memory (BFM) 7
Setting range
Table 7.9:Setting range
Voltage input (+/-10V)Current inputVoltage input (+/-100mV)
Offset data-32000 to +5000 (mV)-32000 to +10000 (
Gain data-5000 to +32000 (mV)-10000 to +32000 (
Gain data -
offset data
Gain value - Offset value >
1000 (mV)
Gain value - Offset value >
1000 (
µ
A)
µ
A)-32000 to +5000 (*10µV)
µ
A)-5000 to +32000 (*10µV)
Gain value - Offset value >
1000 (* 10 µV)
However, the actual effective input range is "-10 to +10 V", "-20 to +20 mA", "4 to +20 mA" or
"-100 to +100mV".
7-39
FX2N-5A Special function blockBuffer Memory (BFM) 7
7.2.26BFM 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. There is a safety function
to protect the internal EEPROM from being destroyed by accidentally writing the same value
continuously to BFM 55.
Table 7.10: Initial offset/gain value(Unit: mV for voltage output,
BFM 14 value
for gain output
Output mode
(BFM 1)
Initial offset
value
Initial gain
value
1600010001600050016000500(16000*)1600016000
0
(-10V to
+10V)
0040004000000 fixed0 fixed0 fixed
5000
unit:mV
1
(-10V to
+10V)
5000
unit:mV
2
(4 to
20mA)
12000
µ
unit:
A
3
(4 to
20mA
12000
unit:µA
4
(0 to
20mA)
10000
unit:µA
5
(0 to
20mA)
10000
unit:µA
µ
A for current output)
6
absolute
voltage
mode
16000
fixed
unit:mV
7
absolute
current
mode
16000
fixed
µ
unit:
A
absolute
current
mode
16000
unit:
8
fixed
µ
A
Note: This table is not applicable for modes 9 to A (see Scaling function settings).
* In absolute voltage output mode, the theoretical value is 16000, however in reality it is not
possible to exceed 10V output voltage (BFM14=10000).
7-40
FX2N-5A Special function blockBuffer Memory (BFM) 7
7.2.27BFM 71 to BFM 74 Lower limit, alarm set value (READ/WRITE)
7.2.28BFM 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.
There is a safety function to protect the internal EEPROM from being destroyed by
accidentally writing the same value continuously to a BFM.
The range of setting is different according to setting the input mode.
Please write a set value in a digital value.
Input mode (BFM#0)Range of setting
0: Voltage input mode-32000 to +32000
1: Current input mode0 to 32000
2: Current input mode-32000 to +32000
3: Voltage input mode-32000 to +32000
4: Voltage input mode-2000 to +2000
5: Voltmeter display mode-10000 to +10000
6: Amperemeter display mode2000 to 20000
7: Amperemeter display mode-20000 to +20000
8: Voltmeter display mode-10000 to +10000
9: Scaling function voltage input mode-32768 to +32767
7-41
FX2N-5A Special function blockBuffer 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.Invalid
F: No input channel useInvalid
7-42
FX2N-5A Special function blockBuffer Memory (BFM) 7
7.2.29BFM 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.
When the immediate or average data (BFM 6 to BFM 13) of each channel is updated, and the
difference between the previous value and the new value is larger than the sudden change
detection value (BFM 91 to BFM 94), the result is written to the sudden change detection
status (BFM 27).
The range of setting is different according to setting the input mode.
Please write a set value in a digital value.
Input mode (BFM#0)Range of setting
0: Voltage input mode0 to 32000
1: Current input mode0 to 32000
2: Current input mode0 to 32000
3: Voltage input mode0 to 32000
4: Voltage input mode0 to 2000
5: Voltmeter display mode0 to 10000
6: Amperemeter display mode0 to 20000
7: Amperemeter display mode0 to 20000
8: Voltmeter display mode0 to 10000
9: Scaling function voltage input mode0 to 32000
A: Scaling function current input mode0 to 32000
7-43
FX2N-5A Special function blockBuffer Memory (BFM) 7
Input mode (BFM#0)Range of setting
B: Scaling function voltage input mode0 to 32000
C to E: It is not possible to set.Invalid
F: No input channel useInvalid
7.2.30BFM 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.
When a bit is set ON, the flag of the corresponding error status (BFM 26, BFM 27) is reset for
all channels at a time.
After the reset is finished, each bit of BFM 99 automatically sets OFF.
It is possible to set two or more clear commands ON at a time.
Table 7.11: Bit assignment in BFM 99
Bit No.Description
b0
b1
b2
b3 to b15
Clears lower limit value error.
Clears upper limit value error.
Clears sudden change detection error.
Unused
7-44
FX2N-5A Special function blockBuffer Memory (BFM) 7
7.2.31BFM 101 to BFM 108 Peak value (minimum value) (READ only)
7.2.32BFM 111 to BFM 118 Peak value (maximum value) (READ only)
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. The
maximum average values are written from BFM 111 to BFM 114 and the immediate maximum
values are written from BFM 115 to 118.
Initial value
When the peak hold function is not used: K0
When the peak hold function is used: Digital value when the function is set ON
7-45
FX2N-5A Special function blockBuffer Memory (BFM) 7
7.2.33BFM 109: Peak value reset flag (minimum value) (READ/WRITE)
7.2.34BFM 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. When a bit is
set ON, the peak value of the assigned channel is cleared.
Table 7.12: Bit assignment
BFM
109
BFM
119
)
b15 to b8
Unusable
Unusable
Bit No
Channel No.
(BFM No.)
Bit No.b15 to b8
Channel No.
(BFM No.
.
b7b6b5b4b3b2b1b0
CH4 im
(#108)
CH3 im
(#107)
CH2 im
(#106)
CH1 im
(#105)
CH4 av
(#104)
CH3 av
(#103)
CH2 av
(#102)
b7b6b5b4b3b2b1b0
CH4 im
(#118)
CH3 im
(#117)
CH2 im
(#116)
CH1 im
(#115)
CH4 av
(#114)
CH3 av
(#113)
CH2 av
(#112)
CH1 av
(#101)
CH1 av
(#111)
7-46
FX2N-5A Special function blockBuffer Memory (BFM) 7
7.2.35BFM 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.
If the Scaling function is used, the offset/gain settings will become meaningless for this
channel, as the input/output will be calculated by the Scaling function given by the user.
Analog scale value and digital value outside the range selected by BFM 0 and 1 is set.
Offset/gain set value becomes error (BFM 29 b1).
Table 7.13: Allocation of BFM #200 to #249
BFM No.
Channel No.Set value kind
Analog input channel
CH1
Analog input channel
CH2
Analog input channel
CH3
Analog input channel
CH4
Analog output channel
Analog scale value#200#202#204#206#208
Digital value#201#203#205#207#209
Analog scale value#210#212#214#216#218
Digital value#211#213#215#217#219
Analog scale value#220#222#224#226#228
Digital value#221#223#225#227#229
Analog scale value#230#232#234#236#238
Digital value#231#233#235#237#239
Digital value#240#242#244#246#248
Analog scale value#241#243#245#247#249
Change
point 1
Change
point 2
Change
point 3
Change
point 4
Change
point 5
The order of allocating an analog value and a digital value differs for in the input channels and
the output channel.
7-47
FX2N-5A Special function blockBuffer 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.
7-48
FX2N-5A Special function blockBuffer Memory (BFM) 7
Program example when Scaling function is used
Initial pulse
M8002
TOK0K19K1K1
Set change permission of I/O
characteristic
TOK0K0H9K1
TOK0K200K1
TOK0K201K1
K-10000
K-10000
K10000TOK0K202K1
K10000TOK0K203K1
H1TOK0K21K1
Input mode setting
Analog input CH1 is set in
Scaling function
Analog scale value of change
point 1
Digital value of change point 1
Analog scale value of change
point 2
Digital value of change point 2
Writing of input characteristic
7-49
FX2N-5A Special function blockBuffer Memory (BFM) 7
RUN monitor
M8000
D106FROMK0K6K1
Reading of average value data
of analog input CH1 (Average
value of CH1
D106)
→
D110FROMK0K10K1
D128FROMK0K28K1
D129FROMK0K29K1
END
Reading of immediate data of
analog input CH1 (Immediate
data of CH1
Reads the scale over status
BFM#28
Reads the error status
BFM#29
→
→
D110)
→
D128
D129
7-50
FX2N-5A Special function blockBuffer 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).
analog value
analog scale value
maximum analog value
×
100
×
100=
Example: When input mode 9 (scaling-function voltage input mode: -10 to +10V) is chosen
in BFM 0
Analog value-10V-5V0V5V10V
Associated analog value-100%-50%0%50%100%
Analog scale value-10000-50000500010000
If the analog scale value and digital value are outside the selected range set in BFM 0 and
BFM 1, the offset / gain set value errors (BFM 29 b1).
7-51
FX2N-5A Special function blockBuffer Memory (BFM) 7
Setting range of analog input
Set BFM 0 to 9Set BFM 0 to A
Analog scale value: -10000 to +10000Analog scale value: 2000 to 10000
Digital value: -32768 to +32767Digital value: -32768 to +32767
Change
point 1
-10000
(-10V)
Digital value
32767
Change
point 2
0
-32768
Change
point 4
Change
point 3
Change
point 5
Analog scale value
(Unit : 1/100 %)
10000
(10V)
Digital value
32767
0
-32768
Change
point 1
2000
(4mA)
Change
point 2
Change
point 4
Change
point 5
Change
point 3
Analog scale value
(Unit : 1/100 %)
10000
(20mA)
7-52
FX2N-5A Special function blockBuffer Memory (BFM) 7
Set BFM 0 to B
Analog scale value: -10000 to +10000
Digital value: -32768 to +32767
Digital value
Change
point 5
Change
point 4
Analog scale value
(Unit : 1/100 %)
Change
point 1
32767
Change
point 3
Change
point 2
-10000
(-100mV)
-32768
0
10000
(100mV)
7-53
FX2N-5A Special function blockBuffer Memory (BFM) 7
Setting range of analog output
Set BFM 1 to 9Set BFM 1 to A
Analog scale value: -10000 to +10000Analog scale value: 0 to 10000
Digital value: -32768 to +32767Digital value: -32768 to +32767
Change
point 1
-32768
10000
(10V)
Change
point 3
Change
point 2
-10000
(-10V)
Change
point 4
0
Analog scale value
(Unit : 1/100 %)
Change
point 5
Digital value
32767
Change
point 2
Change
point 1
10000
(20mA)
(0mA)
Change
point 3
0
Analog scale value
(Unit : 1/100 %)
Change
point 4
Change
point 5
Digital value
32767-32768
7-54
FX2N-5A Special function blockBuffer 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.
✔✗
Digital value
Change point 1
Analog scale value
(Available)(Not available)
Change point 3
Change
point 2
Figure 1
Change point 1
Change point 2
Digital value
Analog scale value
Change point 3
•Please set analog values and digital values in Change point 1 < Change point 2 < Change
point 3.
When "The small number change point" ≤ "The large number change point" is set, offset/
gain set value error (BFM 29 b1). (See figure 1.)
•When using less then three change points, please specify an analog scale and a digital
value for those change points not used as K0 (initial value). (See figure 1.)
7-55
FX2N-5A Special function blockBuffer Memory (BFM) 7
✔✗
Digital
value
Change
point 2
Change
point 1
(Available)(Not available)
Digital
Change
point 3
Analog
scale
value
Change
Figure 2
value
point 2
Change
point 1
Analog
scale
value
Change
point 3
•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.)
•The I/O to be entered for each channel should fall within the range of the analog scale value
of Change point 1 (minimum value) to that of Change point 3 (maximum value).
When an analog value outside this range is entered, scale over error (BFM 28) occurs.
•As for scale over less than lower limit and disconnection detection, a minimum analog value
of change point 1 to 3 is stored in analog input value (BFM 6 to 9, 10 to 13).
As for scale over more than upper limit, a maximum analog value of change point 1 to 3 is
stored in analog input value (BFM 6 to 9, 10 to 13).
•Offset data (BFM 41 to 45) and gain data (BFM 51 to 55) of the channel which uses Scaling
function is disregarded.
7-56
FX2N-5A Special function blockBuffer Memory (BFM) 7
The figure below shows the example for an analog input.
Example for the Analog Input Non Linearity function
450
BFM#206:10000
400
BFM#207:425
350
300
250
200
150
Calculated Digital Value
100
50
BFM#200:-10000
BFM 201 :50
-10000 -8000 -6000 -4000 -20000
BFM#202:-4000
BFM#203:275
2000
BFM#204:3000
BFM#205:375
4000 6000 8000 10000
Analog Input Scale Value (% of maximum range)
7-57
FX2N-5A Special function blockBuffer Memory (BFM) 7
Table 7.14:
Change point 1Change point 2 Change point 3 Change point 4Change point 5
If the Scaling function is selected, the analog module will return the following values in BFM 10:
analog input value: x < -10000: y = const. 50 (range error is entered in BFM28)
analog input value: -10000 < x < -4000 y = 0.0375 * x + 425
analog input value: -4000 < x < 3000y = 0.0143 * x + 332,15
analog input value: 3000 < x < 10000y = 0.0071 * x + 353.85
analog input value: x > 10000y = const. 425 (range error is entered in BFM28)
The same principle applies for the analog output, however, the first value in BFM 240 must be
a digital value and the second value must be the corresponding analog output value. The
dimension of the values is specified by the mode in BFM 0 and BFM 1.
If a mode-change is set and a Scaling function setting error appears the default-value will be
taken. If only a Scaling function setting error appears, the previous correct value will be take.
At least the first two analog/digital values must be set. If the other three analog/digital values
are set to 0 they will not be used by the Scaling function. By setting the first three analog/digital
value and resetting the last two analog/digital values, three parameter will be used by the
Scaling function etc.
7-58
FX2N-5A Special function block
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.1Standard I/O characteristics
Explanation
The I/O mode of the standard I/O characteristics is abbreviated as shown below:
0. Voltage input, -10 to 10V → -32000 to 32000
Adjustment of I/O Characteristics 8
1)
1)
Input mode set in BFM #0, BFM #1
2)
Input mode or output mode
3)
Analog input range or Analog output range
2)
3)
In the Voltmeter/Amperemeter analog input
mode, Absolute Voltage/Current output
mode and the Scaling function, 3) Digital
value of Analog input range or Analog
output range is omitted.
8-1
FX2N-5A Special function blockAdjustment of I/O Characteristics 8
Digital value
Input current
(mA)
0
420
32000
Approx.
32767
Approx.
20.383
2
-4000
Input characteristics
0. Voltage input, -10 to 10V → -32000 to +320001. Current input, 4 to 20mA → 0 to 32000
Digital value
Approx.32767
32000
Input
voltage
(V)
Approx.
-10
10
Approx.
-10.240V
-32000
Approx.-32768
10.240V
8-2
FX2N-5A Special function blockAdjustment of I/O Characteristics 8
Digital value
-100
100
32000
Approx.32767
Approx.
102.397mV
Approx.
-102.400mV
-32000
Approx.-32768
Input
voltage
(mV)
Digital value
-10
10
10000
Approx.10239
Approx.
10.240V
Approx.
-10.240V
-10000
Approx.-10240
Input
voltage
(V)
2.Current input, -20 to 20mA → -32000 to +320003.Voltage input, -100 to 100mV →
32000 to +32000
Digital value
Approx.32767
32000
Input
current
(mA)
-20
0
Approx.
-20.480mA
-32000
Approx.-32768
20
Approx.
20.480mA
4.Voltage input, -100 to 100mV → -2000 to +20005.Voltmeter mode, direct display, -10 to 10V
Digital value
Approx.2047
2000
Input
voltage
(mV)
-100
100
Approx.
102.397mV
Approx.
-102.400mV
-2000
Approx.-2048
8-3
FX2N-5A Special function blockAdjustment of I/O Characteristics 8
Digital value
-20
20
20000
Approx.20478
Approx.
20.478mA
Approx.
-20.478mA
-20000
Approx.-20478
Input
current
(mA)
0
6. Direct current input, 2 to 20mA7. Direct current input, -20 to 20mA
Digital value
Approx.
20478
20000
Approx.
20.478mA
4000
2000
04 20
2
Input current
(mA)
8. Direct voltage input, -100 to 100mV
Digital value
Approx.10239
10000
Input
voltage
(mV)
-100
100
Approx.
-102.400mV
-10000
Approx.-10240
Approx.
102.397mV
8-4
FX2N-5A Special function blockAdjustment of I/O Characteristics 8
Digital
value
-10
10
2000
Approx.10.240
Approx.2047
Approx.-2048
-2000
Approx.-10.240
Output Voltage (V)
Output characteristics
0.Voltage output, -32000 to +32000 → -10 to 10V1.Voltage output, -2000 to +2000 →
-10 to 10V
Output Voltage (V)
Approx.10.240
10
Digital
value
-32000
Approx.-32768
Approx.32767
32000
-10
Approx.-10.240
8-5
FX2N-5A Special function blockAdjustment of I/O Characteristics 8
Digital value
Output current (mA)
0
4
20
1000
Approx.
1023
Approx.
20.38
Digital value
Output current (mA)
0
20
1000
Approx.
1023
Approx.
20.48
0
2. Current output, 0 to 32000 → 4 to 20mA3. Current output, 0 to 1000 → 4 to 20mA
Output current (mA)
Approx.
20.38
20
4
0
Digital value
32000
Approx.
32767
4. Current output, 0 to 32000 → 0 to 20mA5. Current output, 0 to 1000 → 0 to 20mA
Output current (mA)
Approx.
20.48
20
0
32000
Approx.
32767
8-6
0
Digital value
FX2N-5A Special function blockAdjustment of I/O Characteristics 8
Digital value
Output current (mA)
0
20
20000
4
4000
Approx.
20479
Approx.
20.479
6. Analog value direct output, -10 to 10V7. Analog value direct output, 4 to 20mA
Output Voltage (V)
Approx.10.239
10
Digital
value
-10000
Approx.-10240
Approx.10239
10000
-10
Approx.-10.240
8. Analog value direct output, 0 to 20mA
Output current (mA)
Approx.
20.479
20
0
0
Digital value
20000
Approx.
20479
8-7
FX2N-5A Special function blockAdjustment of I/O Characteristics 8
8.2Adjustment 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.
8-8
FX2N-5A Special function blockAdjustment of I/O Characteristics 8
Figure 8.1: Example program
X0
TO
M100
K0K0
H1600
K1
Specifies the input mode of CH1 to CH4.
Operation start
PLS
instruction
M100
TOK0K1
TOK0K41K0K1
TOK0K42K0K1
TOK0K51
TOK0K52
TOK0K44K0K1
TOK0K54
TOK0K45K0K1
TOK0K55
TOK0K21
H0001
K6000
K6000
K10000
K6000
H001B
K1
K1
K1
K1
K1
K1
Specifies the output mode.
Writes the offset value of CH1.
Writes the offset value of CH2.
Writes the gain value of CH1.
Writes the gain value of CH2.
Writes the offset value of CH4.
Writes the gain value of CH4.
Offset value of analog output channel.
Gain value of analog output channel.
Offset value/gain value of analog input channel CH1,
CH2, CH4 and the analog output channel is write.
The I/O characteristics can be written (BFM #21) to one channel at a time, or two or more
channels at a time.
8-9
FX2N-5A Special function blockAdjustment of I/O Characteristics 8
MEMO
8-10
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.