FP0R Analog I/O Unit User's Manual

Document preview
File info: application/pdf · 92 pages · 1.78MB

FP0R Analog I/O Unit User's Manual

WUME-FP0RAIO-03

FP0R Analog I/O Unit User's Manual

the installation instructions and the users manual, and understand their contents in detail to use the product properly. Types of Manual • There are different types of users manual for the FP0R series, as listed below.…

FP0R Analog I/O Unit User's Manual - Panasonic Industry

92 pages · 1 MB —

To ensure that you use this product correctly, read this User’s Manual thoroughly before use. Make sure that you fully understand the product and information on safety. This manual uses two safety flags to indicate diff…

Original Document

If the viewer doesn’t load, open the PDF directly.

Extracted Text

PROGRAMMABLE CONTROLLER
FP0R Analog I/O Unit
User's Manual
[Applicable Models] FP0R Analog Input Unit (Model No. AFP0RAD4/AFP0RAD8) FP0R Analog Output Unit (Model No. AFP0RDA4) FP0R Analog I/O Unit (Model No. AFP0RA21/AFP0RA42)
WUME-FP0RAIO-03
2018.11 panasonic.net/id/pidsx/global

Safety Precautions
Observe the following notices to ensure personal safety or to prevent accidents. To ensure that you use this product correctly, read this User's Manual thoroughly before use. Make sure that you fully understand the product and information on safety. This manual uses two safety flags to indicate different levels of danger.
WARNING
If critical situations that could lead to user's death or serious injury is assumed by mishandling of the product. -Always take precautions to ensure the overall safety of your system, so that the whole system remains safe in the event of failure of this product or other external factor. -Do not use this product in areas with inflammable gas. It could lead to an explosion. -Exposing this product to excessive heat or open flames could cause damage to the lithium battery or other electronic parts.
CAUTION
If critical situations that could lead to user's injury or only property damage is assumed by mishandling of the product. -To prevent excessive exothermic heat or smoke generation, use this product at the values less than the maximum of the characteristics and performance that are assured in these specifications. -Do not dismantle or remodel the product. It could cause excessive exothermic heat or smoke generation. -Do not touch the terminal while turning on electricity. It could lead to an electric shock. -Use the external devices to function the emergency stop and interlock circuit. -Connect the wires or connectors securely. The loose connection could cause excessive exothermic heat or smoke generation. -Do not allow foreign matters such as liquid, flammable materials, metals to go into the inside of the product. It could cause excessive exothermic heat or smoke generation. -Do not undertake construction (such as connection and disconnection) while the power supply is on. It could lead to an electric shock.
Copyright / Trademarks
-This manual and its contents are copyrighted. -You may not copy this manual, in whole or part, without written consent of Panasonic
Industrial Devices SUNX Co., Ltd.
-Windows is a registered trademark of Microsoft Corporation in the United States and other countries. -All other company names and product names are trademarks or registered trademarks of their respective owners.
PLC_ORG

Introduction

Thank you for buying a Panasonic product. Before you use the product, please carefully read the installation instructions and the users manual, and understand their contents in detail to use the product properly.
Types of Manual

� There are different types of users manual for the FP0R series, as listed below. Please refer to a relevant manual for the unit and purpose of your use.

� The manuals can be downloaded on our website: https://industrial.panasonic.com/ac/e/dl_center/manual/

Unit name or purpose of use FP0R Control Unit FP0R Expansion I/O Unit

Manual name FP0R User's Manual

Manual code ARCT1F475E

FP Control Unit FP0H Control Unit

FP User's Manual FP0H User's Manual (Basic)

ARCT1F333E WUME-FP0HBAS

FP0R Analog Input Unit

FP0R Analog Output Unit

FP0R Analog I/O Unit User's Manual

WUME-FP0RAIO

FP0R Analog I/O Unit

Programming

FP-series Programming Manual

ARCT1F313E

Programming Software FPWIN GR

FPWIN GR Operation Guide (Non-free)

ARCT1F332E

Table of Contents
Table of Contents
1. Unit Functions and Restrictions ....................................... 1-1
1.1 Unit Functions and How They Work ......................................................1-2
1.1.1 Functions of Unit .....................................................................................1-2 1.1.2 Unit Type .................................................................................................1-2 1.1.3 Restrictions on Units Combination ..........................................................1-2
2. Names and Functions of Parts ......................................... 2-1
2.1 Analog Input Unit (FP0R-AD4/AD8).......................................................2-2
2.1.1 Names and Functions of Parts ................................................................2-2 2.1.2 Setting of Mode Switch............................................................................2-3
2.2 Analog Output Unit (FP0R-DA4)............................................................2-4
2.2.1 Names and Functions of Parts ................................................................2-4 2.2.2 Setting of Mode Switch............................................................................2-5
2.3 Analog I/O Unit (FP0R-A21/A42) ...........................................................2-6
2.3.1 Names and Functions of Parts ................................................................2-6 2.3.2 Setting of Mode Switch............................................................................2-7
3. Wiring ................................................................................. 3-1
3.1 Analog Input Unit (FP0R-AD4/AD8).......................................................3-2
3.1.1 Terminal Layout Diagrams ......................................................................3-2 3.1.2 Wiring of Analog Input Unit......................................................................3-3
3.2 Analog Output Unit (FP0R-DA4)............................................................3-4
3.2.1 Terminal Layout Diagrams ......................................................................3-4 3.2.2 Wiring of Analog Output Unit...................................................................3-5
3.3 Analog I/O Unit (FP0R-A21/A42) ...........................................................3-6
3.3.1 Terminal Layout Diagrams ......................................................................3-6 3.3.2 Wiring of Analog I/O Unit.........................................................................3-7
ii

Table of Contents
3.4 Common Precautions............................................................................ 3-8
3.4.1 Wiring of Analog I/O Unit.........................................................................3-8 3.4.2 Wiring of Power Cable (FP0R-DA4 / FP0R-A21 / FP0R-A42)................3-9
4. Creating Programs ............................................................. 4-1
4.1 I/O Allocation ........................................................................................ 4-2
4.1.1 I/O Allocation ........................................................................................... 4-2
4.2 Analog input unit (FP0R-AD4/AD8) ....................................................... 4-4
4.2.1 Reading of Input Data (Common to 12-bit Mode and 14-bit Mode) ........ 4-4 4.2.2 Setting of Input Range and Averaging Processing (14-bit Mode Only) ..4-6
4.3 Analog Output Unit (FP0R-DA4) ........................................................... 4-8
4.3.1 Writing of Digital Data for Output (12-bit Mode) ......................................4-8 4.3.2 Writing of Digital Data for Output (14-bit Mode) ....................................4-14 4.3.3 Switching of Output Range (14-bit Mode Only) ....................................4-20 4.3.4 Status Information (12-bit mode)...........................................................4-22 4.3.5 Status information (14-bit mode)...........................................................4-23
4.4 Analog I/O Unit (FP0R-A21/A42) ........................................................ 4-24
4.4.1 Reading of Analog Input Values (For A21) ...........................................4-24 4.4.2 Reading of Analog Input Values (For A42) ...........................................4-25 4.4.3 Writing of Digital Data for Output (12-bit Mode) ....................................4-28 4.4.4 Writing of Digital Data for Output (14-bit Mode) ....................................4-30 4.4.5 Switching of Input Range and Averaging Method (14-bit Mode Only)..4-32 4.4.6 Switching of Output Range (14-bit Mode Only) ....................................4-34
4.5 I/O Conversion Characteristics............................................................ 4-36
4.5.1 Input Conversion Characteristics (Voltage Range)...............................4-36 4.5.2 Input conversion Characteristics (Current Range)................................4-39 4.5.3 Output conversion Characteristics (Voltage Range).............................4-40 4.5.4 Output conversion Characteristics (Current Range) .............................4-42
5. Analog Input Averaging Processing................................. 5-1
5.1 Types of Averaging Processing............................................................. 5-2
iii

Table of Contents 5.1.1 Moving Average 10 Times.......................................................................5-2 5.1.2 Number of Averaging Times (64 times/128 times: 14-bit Mode Only) ....5-3
5.2 Setting of Averaging Processing............................................................5-4
5.2.1 Enabling Averaging Processing ..............................................................5-4
6. Specifications .................................................................... 6-1
6.1 Table of Specifications ..........................................................................6-2
6.1.1 General Specifications ............................................................................6-2 6.1.2 Input Specifications .................................................................................6-3 6.1.3 Output Specifications ..............................................................................6-4
6.2 Dimension .............................................................................................6-5
7. Compatibility with Conventional Models ......................... 7-1
7.1 Analog Input Unit ...................................................................................7-2
7.1.1 Compatibility with Conventional Models..................................................7-2 7.1.2 Points of Replacement ............................................................................7-3
7.2 Analog Output Unit ................................................................................7-4
7.2.1 Compatibility with Conventional Models..................................................7-4 7.2.2 Points of Replacement ............................................................................7-5
7.3 Analog I/O Unit ......................................................................................7-6
7.3.1 Compatibility with Conventional Models..................................................7-6 7.3.2 Points of Replacement ............................................................................7-7
iv

1
Unit Functions and Restrictions

Unit Functions and Restrictions

1.1 Unit Functions and How They Work

1.1.1 Functions of Unit
 Attaching these units to FP0R Control Unit enables analog I/O control. � It is selectable from five types of units in accordance with the intended use.
 Compatibility mode with conventional models is prepared. � The compatibility mode which enables smooth transition from conventional Analog I/O Units
(FP0-A80, FP0-A04V, FP0-A04I, FP0-A21) is prepared.
 14-bit processing mode is added. � The high-resolution 14-bit mode (1/16000) is added to the both input and output. Also,
ranges for each channel can be specified by user programs.

1.1.2 Unit Type

Name FP0R Analog Input unit FP0R Analog Output Unit FP0R Analog I/O Unit

Specifications 4-ch input 8-ch input 4-ch output 2-ch Input, 1-ch output 4-ch Input, 2-ch output

Product number AFP0RAD4 AFP0RAD8 AFP0RDA4 AFP0RA21 AFP0RA42

1.1.3 Restrictions on Units Combination
Up to three units can be connected with the control unit including other FP0/FP0R Expansion I/O Unit and intelligent unit.

1-2

2
Names and Functions of Parts

Names and Functions of Parts
2.1 Analog Input Unit (FP0R-AD4/AD8)
2.1.1 Names and Functions of Parts

 Names and Functions of Parts

No. Name

Description



Mode setting switch

 Used for selecting the input range, the number of input channels and whether to use the averaging processing or not.
 Used for selecting the operation mode (12-bit mode or 14-bit mode compatible with the conventional product FP0-A80).



Input terminal for CH0-CH3

Used for connecting the analog input device.



Input terminal for CH4-CH7

Used for connecting the analog input device.



Expansion connector

Used for connecting the expansion unit with the internal circuit of the Control Unit.



DIN rail installing groove

It can be installed to a 35-mm-wide DIN rail.



DIN hook

The unit can be installed to the DIN rail through one-touch operation.
This hook is also used for installing the unit to the Slim Type Mounting Plate (AFP0803).



Expansion hook

Used for securing expansion units.

2-2

2.1.2 Setting of Mode Switch

2.1 Analog Input Unit (FP0R-AD4/AD8)

 Setting of the mode switch

Item

No. Settings

1

Resolution

2

and FP0-A21-

compatible

12-bit mode

input range

OFF
OFF
FP0-A80compatible 12-bit mode 0 to 5V/0 to 20mA (Note 1)

ON OFF
FP0-A80compatible 12-bit mode -10 to +10V

OFF
ON
FP0-A80compatible 12-bit mode -100 to +100mV (Note 2)

ON ON
14-bit mode (Note 3)

The number
of converted CH

3

OFF

4

OFF

2ch (CH0-CH1)

ON
OFF
4ch (CH0-CH3)

OFF
ON
6ch (CH0-CH5)

ON
ON
8ch (CH0-CH7)

Input averaging 5

OFF: Averaging Not performed, ON: Averaging Performed

(Note 1): When the both switch No.1 and No.2 are OFF, the voltage/current is switched by the connection method. (Note 2): This has been implemented in version 1.2 or later. In version 1.1 or earlier, this is reserved for the system
(not available). (Note 3): In the 14-bit mode, the input range is set by writing into the operation memory WY with a user program. (Note 4): All the switches are set to OFF at the factory. (Note 5): The switch settings will be valid when the power is turned ON from OFF. The settings will not change if the
operation power supply is switched when it is ON.

2-3

Names and Functions of Parts
2.2 Analog Output Unit (FP0R-DA4)
2.2.1 Names and Functions of Parts

 Names and Functions of Parts

No. Name

Description



Mode setting switch

 Used for selecting the output range and the output method (voltage/current).
 Used for selecting the operation mode (12-bit mode or 14-bit mode compatible with the conventional product FP0-A04V/A04I).

Voltage output



terminal

for CH0-CH3

Current output



terminal

for CH0-CH3

 Used for connecting the analog output device.
 The voltage and current vary according to the settings of the mode switch. They can be selected for each channel.



Power connector

24 V DC is supplied from an external power supply.For connection, use the power supply cable (AFP0581) that comes with the Unit.



Expansion connector

Used for connecting the expansion unit with the internal circuit of the Control Unit.



DIN rail installing groove

It can be installed to a 35-mm-wide DIN rail.



DIN hook

The unit can be installed to the DIN rail through one-touch operation.
This hook is also used for installing the unit to the Slim Type Mounting Plate (AFP0803).



Expansion hook

Used for securing expansion units.

2-4

2.2.2 Setting of Mode Switch

2.2 Analog Output Unit (FP0R-DA4)

 Setting of the mode switch

Item

No. Settings

Resolution

1

OFFFP0-A04V/A04I compatible 12-bit mode, ON14-bit mode (Note 1)

2

CH0

3 Output switch
4

CH1 CH2

OFFVoltage output ONCurrent output (Note 2)

5

CH3

(Note 1): In the 14-bit mode, the output range is set by writing into the operation memory WY with a user program. (Note 2): For the both FP0-A04V/A04I compatibility 12-bit mode and 14-bit mode, the output can be selected for each
channel.
(Note 3): All the switches are set to OFF at the factory.
(Note 4): The switch settings will be valid when the power is turned ON from OFF. The settings will not change if the operation power supply is switched when it is ON.

KEY POINTS
� In the FP0-A04V/A04I compatibility 12-bit mode, the voltage output range is -10 to +10 V, and the current output range is 4 to 20 mA.

2-5

Names and Functions of Parts
2.3 Analog I/O Unit (FP0R-A21/A42)
2.3.1 Names and Functions of Parts

 Names and Functions of Parts

No. Name

Description



Mode setting switch

 Used for selecting the input and output ranges, the output method (voltage/current), and whether to perform the input averaing processing or not.
 Used for selecting the operation mode (12-bit mode or 14-bit mode compatible with the conventional product FP0-A21).

I/O terminal



Input for CH0CH1

Output for CH0

I/O terminal



Input for CH2CH3

Output for CH1

 Used for connecting the analog input device or analog output device.
 The voltage and current vary according to the settings of the mode switch. They can be selected for each channel.



Power connector

The supply 24 V DC from an external power supply. For connection, use the power supply cable (AFP0581) that comes with the Unit.



Expansion connector

Used for connecting the expansion unit with the internal circuit of the Control Unit.



DIN rail installing groove

It can be installed to a 35-mm-wide DIN rail.



DIN hook

The unit can be installed to the DIN rail through one-touch operation.
This hook is also used for installing the unit to the Slim Type Mounting Plate (AFP0803).



Expansion hook

Used for securing expansion units.

2-6

2.3.2 Setting of Mode Switch

2.3 Analog I/O Unit (FP0R-A21/A42)

 Setting of the mode switch

Item

No. Settings

1

OFF

ON

OFF

ON

I/O resolution

2

and FP0-A21-

compatible

12-bit mode

input range

OFF
FP0-A21compatible 12-bit mode 0 to 5V/0 to 20mA (Note 1)

OFF
FP0-A21compatible 12-bit mode -10 to +10V

ON
Reserved for system (Not settable)

ON
14-bit mode (Note 2

FP0-A21compatible 12-bit mode output range (Note 3)

3

OFF

4

OFF

FP0-A21compatible 12-bit mode 0 to 20mA

ON OFF
Reserved for system (Not settable)

OFF
ON
FP0-A21compatible 12-bit mode -10 to +10V

ON ON
Reserved for system (Not settable)

3

OFF

ON

OFF

ON

14-bit mode

4

OFF

output switch (Note 4)

CH0 Voltage output

CH1 Voltage

output

OFF
CH0 Current output CH1 Voltage output

ON
CH0 Voltage output CH1 Current output

ON
CH0 Current output CH1 Current output

Input averaging 5

OFF: Averaging Not performed, ON: Averaging Performed

(Note 1): When the both switch No.1 and No.2 are OFF, the input voltage/current is switched by the connection method.
(Note 2): In the 14-bit mode, the input and ouput ranges are set by writing into the operation memory WY with a user program.
(Note 3): The setting of "FP0-A21 compatibility 12-bit mode output switch" of the switches No.3 and No.4 is valid when the switch No.2 is off.
(Note 4): The setting of "14-bit mode output switch" of the switches No.3 and No.4 is valid when the both switch No.1 and No.2 are on. Switching CH1 is available only for A42 type.
(Note 5): All the switches are set to OFF at the factory.
(Note 6): The switch settings will be valid when the power is turned ON from OFF. The settings will not change if the operation power supply is switched when it is ON.

2-7

Names and Functions of Parts 2-8

3
Wiring

Wiring

3.1 Analog Input Unit (FP0R-AD4/AD8)

3.1.1 Terminal Layout Diagrams

Appearance

Pin No. 1 2 3 4 5 6 7 8 9

Name V0 I0 V1 I1 COM V2 I2 V3 I3

Function Analog input

CH0 CH0 CH1 CH1
CH2 CH2 CH3 CH3

Voltage signal input Current signal input Voltage signal input Current signal input Input common Voltage signal input Current signal input Voltage signal input Current signal input

Pin No.

Name

Function

1

V4

CH4

2

I4

CH4

3

V5

CH5

4

I5

CH5

5

COM

Analog input

6

V6

CH6

7

I6

CH6

8

V7

CH7

9

I7

CH7

(Note 1): For inputting a current signal, connect the V terminal and I terminal externally. (Note 2):Two COM terminals are connected internally.

Voltage signal input Current signal input Voltage signal input Current signal input Input common Voltage signal input Current signal input Voltage signal input Current signal input

3-2

3.1.2 Wiring of Analog Input Unit
Voltage input

3.1 Analog Input Unit (FP0R-AD4/AD8) Current input

Connect input instrument between V and COM terminal.

First, connect both V terminal and I terminal.
And then connect input instrument between it and COM terminal.

(Note 1): Two COM terminals are connected internally. (Note 2): Two cables or less must be inserted to COM terminal as above (two channel once combined). (Note 3): Recommend using the twisted and shielded communication cables for analog lines and grounding the end
of shield.

3-3

Wiring

3.2 Analog Output Unit (FP0R-DA4)

3.2.1 Terminal Layout Diagrams

Appearance

Pin No. 1 2 3 4 5 6 7 8 9

Name V0 COM VI COM V2 COM V3 COM NC

Function CH0 --CH1 ---
Analog output CH2 --CH3 ---
Unused

Voltage signal output Output common Voltage signal output Output common Voltage signal output Output common Voltage signal output Output common

Pin No.

Name

1

I0

2

COM

3

I1

4

COM

5

I2

6

COM

7

I3

8

COM

9

NC

(Note): All COM terminals are connected within the unit.

Function CH0 --CH1 ---
Analog output CH2 --CH3 ---
Unused

Current signal output Output common Current signal output Output common Current signal output Output common Current signal output Output common

3-4

3.2.2 Wiring of Analog Output Unit
 When the voltage output

3.2 Analog Output Unit (FP0R-DA4)

 When current output

(Note):All COM terminals of the voltage output terminal block and current output terminal block are connected internally.

3-5

Wiring

3.3 Analog I/O Unit (FP0R-A21/A42)

3.3.1 Terminal Layout Diagrams

Appearance

Pin No. 1 2 3 4 5 6 7 8 9

Name

IN

V0

IN

I0

IN

COM

IN

VI

IN

I1

FG

OUT

V0

OUT

I0

OUT COM

Function

CH0 Voltage signal input

CH0 Current signal input

Analog input

--- Input common

CH1 Voltage signal input

CH1 Current signal input

For shield connection of analog signal cable

CH0 Voltage signal output

Analog output CH0 Current signal output

--- Output common

Pin No.

Name

Function

1

IN

V0

CH2 Voltage signal input

2

IN

I0

CH2 Current signal input

3

IN

COM Analog input

--- Input common

4

IN

VI

CH3 Voltage signal input

5

IN

I1

CH3 Current signal input

6

FG

For shield connection of analog signal cable

7

OUT

V1

CH1 Voltage signal output

8

OUT

I1

Analog output CH1 Current signal output

9

OUT COM

--- Output common

(Note 1):For inputting a current signal to the analog input part, connect the V terminal and I terminal externally. (Note 2): All COM terminals are connected within the unit.

3-6

3.3.2 Wiring of Analog I/O Unit
 Analog input Voltage input

3.3 Analog I/O Unit (FP0R-A21/A42) Current input

Connect input instrument between IN/V and IN/COM terminal.
Voltage output

First,connect both IN/V terminal and IN/I terminal. And then connect input instrument between it and IN/COM terminal.
Current output

Connect output instrument between OUT/V and OUT/COM terminal.

Connect output instrument between OUT/I and OUT/COM terminal.

(Note 1):In the above figure, the input (CH0/CH1) and output CH0 are described as representative examples. The input (CH2/CH3) and output CH1 of A42 type also have the same terminal layouts.
(Note 2): All COM terminals are connected within the unit.

3-7

Wiring

3.4 Common Precautions

3.4.1 Wiring of Analog I/O Unit
 Wiring diagram Voltage input

Analog device

V I COM

Current input
Analog device

*1 V
I
COM

*1: For the current input, short-circuit the V and I terminals.

Voltage output

Current output

V I COM

Analog device

V I COM

Analog device

 Precautions on Wiring
� Use double-core twisted-pair shielded wires. It is recommended to ground the shielding. However, depending on the conditions of the external noise, it may be better not to ground the shielding.

� Do not have the analog input wiring close to AC wires, power wires, or load wires.

� Do not have the analog output wiring close to AC wires, power wires, or load wires.

 Compatible cable (twisted wire)

Size

Nominal cross section area

AWG#28-16

0.08 mm2 -1.25 mm2

 Special tools Manufacturer
Phoenix Contact Co.

Serial number (model number) SZS0.4�2.5(1205037)

3-8

3.4 Common Precautions
3.4.2 Wiring of Power Cable (FP0R-DA4 / FP0R-A21 / FP0R-A42)
The power needs to be supplied to the analog output unit (FP0R-DA4) and analog I/O unit (FP0R-A21/FP0R-A42) for operation.
 Precautions on Wiring � It is connected using the cable (Part number:AFP0581) supplied with the unit. � The input voltage range of the power supply for operating the unit is 20.4 to 28.8 VDC. � Use the power supply of SELV (Safety Extra-Low Voltage) and LIM (Limited Energy Circuit). � In order to avoid influence of noise, the function earth terminal must be grounded.
3-9

Wiring 3-10

4
Creating Programs

Creating Programs
4.1 I/O Allocation
4.1.1 I/O Allocation
� For analog input data and analog output data, input relays (WX) and output relays (WY) are read and written to the control unit.
� I/O numbers do not need to be set as I/O allocation is performed automatically. � I/O numbers vary according to installation positions. � The allocated contents vary according to the type of units and mode. For details, refer to the
chapters 4.2 to 4.4.
4-2

4.1 I/O Allocation

Type of unit

Allocation content

Expansion unit 1

I/O number
Expansion unit 2

Expansion unit 3

Input CH0/CH2/CH4/CH6

WX2 (X20~X2F)

WX4 (X40~X4F)

WX6 (X60~X6F)

FP0R Analog input unit AFP0RAD4 (Note 1) AFP0RAD8

Input CH1/CH3/CH5/CH7
Output 14-bit mode range setting
Output 14-bit mode range averaging setting

WX3 (X30~X3F)
WY2 (Y20~Y2F)
WY3 (Y30~Y3F)

WX5 (X50~X5F)
WY4 (Y40~Y4F)
WY5 (Y50~Y5F)

WX7 (X70~X7F)
WY6 (Y60~Y6F)
WY7 (Y70~Y7F)

FP0R Analog output unit AFP0RDA4

Input Status information (Power ON/OFF, Write state)
Output (Note 2) CH0/CH2

WX2 (X20~X2F)
WX3 (X30~X3F)
WY2 (Y20~Y2F)

WX4 (X40~X4F)
WX5 (X50~X5F)
WY4 (Y40~Y4F)

WX6 (X60~X6F)
WX7 (X70~X7F)
WY6 (Y60~Y6F)

Output (Note 2) CH1/CH3

WY3 (Y30~Y3F)

WY5 (Y50~Y5F)

WY7 (Y70~Y7F)

Input CH0/CH2

WX2 (X20~X2F)

WX4 (X40~X4F)

WX6 (X60~X6F)

FP0R Analog I/O unit AFP0RA21 (Note 3) AFP0RA42

Input CH1/CH3
Output (Note 4) CH0

WX3 (X30~X3F)
WY2 (Y20~Y2F)

WX5 (X50~X5F)
WY4 (Y40~Y4F)

WX7 (X70~X7F)
WY6 (Y60~Y6F)

Output (Note 4) CH1

WY3 (Y30~Y3F)

WY5 (Y50~Y5F)

WY7 (Y70~Y7F)

(Note 1):On AFP0RAD4, data of CH0 to CH3 is handled. (Note 2):It can be also used for switching the output range in the 14-bit mode. (Note 3):On AFP04A21, data of input CH0/CH1 and output CH0 is handled. (Note 4):It can be also used for the input range, averaging setting for input and switching the output range in the 14-
bit mode.

4-3

Creating Programs

4.2 Analog input unit (FP0R-AD4/AD8)

4.2.1 Reading of Input Data (Common to 12-bit Mode and 14-bit Mode)

The analog input unit uses the most significant 2 bits as a flag for switching channels and reads conversion data sequentially.
 I/O allocation (External input WX)

XXXXXXXXXXXXXXXX 3333333333333333 FEDCBA 9 8 7 6 5 4 3 2 1 0

XXXXXXXXXXXXXXXX 2222222222222222 FEDCBA 9 8 7 6 5 4 3 2 1 0

AA 10

Conversion data of CH1/CH3/CH5/CH7
(14 bit with sign)

Conversion data of CH0/CH2/CH4/CH6
(16 bit with sign)

Conversion data switch flag

A1 A0

0

0

0

1

1

0

1

1

WX3 CH1 data CH3 data CH5 data CH7 data

WX2 CH0 data CH2 data CH4 data CH6 data

 Role of conversion data switching flag � The analog input unit reads the analog input data of a maximum of 8 channels using two
memory areas (WX2 and WX3). The most significant two bits are allocated as a conversion data switching flag for distinguishing channels.
� Conversion data of even numbered channels can be read as 16-bit data as they are.
� As conversion data of odd numbered channels contain the conversion data switching flag of most significant two bits, mask processing needs to be applied to the data with a user program. Plus conversion data should be masked by "00", and minus conversion data should be masked by "11". Create a program in reference to the following programs.
(Example):For reading data of CH3

CH3 data 1 -1

WX3 0100 0000 0000 0001 0111 1111 1111 1111

Data after masking 0000 0000 0000 0001 1111 1111 1111 1111

Description
Most significant two bits are masked by "00".
Most significant two bits are masked by "11".

4-4

4.2 Analog input unit (FP0R-AD4/AD8)

 Sample program (Analog input: For ranges of -10 V to +10 V and -5 V to +5 V)
The following program shows the case that conversion data of the first expansion analog input unit (CH0 to CH7) is read and stored in DT0 to DT7.

X3F X3E

[ F0 MV , WX2 , DT0 ]



  X3D

[ F65 WAN , WX3 , H3FFF , DT1 ]




X3D

[ F66 WOR , WX3 , HC000 , DT1 ]





X3F X3E

[ F0 MV , WX2 , DT2 ]



  X3D

[ F65 WAN , WX3 , H3FFF , DT3 ]




X3D

[ F66 WOR , WX3 , HC000 , DT3 ]



X3F X3E 

[ F0 MV , WX2 , DT4 ]



  X3D

[ F65 WAN , WX3 , H3FFF , DT5 ]




X3D

[ F66 WOR , WX3 , HC000 , DT5 ]





X3F X3E

[ F0 MV , WX2 , DT6 ]



  X3D

[ F65 WAN , WX3 , H3FFF , DT7 ]




X3D

[ F66 WOR , WX3 , HC000 , DT7 ]





 X3F  X3E

The channels of conversion data read by turning on/off the conversion data switching flags X3F and X3E are distinguished.

 X3D

The signs of conversion data of read odd numbered channels are distinguished. When plus, OFF. When minus, ON.

 Conversion data of even numbered channels CH0/CH2/CH4/CH6 is transferred as is.



When the data of odd numbered channels CH1/CH3/CH5/HC7 is positive, the most significant two bits are masked by "00" with F65 WAN (AND) instruction, and the data is stored in DT1/DT3/DT5/DT7.



When the data of odd numbered channels CH1/CH3/CH5/HC7 is negative, the most significant two bits are masked by "11" with F66 WOR (OR) instruction, and the data is stored in DT1/DT3/DT5/DT7.

4-5

Creating Programs

 Sample program (For ranges of 0 to 10 V, 0 to 5 V and 0 to 20 mA)
The following program shows the case that conversion data of the first expansion analog input unit (CH0 to CH7) is read and stored in DT0 to DT7.

X3F X3E

[ F0 MV , WX2 , DT0 ]





[ F65 WAN , WX3 , H3FFF , DT1 ]



X3F X3E

[ F0 MV , WX2 , DT2 ]





[ F65 WAN , WX3 , H3FFF , DT3 ]



X3F X3E

[ F0 MV , WX2 , DT4 ]





[ F65 WAN , WX3 , H3FFF , DT5 ]



X3F X3E

[ F0 MV , WX2 , DT6 ]





[ F65 WAN , WX3 , H3FFF , DT7 ]



 X3F  X3E

The channels of conversion data read by turning on/off the conversion data switching flags X3F and X3E are distinguished.

 Conversion data of even numbered channels CH0/CH2/CH4/CH6 is transferred as is.



When the data of odd numbered channels CH1/CH3/CH5/HC7 is positive, the most significant two bits are masked by "00" with F65 WAN (AND) instruction, and the data is stored in DT1/DT3/DT5/DT7.

4.2.2 Setting of Input Range and Averaging Processing (14-bit Mode Only)
When selecting the 14-bit mode in the analog input unit (FP0R-AD4/AD8), the input range and averaging method can be switched by user programs. They both can be set for each channel.
 Default settings The default settings are as follows; Input range for all channels: -10 to +10 V, Averaging processing: Moving average processing 10 times (Max. and min. removal). The averaging processing is enabled when the mode switch No. 5 is ON.

4-6

4.2 Analog input unit (FP0R-AD4/AD8)

 I/O allocation (External output WY)
YYYYYYYYYYYYYYYY 3333333333333333 FEDCBA 9 8 7 6 5 4 3 2 1 0

YYYYYYYYYYYYYYYY 2222222222222222 FEDCBA 9 8 7 6 5 4 3 2 1 0

CH7 CH6 CH5 CH4 CH3 CH2 CH1 CH0 DDDDDDDDDDDDDDDD 1010101010101010

CH7 CH6 CH5 CH4 CH3 CH2 CH1 CH0 DDDDDDDDDDDDDDDD 1010101010101010

D1 D0 Averaging (Common to each channel)

0

0

Moving average 10 times (Max. and min. removal)

0 1 No. of averaging times: 64

1 0 No. of averaging times: 128

1 1 No averaging

D1 D0 Range (Common to each channel)
0 0 -10V to+10V 0 1 - 5V to +5V 1 0 0 to 10V 1 1 0 to 5V / 0 to 20mA

 Sample program (Switching input range)
The following program shows the case that the input range of CH0 to CH7 of the first expansion analog input unit is set.

R0

 DF  [ F0 MV , HFF00 , WY2

]





Input a constant for specifying an input range. Set it according to the I/O allocation on the previous page.



In the above sample program, HFF00 is input for setting Y2F-Y28 to 1 and Y27-Y20 to 0.

The range for CH4 to CH7 is 0 to 5 V/0 to 20 mA, and that for CH0 to CH3 is -10 V to +10 V.

 WY2

Set it for switching the input range.

 Sample program (Switching averaging processing method)
The following program shows the case that the averaging processing method of CH0 to CH7 of the first expansion analog input unit is set.

R0

 DF  [ F0 MV , HFF00 , WY3

]





Input a constant for specifying an averanging method. Set it according to the I/O allocation on the previous page.



In the above sample program, HFF00 is input for setting Y3F-Y38 to 1 and Y37-Y30 to 0.

The method of CH4 to CH7 is no averaging processing, and that of CH0 to CH3 is moving average 10

times.

 WY3

Set it for switching the averaging processing method.

4-7

Creating Programs

4.3 Analog Output Unit (FP0R-DA4)

4.3.1 Writing of Digital Data for Output (12-bit Mode)

With the analog output unit, the conversion output is performed by using two bits as the switching flags of output channels and writing data.
 I/O allocation (12-bit FP0-A04 Compatibility mode) Two bits, the bits C and D, are used as the switching flags.

XXXXXXXXXXXXXXXX 3333333333333333 FEDCBA 9 8 7 6 5 4 3 2 1 0

XXX X XXXXXXXXXXXX 222 2 222222222222 FEDC B A9 8 7 6 5 4 3 2 1 0

A A Output data of CH1/CH3

10

(12bit)

Output data switching flag

A1 A0

WY3

0

0 D/A conversion: None

0

1 CH1data

1

0 CH3 data

1

1 D/A conversion: None

A A Output data of CH0/CH2

10

(12bit)

Output data switching flag

A1 A0

WY2

0

0 D/A conversion: None

0

1 CH0 data

1

0 CH2 data

1

1 D/A conversion: None

 Writing conversion data
� The analog output unit writes the analog output digital data of a maximum of 4 channels to two memory areas (WY2/WY3) by user programs. Output data switching flags for specifying channels are allocated to the two bits of the memory area (WY2/WY3).

� In user programs, channels are specified by setting/resetting the output channel swtiching flag right after setting a digital value in the memory area.

� As CH0 and CH2, and CH1 and CH3 use each common memory area, data cannot be written to the unit in the same scan. Write data separated into two scans using scan pulse relay R9012, etc. In the channels which are not allocated to the same memory area, data can be written in the same scan.

Example
When CH0 and CH1 are used
When CH0 and CH2 are used

Processing Writing CH0 data in WY2 at the time of "n" scan Writing CH1 data in WY3 at the time of "n" scan
Writing CH0 data in WY2 at the time of "n" scan Writing CH2 data in WY2 at the time of "n+1" scan

Description
Data can be written in WY2 and WY3 at the time of "n" scan.
Data can be written in WY2 once in 2 scanning processes (at the time of "n" and "n+1" scan).

4-8

4.3 Analog Output Unit (FP0R-DA4)
 When data is regarded as an error � Digital data from the control unit is written in the analog output unit.
When more than the specified amount of data (-2000 to 2000 for voltage type Unit, 0 to 4000 for current type Unit) is written in the Unit, the Unit regards the data as an error and writes the error flag in WX2. As a result, the D/A conversion is not performed. (For analog output, the previous data remains unchanged. When the correct data is written, the error flag is cleared and D/A conversion is executed.) � Output data and output switching flag are allocated to the same I/O number. Data error can be detected successfully with the flags when the digital input value is within the range of K4096 to K4095. Even when the digital input value is out of the range, however, data conversion may be mistakenly conducted as shown below. To prevent this problem, be sure to set up the program to check the upper and lower limits of the digital value. (Example): When writing K4096 in WY2 K4096= 0001 0000 0000 0000 Analog Output Unit regards Y2D and Y2C as output switching flags: Y2D, Y2C = 01 <- CH0 Data =0000 0000 0000 <- 0 Consequently, the analog value that is equivalent to the digital value "0" is output from CH0.  Negative data � When the negative data (minus data) is written, set the output switching flag to two's complement data. When specifying the minus data in the decimal data, the data automatically becomes two's complement data. Then, set the output switching flag to two's complement data in the same way as the plus data. (Example): When writing -1 in CH0 -11111 1111 1111 1111 <- Two's complement Setting the output switching flag: 1101 1111 1111 1111 (Bit C=1, Bit D=0 for CH0)
4-9

Creating Programs

 Sample program (12-bit mode: For the range of -10 V to +10 V)
The following program shows the case that the data of DT0 to DT3 is converted and output to the CH0 to CH3 of the first expansion analog output unit. The range for checking digital values written in the output area is changed.

R9012

1>

<= K-2000 , DT0

[ F0 MV , DT0

>= K 2000 , DT0


, WY2

]

>1
Y2C
< SET >
Y2D
< RST >

CH0

R9012

1>

<= K-2000 , DT1

[ F0 MV , DT1

>= K 2000 , DT1


, WY3

]

>1
Y3C
< SET >
Y3D
< RST >

CH1

R9012

1>

<= K-2000 , DT2

[ F0 MV , DT2

>= K 2000 , DT2


, WY2

]

R9012

1>

<= K-2000 , DT3

[ F0 MV , DT3

>= K 2000 , DT3


, WY3

]

>1
Y2C
< RST >
Y2D
< SET >

CH2

>1
Y3C
< RST >
 Y3D
< SET >

CH3

4-10

4.3 Analog Output Unit (FP0R-DA4)

 R9012

Switches the timing of writing data by the scan pulse realy.

 Checks whether the lower limit value is within the data range that the unit can convert correctly.

 Checks whether the upper limit value is within the data range that the unit can convert correctly.

 Y2C  Y2D

Output data switching flags for even numbered channels. Channel numbers are specified by the two-bit switching flags right after setting conversion data by the transfer instruction F0 MV.

 Y3C  Y3D

Output data switching flags for odd numbered channels. Channel numbers are specified by the two-bit switching flags right after setting conversion data by the transfer instruction F0 MV.



It is executed when the scan pulse relay is ON and written data is within the upper and lower limits. Data for CH0 is set in DT0, and CH0 is specified by the output data switching flag.



It is executed when the scan pulse relay is ON and written data is within the upper and lower limits. Data for CH1 is set in DT1, and CH1 is specified by the output data switching flag.



It is executed when the scan pulse relay is OFF and written data is within the upper and lower limits. Data for CH2 is set in DT2, and CH2 is specified by the output data switching flag.



It is executed when the scan pulse relay is OFF and written data is within the upper and lower limits. Data for CH3 is set in DT3, and CH3 is specified by the output data switching flag.

KEY POINTS
� In the FP0-A04-compatible 12-bit mode, Y2C, Y2D, Y3C and Y3D are used as the output data switching flags. Note that the allocation is different from that in the 14-bit mode.

4-11

Creating Programs

 Sample program (12-bit mode: For the range of 4 to 20 mA)
The following program shows the case that the data of DT0 to DT3 is converted and output to the CH0 to CH3 of the first expansion analog output unit. The range for checking digital values written in the output area is changed.

R9012

1>

<= K 0 , DT0

[ F0 MV , DT0

>= K 4000 , DT0


, WY2

]

>1
Y2C
< SET >
Y2D
< RST >

CH0

R9012

1>

<= K 0 , DT1

[ F0 MV , DT1

>= K 4000 , DT1


, WY3

]

>1
Y3C
< SET >
Y3D
< RST >

CH1

R9012

1>

<= K 0 , DT2

[ F0 MV , DT2

>= K 4000 , DT2


, WY2

]

R9012

1>

<= K 0 , DT3

[ F0 MV , DT3

>= K 4000 , DT3


, WY3

]

>1
Y2C
< RST >
Y2D
< SET >

CH2

>1
Y3C
< RST >
 Y3D
< SET >

CH3

4-12

4.3 Analog Output Unit (FP0R-DA4)

 R9012

Switches the timing of writing data by the scan pulse realy.

 Checks whether the lower limit value is within the data range that the unit can convert correctly.

 Checks whether the upper limit value is within the data range that the unit can convert correctly.

 Y2C  Y2D

Output data switching flags for even numbered channels. Channel numbers are specified by the two-bit switching flags right after setting conversion data by the transfer instruction F0 MV.

 Y3C  Y3D

Output data switching flags for odd numbered channels. Channel numbers are specified by the two-bit switching flags right after setting conversion data by the transfer instruction F0 MV.



It is executed when the scan pulse relay is ON and written data is within the upper and lower limits. Data for CH0 is set in DT0, and CH0 is specified by the output data switching flag.



It is executed when the scan pulse relay is ON and written data is within the upper and lower limits. Data for CH1 is set in DT1, and CH1 is specified by the output data switching flag.



It is executed when the scan pulse relay is OFF and written data is within the upper and lower limits. Data for CH2 is set in DT2, and CH2 is specified by the output data switching flag.



It is executed when the scan pulse relay is OFF and written data is within the upper and lower limits. Data for CH3 is set in DT3, and CH3 is specified by the output data switching flag.

KEY POINTS
� In the FP0-A04-compatible 12-bit mode, Y2C, Y2D, Y3C and Y3D are used as the output data switching flags. Note that the allocation is different from that in the 14-bit mode.

4-13

Creating Programs

4.3.2 Writing of Digital Data for Output (14-bit Mode)

With the analog output unit, the conversion output is performed by using two bits as the switching flags of output channels and writing data.
 I/O allocation (14-bit mode) In the 14-bit mode, the most significant two bits are used as the switching flags. They are common to the flags for setting ranges.

YYYYYYYYYYYYYYYY 3333333333333333 FEDCBA 9 8 7 6 5 4 3 2 1 0

YYYYYYYYYYYYYYYY 2222222222222222 FEDCBA 9 8 7 6 5 4 3 2 1 0

A A Output data of CH1/CH3 (14bit)

10

Range setting

A A Output data of CH0/CH2 (14bit)

10

Range setting

A1 A0 Item 0 0 CH1 output range setting 0 1 CH1 output data 1 0 CH3 output data 1 1 CH3 output range setting

A1 A0 Item 0 0 CH0 output range setting 0 1 CH0 output data 1 0 CH2 output data 1 1 CH2 output range setting

 Writing data for conversion
� The analog output unit writes the analog output digital data of a maximum of 4 channels to two memory areas (WY2/WY3) by user programs. Output data switching flags for specifying channels are allocated to the two bits of the memory area (WY2/WY3).

� In user programs, channels are specified by setting/resetting the output channel swtiching flag right after setting a digital value in the memory area.

� As CH0 and CH2, and CH1 and CH3 use each common memory area, data cannot be written to the unit in the same scan. Write data separated into two scans using scan pulse relay R9012, etc. In the channels which are not allocated to the same memory area, data can be written in the same scan.

Example
When CH0 and CH1 are used
When CH0 and CH2 are used

Processing Writing CH0 data in WY2 at the time of "n" scan Writing CH1 data in WY3 at the time of "n" scan
Writing CH0 data in WY2 at the time of "n" scan Writing CH2 data in WY2 at the time of "n+1" scan

Description
Data can be written in WY2 and WY3 at the time of "n" scan.
Data can be written in WY2 once in 2 scanning processes (at the time of "n" and "n+1" scan).

4-14

4.3 Analog Output Unit (FP0R-DA4)
 When data is regarded as an error � Digital data from the control unit is written in the Analog Output Unit.
When more than the specified amount of data (-8000 to 8000 for � range, 0 to 16000 for + range) is written in the Unit, the Unit regards the data as an error and writes the error flag in WX2. As a result, the D/A conversion is not performed. For analog output, the previous data remains unchanged. When the correct data is written, the error flag is cleared and D/A conversion is executed. � Output data and output switching flag are allocated to the sane I/O number. Data error can be detected successfully with the flags when the digital input value is within the range of 8192 to +8191 for � range, 0 to 16383 for + range. Even when the digital input value is out of the range, however, data conversion may be mistakenly conducted as shown below. To prevent this problem, be sure to set up the program to check the upper and lower limits of the digital value. (Example): When writing K16384 in WY2 K16384= 0001 0000 0000 0000 Analog Output Unit regards Y2D and Y2C as output switching flags: Y2F, Y2E = 01 <- CH0 Data =00 0000 0000 0000 <- 0 Consequently, the analog value that is equivalent to the digital value "0" is output from CH0.  Negative data � When the negative data (minus data) is written, set the output switching flag to two's complement data. When specifying the minus data in the decimal data, the data automatically becomes two's complement data. Then, set the output switching flag to two's complement data in the same way as the plus data. (Example): When writing -1 in CH0 -11111 1111 1111 1111 <- Two's complement Setting the output switching flag: 0111 1111 1111 1111 (Bit F=1, Bit E=0 for CH0)
4-15

Creating Programs

 Sample program (14-bit mode: For ranges of -10 V to +10 V and -5 V to +5 V)
The following program shows the case that the data of DT0 to DT3 is converted and output to the CH0 to CH3 of the first expansion analog output unit. The range for checking digital values written in the output area is changed.

R9012

1>

<= K-8000 , DT0

[ F0 MV , DT0

>= K 8000 , DT0


, WY2

]

>1
Y2E
< SET >
 Y2F
< RST >

CH0

R9012

1>

<= K-8000 , DT1

[ F0 MV , DT1

>= K 8000 , DT1


, WY3

]

>1
Y3E
< SET >
 Y3F
< RST >

CH1

R9012

1>

<= K-8000 , DT2

[ F0 MV , DT2

>= K 8000 , DT2


, WY2

]

R9012

1>

<= K-8000 , DT3

[ F0 MV , DT3

>= K 8000 , DT3


, WY3

]

>1
Y2E
< RST >
 Y2F
< SET >

CH2

>1
Y3E
< RST >
 Y3F
< SET >

CH3

4-16

4.3 Analog Output Unit (FP0R-DA4)

 R9012

Switches the timing of writing data by the scan pulse realy.

 Checks whether the lower limit value is within the data range that the unit can convert correctly.

 Checks whether the upper limit value is within the data range that the unit can convert correctly.

 Y2E  Y2F

Output data switching flags for even numbered channels. Channel numbers are specified by the two-bit switching flags right after setting conversion data by the transfer instruction F0 MV.

 Y3E  Y3F

Output data switching flags for odd numbered channels. Channel numbers are specified by the two-bit switching flags right after setting conversion data by the transfer instruction F0 MV.



It is executed when the scan pulse relay is ON and written data is within the upper and lower limits. Data for CH0 is set in DT0, and CH0 is specified by the output data switching flag.



It is executed when the scan pulse relay is ON and written data is within the upper and lower limits. Data for CH1 is set in DT1, and CH1 is specified by the output data switching flag.



It is executed when the scan pulse relay is OFF and written data is within the upper and lower limits. Data for CH2 is set in DT2, and CH2 is specified by the output data switching flag.



It is executed when the scan pulse relay is OFF and written data is within the upper and lower limits. Data for CH3 is set in DT3, and CH3 is specified by the output data switching flag.

KEY POINTS
� In the 14-bit mode, Y2E, Y2F, Y3E, and Y3F are used as the output data switching flags. Note that the allocation is different from that in the FP0A04-compatible 12-bit mode.

4-17

Creating Programs

 Sample program (14-bit mode: For ranges of 0 to 10 V, 0 to 5 V, 0 to 20 mA and 4 to 20 mA)
The following program shows the case that the data of DT0 to DT3 is converted and output to the CH0 to CH3 of the first expansion analog output unit. The range for checking digital values written in the output area is changed.

R9012

1>

<= K 0 , DT0

[ F0 MV , DT0

>= K16000 , DT0


, WY2

]

>1
Y2E
< SET >
 Y2F
< RST >

CH0

R9012

1>

<= K 0 , DT1

[ F0 MV , DT1

>= K16000 , DT1


, WY3

]

>1
Y3E
< SET >
 Y3F
< RST >

CH1

R9012

1>

<= K 0 , DT2

[ F0 MV , DT2

>= K16000 , DT2


, WY2

]

R9012

1>

<= K 0 , DT3

[ F0 MV , DT3

>= K16000 , DT3


, WY3

]

>1
Y2E
< RST >
 Y2F
< SET >

CH2

>1
Y3E
< RST >
 Y3F
< SET >

CH3

4-18

4.3 Analog Output Unit (FP0R-DA4)

 R9012

Switches the timing of writing data by the scan pulse realy.

 Checks whether the lower limit value is within the data range that the unit can convert correctly.

 Checks whether the upper limit value is within the data range that the unit can convert correctly.

 Y2E  Y2F

Output data switching flags for even numbered channels. Channel numbers are specified by the two-bit switching flags right after setting conversion data by the transfer instruction F0 MV.

 Y3E  Y3F

Output data switching flags for odd numbered channels. Channel numbers are specified by the two-bit switching flags right after setting conversion data by the transfer instruction F0 MV.



It is executed when the scan pulse relay is ON and written data is within the upper and lower limits. Data for CH0 is set in DT0, and CH0 is specified by the output data switching flag.



It is executed when the scan pulse relay is ON and written data is within the upper and lower limits. Data for CH1 is set in DT1, and CH1 is specified by the output data switching flag.



It is executed when the scan pulse relay is OFF and written data is within the upper and lower limits. Data for CH2 is set in DT2, and CH2 is specified by the output data switching flag.



It is executed when the scan pulse relay is OFF and written data is within the upper and lower limits. Data for CH3 is set in DT3, and CH3 is specified by the output data switching flag.

KEY POINTS
� In the 14-bit mode, Y2E, Y2F, Y3E, and Y3F are used as the output data switching flags. Note that the allocation is different from that in the FP0A04-compatible 12-bit mode.

4-19

Creating Programs

4.3.3 Switching of Output Range (14-bit Mode Only)
When selecting the 14-bit mode in the analog output unit (FP0R-DA4), the output range can be switched by user programs. It can be set for each channel.  I/O allocation (External input WY)

YYYYYYYYYYYYYYYY 3333333333333333 FEDCBA 9 8 7 6 5 4 3 2 1 0

YYYYYYYYYYYYYYYY 2222222222222222 FEDCBA 9 8 7 6 5 4 3 2 1 0

A A Output data of CH1/CH3 (14bit)

10

Range setting

A A Output data of CH0/CH2 (14bit)

10

Range setting

A1 A0 Item 0 0 CH1 output range setting 0 1 CH1 output data 1 0 CH3 output data 1 1 CH3 output range setting

A1 A0 Item 0 0 CH0 output range setting 0 1 CH0 output data 1 0 CH2 output data 1 1 CH2 output range setting

Each output range is specified by setting the following constants.

Item Output range setting

Description
Input constants for specifying output ranges in the 14-bit area. H30 -10 to +10V / 0 to 20mA H31 -5 to +5V / 4 to 20mA H32 0 to 10V H33 0 to 5V

 Default settings
The default settings are as follows; Output range for all channels: Voltage output range: -10 to +10 V, Current output range: 0 to 20 mA.

4-20

4.3 Analog Output Unit (FP0R-DA4)

 Sample program (Switching output range: For CH0/CH1)
The following program shows the case that the output ranges of CH0 and CH1 of the first expansion analog input unit is set.

R0  DF 

[ F0 MV

, H30


R1  DF 

[ F0 MV

, H30


, WY2

, WY3


 Y2E

]

< RST >

 Y2F
< RST >

 Y3E

]

< RST >

 Y3F
< RST >

 Sample program (Switching output range: For CH2/CH3)
The following program shows the case that the output ranges of CH2 and CH3 of the first expansion analog input unit is set.

R2  DF 

[ F0 MV

, H30


R3  DF 

[ F0 MV

, H30


, WY2

, WY3


 Y2E

]

< SET >

 Y2F
< SET >

 Y3E

]

< SET >

 Y3F
< SET >



Input a constant for specifying an output range.

H30 -10 to +10V / 020mA H31 -5 to +5V / 420mA H32 0 to 10V H33 0 to 5V

 WY2 Set it for switching the output range of CH0 or HC2.

 WY3 Set it for switching the output range of CH1 or HC3.

 Y2E  Y2F

Output data switching flags for even numbered channels. When Y2E/Y2F is OFF, the output range of CH0 is set. When Y2E/Y2F is ON, the output range of CH2 is set.

 Y3E  Y3F

Output data switching flags for odd numbered channels. When Y3E/Y3F is OFF, the output range of CH1 is set. When Y3E/Y3F is ON, the output range of CH3 is set.

KEY POINTS
� For CH0/CH1, the output switching flags are reset. For CH2/CH3, the output switching flags are set.
� The output switching flags (bit F/bit E) are also used for setting output data. Create a program not to overwrite each other during an operation processing.

4-21

Creating Programs

4.3.4 Status Information (12-bit mode)

With the analog output unit, the following information can be monitored in the external input area WX.

 Status information I/O No. Description

X20

Analog output unit power 0: OFF, 1:ON

X21-X23 X24 X25 X26 X27

Used in the system CH0 data writing status CH1 data writing status CH2 data writing status CH3 data writing status

0:Normal, 1:Error (Note 1)
An error occurs when data written to the memory area (WY2/WY3) is out of each range, and the data conversion is not performed. The error is cleared when data within the range is written and the conversion is performed.

X28-X2F Used in the system
(Note 1): Output data and output CH switch flag are allocated to the same I/O number. Data error can be detected successfully with the flags when the digital input value is within the range of K-4096 to K4095. Even when the digital input value is out of the range, however, data conversion may be mistakenly conducted. To prevent this problem, be sure to set up the program to check the upper and lower limits of the digital value.

4-22

4.3 Analog Output Unit (FP0R-DA4)

4.3.5 Status information (14-bit mode)

With the analog output unit, the following information can be monitored in the external input area WX.

 Status information I/O No. Description

X20

Analog output unit power 0:OFF, 1:ON

X21-X23 Used in the system

X24

CH0 data writing status

0:Normal, 1:Error (Note 1)

X25

CH1 data writing status

An error occurs when data written to the memory area (WY2/WY3) is

out of each range, and the data conversion is not performed. The

X26

CH2 data writing status

error is cleared when data within the range is written and the

X27

CH3 data writing status

conversion is performed.

X28-X2F Used in the system

X30-X33 CH0 range setting state

The state of a specified output range can be monitored. The following constants are stored for each range. H0: -10V to +10V, 0mA to 20mA H1: -5V to +5V,4mA to 20mA H2: 0V to 10V H3: 0V to 5V

X34-X37 X38-X3B X3C-X3F

CH1 range setting state CH2 range setting state CH3 range setting state

Same as above. Same as above. Same as above.

(Note 1):As output data and the output switching flag are allocated to the same I/O, a data error is detected correctly only when a digital input value is within (K-8192 to K8191) for the �range and (K0 to K16383) for the + range. In the case of digital input values exceeding these ranges, data may be converted without an error, so always insert a program which checks the upper and lower limits.
(Note 2):In the 14-bit mode, the range setting state of each channel specified in WY2 and WY3 can be confirmed.

4-23

Creating Programs

4.4 Analog I/O Unit (FP0R-A21/A42)

4.4.1 Reading of Analog Input Values (For A21)

With the analog input unit A21, data can be read as signed 16-bit data as is.  I/O allocation (External input WX)

XXXXXXXXXXXXXXXX 3333333333333333 FEDCBA 9 8 7 6 5 4 3 2 1 0

XXXXXXXXXXXXXXXX 2222222222222222 FEDCBA 9 8 7 6 5 4 3 2 1 0

Conversion data of CH1 (16 bit with sign)

Conversion data of CH0 (16 bit with sign)

WX3 CH1data

WX2 CH0 data

 Sample program (For FP0R-A21)
The following program shows the case that conversion data of the first expansion analog input unit (FP0R-A21) (CH0 to CH7) is read and stored in DT0 to DT7.

R9010

[ F0 MV , WX2 , DT0 ]



[ F0 MV , WX3 , DT1 ]



 The conversion data of CH0 is stored into DT0.  The conversion data of CH1 is stored into DT1.

4-24

4.4 Analog I/O Unit (FP0R-A21/A42)

4.4.2 Reading of Analog Input Values (For A42)

The analog input unit uses the most significant 2 bits as a flag for switching channels and reads conversion data sequentially.
 I/O allocation (External input WX)

XXXXXXXXXXXXXXXX 3333333333333333 FEDCBA 9 8 7 6 5 4 3 2 1 0

XXXXXXXXXXXXXXXX 2222222222222222 FEDCBA 9 8 7 6 5 4 3 2 1 0

A A Conversion data of CH1/CH3

10

(14 bit with sign)

Conversion data of CH0/CH2 (16 bit with sign)

Conversion data switch flag

A1 A0

0

0

0

1

WX3 CH1 data CH3 data

WX2 CH0 data CH2 data

 Role of conversion data switching flag � The analog I/O unit (FP0R-A42) reads the analog input data of a maximum of 4 channels
using two memory areas (WX2 and WX3). The most significant two bits are allocated as a conversion data switching flag for distinguishing channels.
� Conversion data of even numbered channels can be read as 16-bit data as they are.
� As conversion data of odd numbered channels contain the conversion data switching flag of most significant two bits, mask processing needs to be applied to the data with a user program. Plus conversion data should be masked by "00", and minus conversion data should be masked by "11". Create a program in reference to the following programs.
(Example): For reading data of CH3

CH3 data 1 -1

WX3 0100 0000 0000 0001 0111 1111 1111 1111

Data after masking 0000 0000 0000 0001 1111 1111 1111 1111

Description
Most significant two bits are masked by "00".
Most significant two bits are masked by "11".

4-25

Creating Programs

 Sample program (FP0R-A42: For ranges of -10 V to +10 V and -5 V to +5 V)
The following program shows the case that conversion data of the first expansion analog I/O unit (FP0R-A42) (CH0 to CH3) is read and stored in DT0 to DT3.

X3E

[ F0 MV , WX2 , DT0 ]





X3D

[ F65 WAN , WX3 , H3FFF , DT1 ]




X3D

[ F66 WOR , WX3 , HC000 , DT1 ]





X3E

[ F0 MV , WX2 , DT2 ]





X3D

[ F65 WAN , WX3 , H3FFF , DT3 ]




X3D

[ F66 WOR , WX3 , HC000 , DT3 ]







X3E

The channels of conversion data read by turning on/off the conversion data switching flag X3E are distinguished.



X3D

The signs of read conversion data of CH1/CH3 are distinguished. When plus, OFF. When minus, ON.

 The conversion data of CH0 is transferred to DT0.



When the data of CH1 is positive, the most significant two bits are masked by "00" with F65 WAN (AND) instruction, and the data is stored in DT1.



When the data of CH1 is negative, the most significant two bits are masked by "11" with F66 WOR (OR) instruction, and the data is stored in DT1.

 The conversion data of CH2 is transferred to DT2.



When the data of CH3 is positive, the most significant two bits are masked by "00" with F65 WAN (AND) instruction, and the data is stored in DT3.



When the data of CH3 is negative, the most significant two bits are masked by "11" with F66 WOR (OR) instruction, and the data is stored in DT3.

4-26

4.4 Analog I/O Unit (FP0R-A21/A42)

 Sample program (FP0R-A42: (For ranges of 0 to 10 V, 0 to 5 V and 0 to 20 mA)

X3E

[ F0 MV , WX2 , DT0 ]





[ F65 WAN , WX3 , H3FFF , DT1 ]



X3E

[ F0 MV , WX2 , DT2 ]





[ F65 WAN , WX3 , H3FFF , DT3 ]





X3E

The channels of conversion data read by turning on/off the conversion data switching flags X3F and X3E are distinguished.

 The conversion data of CH0 is stored into DT0.



The most significant two bits are masked by "00" with F65 WAN (AND) instruction, and the data is stored in DT1. (Note)

 The conversion data of CH2 is stored into DT2.



The most significant two bits are masked by "00" with F65 WAN (AND) instruction, and the data is stored in DT3.

(Note):In the case of data of CH1, it can be replaced with the transfer instruction F0 MV as the conversion data switching flag is "00".

4-27

Creating Programs

4.4.3 Writing of Digital Data for Output (12-bit Mode)

The analog I/O unit (FP0R-A42/A21) writes data for conversion as the output switching flags are not contained in the 12-bit mode.

 I/O allocation (12-bit mode)

WY3

WY2

CH1 data

CH0 data

 Writing data for conversion
� The analog I/O unit writes the analog output digital data of a maximum of 2 channels to two memory areas (WY2/WY3) by user programs.

� Always insert a program which checks the upper and lower limits to make written digital values be within the allowable data ranges referring the programs described on the following pages.

Mode 12-bit mode

Range setting � range + range

Lower limit -2000 0

Upper limit 2000 4000

 Sample program (12-bit mode: -10V to +10V range)
The following program shows the case that the data of DT0 to DT1 is converted and output to the CH0 to CH1 of the first expansion analog I/O unit (FP0R-A42/A21).

R9010

1>

<= K-2000 , DT0


[ F0 MV

, DT0


>= K 2000 , DT0


, WY2

]



>1
CH0

R9010

1>

<= K-2000 , DT1


[ F0 MV

, DT1


>= K 2000 , DT1


, WY3

]



>1
CH1

4-28

4.4 Analog I/O Unit (FP0R-A21/A42)

 Sample program (12-bit mode: 0 to 20mA range)

R9010

1>

<= K 0 , DT0


[ F0 MV

, DT0


>= K 4000 , DT0


, WY2

]



R9010

1>

<= K 0 , DT1


[ F0 MV

, DT1


>= K 4000 , DT1


, WY3

]



>1
CH0
>1
CH1

 R9010

Always ON relay

 Checks whether the lower limit value is within the data range that the unit can convert correctly.

 Checks whether the upper limit value is within the data range that the unit can convert correctly.



It is executed when the execution condition is ON and written data is within the upper and lower limits. Data for CH0 is set in DT0, and CH0 is specified by the output data switching flag.



It is executed when the execution condition is ON and written data is within the upper and lower limits. Data for CH1 is set in DT1, and CH1 is specified by the output data switching flag.

4-29

Creating Programs

4.4.4 Writing of Digital Data for Output (14-bit Mode)

With the analog I/O unit (FP0R-A42/A21), the conversion output is performed by using two bits as the switching flags of output channels and writing data.
 I/O allocation (14-bit mode) In the 14-bit mode, the most significant two bits are used as the switching flags. They are common to the flags for setting ranges.

YYYY YYYYYYYYYYYY 3333 333333333333 FEDC BA9 8 7 6 5 4 3 2 1 0

YYYYYYYYYYYYYYYY 2222222222222222 FEDCBA 9 8 7 6 5 4 3 2 1 0

AA 10

Output data of CH1 (14bit) Input average setting: CH0-CH3 CH1 output range setting

AA 10

Output data of CH0 (14bit) Input average setting: CH0-CH3 CH0 output range setting

A1 A0 Item 0 0 CH1 output data setting 0 1 Input average setting 1 0 CH1 output range setting 1 1 CH1 output data setting

A1 A0 Item 0 0 CH0 output data setting 0 1 Input range setting 1 0 CH0 output range setting 1 1 CH0 output data setting

 Writing data for conversion
� The analog I/O unit writes the analog output digital data of a maximum of 2 channels to two memory areas (WY2/WY3) by user programs.

� Protect output switching flags from being overwritten by a subsequent program after writing data. Output data becomes invalid.
� Always insert a program which checks the upper and lower limits to make written digital values be within the allowable data ranges referring the programs described on the following pages.

Mode 14-bit mode

Range setting �range +range

Lower limit -8000 0

Upper limit 8000 16000

� For the analog I/O unit (FP0R-A21/A42), the data setting becomes valid when the output switching flags (Y2F, Y2E) or (Y3F, Y3E) are (0, 0) or (1, 1). When written digital values are within the range in the above table, it is not necessary to add programs for setting or setting the output switching flags after data transmission like the following programs because the output switching flags (Y2F, Y2E) or (Y3F, Y3E) are always (0, 0) or (1, 1).

4-30

4.4 Analog I/O Unit (FP0R-A21/A42)

 Sample program (14-bit mode: For ranges of -10 V to +10 V and -5 V to +5 V)
The following program shows the case that the data of DT0 to DT1 is converted and output to the CH0 to CH1 of the first expansion analog I/O unit (FP0R-A42/A21). The range for checking digital values written in the output area is changed.

R9010

1>

<= K-8000 , DT0


[ F0 MV

, DT0


>= K 8000 , DT0


, WY2

]



>1
CH0

R9010

1>

<= K-8000 , DT1


[ F0 MV

, DT1


>= K 8000 , DT1


, WY3

]



>1
CH1

 Sample program (14-bit mode: (For ranges of 0 to 10 V, 0 to 5 V, 0 to 20 mA and 4 to 20 mA)

R9010

1>

<= K 0 , DT0

[ F0 MV , DT0

>= K16000 , DT0


, WY2

]

>1
CH0





R9010

1>

<= K 0 , DT1


[ F0 MV

, DT1


>= K16000 , DT1


, WY3

]



>1
CH1

 R9010

Always ON relay

 Checks whether the lower limit value is within the data range that the unit can convert correctly.

 Checks whether the upper limit value is within the data range that the unit can convert correctly.



It is executed when the execution condition is ON and written data is within the upper and lower limits. Data for CH0 is set in DT0, and CH0 is specified by the output data switching flag.



It is executed when the execution condition is ON and written data is within the upper and lower limits. Data for CH1 is set in DT1, and CH1 is specified by the output data switching flag.

4-31

Creating Programs

4.4.5 Switching of Input Range and Averaging Method (14-bit Mode Only)

When selecting the 14-bit mode in the analog I/O unit (FP0R-A21/A42), the input range or averaging method for each channel can be set by user programs.
 I/O allocation (External output WY)

YYYY YYYYYYYYYYYY 3333 333333333333 FEDC BA9 8 7 6 5 4 3 2 1 0

YYYYYYYYYYYYYYYY 2222222222222222 FEDCBA 9 8 7 6 5 4 3 2 1 0

AA 10

Output data of CH1 (14bit) Input average setting: CH0-CH3 CH1 output range setting

AA 10

Output data of CH0 (14bit) Input average setting: CH0-CH3 CH0 output range setting

A1 A0 Item 0 0 CH1 output data setting 0 1 Input average setting 1 0 CH1 output range setting 1 1 CH1 output data setting

A1 A0 Item 0 0 CH0 output data setting 0 1 Input range setting 1 0 CH0 output range setting 1 1 CH0 output data setting

Set the contents allocated to CH0 to CH3 for the input averaging processing and input range by replacing the following 8-bit data with Hex data.

YYYY YYYYYYYYYYYY 3333 333333333333 FEDC BA9 8 7 6 5 4 3 2 1 0

YYYYYYYYYYYYYYYY 2222222222222222 FEDCBA 9 8 7 6 5 4 3 2 1 0

AA 10

Specify 0

CH3 CH2 CH1 CH0 DDDDDDDD 10101010

AA 10

Specify 0

CH3 CH2 CH1 CH0 DDDDDDDD 10101010

D1 D0 Averaging (Common to each channel)

0

0

Moving average 10 times (Max. and min. removal)

0 1 No. of averaging times: 64

1 0 No. of averaging times: 128

1 1 No averaging

D1 D0 Range (Common to each channel)
0 0 -10V to +10V 0 1 -5V to +5V 1 0 0 to 10V 1 1 0 to 5V / 0 to 20mA

 Default settings
The default settings are as follows; Input range for all channels: -10 to +10 V, Averaing processing: Moving average processing 10 times (Max. and min. removal). The averaging processing is enabled when the mode switch No. 5 is ON.

4-32

4.4 Analog I/O Unit (FP0R-A21/A42)

 Sample program (Input range switching)
The following program shows the case that the input range of CH0 to CH3 of the first expansion analog I/O unit (FP0R-A42/A21) is set.

R0  DF 

[ F0 MV

, HF0


, WY2


Y2E

]

< SET >

Y2F < RST >

Input a constant for specifying an input range. Set it according to the I/O allocation on the previous page.
 In the above sample program, HF0 is input for setting Y27-Y24 to 1 and Y23-Y20 to 0.
The range for CH3/CH2 is 0 to 5 V/0 to 20 mA, and that for CH1/CH0 is -10 V to +10 V.
 WY2 Set it for switching the input range.

 Y2E  Y2F

Data switching flags. When Y2E is ON and Y2F is OFF, the input range is set.

 Sample program (Input averaging switching)
The following program shows the case that the averaging processing method of CH0 to CH3 of the first expansion analog I/O unit (FP0R-A42/A21) is set.

R0  DF 

[ F0 MV

, HF0


, WY3


Y3E

]

< SET >

Y3F

< RST >

Input a constant for specifying an averanging method. Set it according to the I/O allocation on the previous page.
 In the above sample program, HF0 is input for setting Y37-Y34 to 1 and Y33-Y30 to 0.
The method of CH3/CH2 is no averaging processing, and that of CH1/CH0 is moving average 10 times.

 WY3 Set it for switching the averaging processing method.

 Y3E  Y3F

Data switching flags. When Y3E is ON and Y3F is OFF, the averaging method of input is set.

KEY POINTS
� The input range setting and the input averaging method for four channels are set collectively.

4-33

Creating Programs

4.4.6 Switching of Output Range (14-bit Mode Only)

When selecting the 14-bit mode in the analog I/O unit (FP0R-A21/A42), the output range can be switched by user programs. It can be set for each channel.
 I/O allocation (External output WY)

YYYY YYYYYYYYYYYY 3333 333333333333 FEDC BA9 8 7 6 5 4 3 2 1 0

YYYYYYYYYYYYYYYY 2222222222222222 FEDCBA 9 8 7 6 5 4 3 2 1 0

AA 10

Output data of CH1 (14bit) Input average setting: CH0-CH3 CH1 output range setting

AA 10

Output data of CH0 (14bit) Input average setting: CH0-CH3 CH0 output range setting

A1 A0 Item 0 0 CH1 output data setting 0 1 Input a average setting 1 0 CH1 output range setting 1 1 CH1 output data setting

A1 A0 Item 0 0 CH0 output data setting 0 1 Input range setting 1 0 CH0 output range setting 1 1 CH0 output data setting

Each output range is specified by setting the following constants.

Item Output range setting

Description
Input constants for specifying output ranges in the 14-bit area. H30 10 to +10V / 0 to 20mA H31 5 to +5V / 4 to 20mA H32 0 to 10V H33 0 to 5V

 Default settings
The default settings are as follows; Output range for all channels: Voltage output range: -10 to +10 V, Current output range: 0 to 20 mA.

KEY POINTS
� The output ranges are set for two channels separately.

4-34

4.4 Analog I/O Unit (FP0R-A21/A42)

 Sample program (Output range switching)
The following program shows the case that the input range of CH0 and CH1 of the first expansion analog I/O unit (FP0R-A21/A42) is set.

R0  DF 

[ F0 MV

, H30


R0  DF 

[ F0 MV

, H30


, WY2

, WY3


Y2E

]

< RST >

Y2F < SET >

Y3E

]

< RST >

Y3F < SET >



Input a constant for specifying an output range.

H30 -10 to +10V / 0 to 20mA H31 -5 to +5V / 4 to 20mA H32 0 to 10V H33 0 to 5V

 WY2 Set it for switching the output range of CH0.

 WY3 Set it for switching the output range of CH1.

 Y2E  Y2F

Output data switching flag for CH0. When Y2E is OFF and Y2F is ON, the output range of CH0 is set.

 Y3E  Y3F

Output data switching flag for CH1. When Y3E is OFF and Y3F is ON, the output range of CH1 is set.

4-35

Creating Programs

4.5 I/O Conversion Characteristics

4.5.1 Input Conversion Characteristics (Voltage Range)

 -10V to +10V DC input Conversion characteristic

Correspondence table of A/D Conversion values

Input voltage (V)
-10.0 -5.0
0 5.0 10.0

Digital value

12-bit

14-bit

-2000

-8000

-1000

-4000

0

0

1000

4000

2000

8000

If the input value is out of the range

Input voltage (V)

Digital value

12-bit

14-bit

-10V or less

-2000

-8000

10V or more

2000

8000

(Note 1): In the analog input unit Ver.1.1 or earlier or the analog I/O unit, a digital conversion value equivalent to the analog input of approx. 2 V is saved in the device (WX), for the channels to which no input is connected. The analog input unit Ver.1.2 or later are equivalent to approx. 0V.

 -5V to +5V DC input (14-bit mode only) Conversion characteristic

Correspondence table of A/D Conversion values

Input voltage (V)

Digital value 14-bit

-5.0

-8000

-2.5

-4000

0

0

2.5

4000

5.0

8000

If the input value is out of the range

Input voltage (V)

Digital value 14-bit

-5V or less 5V or more

-8000 8000

(Note 1): In the analog input unit Ver.1.1 or earlier or the analog I/O unit, a digital conversion value equivalent to the analog input of approx. 2 V is saved in the device (WX), for the channels to which no input is connected. The analog input unit Ver.1.2 or later are equivalent to approx. 0V.

4-36

4.5 I/O Conversion Characteristics

 0V to 10V DC input (14-bit mode only) Conversion characteristic

Correspondence table of A/D Conversion values

Input voltage (V)

Digital value 14-bit

0.0

0

2.5

4000

5.0

8000

7.5

12000

10.0

16000

Processing if the range is exceeded

Input voltage (V)
0V or less (including negative value) 10V or more

Digital value 14-bit 0 16000

(Note 1): In the analog input unit Ver.1.1 or earlier or the analog I/O unit, a digital conversion value equivalent to the analog input of approx. 2 V is saved in the device (WX), for the channels to which no input is connected. The analog input unit Ver.1.2 or later are equivalent to approx. 0V.

 0V to 5V DC input Conversion characteristic

Correspondence table of A/D Conversion values

Input voltage (V)

Digital value

12-bit

14-bit

0.0

0

0

1.25

1000

4000

2.5

2000

8000

3.75

3000

12000

5.0

4000

16000

Processing if the range is exceeded

Input voltage (V)

Digital value

12-bit

14-bit

0V or less (including negative value)
5V or more

0 4000

0 16000

(Note 1): In the analog input unit Ver.1.1 or earlier or the analog I/O unit, a digital conversion value equivalent to the analog input of approx. 2 V is saved in the device (WX), for the channels to which no input is connected. The analog input unit Ver.1.2 or later are equivalent to approx. 0V.

4-37

Creating Programs

 -100mV to +100mV DC input (12-bit mode only)

Conversion characteristic

Correspondence table of A/D Conversion values

Input voltage (mV)
-100.0 -75.0 -50.0 -25.0 0.0 +25.0 +50.0 +75.0 +100.0

Digital value 12-bit -2000 -1500 -1000 -500 0 +500 +1000 +1500 +2000

Processing if the range is exceeded

Input voltage (V) -100mV or less

Digital value 12-bit -2000

+100mV or more

+2000

(Note 1): Installed in the unit of Ver.1.2 and after (only 12-bit mode).

4-38

4.5 I/O Conversion Characteristics

4.5.2 Input conversion Characteristics (Current Range)

 0mA to 20mA DC input Conversion characteristic

Correspondence table of A/D Conversion values

Input current (mA)
0.0 5.0 10.0 15.0 20.0

Digital value

12-bit

14-bit

0

0

1000

4000

2000

8000

3000

12000

4000

16000

Processing if the range is exceeded

Input current (mA)

Digital value

12-bit

14-bit

0mA or less(including negative value)

0

0

20mA or more

4000

16000

4-39

Creating Programs

4.5.3 Output conversion Characteristics (Voltage Range)

 -10V to 10V DC output Conversion characteristic

Correspondence table of D/A Conversion values

Digital value

12-bit

14-bit

-2000

-8000

-1000

-4000

0

0

1000

4000

2000

8000

Output voltage (V)
-10.0 -5.0 0.0 5.0 10.0

Processing if the range is exceeded

Digital input value

Output voltage (V)

-2001 or less 2001 or more

-8001 or less 8001 or more

Refer to the following notes.

 -5V to 5V DC output (14-bit mode only)

Conversion characteristic

Correspondence table of D/A Conversion values

Digital value 14-bit -8000 -4000 0 4000 8000

Output voltage (V)
-5.0 -2.5 0.0 2.5 5.0

Processing if the range is exceeded

Digital input value

Output voltage (V)

-8001 or less 8001 or more

Refer to the following notes.

KEY POINTS

�
Mode 12-bit mode
14-bit mode

The following operations are performed when a value exceeding the allowable range is written. Always insert a program for checking the upper and lower limits right before a program for writing data.

Data range

Description

-2049 or less

2048 or more

The bits D and C of a written value may be regarded as channel switching flags and converted to an unintended value and output.

-2048 to -2001

2001 to 2047

The value does not change and the previous value is held.

-8193 or less

8192 or more

The bits F and E of a written value may be regarded as channel switching flags and converted to an unintended value and output.

-8192 to -8001

8001 to 8191

The value does not change and the previous value is held.

4-40

4.5 I/O Conversion Characteristics

 0V to 10V DC output (14-bit mode only) Conversion characteristic
 0V to 5V DC output (14-bit mode only) Conversion characteristic

Correspondence table of D/A Conversion values

Digital value 14-bit

Output voltage (V)

0

0.0

4000

2.5

8000

5.0

12000

7.5

16000

10.0

Processing if the range is exceeded

Digital input value

Output voltage (V)

Including negative value 16001 or more

Refer to the following notes.

Correspondence table of D/A Conversion values

Digital value 14-bit

Output voltage (V)

0

0.0

4000

1.25

8000

2.5

12000

3.75

160000

5.0

Processing if the range is exceeded

Digital input value

Output voltage (V)

Including negative value 16001 or more

Refer to the following notes.

KEY POINTS

�
Mode 14-bit mode

The following operations are performed when a value exceeding the allowable range is written. Always insert a program for checking the upper and lower limits right before a program for writing data.

Data range

Description

-1 or less

16384 or more

The bits F and E of a written value may be regarded as channel switching flags and converted to an unintended value and output.

---

16001 to 16383

The value does not change and the previous value is held.

4-41

Creating Programs

4.5.4 Output conversion Characteristics (Current Range)

 0mA to 20mA output Conversion characteristic

Correspondence table of D/A Conversion values

Digital value

12-bit

14-bit

Output current (mA)

0

0

0.0

1000

4000

5.0

2000

8000

10.0

3000

12000

15.0

4000

16000

20.0

Processing if the range is exceeded

Digital value

12-bit

14-bit

Output current (mA)

Including negative value
4001 or more

Including negative value
16001 or more

Refer to the notes on the next page.

(Note):For the 12-bit mode, the values for FP0R-A21/A42 are shown. For FP0R-DA4 (12-bit mode), the range is 4 mA to 20 mA.

 4mA to 20mA output Conversion characteristic

Correspondence table of D/A Conversion values

Digital value

12-bit

14-bit

Output current (mA)

0

0

4.0

1000

4000

8.0

2000

8000

12.0

3000

12000

16.0

4000

16000

20.0

Processing if the range is exceeded

Digital value

12-bit

14-bit

Including negative value
4001 or more

Including negative value
16001 or more

Output current (mA)
Refer to the notes on the next page.

(Note):For the 12-bit mode, the values for FP0R-DA4 are shown. For FP0R-A21/A42 (12-bit mode), the range is 0 mA to 20 mA.

4-42

4.5 I/O Conversion Characteristics

KEY POINTS

�
Mode 12-bit mode
14-bit mode

The following operations are performed when a value exceeding the allowable range is written. Always insert a program for checking the upper and lower limits right before a program for writing data.

Data range

Description

-4097 or less

4096 or more

The bits D and C of a written value may be regarded as channel switching flags and converted to an unintended value and output.

-4096 to -1

4001 to 4095

The value does not change and the previous value is held.

-1 or less

16384 or more

The bits F and E of a written value may be regarded as channel switching flags and converted to an unintended value and output.

---

16001 to 16383

The value does not change and the previous value is held.

4-43

Creating Programs 4-44

5
Analog Input Averaging Processing

Analog Input Averaging Processing
5.1 Types of Averaging Processing
5.1.1 Moving Average 10 Times
When the averaging function is set to on, the internal processing of the analog unit is as shown in the diagram below  Moving Average Processing � Averages and stores converted values obtained by sampling. � Calculates the average of data for past eight times excluding the maximum and minimum
values from the latest data, and stores it in the external input area (WX). If a fraction results from the calculation, it is rounded off. Operation item Timing chart
Analog input value Reading time
Internal processing for ch0
Digital input value (Note):The above figure shows the processing when the number of input channels is two.
5-2

5.1 Types of Averaging Processing

5.1.2 Number of Averaging Times (64 times/128 times: 14-bit Mode Only)
Only when the 14-bit mode is selected, the number of averaging times is selectable.
 Processing when selecting the number of averaging times � Averages and stores converted values obtained by sampling. � When the number of obtained analog input data reaches the specified number of averaging
times (64 or 128 times), performs the average processing and stores the result as a digital value. � Stores the first obtained data in the external input area (WX) when the number of obtained data is less than the number of averaging times.

cde b a

f

g h

i

j

k

opq

n

r

m

l

Analog signal

Analog input processing

Average of a to e Average of f to j Average of k to o

Analog input data
(Note):To make the explanation simple, the above figure shows the processing which averages data by five times. In the actual processing, calculation is carried out with the average of data for 64 times or 128 times.
 Setting method of the number of averaging times processing The number of averaging times can be changed by being written to the output relay area (WY) in a user program.

5-3

Analog Input Averaging Processing
5.2 Setting of Averaging Processing
5.2.1 Enabling Averaging Processing
The averaging processing can be set by the following methods.  12-bit FP0-A80 compatibility mode / FP0-A21 compatibility mode The averaging processing is enabled only when the mode switch No.5 of the unit is ON. � The averaging method of all channels is the moving average 10 times (Max. and min. removal).  14-bit mode � The averaging processing is enabled only when the mode switch No.5 of the unit is ON. � The default is the moving average 10 times (Max. and min. removal). � It is possible to specify the averaging method (Moving average 10 times / No. of averaging times: 64 / No. of averaging times: 128 / No averaging) by a user program for each channel.
REFERENCE
� For details of the setting method of the mode switch, refer to the chapter 2 "Names and Functions of Parts".
� For details of the programming method for the analog input unit (FP0RAD4/AD8), refer to "4.2.2 Setting of Input Range and Averaging Processing (14-bit Mode Only)".
� For details of the programming method for the analog I/O unit (FP0RA21/A42), refer to PAGEREF"4.4.5 Switching of Input Range and Averaging Method (14-bit Mode Only)".
5-4

6
Specifications

Specifications

6.1 Table of Specifications

6.1.1 General Specifications

 Specifications Item

Description

Rated operating voltage

24 V DC

Operating voltage range 20.4 to 28.8 V DC (Unit input voltage)

Rated current consumption

AFP0RDA4:180 mA or less AFP0RA21: 80 mA or less AFP0RA42:120 mA or less

Allowable instantaneous power-off time

10ms

Current consumption increase of control unit

AFP0RAD4/ AFP0RAD8 AFP0RDA4 AFP0RA21/ AFP0RA42

:45 mA or less (Note 1) :10 mA or less :10 mA or less

Ambient temperature

0�C to +55�C

Storage temperature

-40�C to +70�C

Ambient humidity

10 to 95%RH (at 25�C non condensing)

Storage humidity

10 to 95%RH (at 25�C non condensing)

Breakdown voltage (Note 2)

Between I/O terminal and control unit power supply terminal / ground terminal
AFP0RA21/AFP0RA42 Between analog input terminal and analog output terminal

500 V AC for 1 minute

Insulation resistance

Between I/O terminal and control unit power supply terminal / ground terminal
<AFP0RA21/AFP0RA42> Between analog input terminal and analog output terminal

Min. 100 M (measured with a 500V DC megger)

Vibration resistance

Based on JIS B 3502 and IEC 61131-2: 5 to 8.4 Hz, half amplitude 3.5 mm 8.4 to 150 Hz, constant acceleration 9.8 m/s2 X, Y and Z axes, 10 sweeps (1 octave/mm)

Shock resistance

Based on JIS B 3502 and IEC 61131-2 147 m/s2 or more, X, Y and Z axes, 3 times

Noise immunity

1000V [P-P] with pulse widths 50 ns, 1s (using noise simulator) (Applied to the power supply part of the control unit)

Operating condition

Must be free from corrosive gases and excessive dust.

EU Directive applicable standard

EMC Directive: EN 61131-2

Overvoltage category

Category II

Pollution level

Pollution level 2

Weight

AFP0RAD4/ AFP0RA21

:Approx. 75 g

AFP0RAD8/ AFP0RDA4/ AFP0RA42 :Approx. 85 g

(Note 1): In the case of the unit of Ver.1.2 and after; 20 mA for the unit of Ver.1.1 or older. (Note 2): Cutoff current: 5 mA (factory default setting).

6-2

6.1 Table of Specifications

6.1.2 Input Specifications

Item Number of channels

Input range Voltage (Resolution)

Current

-10 to 10 V DC

-5 to 5 V DC

Digital input range (Note 2)

0 to 10 V DC 0 to 5 V DC
-100 to 100 mV DC (Note 4)

0 to 20 mA

Conversion speed

Overall precision

Voltage

At �100 mV (Note 4)
Others

Description

Analog input unit

Analog I/O unit

AFP0RAD4

AFP0RAD8

AFP0RA21

AFP0RA42

4 ch

8 ch

2 ch

4 ch

-10 to 10 V DC (Resolution:1/16,000) (Note 1)

-5 to 5 V DC

(Resolution:1/16,000)

0 to 10 V DC

(Resolution:1/16,000)

0 to 5 V DC

(Resolution:1/16,000)

-100 to 100 mV DC (Resolution:1/4,000) (Note 4)

-

0 to 20 mA

(Resolution:1/16,000) (Note1)

K -2000 to K2000 (12-bit mode)/ K-8000 to K8000 (14-bit mode)

K-8000 to K8000 (14-bit mode only)

K0 to K16000 (14-bit mode only)

K -2000 to K2000 (12-bit mode only) -

K0 to K4000 (14-bit mode)/ K0 to K16000 (14-bit mode)

2 ms / All channels (Note 3)

�0.6%F.S. or less (at 25�C) �1.0%F.S. or less (at 0 to +55�C)

-

�0.2%F.S. or less (at 25�C) �0.4%F.S. or less (at 0 to +55�C)

Current

�0.3%F.S. or less (at 25�C) �0.6%F.S. or less (at 0 to +55�C)

Input impedance
Absolute maximum input

Voltage Current Voltage
Current

Approx.1 M Approx.250  -15 to 15 V (Voltage input)
-30 to 30 mA (Current input)

Between output

Insulation method

terminal to internal circuit
Between the

channels

FP0 Compatibility

Photocoupler Insulation-type DC/DC converter
Uninsulated Switched to the 12-bit operation by the dip switch.

External connection method

Connection terminal block connection

(Note 1):The resolution in the 12-bit mode is 1/4,000.

(Note 2): In the analog input unit Ver.1.1 or older or the analog I/O unit, a digital conversion value equivalent to the analog input of approx. 2 V is saved in the device (WX), for the channels to which no input is connected. The analog input unit Ver.1.2 or after are equivalent to approx. 0 V.

(Note 3): The time shown in the figure below is required to reflect analog input values in the input device area (WX) read by the control unit. The following figure shows the values when the range of -10 to +10 V is used.

(Note 4): Installed in the unit of Ver.1.2 and after (only 12-bit mode)
6-3

Specifications

6.1.3 Output Specifications

Item

Number of outputs

Output range (Resolution
Digital output range

Voltage
Current -10 to 10 V DC -5 to 5 V DC 0 to 10 V DC 0 to 5 V DC 0 to 20 mA 4 to 20 mA

Description

Analog output unit

Analog I/O unit

AFP0RDA4

AFP0RA21

AFP0RA42

4 ch

1 ch

2 ch

-10 to 10 V DC -5 to 5 V DC 0 to 10 V DC 0 to 5 V DC

(Resolution:1/16,000) (Note 1) (Resolution:1/16,000) (Resolution:1/16,000) (Resolution:1/16,000)

0 to 20 mA 4 to 20 mA

(Resolution:1/16,000) (Note1) (Resolution:1/16,000) (Note1)

K-2000 to K2000 (12-bit mode)/ K-8000 to K8000 (14-bit mode)

K-8000 to K8000 (14-bit mode only)

K0 to K16000 (14-bit mode only)

K0 to K4000 (12-bit mode)/ K0  K16000 (14-bit mode) (Note1)

Conversion speed

500 �s / All channels (Note 2)

Overall precision

Voltage Current

�0.2%F.S. or less (at 25�C) �0.4%F.S. or less (at 0 to +55�C) �0.3%F.S. or less (at 25�C) �0.6%F.S. or less (at 0 to +55�C)

Output impedance

0.5  or less (Voltage output)

Maximum outputcurrent

�10 mA (Voltage output)

Allowable outputload resistance

600  or less (Current output)

Insulation method

Between input terminal to internal circuit
Between the channels

Photocoupler Insulation-type DC/DC converter
Uninsulated

External connection method

Connection terminal block connection

(Note 1):The resolution in the 12-bit mode is 1/4,000. Also, the output current range in the 12-bit mode is 4 to 20 mA for AFP0RDA4, and 0 to 20 mA for AFP0RA21/AFP0RA42.
(Note 2): The time shown in the figure below is required to reflect the values in the output device area (WY) of the control unit as analog output values. The following figure shows the values when the range of -10 to +10V is used.

 Precautions on the characteristics of analog output
 When the power to the control unit turns on or off, voltage (equivalent to 2 V) may be output for approx. 2 ms from the output terminal. If it will be a problem on your system, take necessary measures externally to avoid the transitional condition, e.g. turning on PLC before external devices or turning off external devices before PLC.
6-4

6.2 Dimension
 FP0R-AD4 / FP0R-A21

6.2 Dimension

(Note): FP0R-AD4 has no power supply connector.
 FP0R-AD8 / FP0R-DA4 / FP0R-A42

(Note): FP0R-AD8 has no power supply connector.
6-5

Specifications 6-6

7
Compatibility with Conventional Models

Compatibility with Conventional Models

7.1 Analog Input Unit

7.1.1 Compatibility with Conventional Models

 Specification Comparison Chart Item

FP0-A80

FP0RAD4 / FP0RAD8

Appearance

Resolution and Operation mode

12-bit (1/4000)

12-bit (1/4000) 14-bit (1/16000) (Note 1)

Number of channels

8 ch

4 ch or 8 ch (Each model)

-10 to 10 V DC

Not available

Available

Analog input voltage range

-5 to 5 V DC 0 to 10 V DC 0 to 5 V DC

Not available Not available
Available

Available (Note 2) Available (Note 2)
Available

-100 to 100 m V DC

Available

Available (Note 4)

Analog input current range

0 to 20 mA

Available

Available

Conversion speed

1 ms/channel

2 ms/All channels

Overall precision

Voltage

�0.6%F.S. or less (at 25�C) �1%F.S. or less (at 0 to 55�C)

At �100 mV (Note 4)
Others

�0.6%F.S. or less (at 25�C)
�1.0%F.S. or less (at 0 to 55�C)
�0.2%F.S. or less (at 25�C)
�0.4%F.S. or less (at 0 to 55�C)

Current

�0.3%F.S. or less (at 25�C) �0.6%F.S. or less (at 0 to 55�C)

Analog input averaging function

Available (Moving average)

Available (Moving average 10 times/ No. of averaging times: 64
times or 128 times) (Note 3)

Power supply (24V DC)

External power supply
Control unit consumption current increment

Needed, 60mA or less 20 mA or less

Not needed 45 mA or less (Note 5)

(Note 1):The resolution and operation mode is switched by the mode switch.

(Note 2):When selecting the 14-bit mode, the range can be set for each channel separately by user programs. Also, the ranges of -5 to 5 V DC and 0 to 10 V DC can be set by user programs only when selecting the 14-bit mode.

(Note 3):When selecting the 14-bit mode, the averaging method can be set for each channel separately by user programs. For details of the averaging methods, refer to the chapter 5 "Analog Input Averaging Processing".

(Note 4): Installed in the unit of Ver.1.2 and after (only 12-bit mode).

(Note 5): In the case of the unit of Ver.1.2 and after; 20 mA for the unit of Ver.1.1 or older.

7-2

7.1 Analog Input Unit
7.1.2 Points of Replacement
The points for replacing the conventional model FP0-A80 with the new model FP0RAD* as an alternative are described below.  Specification This product can be used equivalently to FP0-A80. (Note 1)  Hardware (Note 2) � The mode switch is set in the same way as FP0-A80. However, if both mode switches 1 and
2 are ON, the product operates in the 14-bit mode. (Note 1) � The supply of power (24 V DC) from an external device is not needed for the new analog
input units FP0R-AD4 and FP0R-AD8.  Software User programs created for the conventional model FP0-A80 can be used as they are.
(Note 1): The units of Ver.1.1 or older cannot be set to the voltage range -100 to +100 mV DC. (Note 2): In the unit of Ver.1.1 or older, a digital conversion value equivalent to the analog input of approx. 2 V is
saved in the device (WX), for the channels to which no input is connected.
REFERENCE
� For details of the setting method of the mode switch, refer to "2.1.2 Setting of Mode Switch".
7-3

Compatibility with Conventional Models

7.2 Analog Output Unit

7.2.1 Compatibility with Conventional Models

 Specification Comparison Chart

Item

FP0-A04V/ FP0-A04I

FP0RDA4

Appearance

DIP switch

None

Equipped

Terminal block Resolution and Operation mode

1 12-bit (1/4000)

2 (For voltage output / For current output)
12-bit (1/4000) 14-bit (1/16000) (Note 1)

Number of channels

4 ch

4 ch

Analog output range

Voltage/Current (Each model)

Voltage/Current (Built in one unit)

-10 to 10 V DC

Available (FP0-A04V)

Available (Note 2)

Analog output voltage range

-5 to5 V DC 0 to 10 V DC

Not available Not available

Available (Note 2) Available (Note 2)

0 to 5 V DC

Not available

Available (Note 2)

Analog input current range

0 to 20 mA 4 to 20 mA

Not available Available (FP0-A04I)

Available (Note 2) Available (Note 2)

Conversion speed

500 s / channel

500 s / All channels

Overall precision

Voltage Current

�0.6%F.S. or less (at 25�C) �1%F.S. or less (at 0 to 55�C)

�0.2%F.S. or less (at 25�C) �0.4%F.S. or less (at 0 to 55�C)
�0.3%F.S. or less (at 25�C) �0.6%F.S. or less (at 0 to 55�C)

Power supply (24V DC)

External power supply
Control unit consumption current increment

100 mA or less (FP0A04V) 130 mA or less (FP0A04I)
20 mA or less

180 mA or less 10 mA or less

(Note 1):The resolution and operation mode is switched by the mode switch.
(Note 2):When selecting the 14-bit mode, the range can be set for each channel separately by user programs. Also, the ranges of -5 to +5V DC, 0 to 10V DC and 0 to 20 mA DC can be set by user programs only when selecting the 14-bit mode.

7-4

7.2 Analog Output Unit

7.2.2 Points of Replacement

The points for replacing the conventional models FP0A04V or FP0A04I with the new model FP0RDA4 as an alternative are described below.

 Hardware
� Turn off the mode switch No.1 and select "12-bit FP0A04 compatibility mode". The voltage output range is "-10 to 10 V DC", and the current output range is "4 to 20 mA DC".

� The new model FP0RDA4 has two terminal blocks for the voltage output and current output. They are connected according to the application.

� In the case of FP0RDA4, select whether to output signals to the voltage output or current output for each channel with the mode switch. The factory default setting is the voltage output for all channels. Change the mode switch setting as necessary.

Item

FP0A04V compatibility

FP0A04I compatibility

Appearance

Terminal block Mode switch

The terminal block on the voltage output side is used.
The 12-bit FP0A04 compatibility mode is selected. The voltage output is selected for all channels.

The terminal block on the current output side is used.
The 12-bit FP0A04 compatibility mode is selected. The current output is selected for all channels.

 Software
User programs created for the conventional models FP0A04V and FP0A04I can be used as they are.

REFERENCE
� For details of the setting method of the mode switch, refer to "2.2.2 Setting of Mode Switch".

7-5

Compatibility with Conventional Models

7.3 Analog I/O Unit

7.3.1 Compatibility with Conventional Models

 Specification Comparison Chart Item

FP0-A21

FP0R-A21 / FP0R-A42

Appearance

Resolution and Operation mode

Number of channels

Analog input voltage range
Analog input current range
Analog output voltage range
Analog output current range

-10 to 10 V DC -5 to 5 V DC 0 to 10 V DC 0 to 5 V DC
0 to 20 mA
-10 to 10 V DC -5 to 5 V DC 0 to 10 V DC 0 to 5 V DC 0 to 20 mA 4 to 20 mA

Conversion speed

Overall precision

Voltage Current

12-bit (1/4000)
Input 2 ch/Output 1 ch Available
Not available Not available
Available
Available
Available Not available Not available Not available
Available Not available 1 ms/channel
�0.6%F.S. or less (at 25�C) �1%F.S. or less (at 0 to 55�C)

Analog input averaging function

Not available

Power supply (24V DC)

External power supply
Control unit consumption current increment

100 mA or less 20 mA or less

(Note 1): The resolution and operation mode is switched by the mode switch.

12-bit (1/4000) 14-bit (1/16000) (Note 1) A21:Input 2 ch/Output 1 ch A42:Input 4 ch/Output 2 ch
Available Available (Note 2) Available (Note 2)
Available
Available
Available Available (Note 3) Available (Note 3) Available (Note 3)
Available Available (Note 3) Input 2 ms / All channels Output 500 s / All channels �0.2%F.S. or less (at 25�C) �0.4%F.S. or less (at 0 to 55�C) �0.3%F.S. or less (at 25�C) �0.6%F.S. or less (at 0 to 55�C) Available (Moving average 10 times/ No. of averaging times: 64 times or 128 times) (Note 4) A21:80 mA or less A42:120 mA or less
10 mA or less

7-6

7.3 Analog I/O Unit

(Note 2): When selecting the 14-bit mode, the range can be set for each channel separately by user programs. Also, the ranges of -5 to 5 V DC and 0 to 10 V DC can be set by user programs only when selecting the 14-bit mode.
(Note 3): When selecting the 14-bit mode, the range can be set for each channel separately by user programs. Also, the ranges of 0 to 10 V DC and 4 to 20 mA DC can be set by user programs only when selecting the 14-bit mode.
(Note 4): When selecting the 14-bit mode, the averaging method can be set for each channel separately by user programs. For details of the averaging methods, refer to the chapter 5 "Analog Input Averaging Processing".

7.3.2 Points of Replacement

The points for replacing the conventional model FP0A21 with the new model FP0RA21 as an alternative are described below.
 Hardware � Although the positions of the mode switch and the terminal blocks are slightly different
between the conventional model FP0A21 and the new model FP0RA21, the setting methods of the switches and the pin layout of the terminal blocks are compatible.
� The mode switch is set in the same way as FP0-A21.
� The connections of the terminal blocks are also the same.
� For the new model FP0RA21, a digital conversion value equivalent to the analog input value of approx. 2 V is shown for the channels to which no input is connected.

Item

FP0A21

FP0RA21

Appearance

Mode switch Terminal block

The settings of the mode switches and the wirings of the terminal blocks are the same.

 Software User programs created for the conventional model FP0A21 can be used as they are.
 Replacement of FP0-A21 with FP0RA42 For replacing two FP0A21 units with FP0RA42, the user program should be changed. The output range is either 0 to 20 mA or -10 to +10 V.

REFERENCE
� For details of the setting method of the mode switch, refer to "2.3.2 Setting of Mode Switch".

7-7

Compatibility with Conventional Models 7-8

Record of changes

Manual No.

Date

WUME-FP0RAIO-01 June.2015

WUME-FPXHAIO-02 Oct.2015

WUME-FPXHAIO-03 Nov.2018

Record of Changes
First Edition
Second Edition -Error correction (Chapter 3.2.1)
Third Edition - Specification change (Chapter 2.1.2, Chapter 4.5.1, Chapter 6.1.1, Chapter 6.1.2, Chapter 7.1.1, Chapter 7.1.2)

Please contact ..........

 Overseas Sales Division (Head Office): 2431-1 Ushiyama-cho, Kasugai-shi, Aichi, 486-0901, Japan  Telephone: +81-568-33-7861  Facsimile: +81-568-33-8591 panasonic.net/id/pidsx/global

For our sale network, please visit our website.

Novemver, 2018 PRINTED IN JAPAN

� Panasonic Industrial Devices SUNX Co., Ltd. 2018 WUME-FP0RAIO-03