Panasonic FP-X Manual PDF
Panasonic FP-X Manual PDF
Panasonic FP-X Manual PDF
com 1-800-280-6933
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.
-Battery may explode if mistreated. Do not recharge, disassemble or dispose of fire.
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.
-Ground the protective earth (PE) terminal (Class D grounding). Failure to do so could lead to
an electric shock.
-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.
-Ethernet is a registered trademark of Fuji Xerox Co., Ltd. and Xerox Corp.
-All other company names and product names are trademarks or registered trademarks of
their respective owners.
PLC_FPX
10. High-speed counter, Pulse Output and PWM Output functions (For Ry
Type) .......................................................................................................... 10-1
10.1 Overview of Each Functions....................................................................................... 10-2
10.3 High-speed Counter Function .................................................................................... 10-9
10.4 Pulse Output Function (Pulse I/O Cassette) ........................................................... 10-20
10.5 PWM Output Function (Pulse I/O Cassette) ............................................................ 10-51
17.1 System Registers / Special Internal Relays / SpecialData Registers ..................... 17-2
17.2 Table of Basic Instructions....................................................................................... 17-48
17.3 Table of High-level Instruction ................................................................................. 17-56
17.4 Table of Error codes .................................................................................................. 17-76
17.5 MEWTOCOL-COM Communication Commands..................................................... 17-89
17.6 Hexadecimal/Binary/BCD .......................................................................................... 17-90
17.7 ASCII Codes ............................................................................................................... 17-91
iii
Static electricity
-Before touching the unit, always touch a grounded piece of metal in order to discharge static electricity.
-In dry locations, excessive static electricity can cause problems.
Backup battery
Do not install the battery when it is not used.
There is a possibility of leak if the battery remains discharged.
vi
vii
Application cassettes that have restrictions when more than one units are used simultaneously
Current output range
Quantity Control unit
FP-X Application cassette
used C14 C30 C60
1 ○ ○ ○
AFPX-DA2 Note1) Note1)
2 - △ △
1 ○ ○ ○
AFPX-A21
2 - ○ ○
Note1) Note1)
AFPX-DA2 + AFPX-A21 Each 1 - △ △
Note2) Note2) Note2)
AFPX-DA2 + AFPX-COM5 Each 1 × × ×
Note2) Note2) Note2)
AFPX-A21 + AFPX-COM5 Each 1 × × ×
Note2) Note2)
AFPX-A21 + AFPX-DA2 + AFPX-COM5 Each 1 - × ×
Note2) Note2)
AFPX-DA2 1unit + AFPX-COM5 1unit - × ×
Note2) Note2)
AFPX-A21 2units + AFPX-COM5 1unit - × ×
Note1) Up to 2 channels can be used for the current output range.
(When using two units, it is possible to use the 2-ch current output range and 2-ch voltage output range.)
Note2) The AFPX-DA2 and AFPX-A21 both cannot be used with the AFP-COM5 (Ethernet).
Voltage output range (When using with the output current of 1 mA or below)
Quantity Control unit
FP-X Application cassette
used C14 C30 C60
1 ○ ○ ○
AFPX-DA2
2 - ○ ○
1 ○ ○ ○
AFPX-A21
2 - ○ ○
AFPX-DA2 + AFPX-A21 Each 1 - ○ ○
AFPX-DA2 + AFPX-COM5 Each 1 ○ ○ ○
AFPX-A21 + AFPX-COM5 Each 1 ○ ○ ○
AFPX-A21 + AFPX-DA2 + AFPX-COM5 Each 1 - ○ ○
AFPX-DA2 1unit + AFPX-COM5 1unit - ○ ○
AFPX-A21 2units + AFPX-COM5 1unit - ○ ○
Note) In the voltage output range, when using them with the output current at 1 mA to 10 mA, the
condition is the same as the current output range.
viii
Type of unit
AFPX-C14R AFPX-C14T, C14TD, C14P, C14PD
Type of programming tool
AFPX-C30R AFPX-C30T, C30TD, C30P, C30PD
AFPX-C60R AFPX-C60T, C60TD, C60P, C60PD
Used Used
FPWIN GR Ver.2
Windows software (Ver. 2.5 or later) (Ver. 2.70 or later)
FPWIN GR Ver.1 Not used Not used
FPWIN Pro
Windows software Used Used
Ver.6
Conforms to
FPWIN Pro Used Used
IEC61131-3
Ver.5 (Ver. 5.1 or later) (Ver. 5.22 or later)
AFP1113V2
Not used Not used
AFP1114V2
AFP1113
Not used Not used
Handy programming AFP1114
unit AFP1111A
AFP1112A
Not used Not used
AFP1111
AFP1112
AFP8670 Used
FP memory loader
AFP8671 (Only programs and system registers can be transmitted.)
ix
Basic functions as compact size general-purpose PLC suitable for the small-scale facility control
Basic functions including the followings are equipped even though it is a general-purpose style such as
AC power supply, screw terminal block and relay output.
1. 32k-step program capacity
2. 0.32 µs command processing speed
3. Max. 382-points I/O control
Single-phase 8-channel and 2-phase 4 channel high-speed counter functions are equipped for
the control unit.
A personal computer can be directly connected with the USB communication port.
A personal computer can be directly connected with the USB cable (excluding C14).
The USB⇔RS232C conversion adapter/cable is not necessary.
(A tool port (RS232C) is also equipped.)
1-2
1-3
MEWTOCOL communication
It can be used as a master unit/slave units (F145 and F146 instructions).
It can be easily communicated with a PLC, image processor, temperature control device, message
runner or eco-power meter.
It is possible to communicate with up to 99 units
1-4
Increment input mode, decrement input mode, 2-phase input mode, individual input mode, and direction
discrimination mode are supported.
Note) Differs depending on combinations.
1-5
AFPX-C14R 8/6
AFPX-C60RD 32/28
AFPX-C14T 8/6
AFPX-C60TD 32/28
AFPX-C14P 8/6
AFPX-C60PD 32/28
1-6
E14/E16 E30
FP-X Expansion
FP0 adapter (with 8
cm expansion For connecting FP0 expansion unit AFPX-EFP0
cable, power supply
cable)
1-7
Ethernet,
FP-X Communication cassette AFPX-COM5
3-wire 1-channel RS232C
1-8
8 cm AFPX-EC08
80 cm AFPX-EC80
Note) The total length of the expansion cable should be within 160 cm.
1-9
Note:
- Up to eight units of FP-X can be connected, however, the restrictions on each expansion unit vary.
- For AFPX-E16/E14: Two units cannot be connected consecutively since the power should be supplied
from the unit with the power supply (as no power supply is built in AFPX-E16).
E16 expansion I/O unit cannot be connected on the right side of the control unit or AFPX-E30.
- For AFPX-E30: There is no restriction on AFPX-E30 so that up to 8 units can be connected
consecutively.
- The total length of the expansion cable should be within 160 cm.
1-10
Note:
• Install the FP0 thermocouple unit on the right side of other expansion units. If it is installed on the left
side, the total precision will deteriorate.
• Install the FP0 CC-Link slave unit on the right side of the other expansion units. There is no expansion
connector on the right side.
1-11
1-12
Note:
1. Only one FP-X master memory cassette AFPX-MRTC can be installed. If 2 units are installed, E26
(user ROM error) will occur.
2. One application cassette can be installed in either cassette mounting part 1 or 2 of C30/C60.
3. As only one communication cassette can be installed in the cassette mounting part 1, it should be
installed on the application cassette if the application cassette is installed. (It cannot be installed in the
cassette mounting part 2.)
4. The add-on cassette cannot be installed in the expansion connector part of C60 (it does not work).
5. The pulse I/O cassette cannot be installed on the FP-X Tr type.
1-13
Windows2000
FPWIN Pro Ver.6 WindowsXP
100MB or more FPWINPROFEN6
English-language menu Windows Vista
Windows7
Note1) The small type and upgrade version is not available for Ver.6.
Note2) Ver.6.0 can be upgraded to the latest version after Ver. 6.1 free of charge at our web site
((http://industrial.panasonic.com/ac/e/dl_center/software/). Use the latest version.
1-14
For the connection between a personal computer (USB) and the control unit (USB)
USB cable (For C30 and C60 only)
Use a commercial cable.
Cable type Length
USB 2.0 (or 1.1) AB type Max. 5 m
1-15
2-2
These LEDs display the current mode of operation or the occurrence of an error.
LED LED and operation status
Lights when in the RUN mode and indicates that the program is
being executed.
RUN Green
It flashes during forced input/output. (The RUN and PROG. LEDs
flash alternately.)
Lights when in the PROG. Mode and indicates that operation has
stopped.
PROG. Green Lights when in the PROG. Mode during forced input/output.
It flashes during forced input/output. (The RUN and PROG. LEDs
flash alternately.)
Flashes when an error is detected during the self-diagnostic
ERROR/ function. (ERROR)
Red
ALARM Lights if a hardware error occurs, or if operation slows because of
the program, and the watchdog timer is activated. (ALARM)
○
4 USB connector (B type)
Turning this dial changes the values of special data registers DT90040 to DT90043 within the range of
K0 to K1000. It can be used for analog timers and other applications.
C14 and C30 equips 2 points and C60 equips 4 points.
2-3
The followings are the default settings set when the unit is shipped from the factory. The system register
“Tool port setting” should be used to change these.
- Baud rate …….. 9600 bps
- Character bit …. 8 bit
- Parity check ….. Odd parity
- Stop bit length .. 1 bit
Note) The unit numbers (station numbers) of the tool port should be specified using the system register
“Tool port setting”.
This is the power supply and input wiring terminal. A solderless terminal for M3 can be used.
This is the service power supply for input and output wiring terminal. A solderless terminal for M3 can be
used.
○9 Expansion cover
It is used after the expansion cable and the battery has been installed.
○
10 Add-on cassette connector
○
11 Connector For connecting expansion I/O unit and expansion FP0 adapter
○
12 Battery cover
This battery cover is removed when the optional backup battery is installed.
Installing the backup battery enables the backup of the realtime clock or data registers.
○
13 DIN rail attachment lever
2-4
2.2.2 Service Power Supply for Input (Output) (AC Power Supply Type Only)
Specifications
Item
C14 C30/C60
Rated output voltage 24 V DC
Voltage regulation range 21.6 to 26.4 V DC
Rated output current 0.15 A 0.4 A
Overcurrent protection
Note) Available
function
Terminal screw M3
Note) This is a function to protect overcurernt temporarily, which protects the output short-circuit. If the
short-circuit is detected, all the power supply for the PLC will be turned off. If a current load that is
out of the specifications is connected and the overloaded status continues, it may lead to damages.
2-5
Circuit diagram
2-6
Circuit diagram
[X0 to X3] [From X4]
X4 to X7 :R1=5.1kΩ R2=3kΩ
From X8 :R1=5.6kΩ R2=1kΩ
2-7
Circuit diagram
2-8
Circuit diagram
[NPN output]
[X0 to X3] [From X4]
2-9
Circuit diagram
[PNP output]
[Y0 to Y3] [from Y4]
2-10
○ 2 COM5
AFPX-C30R
AFPX-C60R
AFPX-C14RD
AFPX-C30RD
AFPX-C60RD
2-11
○
2 A21
○
3 A21+A21
DA2+DA2 (*)
DA2+A21 (*)
AFPX-C30R * Up to 2
channels can
be used for
the current
output.
AFPX-C60R
AFPX-C14RD
AFPX-C30RD
AFPX-C60RD
2-12
○
2 A21
○
3 A21+A21
DA2+DA2
DA2+A21
AFPX-C30R
AFPX-C60R
AFPX-C14RD
AFPX-C30RD
AFPX-C60RD
2-13
○ 2 COM5
AFPX-C30T
AFPX-C60T
AFPX-C14TD
AFPX-C30TD
AFPX-C60TD
2-14
○
2 A21
○
3 A21+A21
DA2+DA2 (*)
DA2+A21 (*)
AFPX-C30T * Up to 2
channels can
be used for the
current output.
AFPX-C60T
AFPX-C14TD
AFPX-C30TD
AFPX-C60TD
2-15
○
2 A21
○
3 A21+A21
DA2+DA2
DA2+A21
AFPX-C30T
AFPX-C60T
AFPX-C14TD
AFPX-C30TD
AFPX-C60TD
2-16
○
2 COM5
AFPX-C30P
AFPX-C60P
AFPX-C14PD
AFPX-C30PD
AFPX-C60PD
2-17
○
2 A21
○
3 A21+A21
DA2+DA2 (*)
DA2+A21 (*)
AFPX-C30P * Up to 2
channels can
be used for
the current
output.
AFPX-C60P
AFPX-C14PD
AFPX-C30PD
AFPX-C60PD
2-18
○
2 A21
○
3 A21+A21
DA2+DA2
DA2+A21
AFPX-C30P
AFPX-C60P
AFPX-C14PD
AFPX-C30PD
AFPX-C60PD
2-19
AFPX-C30R
AFPX-C30RD
2-20
AFPX-C60RD
Key Point:
Input terminal:
Each COM terminal in the same terminal block is connected within the unit.
However, the COM terminals of the input terminals 1 and 2 for C60 are isolated. (They are not
connected internally.)
Output terminal:
Each COM port (CO, C1 …) is separate. Use them in the range surrounded by the bold black lines.
2-21
AFPX-C14P
AFPX-C14TD
2-22
AFPX-C30T
AFPX-C30P
2-23
AFPX-C30PD
AFPX-C60T
2-24
AFPX-C60TD
AFPX-C60PD
Key Point:
Input terminal:
Each COM terminal in the same terminal block is connected within the unit.
However, the COM terminals of the input terminals 1 and 2 for C60 are isolated. (They are not
connected internally.)
Output terminal:
Each power supply terminal is separate. Use them in the range surrounded by the bold black lines.
2-25
Note: Only one expansion FP0 adapter can be installed at the last position of the FP-X expansion
bus. (It should be installed at the right hand side of the AFPX-E16 and E30.)
Up to seven FP-X expansion I/O units can be also installed between the control unit and
the expansion FP0 adapter. However, there are restrictions on E14/E16.
3-2
Connects with the control unit, expansion unit and the expansion FP0 adapter using the exclusive
expansion cable.
○5 Expansion cover
This lever enables the expansion unit to attach to a DIN rail at a touch.
○7 Terminator setting DIP switch
All switches should be turned on for the expansion unit installed at the last position .
3-3
Service Power Supply for Input (Output) (AC power supply type only)
Specifications
Item
E30
Rated output voltage 24 V DC
Voltage regulation range 21.6 to 26.4 V DC
Rated output current 0.4 A
Overcurrent protection
Note) Available
function
Terminal screw M3
Note) This is a function to protect overcurrent temporarily. If a current load that is out of the
specifications is connected, it may lead to damages.
DC Power Supply
Specifications
Item
E30
Rated voltage 24 V DC
Voltage regulation range 20.4 to 28.8 V DC
Inrush current 12 A or less (at 25 °C)
Momentary power off time 10 ms
Internal power supply part
20,000 hours (at 55 °C)
Guaranteed life
Fuse Built-in (Cannot be replaced)
Insulation system Transformer insulation
Terminal screw M3
3-4
: R1=5.6 kΩ R2=1 kΩ
Circuit diagram
3-5
Circuit diagram
3-6
Circuit diagram
3-7
AFPX-E16T AFPX-E16P
AFPX-E16X AFPX-E14YR
3-8
AFPX-E30RD
AFPX-E30T
3-9
AFPX-E30TD
AFPX-E30PD
Input terminal:
Each COM terminal in the same terminal block is connected within the unit.
Output terminal:
Each COM terminal(CO, C1 …) of Ry type is separate.
Each power supply terminal of Tr type is separate. Use them in the range surrounded by the bold black
lines.
3-10
3.3.1 Overview
For the FP-X, a maximum of 3 units of the FP0 expansion units (expansion I/O unit, intelligent unit) can
be used using the expansion FP0 adapter.
Note:
The expansion FP0 adapter does not function by itself. Always connect the FP0 expansion unit to it.
3-11
○
1 Status indicator LEDs
LED
POWER Green When the power of 24 V DC is supplied and the communication starts with the
control unit, the LED lights. When the communication cannot be carried out, it
goes out.
I/F Green When the communication starts with the control unit, the LED lights. When the
communication cannot be carried out, it goes out.
When the FP0 expansion unit is not connected, it flashes.
ERROR Red When an error occurs on the connection with the FP0 expansion unit, it flashes.
Connects the FP-X control unit (or FP-X expansion unit). The provided expansion cable (AFPX-EC08) is
used for the connection.
It is not necessary to specify the TERM (terminal) setting for the expansion FP0 adapter.
○
3 Power supply connector (24V DC)
Supply the power of 24 V DC. The provided power supply cable (AFP0581) is used for the connection.
Supply the power from the service power supply for the input of the FP-X control unit.
○
4 FP0 expansion connector
This lever enables the expansion unit to attach to a DIN rail at a touch. The lever is also used for
installation on the mounting plate slim type) (AFP0803).
General specifications
Item Specifications
Rated voltage 24 V DC
Voltage regulation 21.6 to 26.4 V DC
Inrush current 20A or less (24 V DC, at 25 °C)
Fuse Built-in (Replacement is not available)
Insulation system Non-isolated
Power supply connector 3-pin connector (Power supply cable AFP0581 is provided.)
3-12
Input Output
Control unit X0 to X9F (WX0 to WX9) Y0 to Y9F (WY0 to WY9)
Cassette mounting part 1
X100 to X19F (WX10 to WX19) Y100 to Y19F (WY10 to WY19)
(Slot 0)
Cassette mounting part 2
X200 to X29F (WX20 to WX29) Y200 to Y29F (WY20 to WY29)
(Slot 1)
Expansion 1st unit X300 to X39F (WX30 to WX39) Y300 to Y39F (WY30 to WY39)
Expansion 2nd unit X400 to X49F (WX40 to WX49) Y400 to Y49F (WY40 to WY49)
Expansion 3rd unit X500 to X59F (WX50 to WX59) Y500 to Y59F (WY50 to WY59)
Expansion 4th unit X600 to X69F (WX60 to WX69) Y600 to Y69F (WY60 to WY69)
Expansion 5th unit X700 to X79F (WX70 to WX79) Y700 to Y79F (WY70 to WY79)
Expansion 6th unit X800 to X89F (WX80 to WX89) Y800 to Y89F (WY80 to WY89)
Expansion 7th unit X900 to X99F (WX90 to WX99) Y900 to Y99F (WY90 to WY99)
X1000 to X109F Y1000 to Y109F
Expansion 8th unit
(WX100 to WX109) (WY100 to WY109)
Note) The ranges of the I/O numbers which are actually used differ depending on the cassettes and units.
• Slot No.
Slot No. is the number indicating the installing position of the cassette which is used to generate
programs by the add-on cassette.
4-2
4-3
4-4
I/O numbers
I/O No.
Cassette Cassette
Type of control unit
mounting part 1 mounting part 2
Slot 0 Slot 1
FP-X communication
AFPX-COM1 − −
cassette
FP-X communication
AFPX-COM2 − −
cassette
FP-X communication
AFPX-COM3 − −
Communication cassette
cassette FP-X communication
AFPX-COM4 − −
cassette
FP-X communication
AFPX-COM5 − −
cassette
FP-X communication
AFPX-COM6 − −
cassette
FP-X analog input CH0 WX10 CH0 WX20
Note2) AFPX-AD2
cassette CH1 WX11 CH1 WX21
FP-X analog output CH0 WY10 CH0 WY20
AFPX-DA2
cassette CH1 WY11 CH1 WY21
CH0 WX10 CH0 WX20
FP-X analog I/O
AFPX-A21 CH1 WX11 CH1 WX21
cassette
WY10 WY20
FP-X thermocouple CH0 WX10 CH0 WX20
AFPX-TC2
cassette CH1 WX11 CH1 WX21
Application CH0 WX10 CH0 WX20
FP-X RTD cassette AFPX-RTD2
cassette CH1 WX11 CH1 WX21
FP-X input cassette AFPX-IN8 From X100 From X200
FP-X output cassette AFPX-TR8 From Y100 From Y200
FP-X output cassette AFPX-TR6P From Y100 From Y200
From X100 From X200
FP-X I/O cassette AFPX-IN4T3
From Y100 From Y200
FP-X pulse I/O cassette From X100 From X200
Note3) AFPX-PLS
From Y100 From Y200
FP-X master memory
AFPX-MRTC − −
cassette
Note1) There is no I/O for the communication cassette and master memory cassette.
Note2) Digital conversion values are K0 to 4000. As the resolution is 12 bits, upper 4 bits are always 0.
Note3) The pulse I/O cassette cannot be used with the Tr type.
4-6
Static electricity
-Before touching the unit, always touch a grounded piece of metal in order to discharge static electricity.
-In dry locations, excessive static electricity can cause problems.
• Do not install the unit above devices which generate heat such heaters, transformers or large scale
resistors.
5-2
• Maintain at least 100mm of space between devices to avoid adverse affects from noise and heat when
installing a device or panel door to the front of the PLC unit.
• Leave at least 100mm of space open from the front surface of the control unit in order to allow room for
programming tool connections and wiring.
(2) Without moving the upper hook, press on the lower hook to fit the
unit into position.
5-3
(2) Without moving the upper hook, press on the lower hook to fit the
unit into position.
Tighten the screws after joining all of the slim type mounting plate to be connected. Tighten the screws
at each of the four corners.
[Example] When two expansion units
5-4
-The expansion cable (AFPX-EC08) is packaged with the expansion unit and expansion FP0 adapter.
(It can be purchased separately.) The expansion cables (AFPX-EC30 and AFPX-EC80) are sold
separately.
Note:
-The total length of the expansion cables should be within 160 cm.
-When using the expansion cable (AFPX-EC30 or EC80), keep it away from the devices and wirings
generating noises as much as possible.
5-5
2. Fit the expansion connector cable into the expansion connector part of the control unit and the
one (left side) of the expansion I/O unit.
3. Push the expansion connector cable inside to touch the units each other.
4. Set the terminator setting switch. All the switches of the expansion unit installed at the last
position should be on.
5-6
2. Fit the expansion connector cable into the expansion connector part.
Note:
Although there is no terminator setting switch for the expansion FP0 adapter, the terminator setting has
been done within the expansion FP0 adapter. Turn off the terminator setting switches of the other
expansion units.
5-7
1. Raise the expansion hooks on the top and bottom sides of the unit with a screwdriver.
2. Align the pins and holes in the four corners of the control unit and expansion unit, and insert
the pins into the holes so that there is no gap between the units.
3. Press down the expansion hooks raised in step 1 to secure the unit.
5-8
Note:
The add-on cassette must be secured with the control unit using the screws in the actual use for
preventing the affect of vibrations.
The backup battery (option) should be before installing the add-on cassette.
The installation must be carried out when the power supply is off. If the power supply is on, it may cause
faults.
Recommended screw
Recommended screw Size and other conditions Quantity
Material: SW pan head (+) P-tight 2.6-16
Tapping screw 2 pcs/1 cassette
galvanization, trivalent chromate (black)
Note:
The communication cassette can be installed only in the cassette mounting part 1 of the control
unit.
The screw’s tightening torque should be 0.3 to 0.5 N・m. Screw securely.
5-9
Note:
The application cassette can be installed only in the cassette mounting part 1 and 2 of the control
unit.
The screw’s tightening torque should be 0.3 to 0.5 N・m. Screw securely.
5-10
Confirm that the power supply voltage is within the allowable range of the power supply.
Allowable voltage Allowable frequency
Rated input voltage Rated frequency
amplitude range range
100 to 240 V AC 85 to 264 V AC 50/60 Hz 47 to 63 Hz
Note:
Using the power supply of the outlying voltage and frequency, or using inappropriate wires may cause
the fault of the power supply of the PLC.
Reference: <5.7 Wiring of Terminal Block>
5-11
Grounding
Ground the instrument to increase noise suppression.
Exclusive grounding
• For grounding purposes, use wiring with a minimum of 2 mm . The grounding connection should have
2
5-12
Confirm that the power supply voltage is within the allowable range of the power supply.
Allowable voltage
Rated input voltage
amplitude range
24 VDC 20.4 to 28.8 VDC
Note:
Using the power supply of the outlying voltage, or using inappropriate wires may cause the fault of the
power supply of the PLC.
Reference: <5.7 Wiring of Terminal Block>
5-13
Grounding
Ground the instrument to increase noise suppression.
Exclusive grounding
• For grounding purposes, use wiring with a minimum of 2 mm . The grounding connection should have
2
5-14
Power supply from the servicing power supply for the input of the FP-X control unit
• To protect the system against erroneous voltage from the power supply line, use an insulated power
supply with an internal protective circuit (electric cable that reinforced insulation or double insulation
has been made).
• The regulator on the unit is a non-insulated type.
• To turn the power supplies on simultaneously, supply the power for the expansion FP0 adapter from
the servicing power supply for the input of the FP-X control unit.
5-15
Grounding
- In situations of excess noise
Under normal conditions, the inherent noise resistance is sufficient. However, in situations of excess
noise, ground the instrument to increase noise suppression.
- Exclusive grounding
• The grounding connection should have a resistance of less than 100Ω.
• The point of grounding should be as close to the PLC unit as possible. The ground wire should be as
short as possible.
• If two devices share a single ground point, it may produce an adverse effect. Always use an exclusive
ground for each device.
Note:
Depending on the surroundings in which the equipment is used, grounding may cause problems.
[Example]
Since the power supply line of the expansion FP0 adapter power supply connector is connected to the
function earth through a varistor, if there is an irregular potential between the power supply line and earth,
the varistor may be shorted.
5-16
5-17
5-18
Others
• Wiring should be carried out after the power supply to the PLC was turned off.
• Also turn of the power supply when the control unit, expansion units and various cassettes are
connected. If they are connected during the power supply is on, it may cause the fault or malfunction.
5-19
Suitable wires
Suitable wires Tightening torque
2
AWG22 to 14 0.3 to 2.0 mm
Note:
Install the terminal block cover as it was after wiring to prevent electric shock.
5-20
5-21
5-22
(2) Insert the wire into the terminal block until it contacts the back of the block socket, and then
tighten the screw clockwise to fix the wire in place. (Tightening torque: 0.22 to 0.25 Name)
Precautions on wiring
• When removing the wire’s insulation, be careful not to scratch the core wire.
• Do not twist the wires to connect them.
• Do not solder the wires to connect them. The solder may break due to vibration.
• After wiring, make sure stress is not applied to the wire.
• In the terminal block socket construction, if the wire closes upon counter-clockwise rotation, the
connection is faulty. Disconnect the wire, check the terminal hole, and then re-connect the wire.
• If two wires are connected to the plus terminal and minus terminal of the RS485, use the wires of the
2
same cross-sectional area which is 0.5 mm .
5-23
Max. Polychlo-
0.5 mm2 Max. Approx. VCTF-0.5
VCTF 37.8 rinated
(AWG20) 0.6 mm 6.2 mm mm2 x 2C(JIS)
Ω/km biphenyl
Note:
• Use shielded twisted pair cables.
• Use only one type of transmission cable. Do not mix more than 1 type.
• Twisted pair cables are recommended in noisy environments.
• When using shielded cable with crossover wiring for the RS485 transmission line, grounded one end.
• If two wires are connected to the plus terminal and minus terminal of the RS485, use the wires of the
2
same cross-sectional area which is 0.5 mm .
5-24
Name: Battery
Product No.: AFPX-BATT
5-25
Note:
- When "Battery Error Alarm" is not set, the ERR.LED will not flash even if a battery error is detected.
Note that data may be lost as the result of the battery shutoff.
- The setting of the system registers Nos. 6 to 14 is effective only when the backup battery is mounted.
- Without the battery, use at the default settings. If changing the settings, the “Hold/Non-hold” operation
becomes unstable.
5-26
Procedure
1. Supply power to the control unit for more than five minutes.
Charge the built-in capacitor to retain the contents of the memory during the replacement of the
battery.
2. Turn off the power supply.
3. Remove the battery cover using a tool such as a screwdriver.
Note:
- If the power is not sufficiently supplied or it takes too much time to replace the battery, retained memory
data may be lost.
5-27
Note1) The battery lifetime is the value when no power at all is supplied.
Note2) Note that the lifetime may be shorter than the typical lifetime depending on the use conditions.
Note3) The battery is used for the battery detection circuit even when power is supplied.
Battery lifetime: when the master memory cassette (AFPX-MRTC) is not installed
Number of Suggested
Type of control unit Battery lifetime
installed batteries replacement interval
C14 1 pc 3.3 years or more 5 years
1 pc 2.7 years or more 4 years
C30
2 pcs 5.4 years or more 8 years
1 pc 2.7 years or more 4 years
C60 2 pcs 5.4 years or more 8 years
3 pcs 8.1 years or more 12 years
Note1) The battery lifetime is the value when no power at all is supplied.
Note2) Note that the lifetime may be shorter than the typical lifetime depending on the use conditions.
Note3) The battery is used for the battery detection circuit even when power is supplied.
Note:
- If a week has passed without power after the special internal relays R9005 and R9006 turned on or the
ERR.LED flashed, retained memory data may be lost.
- Regardless of how much time has passed after the detection of battery error, supply power to the
control unit for more than two minutes before replacing the battery.
- Special internal relays R9005 and R9006 will be on when a battery error is detected regardless of the
setting of system register No.4.
5-28
5-29
The followings are the default settings set when the unit is shipped from the factory.
- Baud rate …….. 9600 bps
- Character bit …. 8 bit
- Parity check ….. Odd parity
- Stop bit length .. 1 bit
USB connector
This is a connector to connect the programming tool.
Commercial USB cables (AB type) can be used.
The connector is the commercial B type.
6-2
Computer link
• Computer link is used for communication with a computer connected to the PLC. Instructions
(command messages) are transmitted to the PLC, and the PLC responds (sends response messages)
based on the instructions received.
• A proprietary MEWNET protocol called MEWTOCOL-COM is used to exchange data between the
computer and the PLC. There are two different communication methods, 1:1 and 1:N communication. A
1:N network is called a C-NET. The maximum of 99 FP-X units can be connected with one personal
computer.
• The PLC answers automatically to the commands received from the computer, so no program is
necessary on the PLC side in order to carry out communication.
Note:
• The data received before changing to the PROG mode remain in the data registers. Execute the F159
(MTRN) instruction right after the mode was changed to the RUN mode and clear them.
6-3
To change the communication format to match an external device connected to the tool port, enter the
settings for the various items. (The terminator and the header cannot be changed.)
6-4
No. 420 Starting address for data received in general-purpose communication mode
No. 421 Buffer capacity setting for data received in general-purpose communication mode
To use general-purpose serial communication, the receive buffer must be specified. To change this area,
specify the starting address using system register no. 420 and the volume (number of words) using no.
421. The receive buffer layout is shown below.
6-5
Computer link
• Computer link is used for communication with a computer connected to the PLC. Instructions
(command messages) are transmitted to the PLC, and the PLC responds (sends response messages)
based on the instructions received.
• A proprietary MEWNET protocol called MEWTOCOL-COM is used to exchange data between the
computer and the PLC. There are two different communication methods, 1:1 and 1:N communication. A
1:N network is called a C-NET. The maximum of 99 FP-X units can be connected with one personal
computer.
• The PLC answers automatically to the commands received from the computer, so no program is
necessary on the PLC side in order to carry out communication.
6-6
Key Point:
The default setting is “Internal USB” for the port selection so that the setting is not necessary
unless the default setting has not been changed.
To change the communication format to match an external device connected to the USB (COM2) port,
enter the settings for the various items.
Restrictions
The USB (COM2) port supports all the commands of the MEWTOCOL-COM.
There is no restriction.
6-7
It is a communication method that uses the USB as a virtual serial port, so that the FP-X connected with
the USB is treated from the PC as that it is connected via the COM port.
(Note that the USB is equivalent to the serial port.)
Note: The FP-X cannot be connected with the USB cable when using Windows95.
FPWIN GR: Ver. 2.50 or later version FPWIN GR: Ver. 2.70 or later version
6-8
Note:
Do not connect the FP-X to a PC with the USB cable before the FPWIN GR is installed or during
the installation.
If they are connected, the USB driver will not be installed correctly.
Reference: <6.3.9 Reinstallation of USB Driver>
Reference:
For the information on the installation of the FPWIN GR, <FPWIN GR Ver. 2 Operation Guide Book
ARCT1F332>
6-9
Note:
For the PC with more than one connectors, it may be requested to reinstall these 2 drivers if the
positions of the USB connecters are changed. In that case, reinstall the drivers.
With Windows XP
1. Turn on the power supply of the FP-X, and connect the FP-X with a PC using the USB cable.
2. After the connection, the PC recognize the USB driver automatically. As the following message
is shown, select “No, not this time”, and click “Next”.
6-10
6-11
6. After that, the PC recognizes the USB-COM conversion driver automatically. As the next
message is shown, select “No, not this time”, and click “Next”.
6-12
6-13
6-14
2. The next message is shown. Select “Search for the best driver for your device”, and click
“Next”.
6-15
6-16
(It is not necessary to install the USB-COM conversion driver with Windows98Second Edition.)
6-17
In case of WindowsXP
“My computer” → “View System information” → Click “Hardware” tab → Click “Device Manager”.
In case of Windows2000
“My computer” → “Control panel” → “System” → Click “Hardware” tab → Click “Device manager” →
Click “View” menu→ “Device by type”.
6-18
2. Double-click “Ports (COM & LPT)”. As the table of allocation of COM ports, confirm the COM
port No.
“CP210x USB to UART Bridge Controller (COM n)” is the allocated COM port.
Key Point:
COM port No. is necessary for the connection with the FPWIN GR, etc.
Note:
When “? CP210x USB to UART Bridge Controller” in “Other devices” or “Unknown device” is indicated,
the installation has been failed. Reinstall the USB driver.
Reference: <6.3.9 Reinstallation of USB Driver>
6-19
4. Specify the communication setting as the table below. Once the setting has been completed,
the communication with the USB becomes available.
6-20
Reinserting the USB cable displays the window for the installation of the USB driver. Reinstall
the USB driver.
6-21
• A personal computer having the USB and with the OS supporting the USB
(Windows98 Second Edition/ WindowsMe/ Windows2000/ WindowsXP) to connect the FP-
X using the USB.
• The FP-X connected to the USB is recognized by the PC as that is connected through the COM
port.
• The COM port No. of the COM port allocated for the USB is fixed unless you change the number.
• The USB port is allocated to the COM2 port, and the functions of the communication cassette
are restricted as below.
The USB port is available in the default setting (It is the same when the system registers are
initialized).
When USB port is not used When USB port is used
3-wire 1-channel RS232C
AFPX-COM1 5-wire 1-channel RS232C
(RS and CS control is not available.)
3-wire 1-channel RS232C
AFPX-COM2 3-wire 2-channel RS232C
(The 2nd channel cannot be used.)
AFPX-COM3 No restrictions, 1-channel RS485/RS422
1-channel RS485 1-channel RS485
AFPX-COM4
1-channel RS232C (RS232C cannot be used.)
Ethernet Ethernet
AFPX-COM5
1-channel RS232C (RS232C cannot be used.)
AFPX-COM6 2-channel RS485 1-channel RS485
Note) There is no USB port for the C14 control unit.
• When multiple FP-X are connected to one PC with the USB, it cannot communicates with them
simultaneously. The PC can communication with only the FP-X that was connected first, and
other FP-X cannot communicate.
6-22
Note:
There are restrictions on the combination of the USB port and communication cassette (for C30/C60
only).
7-2
Computer link
• The computer link function is to communicate between a computer and PLCs or between PLC and
external devices connected. A proprietary MEWNET protocol called MEWTOCOL-COM is used for
communicating with the computer link. MEWTOCOL-COM is also used for the communication between
the tool software such as FPWIN-GR and the PLC.
• There are a MEWTOCOL master function and a MEWTOCOL slave function for the computer link. The
side that issues commands is called master, and the side that receives the commands, executes the
process and sends back responses is called slave.
Note:
It is necessary to set the system register of the communication port to the computer link for using this
function.
1. Only the slave function is available for the FP-X relay type Ver1.20 or former version.
2. Both the master and slave functions are available for the FP-X transistor type and relay type Ver1.21
or later version, however, the master function is not available for the TOOL port.
MEWTOCOL master function (Transistor type and relay type Ver1.21 or later version)
• This function is to carry out the communication on the master side (side 0that issues commands) of the
computer link. It is executed with the PLC’s instruction F145(SEND) or F146(RECV). It is not necessary
to write the response process as a ladder, so the program is easier than the general-purpose
communication function.
The 1:1 or 1:N communication is available between our devices equipped with the computer link function
and the MEWTOCOL-COM.
[Our devices (e.g.)] : PLC, IPD, temperature control unit, eco-power meter
For the MEWTOCOL master function, communication is possible with the COM1 and COM2 ports only.
Do not execute the F145 (SEND) nor F146 (RECV) instructions when the unit is used as a slave unit.
7-3
7-4
- Link relay
In the figure below, when link relay L0 of the master station (no.1) turns on, this signal is converted by
the programs of the other stations, and Y0 of the other stations is activated.
- Link register
In the figure below, if a constant of 100 is written to LD0 of the master station (no.1), the contents of LD0
in the other stations are also changed to a constant of 100.
Only the COM1 port can be used for the PC(PLC) link. (Excluding AFPX-COM5)
7-5
Master function
Writing and reading data for various slaves is available using the F145 (SEND) and F146 (RECV)
instructions.
Individual access to each slave and the global transmission is possible.
Slave function
If the slave units receive a command message from the master unit, they send back the response
message corresponding to the content.
Do not execute the F145 (SEND) nor F146 (RECV) instructions when the unit is used as a slave unit.
7-6
FP-X
5-wire type
communication − AFPX-COM1
1-channel RS232C
cassette
FP-X
3-wire type
communication − AFPX-COM2
2-channel RS232C
cassette
FP-X
1-channel
communication − AFPX-COM3
RS485/RS422 (isolated)
cassette
• 1-channel
FP-X
RS485 (isolated)
communication − AFPX-COM4
• 3-wire type
cassette
1-channel RS232C
FP-X • Ethernet
communication • 3-wire type − AFPX-COM5
cassette 1-channel RS232C
• 2-channel RS485
FP-X
(isolated)
communication − AFPX-COM6
(non-isolated between
cassette
channels)
7-7
7-8
7-9
7-10
7-11
9600bps
COM2 terminal unit
(Default)
Note) The baud rate for the COM1 port is specified only by the system
register. However, for the COM2 port, it should be specified by
the switches and the system register.
7-12
Note) When the device to connect is a three-wire type, the RS of the COM 1 port should be connected to
the CS.
Using RS422
Note) There are several names for the signal names of RS422. Confirm with the instruction manuals for
each device.
7-13
7-14
7-15
7-16
When using a baud rate of 300 bps to 38400 bps, you can set up to a maximum of 99 units
(stations) and maximum transmission distance of 1200 m.
Note3) Only 9600 bps or 19200 bps can be specified when the C-NET adapter is connected with the
RS485 interface.
Note4) The start code and end code can be used only in the general-purpose serial communication
mode.
Note5) The converter SI-35 manufactured by Lineeye Co., Ltd is recommendable for the RS485 at the
computer side. Adjust the response time for the FP-X by the SYS1 instruction if necessary.
Note6) Unit numbers should be registered by the system register.
Note7) The termination resistance of the RS485/RS422 in the COM3,COM4 and COM6 is specified by
the dip switch in the communication cassette.
There is no termination resistance at the RS232C port.
7-17
7-18
SYS1 instruction: This is to delay a response for [n] scan time to be specified.
Example:
When R0 turns on, the response of COM1 port (RS485 port) delays for two scans. If the scan time is
500µs, it delays for 1 ms.
7-19
Computer link
• The computer link function is to communicate between a computer and PLCs or between PLC and
external devices connected. A proprietary MEWNET protocol called MEWTOCOL-COM is used for
communicating with the computer link. MEWTOCOL-COM is also used for the communication between
the tool software such as FPWIN-GR and the PLC.
• There are a MEWTOCOL master function and a MEWTOCOL slave function for the computer link. The
side that issues commands is called master, and the side that receives the commands, executes the
process and sends back responses is called slave.
Note:
It is necessary to set the system register of the communication port to the computer link for using this
function.
1. Only the slave function is available for the FP-X relay type Ver 1.20 or former version.
2. Both the master and slave functions are available for the FP-X transistor type and relay type (Ver 1.21
or later version), however, the master function is not available for the TOOL port.
7-20
The 1:1 or 1:N communication is available between our devices equipped with the computer link function
and the MEWTOCOL-COM.
[Our devices (e.g.)] : PLC, IPD, temperature control unit, eco-power meter
7-21
MEWTOCOL-COM sketch
• Communication is carried out in a conversational format, based on the MEWTOCOL-COM
communication procedures.
• Data is sent in ASCII format.
• The computer has the first right of transmission. The right of transmission shifts back and forth
between the computer and the PLC each time a message is sent.
7-22
2. Unit number
The unit number of the PLC to which you want to send the command must be specified. In 1:1
communication, the unit number “01” (ASCII code: H3031) should be specified. The unit No. of the PLC
is specified by the system register.
3. Text
The content differs depending on the command. The content should be noted in all upper-case
characters, following the fixed formula for the particular command.
4. Check code
BCC (block check code) for error detection using horizontal parity. The BCC should be created so that it
targets all of the text data from the header to the last text character. The BCC starts from the header and
checks each character in sequence, using the exclusive OR operation, and replaces the final result with
character text. It is normally part of the calculation program and is created automatically.
The parity check can be skipped by entering “* *” (ASCII code: H2A2A) instead of the BCC.
7-23
Key Point:
• With the FP-X, an expansion header “<” is supported to send single frames of up to 2048 characters as
well as general “%”.
Type of header No. of characters that can be sent in 1 frame
% Max. 118 characters
< Max. 2048 characters
Response message
The PLC that received the command in the example above sends the processing results to the computer.
2. Unit number
The unit number of the PLC that processed the command is stored here.
3. Text
The content of this varies depending on the type of command. The value should be read based on the
content. If the processing is not completed successfully, an error code will be stored here, so that the
content of the error can be checked.
7-24
7-25
7-26
Note:
• As the default of the COM2 port is “Internal USB”, select “COM. cassette”.
• When the MEWTOCOL master is used, also select “Computer Link”.
No. 410 (for COM1 port), No. 411 (for COM2 port) unit number
The unit number can be set within a range of 1 to 99.
No. 413 (for COM1 port), No. 414 (for COM2 port) Communication Format setting
Default setting:
Char. Bit …………… 8 bits
Parity ………………. Odd
Stop Bit ……………. 1 bit
Terminator ………… CR
Header …………….. STX not exist
To change the communication format to match an external device connected to the COM port, enter the
settings for the various items.
Restrictions
The COM port of the communication cassette supports all the commands of the MEWTOCOL-COM.
There is no restriction.
7-27
Programming
• For a computer link, a program should be created that allows command messages to be sent and
response messages to be received on the computer side. No communication program is required on
the PLC side. (Specify the communication format only by the system register.)
• Create the program on the PC side using Basic language or C language according to the
MEWTOCOL-COM. Commands to monitor and control the operation of the PLC are provided in the
MEWTOCOL-COM.
7-28
Note) There are several names for the signal names of RS422. Confirm with the instruction manuals for each devices.
7-29
7-30
7-31
No. 410 (for COM1 port), No. 411 (for COM2 port) unit number settings
Click on , and select a unit number from 1 to 99.
Note) With a C-NET adapter, a maximum of 32 units (stations) can be specified.
7-32
With 1:N communication, the various RS485 devices are connected using twisted pair cables. Use only
one (+) and (-) terminals.
AFPX-COM4
Connection diagram
In case of using the AFPX-COM4, connect two cables each to the (+) terminal and (-) terminal.
2
Use the wires of the same cross-sectional area which should be 0.5 mm .
AFPX-COM6
Connection diagram
In case of using the AFPX-COM6, connect two cables each to the (+) terminal and (-) terminal.
2
Use the wires of the same cross-sectional area which should be 0.5 mm .
Note) Non-insulated between the COM1 and COM2.
7-33
Note: Available for the transistor type and relay type Ver 1.21 or later version only.
7-34
Note) The above COM1 port will be COM2 port for the COM2 port.
7-35
Outline of operation
To send data to and receive it from an external device using the general-purpose serial communication
function, the data transmission and data reception functions described below are used. The F159
(MTRN) instruction and the “reception done” flag are used in these operations, to transfer data between
the FPΣ and an external device.
Sending data
Data to be transmitted from the PLC is stored in the data register used as the send buffer (DT). When
F159 (MTRN) is executed, the data is output from the COM port.
• The terminator specified in the system
register is automatically added to the data
that has been sent.
• The maximum volume of data that can be
sent is 2048 bytes.
Receiving data
Data received from the COM port is stored in the receive buffer specified in the system register, and the
“reception done” flag goes on. Data can be received whenever the “reception done” flag is off.
• When data is being received, the “reception
done” flag is controlled by the F159 (MTRN)
instruction.
• No terminator is included in the stored data.
• The maximum volume of data that can be
received is 4096 bytes.
7-36
No. 413 (for COM1 port), No. 414 (for COM2 port) Communication Format setting
Default setting:
Char. Bit …………… 8 bits
Parity ………………. Odd
Stop Bit ……………. 1 bit
Terminator ………… CR
Header …………….. STX not exist
Enter the appropriate settings to match the communication format of the external device connected to
the COM port..
No. 416 (for COM1 port), No. 418 (for COM2 port) Starting address for data received
No. 417 (for COM1 port), No. 419 (for COM2 port) Buffer capacity setting for data received
To change this area, specify the starting address using system register no. 416 (no. 418 for COM2 port)
and the volume (number of words) using no. 417 (no. 419 for COM2 port). The receive buffer layout is
shown below.
7-37
Devices that can be specified for S: Only data registers (DT) can be specified as the send buffer.
Devices that can be specified for n: WX, WY, WR, WL, SV, EV, DT, LD, I (I0 to ID), K, H
Devices that can be specified for D: Only the K constants (only K1 and K2)
Sending data
The amount of data specified by n is sent to the external device from among the data stored in the data
table, starting with the area specified by S, through the COM port specified by D. Data can be sent with
the header and terminator automatically attached. A maximum of 2048 bytes can be sent. When the
above program is run, the eight bytes of data contained in DT101 to DT104 and stored in the send buffer
starting from DT100 are sent from COM1 port.
Receiving data
Reception of data is controlled by turning the “reception done” flags R9038/R9048 on and off. The
received data is stored in the receive buffer specified in the system register. Data can be received when
F159 (MTRN) turns the “reception done” flag off. When the reception of the data is completed (the
terminator is received), the “reception done” flag turns on, and subsequently, receiving data is prohibited.
To receive the next data, execute the F159 (MTRN) instruction and turn the “reception done” flag off to
clear the number of received bytes to 0. To receive data continuously without sending data, clear the
number of transmitted bytes to 0 (set “n” to “K0”), and then execute the F159 (MTRN) instruction.
Binary communication
Selecting “STX not exist” for the header and “None” for the terminator in the general-purpose serial
communication enables the binary communication.
Sending data: Sends the data of bytes to be specified.
Receiving data: Check the No. of bytes received before the process. At that time, the reception done flag
does not work.
7-38
Explanatory diagram
7-39
• Use an F0 (MV) or F95 (ASC) instruction to write the data to be transmitted to the transmission data
storage area specified in S.
Transmission process
When the execution condition of the F159 (MTRN) instruction turns on and the “transmission done” flag
R9039/R9049 is on, operation is as follows:
1. N is preset in S. The “reception done” flag R9038/R9048 is turned off, and the reception data number
is cleared to 0.
2. The set data is transmitted in order from the lower-order byte in S+1 of the table.
• During transmission, the “transmission done” flag R9039/R9049 turns off.
• If system register 413 or 414 is set to header (start code) with STX, the header is automatically added
to the beginning of the data.
• The terminator (end code) specified in system register 413 or 414 is automatically added to the end of
the data.
3. When all of the specified quantity of data has been transmitted, the S value is cleared to 0 and the
“transmission done” flag R9039/R9049 turns on.
When you do not wish to add the terminator (end code) during transmissions:
• Specify the number of bytes to be transmitted using a negative number.
• If you also do not wish to add a terminator to received data, set system register 413 or 414 to
“Terminator - None”.
Programming example:
The following program transmits 8 bytes of data without adding the terminator.
Key Point:
• Do not include the terminator (end code) in the transmission data. The terminator is added
automatically.
• When “STX exist” is specified for the header (start code) in system register 413 or 414, do not add the
header to the transmission data. The header is added automatically.
• When using the AFPX-COM1, transmission does not take place until CS (Clear to Send) turns on. If
you are not going to connect to the other device, connect to RS (Request to Send).
• The maximum number of transmission bytes n is 2048.
• The contact numbers in parentheses refer to COM2 port.
7-40
Note:
• Be aware that the “reception done” flag R9038 or R9048 changes even while a scan is in progress
(e.g., if the “reception done” flag is used multiple times as an input condition, there is a possibility of
different statuses existing within the same scan.) To prevent multiple read access to the special internal
relay you should generate a copy of it at the beginning of the program.
Explanatory diagram
7-41
Reception process
When the “reception done” flag R9038 (R9048) is off, operation takes place as follows when data is sent
from an external device. (The R9038 (R9048) flag is off during the first scan after RUN).
1. Incoming data is stored in order from the lower-order byte of the 2nd-word area of the receive buffer.
Header and terminator (start and end codes) are not stored.
2. When the terminator (end code) is received, the “reception done” flag R9038 (R9048) turns on.
Reception of any further data is prohibited. When the terminator has been set to “None”, the “reception
done” flag does not turn on. Check the number of received bytes to judge whether the reception has
completed or not.
3. When an F159 (MTRN) instruction is executed, the “reception done” flag R9038 (R9048) turns off
(except the case when the terminator has been set to “None”), the number of received bytes is cleared,
and subsequent data is stored in order from the lower-order byte.
Key Point:
• The contact numbers in parentheses refer to COM2 port.
7-42
Sending data:
Data written to the send buffer will be sent just as it is.
Example:
The data “12345” is transmitted as an ASCII code to an external device.
1. Data sent using the F95 (ASC) instruction should be converted to ASCII code data.
2. If DT100 is being used as the send buffer, data will be stored in sequential order in the data registers
starting from the next register (DT101), in two-byte units consisting of the upper and the lower byte.
Receiving data:
The data of the receive area being read is ASCII code data.
Example:
The data “12345CR” is transmitted from a device with RS232C port.
• If DT200 is being used as the receive buffer, received data will be stored in the registers starting from
DT201, in sequential order of first the lower byte and then the upper byte.
7-43
Note:
• Be aware that the “reception done” flag R9038 or R9048 changes even while a scan is in progress
(e.g., if the “reception done” flag is used multiple times as an input condition, there is a possibility of
different statuses existing within the same scan.) To prevent multiple read access to the special internal
relay you should generate a copy of it at the beginning of the program.
Key Point:
• The contact numbers in parentheses refer to COM2 port.
7-44
• The data is stored in the receive buffer in sequential order. When the header is received, the number of
bytes received is cleared, and the address (write pointer) in the receive buffer is reset to the initial
address.
• Reception is disabled while the “reception done” flag R9038 or R9048 is on.
• Also, When F159 (MTRN) is executed, the number of bytes received is cleared, and the address (write
pointer) in the receive buffer is reset to the initial address.
• If there are two headers, data following the second header overwrites the data in the receive buffer.
• The “reception done” flag R9038 or R9048 is turned off by the F159 (MTRN) instruction. Therefore, if
F159 (MTRN) is executed at the same time the terminator is received, the “reception done” flag will not
be detected.
7-45
• Header (STX) and terminator (ETX) are automatically added to the data being transmitted. The data is
transmitted to an external device.
• When the F159 (MTRN) instruction is executed, the “transmission done” flag R9039 or R9049 goes off.
• Duplex transmission is disabled while F159 (MTRN) is being executed. The “transmission done” flag
R9039 or R9049 must be observed.
Key Point:
• The contact numbers in parentheses refer to COM2 port.
7-46
The COM port communication mode flag in R9032 or R9042 turns on when general-purpose serial
communication mode is selected.
Note:
• When the power is turned on, the operating mode selected in system register no. 412 takes effect.
It is not possible to change to the MODBUS RTU mode.
7-47
Note1) When using the C14, the values are DT0 to DT12285.
Note2) The baud rates of 300, 600 and 1200 bps can be specified by the SYS1 instruction (Ver 2.0 or
more). However, the setting value of the system register cannot be changed.
Note3) The setting values for the COM2 port of AFPX-COM6 are 9600 bps, 19200 bps and 115200 bps
only. The same baud rate should be specified by the cassette backside switch and the system
register.
7-48
• When the data area read command “%01#RDD00000 00001**CR” is sent from the FP-X side, the
values of the data register of the PLC connected to the system are sent as a response. For example, if
the value K100 is stored in DT0 and the value K200 is stored in DT1 of the PLC,
“%01$RD6400C8006F CR” is sent as a response to the command. If there is an error, “%01!○○** CR” is
returned (○○ is the error code).
• In addition to data area read and write commands, MEWTOCOL-COM also provides contact area read
and write as well as many other commands.
7-49
7-50
7-51
Buffer statuses
The tables below show the statuses of the send and receive buffers when the sample program is run.
7-52
Extracting the data register values from the PLC on the other end
In the program, the data segment of the response from the PLC on the other end is converted to
hexadecimal data using the F72 (AHEX) (hexadecimal ASCII → hexadecimal data conversion)
instruction and stored in DT50 and DT51, only if the character string “$1” stored in DT1 is detected as a
comparison instruction
If an error occurs, “%01!○○□□CR” is returned as the response (○○ is the error code and □□ is the
BCC).
7-53
7-54
7-55
7-56
7-57
Key Point:
• When using a PC(PLC) link, the communication format and baud rate are fixed:
No. Name Set Value
No. 413 Communication format for COM Data length: …… 8 bits
1port Parity check: ….. Odd
Stop bit: ………… 1 bit
Terminator: …….. CR
Header: ………… STX not exist
No. 415 Baud rate setting for COM1 port 115200 bps
Note1) The terminal units of AFPX-COM3 and AFPX-COM4 are specified by the dip switch located in the
communication cassette.
7-58
The unit number is specified either by using the SYS1 instruction or the system register.
Unit numbers are the numbers to identify the different PLCs on the same network. The same number
must not be used for more than one PLC on the same network.
Note:
When using the PC(PLC) link with the RS232C/RS422, the number of units is 2.
7-59
7-60
System registers
Default
No. Name Set value
value
40 Range of link relays used for PC(PLC) link 0 0 to 64 words
41 Range of link data registers used for PC(PLC) link 0 0 to 128 words
42 Starting number for link relay transmission 0 0 to 63
For 43 Link relay transmission size 0 0 to 64 words
PC 44 Starting number for link data register transmission 0 0 to 127
(PLC) 45 Link data register transmission size 0 0 to 128 words
link 0 46 PC(PLC) link switch flag Normal Normal: 1st half
Reverse: 2nd half
Note)
47 Maximum unit number setting for MEWNET-W0 16 1 to 16
PC(PLC) link
46 PC(PLC) link switch flag Normal Normal: 1st half
Reverse: 2nd half
50 Range of link relays used for PC(PLC) link 0 0 to 64 words
For 51 Range of link data registers used for PC(PLC) link 0 0 to 128 words
PC 52 Starting number for link relay transmission 64 64 to 127
(PLC) 53 Link relay transmission size 0 0 to 64 words
link 1 54 Starting number for link data register transmission 128 128 to 255
55 Link data register transmission size 0 0 to 128 words
Note)
57 Maximum unit number setting for MEWNET-W0 16 1 to 16
PC(PLC) link
Note) The same maximum unit number should be specified for all the PLCs connected in the PC(PLC)
link.
• Link areas consist of link relays and link registers, and are divided into areas for PC(PLC) link 0 and
PC(PLC) link 1 and used with those units.
• The link relay which can be used in an area for either PC(PLC) link 0 or PC(PLC) link 1 is maximum
1024 points (64 words), and the link register is maximum 128 words.
Note:
The PC link 1 can be used to connect with the second PC link W0 of the FP2 Multi Communication Unit
(MCU). At that time, the link relay number and link register number for the PC link can be the same
values as the FP2 (from WL64, from LD128).
Reference:
For the information on FP2-MCU, <Chapter 5 Communication Function PC(PLC) Link in FP2 Multi
Communication Unit Technical Manual ARCT1F396E>.
7-61
System registers
Setting for various units
No. Name
No. 1 No. 2 No. 3 No. 4
40 Range of link relays used 64 64 64 64
42 Starting No. of word for link relay transmission 0 20 40 0
43 Link relay transmission size 20 20 24 0
Note) No. 40 (range of link relays used) must be set to the same range for all the units.
System registers
Setting for various units
No. Name
No. 1 No. 2 No. 3 No. 4
41 Range of link registers used 128 128 128 128
44 Starting No. for link register transmission 0 40 80 0
45 Link register transmission size 40 40 48 0
Note) No. 41 (range of link registers used) must be set to the same range for all the units.
When link areas are allocated as shown above, the No. 1 send area can be sent to the No. 2, No. 3 and
No. 4 receive areas. Also, the No. 1 receive area can receive data from the No. 2 and No. 3 send areas.
No. 4 is allocated as a receive area only, and can receive data from No. 1, No. 2 and No. 3, but cannot
transmit it to other stations.
7-62
System registers
Setting for various units
No. Name
No. 1 No. 2 No. 3 No. 4
50 Range of link relays used 64 64 64 64
52 Starting No. of word for link relay transmission 64 84 104 64
53 Link relay transmission size 20 20 24 0
Note) No. 50 (range of link relays used) must be set to the same range for all the units.
System registers
Setting for various units
No. Name
No. 1 No. 2 No. 3 No. 4
51 Range of link registers used 128 128 128 128
54 Starting No. for link register transmission 128 128 208 128
55 Link register transmission size 40 40 48 0
Note) No. 51 (range of link registers used) must be set to the same range for all the units.
When link areas are allocated as shown above, the No. 1 send area can be sent to the No. 2, No. 3 and
No. 4 receive areas. Also, the No. 1 receive area can receive data from the No. 2 and No. 3 send areas.
No. 4 is allocated as a receive area only, and can receive data from No. 1, No. 2 and No. 3, but cannot
transmit it to other stations.
Note:
The PC link 1 can be used to connect with the second PC link W0 of the FP2 Multi Communication Unit
(MCU). At that time, the link relay number and link register number for the PC link can be the same
values as the FP2 (from WL64, from LD128).
Reference:
For the information on FP2-MCU, <Chapter 5 Communication Function PC(PLC) Link in FP2 Multi
Communication Unit Technical Manual ARCT1F396E>.
7-63
7-64
System registers
Set value of various control units
No. Name
No. 1 No. 2 No. 3
No. 40 Range of link relays used 64 64 64
No. 42 Starting No. of word for link relay transmission 0 20 30
No. 43 Link relay transmission size 20 20 34
Invalid allocations
The allocations shown below are not possible, neither for link relays nor for link registers:
7-65
[Sample setting]
No. of units linked Setting contents
2 1st unit: Unit no. 1 is set
2nd unit: Unit no. 2 is set
A largest unit no. of 2 is set for each.
4 1st unit: Unit no. 1 is set
2nd unit: Unit no. 2 is set
3rd unit: Unit no. 3 is set
4th unit: Unit no. 4 is set
A largest unit no. of 4 is set for each.
n Nth unit: Unit no. n is set
A largest unit no. of n is set for each.
Note:
• Unit numbers should be set sequentially and consecutively, starting from 1, with no breaks between
them. If there is a missing unit number, the transmission time will be longer.
• If fewer than 16 units are linked, the transmission time can be shortened by setting the largest unit
number in system register no. 47 (in system register no. 57 for PC(PLC) link 1).
• For all PLCs which are linked, the same value should be set for the largest unit number.
• If there are fewer than 16 units linked and the largest unit number has not been set (default=16), or the
largest unit number has been set but the unit number settings are not consecutive, or the unit number
settings are consecutive but there is a unit for which the power supply has not been turned on, the
response time for the PC(PLC) link (the link transmission cycle) will be longer.
7-66
Unit no. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Conditions ON: When the unit is in the RUN mode
for on/off ON: When the unit is in the PROG. mode
Unit no. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
ON: When a transmission error has occurred in the PLC link,
Conditions
or when there is an error in the setting for the PLC link area
for on/off
OFF: When the unit is in the PROG. mode
Note:
Remote programming of the linked PLCs is not possible.
7-67
Key Point:
Make sure the same unit number is not used for more than one of the PLCs connected through the
PC(PLC) link function, and specify consecutive numbers.
7-68
System registers
Set value of various control units
No. Name
No. 1 No. 2 No. 3
No. 40 Range of link relays used 64 64 64
No. 42 Starting No. of word for link relay transmission 0 20 40
No. 43 Link relay transmission size 20 20 24
System registers
Set value of various control units
No. Name
No. 1 No. 2 No. 3
No. 41 Range of link registers used 128 128 128
No. 44 Starting No. for link register transmission 0 40 80
No. 45 Link register transmission size 40 40 48
- Unit no. 2
When L0 of the link relay goes on, Y0 is output.
- Unit no. 3
When L1 of the link relay goes on, Y0 is output.
7-70
Tpc = Ttx (sending time per byte) x Pcm (PLC link sending size)
Ttx = 1/(baud rate x 1000) x 11 ms …. Approx. 0.096 ms at 115.2 kbps
Pcm = 23 + (number of relay words + number of register words) x 4
� Tlk (link addition processing time) …. If no stations are being added, Tlk = 0.
Tlk = Tlc (link addition command sending time) + Twt (addition waiting time) + Tls (sending time for
command to stop transmission if link error occurs) + Tso (master station scan time)
Calculation example 1
When all stations have been added to a 16-unit link, the largest station number is 16, relays and
registers have been evenly allocated, and the scan time for each PLCs is 1 ms.
Ttx = 0.096 Each Pcm = 23 + (4 + 8) x 4 = 71 bytes Tpc = Ttx x Pcm = 0.096 x 71 ≒ 6.82 ms
Each Ts = 1 + 6.82 = 7.82 ms Tlt = 0.096 x (13 + 2 x 16) = 4.32 ms
Given the above conditions, the maximum value for the transmission time (T) of one cycle will be:
T max. = 7.82 x 16 + 4.32 + 1 = 130.44 ms
Calculation example 2
When all stations have been added to a 16-unit link, the largest station number is 16, relays and
registers have been evenly allocated, and the scan time for each PLC is 5 ms
Ttx = 0.096 Each Pcm = 23 + (4 + 8) x 4 = 71 bytes Tpc = Ttx x Pcm = 0.096 x 71 ≒ 6.82 ms
Each Ts = 5 + 6.82 = 11.82 ms Tlt = 0.096 x (13 + 2 x 16) = 4.32 ms
Given the above conditions, the maximum value for the transmission time (T) of one cycle will be:
T max. = 11.82 x 16 + 4.32 + 5 = 198.44 ms
7-71
Given the above conditions, the maximum value for the transmission time (T) of one cycle will be:
T max. = 11.82 x 15 + 4.13 + 5 + 407 = 593.43 ms
Calculation example 4
When all stations have been added to an 8-unit link, the largest station number is 8, relays and
register have been evenly allocated, and the scan time for each PLC is 5 ms.
Ttx = 0.096 Each Pcm = 23 + (8 + 16) x 4 = 119 bytes
Tpc = Ttx x Pcm = 0.096 x 119 ≒ 11.43 ms
Each Ts = 5 + 11.43 = 16.43 ms Tlt = 0.096 x (13 + 2 x 8) ≒ 2.79 ms
Given the above conditions, the maximum value for the transmission time (T) of one cycle will be:
T max. = 16.43 x 8 + 2.79 + 5 = 139.23 ms
Calculation example 5
When all stations have been added to a 2-unit link, the largest station number is 2, relays and
registers have been evenly allocated, and the scan time for each PLC is 5 ms.
Ttx = 0.096 Each Pcm = 23 + (32 + 64) x 4 = 407 bytes
Tpc = Ttx x Pcm = 0.096 x 407 ≒ 39.072 ms
Each Ts = 5 + 39.072 = 44.072 ms Tlt = 0.096 x (13 + 2 x 2) ≒ 1.632 ms
Given the above conditions, the maximum value for the transmission time (T) of one cycle will be:
T max. = 44.072 x 2 + 1.632 + 5 = 94.776 ms
Calculation example 6
When all stations have been added to a 2-unit link, the largest station number is 2, 32 relays and
2 register words have been evenly allocated, and the scan time for each PLC is 1 ms.
Ttx = 0.096 Each Pcm = 23 + (1 + 1) x 4 = 31 bytes
Tpc = Ttx x Pcm = 0.096 x 31 ≒ 2.976 ms
Each Ts = 1 + 2.976 = 3.976 ms Tlt = 0.096 x (13 + 2 x 2) ≒ 1.632 ms
Given the above conditions, the maximum value for the transmission time (T) of one cycle will be:
T max. = 3.976 x 2 + 1.632 + 1 = 10.584 ms
Note:
• In the description, “stations that have been added” refers to stations which are connected between
station no. 1 and the largest station number and for which the power supply has been turned on.
• Comparing examples 2 and 3, the transmission cycle time is longer if there is one station that has not
been added to the link. As a result the PC(PLC) link response time is longer.
• The SYS1 instruction can be used to minimize the transmission cycle time even if there are one or
more stations that have not been added to the link.
7-72
With the SYS1 instruction, the link addition waiting time Twt in the above formula can be reduced. Thus,
SYS1 can be used to minimize the increase in the transmission cycle time.
Note:
If there are any units that have not been added to the link, the setting should not be changed as
long as a longer link transmission cycle time does not cause any problem.
• The SYS1 instruction should be executed at the beginning of the program, at the rise of R9014. The
same waiting time should be set for all linked PLCs.
• The waiting time should be set to a value of at least twice the maximum scan time for any of the PLCs
connected to the link.
• If a short waiting time has been set, there may be PLCs that cannot be added to the link even if their
power supply is on. (The shortest time that can be set is 10 ms.)
7-73
Note:
The setting should not be changed as long as a longer transmission assurance relay detection
time does not cause any problems.
• The SYS1 instruction should be executed at the beginning of the program, at the rise of R9014. The
same time should be set for all linked PLCs.
• The time should be set to a value of at least twice the maximum transmission cycle time when all of the
PLCs are connected to the link.
• If short time has been set, the transmission assurance relay may not function properly. (The shortest
time that can be set is 100 ms.)
7-74
Master function
Writing and reading data for various slaves is available using the F145 (SEND) and F146 (RECV)
instructions.
Individual access to each slave and the global transmission is possible.
Slave function
If the slave units receive a command message from the master unit, they send back the response
message corresponding to the content.
Do not execute the F145 (SEND) or F146 (RECV) instructions when the unit is used as a slave unit.
7-75
7-76
7-77
7-78
Note: Available for the transistor type and relay type Ver 1.21 or later version only.
Sample program
7-79
Note) The above COM1 port will be COM2 port for the COM2 port.
7-80
7.7.1 AFPX-COM5
Overview
The communication cassette AFPX-COM5 has an Ethernet interface at the COM1 port and a 3-wire
RS232C interface at the COM2 port.
The Ethernet at the COM1 port supports the computer link and general-purpose serial communication,
and the RS232C at the COM2 port supports the computer link, general-purpose serial communication
and MODBUS RTU.
The use of the COM2 port is the same as other cassettes such as the AFPX-COM2, and it is selectable
from the COM2 port or the FP-X USB communication.
Although the Ethernet interface is connected to other device via Ethernet, the AFPX-COM5
communicates with the FP-X via RS232C, and it functions as a converter between Ethernet and RS232C.
Note) When the firmware version of AFPX-COM5 is older than Ver1.10, it can be upgraded by
downloading the later version from our website.
http://industrial.panasonic.com/ac/e/dl_center/software/
7-81
Option setting
Communication mode select Ver1.00 Ver1.10
Response timeout Not available Available
End code Not available Available
Judgment time without termination Not available Available
Network information notification Not available Available
Network information confirmation Not available Available
Connection information confirmation Not available Available
Target IP address for unit number Not available Available
7-82
IP address setting
Item Description Default
Obtain IP
When selecting “Obtain an IP address automatically”, an IP address is Use the
address
obtained from the DHCP server. When selecting “Use the following IP following IP
automatically
Note1) address”, an IP address is set manually. address
Unit name Unit name for Communication cassette AFPX-COM5 can be specified. FPX_ET
IP address of Communication cassette AFPX-COM5
IP address 192.168.1.5
Set an IP address other than 0.0.0.0 and 255.255.255.255.
Subnet mask Netmask of Communication cassette AFPX-COM5 255.255.255.0
Gateway Gateway of Communication cassette AFPX-COM5 192.168.1.1
Note1) When an error occurs, the ERROR LED will be turned on.
7-83
7-84
7-85
Overview
• Communication is conducted between a computer and a PLC using Ethernet by the computer link.
• Remote programming and monitoring is possible via LAN line by using a programming tool such as
FPWIN GR.
Outline of operation
• Establish connection between a computer and the FP-X.
• In that case, the connected computer is called “Client” and the connected FP-X is called “Server”. After
connection establishment, communication via TCP/IP is conducted. Up to 3 connections can be
established at the specified source port.
7-86
7-87
Note:
If the TCP is selected for the communication protocol, up to three connections are established using the
computer link (Ethernet), however, when using the programming tool FPWIN GR for connection (using
registration monitor command, multi-frame), more than two connections cannot be established. Also, If
the UDP is selected for the communication protocol, the UDP communication cannot be used as the
programming tool FPWIN GR does not support it, although no restriction on connections.
7-88
7-89
Communication setting
Item Default
Communication protocol TCP
Action mode Server mode
Baud rate (COM1) 115200 bps/9600 bps
Communication mode Computer link
Source port No. 9094
Time out 0
Note1) Specify the same baud rate as the
communication environment setting of the
COM1 port of the FP-X.
Setting of a computer
IP address setting
Item Default
Note)
IP address 192.168.1.100
Subnet mask 255.255.255.0
Default gateway 192.168.1.1
Note) The IP address of a computer is an example.
Set the IP addresses of the computer and
communication cassette AFPX-COM5
according to the network environment to be
used.
7-90
7-91
Note:
If you want to transmit data when connection is not established, the connection can be established from
the AFPX-COM5 and data can be transmitted.
In the TCP, it takes some time for connection. The connection timeout for the AFPX-COM5 is the same
as the response timeout value. Set the timeout time for the SEND/RECV instruction longer than the
response timeout value to judge the connection timeout.
7-92
Note:
After the AFPX-COM5 is powered on, it will take about 5 seconds for initializing the Ethernet.
Until the Ethernet is initialized, data cannot be transmitted or received. For the Ethernet communication,
programming is necessary to start the communication after 5 seconds since the power turned on.
Generally, as a router does not transmit a broadcast packet, communication over the router cannot be
achieved. Using the broadcast, processing load is applied on all equipment on the network. Confirm that
the broadcast does not affect other equipment before using it.
7-93
Note: It is available for the transistor type and relay type of Ver 1.21 or later.
Description
R100: Stores the data for 10 words from DT1000 of the slave unit 1 into the area from DT100 of the
master unit.
R101: Writes the data for 10 words from DT100 of the master unit to the area form DT1010 of the slave
unit 1.
R102: Stores the data for 10 words from DT1000 of the slave unit 2 into the area from DT120 of the
master unit.
R103: Writes the data for 10 words from DT130 of the master unit to the area form DT1010 of the slave
unit 2.
Set the system registers for each units by a tool software (such as FPWIN GR).
System register setting
Master unit No. 412: Computer link mode
No. 415: 115200 bps
No. 413: 8 bits, Odd, 1 bit
Slave unit 1 No. 410: Unit No. 1
No. 412: Computer link mode
No. 415: 115200 bps
No. 143 8 bits, Odd, 1 bit
Slave unit 2 No. 410: Unit No. 2
No. 412: Computer link mode
No. 415: 115200 bps
No. 413: 8 bits, Odd, 1 bit
7-94
7-95
7-96
7-97
Overview
• Data can be sent and received between the FP-X and an external device using Ethernet.
• Data is read from and written to an external device connected to Ethernet by means of FP-X data
registers, and the programs are required for the FP-X.
Outline of operation
• Connection with an external device is established using the general-purpose serial communication
(Ethernet). Number of connection is one.
• Select either the client mode or server mode.
• In case of the client mode, connection is established by the AFPX-COM5 for a predetermined IP
address after turning on the power supply of the FP-X.
• There are “Send data” and “Receive data” for the data transfer with an external device.
7-98
7-99
7-100
Note:
Initializing Ethernet takes approx. 5 seconds on the AFPX-COM5 after turning on the power supply. Until
it finishes, data cannot be sent or received. For Ethernet communication, programming is necessary to
start communication after a lapse of 5 seconds after the power activation.
7-101
7-102
Do not use the same unit number for multiple FP-X units.
7-103
The network information (own IP address, destination IP address, destination port No., version)
that has been set for the AFPX-COM5 can be confirmed from the FP-X by the option setting. The
connection information (destination IP address, own IP address, version) of the AFPX-COM5 can
be confirmed from the LAN side.
1. Network information notification: Network information is notified to the FP-X from the AFPX-
COM5. (Network information is written to the data register of FP-X by the AFPX-COM5.)
2. Network information confirmation: Network information on the AFP-COM5 can be confirmed
from the FP-X. (The virtual data register within the AFP-COM5 is read from the FP-X.)
3. Connection information confirmation: Connection information on the AFPX-COM5 can be
confirmed from a destination device from a device on a LAN. (The virtual data register within
the AFPX-COM5 is read from a destination device on a LAN.)
7-104
7-105
7-106
7-107
Settable conditions
- When selecting the client and computer link
- When selecting the UDP and general-purpose communication
- When selecting the broadcast (IP address takes priority, and a command is transmitted via unicast.)
Setting method
1. Check “Destination unit number and IP address is specified.” in the [Option] dialog box.
2. Check the destination unit number you want to set, and double-click the IP address.
(Unit numbers 1 to 99)
3. Specify the destination IP address that is corresponding to the unit number.
Note) When connecting to the IP corresponding to a unit number via TCP, a new connection should be
established after disconnecting the existing connection.
7-108
Overview
Connection can be established with a maximum of 8 FP-X simultaneously using a FP2 ET-LAN unit, and
transmission is performed by the computer link.
Example of connection
7-109
2) Setting of AFPX-COM5
Item Setting value
Communication protocol TCP
Action mode Server mode
Communication mode Computer link
Source port No. 9094
Time out 0
Note:
For MEWTOCOL master function of the FP2 ET-LAN unit, MEWTOCOL-COM is not available. For
communicating with the FP-X by the computer link, transmit the MEWTOCOL-COM data format using
the transparent communication on the FP2 ET-LAN unit. In this case, an exclusive header is not required
for the ET-LAN unit.
7-110
Initialization procedure
Note) The Ethernet communication setting (including the IP address) cannot be changed when the
switch at the back of the AFPX-COM5 is on. Always turn it off after initialization.
Communication setting
Item Default
Communication protocol TCP
Action mode Server mode
Baud rate (COM1) 9600 bps
Communication mode Computer link
Source port No. 9094
Time out 0
7-111
For the FP-X, the add-on cassette (application cassette and communication cassette) can be installed on
the FP-X control unit. The number of the expansion units that can be installed varies depending on the
types of the control unit.
8-2
CH0 WX10
2-channel
FP-X analog WX20
analog input AFPX-AD2
input cassette CH1 WX11
(non-isolated)
WX21
2-channel
CH0 WX10
FP-X thermocouple input
WX20
thermocouple (isolated) AFPX-TC2
CH1 WX11
cassette (isolated between
WX21
channels)
8-3
From X100
4-point DC input
FP-X I/O From Y100
3-point transistor output AFPX-IN4T3
cassette From X200
(NPN)
From Y200
From X100
2-channel high-speed
FP-X pulse I/O From Y100
Note2) counter + 1-channel AFPX-PLS
cassette From X200
pulse output
From Y200
FP-X master
Master memory +
memory − AFPX-MRTC
Clock/Calendar
cassette
Note1) The I/O numbers are the cassette mounting part 1 (from X100 and Y100) and cassette mounting
part 2 (from X200 and Y200).
8-4
Note3) Averaging cannot be processed with the cassette. If averaging is necessary, use a ladder
program to execute averaging process.
Terminal layout
CH0 V Voltage input
I Current input
SEL Voltage/current select
COM Common
CH1 V Voltage input
I Current input
SEL Voltage/current select
COM Common
8-5
DC input: 0 mA to 20 mA
Conversion characteristics graph
8-6
Note:
• Use double-core twisted-pair shielded wires. It is recommended to ground them. 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.
8-7
Terminal layout
CH0 V Voltage output
I Current output
COM0 Common
CH1 V Voltage output
I Current output
COM1 Common
NC Not used
Connection method
8-8
0 V to 10 V output
Conversion characteristics graph
8-9
Note:
• Use double-core twisted-pair shielded wires. It is recommended to ground them. However, depending
on the conditions of the external noise, it may be better not to ground the shielding.
• Do not have the analog output wiring close to AC wires, power wires, or load.
8-10
Note3) Averaging cannot be processed with the cassette. If averaging is necessary, use a ladder
program to execute averaging process.
Item Specifications
No. of output points 1 channels/cassette
Voltage 0 to 10 V
Output range
Current 0 to 20 mA
Note)
Digital value K0 to K4000
Resolution 1/4000 (12 bits)
Conversion speed 1 ms/1 channel
Total accuracy ±1% F.S. or less (0 to 55 °C)
Output impedance 0.5 kΩ (Voltage output)
Output max. current 10 mA (Voltage output)
Output allowable load resistance 600 Ω or less (Current output)
Between analog output terminal and internal digital circuit part
Transformer insulation, Isolation IC insulation
Insulation
Between analog output terminal and analog input terminal
Transformer insulation , Isolation IC insulation
8-11
Connection method
8-12
8-13
8-14
Note:
• Use double-core twisted-pair shielded wires. It is recommended to ground them. 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.
8-15
8-16
Note:
• Use double-core twisted-pair shielded wires. It is recommended to ground them. However, depending
on the conditions of the external noise, it may be better not to ground the shielding.
• Do not have the analog output wiring close to AC wires, power wires, or load.
8-17
Terminal layout
CH0 + Thermocouple input +
- Thermocouple input -
CH1 + Thermocouple input +
- Thermocouple input -
NC Used by the system.
Do not connect
anything.
Connection method
Keep the space more than 100 mm between the input line and the power line/high-voltage line.
It is recommended to ground the unit using the shielded compensating wire.
8-18
Switch (backside)
Thermocouple type K
Thermocouple type J
K and J range
Conversion characteristics graph
8-19
8-20
Note1) When extending the lead wire of RTD, use 3 wires in the same resistance and the same length.
Note2) Do not place the input signal line close to an AC power line or high-voltage line. Also, do not
bundle it with them.
Note3) Use shielded wires for the input signal line. It is recommended to ground them.
However, depending on the conditions of the external noise, it may be better not to ground the
shielding.
Noter4) Do not connect one RTD to other equipment in parallel (input).
Note:
About RTD input range
- From the Power-on to the converted data Ready (approx. 3 seconds), the digital value will be K20001.
Take care of the use of the data during this period not to influence other programs.
- From the disconnection or exceeding the rated range (digital value: K20000) to the recovery and
converted data Ready (approx. 3 seconds), the digital value will be K20001.
Take care of the use of the data during this period not to influence other programs.
8-21
Circuit diagram
8-22
Circuit diagram
8-23
Circuit diagram
8-24
Output specifications
Item Description
Output type Open collector (NPN)
Rated load voltage 24 V DC
Max. load current 0.3 A
Output points per common 3 points/common
off→on 0.1 ms or less
Response time
on→off 0.8 ms or less
Operating mode indicator LED display
Circuit diagram
8-25
Note:
The pulse I/O cassette cannot be used with the FP-X Control Unit Tr type.
8-26
Circuit diagram
High-speed counter part Pulse output part
8-27
Note: Only the Clock/Calendar function is valid at the factory setting. Install a battery in the
control unit to use the Clock/Calendar function.
If the battery is not installed, the Clock/Calendar does not function.
Function changeover switch (between the Clock/Calendar and the master memory)
Use the switch at the back of the cassette to switch between the Clock/Calendar and master memory
functions.
8-28
9-2
Note) The pulse I/O cassette (AFPX-PLS) cannot be used with the FP-X Tr type control unit.
Counting range
• K-2, 147, 483, 648 to K+2, 147, 483, 647 (Coded 32-bit binary)
• The built-in high-speed counter is a ring counter. Consequently, if the counted value exceeds the
maximum value, it returns to the minimum value. Similarly, if the counted value drops below the
minimum value, it goes back to the maximum value and continues counting from there.
Note:
When the linear interpolation instruction F175 is used, the value for the amount of travel should be set so
that it is within the range indicated below.
-8,388,608 to +8,388,607 (Coded 24-bit binary)
9-3
9.2.1 Specifications
High-speed counter function
High-speed counter by the input of the main unit
Performance
Memory area being used
specifications
Input Reset Min. Max.
Channel No. Elapsed Target
contact input Control input counting
value value
flag pulse speed
area area Note1)
width
DT90300 DT90302 1 CH:
CH0 X0 X6 R9110
DT90301 DT90303 100 kHz
DT90304 DT90306 High- 2 CH:
CH1 X1 None R9111
High- DT90305 DT90307 speed 80 kHz
speed DT90308 DT90310 input 3 CH:
CH2 X2 X7 R9112
DT90309 DT90311 5 µs 60 kHz
DT90312 DT90314 4 CH:
[Single phase] CH3 X3 None R9113 50 kHz
DT90313 DT90315
Incremental,
Decremental DT90316 DT90318
CH4 X4 None R9114
DT90317 DT90319
DT90320 DT90322 Medium-
CH5 X5 None R9115
Medium- DT90321 DT90323 speed 10 kHz
speed DT90324 DT90326 input each
CH6 X6 None R9116
DT90325 DT90327 100 µs
DT90328 DT90330
CH7 X7 None R9117
DT90329 DT90331
X0 DT90300 DT90302 High- 1 CH:
CH0 X6 R9110
High- X1 DT90301 DT90303 speed 35 kHz
[2-phase] speed input 2 CH:
X2 DT90308 DT90310
2-phase input , CH2
X3
X7 R9112
DT90309 DT90311 14.3 µs 25 kHz
One input,
Direction X4 DT90316 DT90318 Medium-
CH4 None R9114
distinction Medium- X5 DT90317 DT90319 speed 5 kHz
speed X6 DT90324 DT90326 input each
CH6 None R9116
X7 DT90325 DT90327 100 µs
Related instructions:
F0(MV) :High-speed counter control
F1(DMV) :Read/write of elapsed value of high-speed counter
F166(HC1S) :Target value match on
F167(CH1R) :Target value match off
Note1) These values are available only when the conditions of each item (such as counting method or
No. of channels) are executed.
These values are not available if executing the HSC match ON/OFF instruction, other pulse I/O
process simultaneously or executing the interrupt program.
9-4
9-6
9-7
Interpolation control
Maximum output frequency kHz
High-speed Medium-speed
(Composite speed)
CH0 CH2 High-speed CH Medium-speed CH
Available 100
Available Available 100 20
Note) Even if all channels are used for the interpolation function, they can be used within the ranges
above.
9-8
Allocations of input X and restrictions when using the high-speed counter function
When using the high-speed counter, it is necessary to set how to use the input by system registers.
C14/C30/C60 Tr type
Pulse High-speed Medium-speed
Signal CH0 CH1 CH2 CH3 CH4 CH5 CH6 CH7
Single-phase input X0 X1 X2 X3 X4 X5 X6 X7
2-phase input X0, X1 - X2, X3 - X4, X5 - X6, X7 -
Reset input X6 - X7 - - - - -
Note) The X4, X5, X6 and X7 are also used for the home input of the pulse output. Use them only for
either one signal.
Allocations of output Y and restrictions when using the pulse output function
When using the pulse output function, it is necessary to set how to use the input/output by system
registers.
C14 Tr type
Pulse High-speed Medium-speed
Signal CH0 CH1 CH2
CW PULSE Y0 Y2 Y4
CCW SIGN Y1 Y3 Y5
Deviation counter clear output Y4 Y5 -
Home input X4 X5 X6
Note) The Y4 and Y5 of the medium-speed pulse are also used for the deviation counter clear signal.
The X4, X5 and X6 of the home input are also used for the input of the high-speed counter.
Use them only for either one signal.
Note:
• With the C14, if the home return is executed with the deviation counter clear for the pulse output CH0,
set the Y4 to the normal output by the system register.
• With the C14, if the home return is executed with the deviation counter clear for the pulse output CH1,
set the Y5 to the normal output by the system register.
• If the home return is executed, set the home input by the system register 401.
If the home return is executed without the setting, an operation error occurs.
C30/C60 Tr type
Pulse High-speed Medium-speed
Signal CH0 CH1 CH2 CH3
CW PULSE Y0 Y2 Y4 Y6
CCW SIGN Y1 Y3 Y5 Y7
Deviation counter clear output Y8 Y9 - -
Home input X4 X5 X6 X7
Note) The X4, X5, X6 and X7 of the home input are also used for the input of the high-speed counter.
Use them only for either one signal.
Note:
• If the home return is executed, set the home input by the system register 401.
If the home return is executed without the setting, an operation error occurs.
9-10
Direction discrimination
9-11
9-12
When using CH0 of the high-speed counter When using CH0 of the high-speed counter
with incremental input and reset input with two-phase input and reset input
* The output turned on and off when the target * The output turned on and off when the target
value is reached can be specified as arbitrary value is reached can be specified as arbitrary
output of the main unit or add-on cassette. output of the main unit or add-on cassette.
In the above program, the reset is performed in step (1) and 0 is entered just after that in step (2). The
count is now ready for operation. If it is only reset, counting will not be performed.
9-13
Note)
• In the reset input setting, the reset input
(X6 or X7) for CH0 or CH2 allocated in the
high-speed counter setting of the system
registers are defined to “enable/disable”.
• The high-speed counter to be used with
the reset input is CH0 and CH2 only.
9-14
Example 2:
If the elapsed value (DT90308 and DT90309)
for channel 2 matches K20000, output Y6 turns
on.
Example 2:
If the elapsed value (DT90312 and DT90313)
for channel 3 matches K40000, output Y5 turns
off.
FP-X Tr type – Elapsed value and target value areas of high-speed counter ch0 to ch7
High-speed counter
Control flag Elapsed value area Target value area
Channel No.
ch0 R9110 DT90300 to DT90301 DT90302 to DT90303
ch1 R9111 DT90304 to DT90305 DT90304 to DT90307
ch2 R9112 DT90308 to DT90309 DT90310 to DT90311
ch3 R9113 DT90312 to DT90313 DT90314 to DT90315
ch4 R9114 DT90316 to DT90317 DT90318 to DT90319
ch5 R9115 DT90320 to DT90321 DT90322 to DT90323
ch6 R9116 DT90324 to DT90325 DT90326 to DT90327
ch7 R9117 DT90328 to DT90329 DT90330 to DT90331
9-15
Wiring example
Program
When X5 is turned on, Y0 turns on and the conveyor begins moving. When the elapsed value (DT90300
and DT90301) reaches K5000, Y0 turns off and the conveyor stops.
9-16
Wiring example
9-17
9-18
Note:
• With the Tr type, the CPU output is used to perform the pulse output function.
The pulse I/O cassette (AFPX-PLS) cannot be used.
9-19
Note:
The output signals are the number of the built-in output of the main unit.
When the pulse output has been set, only the pulse is output, and the values of the output memories Y0,
Y1, Y2, Y3, Y4 and Y5 are not output. So, they will not be turned on/off even if monitoring with the tool.
9-20
Home return
• When executing the F171 (SPDH) instruction, the pulse is continuously output until the home input (X4,
X5, X6 or X7) is enabled (for the C14 Tr type, X4, X5 or X6).
• To decelerate the movement when near the home position, designate a near home input and set bit 4
of special data register DT90052 to off → on → off.
• The deviation counter clear output can be output when home return has been completed. (However,
the deviation counter clear output is available only for CH0 and CH1.)
JOG operation
• Pulses are output from the specified channel while the trigger for F172 (PLSH) instruction is in the ON
state. Also, the pulse output can be stopped when the specified target value is matched.
• The direction output and output frequency are specified by F172 (PLSH) instruction.
9-21
Note:
• The above flags vary during scanning.
Example: If the above flags are used for more than one time as input conditions, there may be the
different states in the same scan. Replace with internal relays at the beginning of the program as a
measure.
9-22
* Input that is not used for other applications is * Input that is not used for other applications is
specified for the near home input. specified for the near home input.
Note) If the deviation counter clear output Note) If the deviation counter clear output
function is performed when the home function is performed when the home
return is done, Y4 is used for the C14 Tr return is done, Y5 is used for the C14 Tr
type, and Y8 is used for the C30/C60 Tr type, and Y9 is used for the C30/C60 Tr
type. type.
<When using CH2> <When using CH3> (C30, C60 Tr type only)
* Input that is not used for other applications is * Input that is not used for other applications is
specified for the near home input. specified for the near home input.
Note) The deviation counter clear output function is not available for the CH2 and CH3.
9-23
* Input that is not used for other applications is * Input that is not used for other applications is
specified for the near home input. specified for the near home input.
Note) If the deviation counter clear output Note) If the deviation counter clear output
function is performed when the home function is performed when the home
return is done, Y4 is used for the C14 Tr return is done, Y5 is used for the C14 Tr
type, and Y8 is used for the C30/C60 Tr type, and Y9 is used for the C30/C60 Tr
type. type.
<When using CH2> <When using CH3> (C30, C60 Tr type only)
* Input that is not used for other applications is * Input that is not used for other applications is
specified for the near home input. specified for the near home input.
Note) The deviation counter clear output function is not available for the CH2 and CH3.
9-24
Example 1:
Enable the near home input during home return operations and begin deceleration.
In case of CH0
Example 2:
Performing a forced stop of the pulse output.
In case of CH0
9-25
Reference: <9.2.1 Table of specifications> for information on the special data register.
Example 1:
Writing the elapsed value
Set the initial value of K3000 in the pulse output
CH0.
FP-X Tr type - Elapsed value and target value areas of pulse output ch0 to ch3
Pulse output
Control flag Elapsed value area Target value area
Channel No.
ch0 R911C DT90348 to DT90349 DT90350 to DT90351
ch1 R911D DT90352 to DT90353 DT90354 to DT90355
ch2 R911E DT90356 to DT90357 DT90358 to DT90359
ch3 R911F DT90360 to DT90361 DT90362 to DT90363
9-26
Note) When the stepping motor input is a 5 V optical coupler type, connect a 2 kΩ (1/2 W) resistor with
the R1 and a 2 kΩ (1/2 W) to 470 Ω (2 W) resistor with the R2.
9-27
9-28
Program
9-30
Program
9-31
Program
9-32
9-33
Reference:
The pulse output control instruction (F0) is used for the near home input.
<9.4.4 Pulse output control instructions (F0) (F1)>.
9-35
Program
9-36
Program
9-37
9-38
9-39
Program
9-40
Program
Reference:
The pulse output control instruction (F0) is used for the pulse output stop.
<9.4.4 Pulse output control instruction (F0) (F1)>
9-41
9-42
Note:
The linear interpolation function can be used in the combination of (ch0 and ch1) or (ch2 and ch3).
9-44
Note) When the stepping motor input is a 5 V optical coupler type, connect a 2 kΩ (1/2 W) resistor with
the R1 and a 2 kΩ (1/2 W) to 470 Ω (2 W) resistor with the R2.
9-46
Sample program
Continuous interpolation control
• Using the linear interpolation function, perform positioning control that draws trajectory like the one
shown below.
Relay allocation
Relay No. Description Relay No. Description
X1 Positioning start R9010 Always ON
X2 Emergency stop switch R911C Pulse output flag (CH0)
R20 From P1 to P2 start R911D Pulse output flag (CH1)
R21 From P2 to P3 start
R22 From P3 to P4 start
R23 From P4 to P1 start
R2F Positioning done
9-47
9-48
9-49
Key Point:
As there is not interpolation function for the home return, the home return should be executed for each
channel. After the home return for both channels is completed, the positioning operation running
program (R40) turns off.
9-50
Note:
The pulse I/O cassette (AFPX-PLS) cannot be used with the FP-X Tr type.
Data table
DT100 Control code *1 : K1
DT101 Duty *2 : 50%
*1: Specify the control code by setting the K constant.
Resolution of 1000 Resolution of 100
K Frequency (Hz) Period (ms) K Frequency (Hz) Period (ms)
K0 1.5 666.67 K20 15.6 k 0.06
K1 2.0 502.51 K21 20.8 k 0.05
K2 4.1 245.70 K22 25.0 k 0.04
K3 6.1 163.93 K23 31.3 k 0.03
K4 8.1 122.85 K24 41.7 k 0.02
K5 9.8 102.35
K6 19.5 51.20 However, for the medium-speed channel
K7 48.8 20.48 CH2 and CH3 of the Tr type, it is not possible
K8 97.7 10.24 to specify from K21 to k24.
K9 201.6 4.96
K10 403.2 2.48
K11 500.0 2.00
K12 694.4 1.44
K13 1.0 k 0.96
K14 1.3 k 0.80
K15 1.6 k 0.64
K16 2.1 k 0.48
K17 3.1 k 0.32
K18 6.3 k 0.16
K19 12.5 k 0.08
9-51
If the control code is K20 to K24, the duty is K0 to K990 (0% to 99%).
Values are specified in units of 1% (K10) (digits behind the decimal point are rounded off).
Note:
• If a value outside the specified range is written to the duty area while the instruction is being executed,
a frequency corrected to the maximum value is output. If written when instruction execution is started,
an operation error is occurred.
9-52
10-2
Counting range
• K-2, 147, 483, 648 to K+2, 147, 483, 647 (Coded 32-bit binary)
• The built-in high-speed counter is a ring counter. Consequently, if the counted value exceeds the
maximum value, it returns to the minimum value. Similarly, if the counted value drops below the
minimum value, it goes back to the maximum value and continues counting from there.
Note:
When the linear interpolation instruction F175 is used, the value for the amount of travel should be set so
that it is within the range indicated below.
-8,388,608 to +8,388,607 (Coded 24-bit binary)
10-3
10.2.1 Specifications
High-speed counter function
High-speed counter by the input of the main unit
Memory area being used Performance specifications
Maximum
Channel No. Input contact Control Elapsed Target Minimum input
counting
flag value area value area pulse width Note1)
speed Note2)
DT90300 DT90302
CH0 X0 R9110
DT90301 DT90303
DT90304 DT90306
CH1 X1 R9111
DT90305 DT90307
DT90308 DT90310
CH2 X2 R9112
DT90309 DT90311
DT90312 DT90314
[Single phase] CH3 X3 R9113
DT90313 DT90315
Incremental, 50 µs 10 kHz
DT90316 DT90318
Decremental CH4 X4 R9114
DT90317 DT90319
DT90320 DT90322
CH5 X5 R9115
DT90321 DT90323
DT90324 DT90326
CH6 X6 R9116
DT90325 DT90327
DT90328 DT90330
CH7 X7 R9117
DT90329 DT90331
X0 DT90300 DT90302
CH0 R9110
X1 DT90301 DT90303
[2-phase] X2 DT90308 DT90310
CH2 R9112
X3 DT90309 DT90311
2-phase input 100 µs 5 kHz
X4 DT90316 DT90318
One input CH4 R9114
X5 DT90317 DT90319
X6 DT90324 DT90326
CH6 R9116
X7 DT90325 DT90327
Related instructions:
F0(MV) :High-speed counter control
F1(DMV) :Read/write of elapsed value of high-speed counter
F166(HC1S) :Target value match on
F167(CH1R) :Target value match off
10-4
10-5
Note2) Reference: For DT90052, see <10.4.4 Pulse Output Control Instruction (F0) (F1)>.
Note3) When using the AFPX-PLS only
10-6
Conditions: When the duty is 50%, and the match on/off instruction is not used.
10-7
10-8
Two-phase input mode Individual input mode: only for pulse I/O
cassette
(Incremental/decremental input mode)
10-9
10-10
When using CH8 of the pulse I/O cassette When using CH8 of the pulse I/O cassette
with incremental input and reset input with two-phase input and reset input
* The output turned on and off when the target * The output turned on and off when the target
value is reached can be specified as desired value is reached can be specified as desired
from the outputs of the main unit or add-on from the outputs of the main unit or add-on
cassette. cassette.
In the above program, the reset is performed in step (1) and 0 is entered just after that in step (2). The
count is now ready for operation. If it is only reset, counting will not be performed.
10-11
10-12
Example 2:
If the elapsed value (DT90308 and DT90309)
for channel 2 matches K20000, output Y6 turns
on.
Example 2:
If the elapsed value (DT90312 and DT90313)
for channel 3 matches K40000, output Y5 turns
off.
FP-X Ry type – Elapsed value and target value areas of high-speed counter ch0 to chB
High-speed counter
Control flag Elapsed value area Target value area
Channel No.
ch0 R9110 DT90300 to DT90301 DT90302 to DT90303
ch1 R9111 DT90304 to DT90305 DT90304 to DT90307
ch2 R9112 DT90308 to DT90309 DT90310 to DT90311
ch3 R9113 DT90312 to DT90313 DT90314 to DT90315
ch4 R9114 DT90316 to DT90317 DT90318 to DT90319
ch5 R9115 DT90320 to DT90321 DT90322 to DT90323
ch6 R9116 DT90324 to DT90325 DT90326 to DT90327
ch7 R9117 DT90328 to DT90329 DT90330 to DT90331
ch8 R9118 DT90332 to DT90333 DT90334 to DT90335
ch9 R9119 DT90336 to DT90337 DT90338 to DT90339
chA R911A DT90340 to DT90341 DT90342 to DT90343
chB R911B DT90344 to DT90345 DT90346 to DT90347
10-13
Wiring example
Program
When X5 is turned on, Y0 turns on and the conveyor begins moving. When the elapsed value (DT90300
and DT90301) reaches K5000, Y0 turns off and the conveyor stops.
10-14
Wiring example
10-15
10-16
Wiring example
Program
When X102 is turned on, Y100 turns on and the conveyor begins moving. When the elapsed value
(DT90332 and DT90333) reaches K5000, Y100 turns off and the conveyor stops.
10-17
Wiring example
10-18
10-19
Note:
• With the Ry type, the pulse I/O cassette (AFPX-PLS) is necessary to use the pulse I/O function.
10-20
Note:
The output signals are the numbers on the pulse I/O cassette.
When executing the pulse output, only pulses are output. The output memory Y100, Y200 and Y201is
not output.
10-21
Home return
• When executing the F171 (SPDH) instruction, the pulse is continuously output until the home input
(X102 or X202) is enabled.
• To decelerate the movement when near the home position, designate a near home input and set bit 4
of special data register DT90052 to off → on → off.
• The deviation counter clear output can be output when home return has been completed.
JOG operation
• Pulses are output from the specified channel while the trigger for F172 (PLSH) instruction is in the ON
state. Also, the pulse output can be stopped when the specified target value is matched.
• The direction output and output frequency are specified by F172 (PLSH) instruction.
10-22
Note:
• The above flags vary during scanning.
Example: If the above flags are used for more than one time as input conditions, there may be the
different states in the same scan. Replace with internal relays at the beginning of the program as a
measure.
10-23
* Input such as X100 or X101 on the pulse I/O * Input such as X200 or X201 on the pulse I/O
cassette can be specified for the near home cassette can be specified for the near home
input. input.
Note) If there is no input remained on the pulse I/O cassette, the input of the main unit can be used.
* Input such as X100 or X101 on the pulse I/O * Input such as X200 or X201 on the pulse I/O
cassette can be specified for the near home cassette can be specified for the near home
input. input.
10-24
Example 1:
Enable the near home input during home return operations and begin deceleration.
In case of CH0
Example 2:
Performing a forced stop of the pulse output.
In case of CH0
10-25
Reference: <10.2.1 Table of specifications> for information on the special data register.
Example 1:
Writing the elapsed value
Set the initial value of K3000 in the pulse output
CH0.
FP-X Ry type - Elapsed value and target value areas of pulse output ch0 to ch1
Pulse output
Control flag Elapsed value area Target value area
Channel No.
ch0 R911C DT90348 to DT90349 DT90350 to DT90351
ch1 R911D DT90352 to DT90353 DT90354 to DT90355
10-26
Note) When the stepping motor input is a 5 V optical coupler type, connect a 2 kΩ (1/2 W) resistor with
the R1 and a 2 kΩ (1/2 W) to 470 Ω (2 W) resistor with the R2.
10-27
10-28
Program
10-30
Program
10-31
Program
10-32
10-33
Reference:
The pulse output control instruction (F0) is used for the near home input.
<10.4.4 Pulse output control instructions (F0) (F1)>.
10-35
Program
10-36
Program
10-37
10-38
10-39
Program
10-40
Program
Reference:
The pulse output control instruction (F0) is used for the pulse output stop.
<10.4.4 Pulse output control instruction (F0) (F1)>
10-41
10-42
Note:
The linear interpolation function can be used only when 2 units of the AFPX-PLS are being used.
10-44
Note) When the stepping motor input is a 5 V optical coupler type, connect a 2 kΩ (1/2 W) resistor with
the R1 and a 2 kΩ (1/2 W) to 470 Ω (2 W) resistor with the R2.
10-46
Sample program
Continuous interpolation control
• Using the linear interpolation function, perform positioning control that draws trajectory like the one
shown below.
Relay allocation
Relay No. Description Relay No. Description
X1 Positioning start R9010 Always ON
X2 Emergency stop switch R911C Pulse output flag (CH0)
R20 From P1 to P2 start R911D Pulse output flag (CH1)
R21 From P2 to P3 start
R22 From P3 to P4 start
R23 From P4 to P1 start
R2F Positioning done
10-47
10-48
10-49
Key Point:
As there is not interpolation function for the home return, the home return should be executed for each
channel. After the home return for both channels is completed, the positioning operation running
program (R40) turns off.
10-50
Note:
With the FP-X Ry type, the pulse I/O cassette (AFPX-PLS) is necessary to use the pulse output function.
Data table
DT100 Control code *1 : K1
DT101 Duty *2 : 50%
*1: Specify the control code by setting the K constant.
Resolution of 1000 Resolution of 100
K Frequency (Hz) Period (ms) K Frequency (Hz) Period (ms)
K0 1.5 666.67 K20 15.6 k 0.06
K1 2.0 502.51 K21 20.8 k 0.05
K2 4.1 245.70 K22 25.0 k 0.04
K3 6.1 163.93 K23 31.3 k 0.03
K4 8.1 122.85 K24 41.7 k 0.02
K5 9.8 102.35
K6 19.5 51.20
K7 48.8 20.48
K8 97.7 10.24
K9 201.6 4.96
K10 403.2 2.48
K11 500.0 2.00
K12 694.4 1.44
K13 1.0 k 0.96
K14 1.3 k 0.80
K15 1.6 k 0.64
K16 2.1 k 0.48
K17 3.1 k 0.32
K18 6.3 k 0.16
K19 12.5 k 0.08
10-51
If the control code is K20 to K24, the duty is K0 to K990 (0% to 99%).
Values are specified in units of 1% (K10) (digits behind the decimal point are rounded off).
Note:
• If a value outside the specified range is written to the duty area while the instruction is being executed,
a frequency corrected to the maximum value is output. If written when instruction execution is started,
an operation error is occurred.
10-52
• 4-digit password: 4 characters of 16 characters that are “0” to “9” and “A” to “F” can be used.
• 8-digit password: A maximum of 8 English one byte characters (case-sensitive) and symbols
can be used.
2: Upload protection
Ladder programs or system registers cannot be uploaded from the FP-X by setting that the
program is not uploaded. As transferring programs to the master memory cassette as well as the
programming tool will be unperformable, it ensures higher security.
The state of the security can be checked at two displays of the programming tool FPWIN GR.
1. Select [Online Edit Mode] under the [Online] on the menu bar, or press the [CTRL] and [F2] keys at
the same time, to switch to the [Online] screen.
2. Select “Security information” or “Set PLC Password” under “Tool” on the menu bar.
11-2
setting.
○
2 Specify the type of the password to be used.
○
3 Specify an operation mode.
○
5 Optional setting for FP memory loader
Current status
Indicates the current status of the password setting. There are following five statuses.
Note:
If the power supply of the PLC is turned on/off with the setting that the access is allowed, the setting will
be that the PLC is protected again.
Digit number:
Select “4 digits” or “8 digits”.
Operation Mode:
Select “Protect”.
Click “Settings”.
11-4
Digit number:
Select “4 digits” or “8 digits”.
Operation Mode:
Select “Access”.
Click “Settings”.
Note:
If the power supply of the PLC is turned on/off with the setting that the access is allowed, the setting will
be that the PLC is protected again.
Digit number:
Select “4 digits” or “8 digits”.
Operation Mode:
Select “Unprotect”.
Click “Settings”.
Click [OK].
Click [Yes].
The data on the password setting can be transferred to the master memory cassette together with the
programs from the FP-X.
The password information stored in the master memory cassette will be automatically transferred to
another control unit when it is installed, and the control unit will be protected.
1. Turn off the power supply of the PLC, and set the RUN/PROG mode switch to the PROG mode. Install
the master memory cassette to transfer the program on the control unit.
2. 2. Turn on the power supply of the PLC, and transfer the program to the master memory cassette
using “Internal memory => Master memory” in the programming tool.
Reference:
For the information on the transmission to the master memory cassette,
<12.2.2 Master Memory Function>
11-6
Click “Execute”.
11-7
Programs cannot be transferred from the FP-X prohibited uploading to the master memory
cassette.
The upload protection can be set to the master memory cassette from the FP-X that is not prohibited
uploading using the “Internal memory to Master memory” function of the programming tool.
At that time, if there is the information on the password protect, it will be transferred simultaneously.
If the master memory cassette that is prohibited uploading is installed on another FP-X, the information
on the settings will be transferred to the FP-X automatically, therefore, that FP-X will be prohibited
uploading as well.
Reference: For the information on the transmission to the master memory cassette,
<12.2.2 Master Memory Function>
Note:
1. If the setting for the upload protection is cancelled, all ladder programs, system registers and
password information will be deleted.
2. If “Force Cancel” is executed in the setting for PLC password, the setting for the upload protection will
be also cancelled.
11-8
The setting will be effective when it is transferred to another FP-X after the upload to the FP
memory loader from the set FP-X.
Setting conditions
- FP-X V2.5 or later
- FP memory loader V2.0 or later
- FPWIN GR V2.8 or later
- 8-digit password is set.
Note: This function cannot be used when the setting to disable the download to the FP-X older
than V2.5 has not been made.
11-9
Note: This function cannot be used when the setting to disable the download to the FP-X older
than V2.5 has not been made.
11-10
11-11
11-12
When the master memory cassette is installed on the FP-X control unit
Status of security
Security not Upload 4-digit 8-digit
set protection password password
Upload protection N/A N/A N/A
Sets/
4-digit password N/A N/A N/A
Cancels
8-digit password N/A N/A N/A
A: Available, N/A: Not available
11-13
The following 2 methods can be selected with the switch at the back.
Note:
It cannot be used as master memory when it has been specified to be used as clock/calendar
only.
Install the optional battery in the control unit to use the clock/calendar.
The clock/calendar does not work without the battery.
Specifications
Item Specifications
Year, month, day hour (24-hour display), minute, second and
Setting items
day of week
Clock/calendar At 0 °C: less than 104 seconds per month
Accuracy At 25 °C: less than 51 seconds per month
At 55 °C: less than 155 seconds per month
Area of clock/calendar
With the clock/calendar function, data indicating the hour, minute, second, day, year and other
information stored in the special data registers DT90053 to DT90057 can be read using the transmission
instruction and used in sequence programs.
A: Available, N/A: Available
Special data register No. Higher bytes Lower bytes Read Write
Hour data Minute data
DT90053 A N/A
H00 to H23 H00 to H59
Minute data Second data
DT90054 A A
H00 to H59 H00 to H59
Day data Hour data
DT90055 A A
H01 to H31 H00 to H23
Year data Month data
DT90056 A A
H00 to H99 H01 to H12
Day-of-the-week data
DT90057 - A A
H00 to H06
12-3
Note:
No values have been set in the default settings, so the programming tool or another means must be
used to specify the values.
The hour data is stored in the upper 8 bits of DT90053 and the minute data in the lower 8 bits, in the
BCD format. This hour and minute data is compared with the appointed time (BCD), and the R900B
(=flag) special internal relay is used to detect whether or not it matches the appointed time.
30-second compensation
The compensation for 30 seconds is performed in the DT90058.
12-4
12-5
Reference: For the details on the F12 (ICRD) and P13 (ICWT) instructions,
<Programming Manual ARCT1F353>
12-6
Note1) If the E25 occurs, the mode will not be the RUN.
Also, the transfer operation from the master memory to the internal memory of the controller will
not be executed.
The transfer operation from the internal memory of the controller to the master memory can be
executed even if the E25 occurs.
Note2) If the version of the Ry type is older than Ver2.0, the E26 (User’s ROM error) is detected not the
E25.
Note3) Use the tool software to execute the program conversion between different models.
12-7
2. The power supply turns off when the P13 (ICWT) instruction is being executed.
If the power supply turns off during this instruction is being executed, the hold type area may not be kept.
(Also, when the power is shut off during rewriting in the RUN mode, the same event may occur.)
12-8
12-9
12.5.1 Overview
The FP-X control unit Ver2.0 and later versions support the sampling trace function.
Using this function enables to take samplings and record (accumulate) the state of arbitrary data of 16
bits + 3 data registered in the PLC at an arbitrary timing, and to examine the changes in the bit and data
in details after stopping sampling at an arbitrary timing.
The sampling trace function is used in the time chart monitor function under the online menu of the
FPWIN-GR.
The instructions, functions, special relays and special registers related to the sampling trace
function are as below.
F155(SMPL) sampling instruction
F156(STRG) sampling stop trigger instruction
Time charge monitor of FPWIN GR
Note: It is not possible to activate the sampling at regular time intervals and the sampling by the
F155(SMPL) instruction simultaneously.
If the stop trigger activates, the PLC will continue to take samplings for the specified No. of delay, and
then stop the sampling operation. Once the sampling operation stops, the data will be automatically
retrieved by the tool software and will be indicated in a time chart.
It is possible to adjust whether to see before or after the trigger point by the setting of the No. of delay.
12-10
12-11
2. Sampling by instruction
(1) Register the bit/word device to be monitored by the time chart monitor function of FPWIN-GR.
(2) Specify the sampling configurations.
Set the mode of the sampling configurations to “Trace”.
Set the sampling rate (time) to 0.
Stop monitoring. (Stop with the button, stop by the “Trigger Break” in the menu, or stop by the F156
instruction.)
Note:
• The input signal of X contact is retrieved at the timing of the normal I/O update.
• If the partial update instruction is executed for the input in the time constant processing, the time
constant processing will be invalid, and the input status at the time will be read out and set.
• The time constant processing can be performed for the input other than X0 to X1F (add-on cassettes
or expansion units) by the F182 (FILTR) instruction.
• The time constant processing is invalid when the high-speed counter, pulse catch or interrupt has been
specified.
12-13
LED status
Operation
ERROR/ Description
RUN PROG. status
ALARM
Light (on) Off Off Normal operation Operation
PROG. mode
Off Light (on) Off LED does not flash even if the forcing Stop
Normal
output is performed in program mode.
condition
Forcing input/output in Run mode
Flashes Flashes Off Flashes RUN and PROG. LED Operation
alternately.
Light (on) Off Flashes When a self-diagnostic error occurs Operation
Abnormal Off Light (on) Flashes When a self-diagnostic error occurs Stop
condition Light (on) Light (on) Light System watchdog timer has been
Stop
or off or off (on) activated
LED status
Description
POWER I/F ERROR
Normal
Light (on) Light (on) Off Normal operation
condition
Light (on) Flashes Off FP0 expansion unit is not connected.
The FP0 expansion unit, that had been connected
when the power supply for the FP-X control unit
turned on, came away.
Abnormal Light (on) Light (on) Flashes
An error has occurred in the communication of data
condition
between the expansion FP0 adapter and FP0
expansion unit due to noise, etc.
The expansion FP0 adapter turned on later than the
Light (on) Off Off
FP-X control unit.
13-2
13-3
Using FPWIN GR
With the FPWIN GR, if a PLC error occurs during programming or debugging and the RUN mode is
changed to the PROG. mode, the following status display dialog box is displayed automatically. Check
the contents of the self-diagnosed error.
Key Point:
To display the status display dialog box, select “Status Display” under “Online” on the menu bar.
Procedure 2
<For error code is 1 to 9>
- Condition
There is a syntax error in the program.
- Operation 1
Change to PROG. mode and clear the error.
- Operation 2
Execute a total-check function using FPWIN GR to determine the location of the syntax error.
13-4
Using FPWIN GR
Click on the “Clear Error” button in the “Status display dialog box”. Error code 43 and higher can be
cleared.
• In the PROG. mode, the power supply can be turned off and then on again to clear the error, but all of
the contents of the operation memory except hold type data are cleared.
• An error can also be cleared by executing a self-diagnostic error set instruction F148 (ERR).
Key Point:
When an operation error (error code 45) occurs, the address at which the error occurred is stored in
special data registers DT90017 and DT90018. If this happens, click on the “Operation Err” button in the
“Status display dialog box” and confirm the address at which the error occurred before cancelling the
error.
Procedure 1
Set the mode selector of PLC from RUN to PROG. mode and turn the power off and then on.
• If the ERROR LED is turned on again, there is probably an abnormality in the FP-X control unit. Please
contact your dealer.
• If the ERROR LED is flashed, go to chapter 11.2.1.
Procedure 2
Set the mode selector from PROG. to RUN mode.
• If the ERROR LED is turned on, the program execution time is too long. Check the program.
Check
(1)Check if instructions such as “JMP” or “LOOP” are programmed in such a way that a scan never finish.
(2)Check if interrupt instructions are executed in succession.
13-5
Procedure 2
Check if the power supplied to the FP-X control unit is in the range of the rating.
• Be sure to check the fluctuation in the voltage.
Procedure 3
Disconnect the power supply wiring to the other devices if the power supplied to the FP-X control unit is
shared with them.
• If the LED on the control unit turn on at this moment, increase the capacity of the power supply or
prepare another power supply for other devices.
• Please contact your dealer for further questions.
13-6
Check
(1)Check for the duplicated use of output. Check whether the output has been rewritten using the high-
level instruction.
(2)Check the program flow when a control instruction such as MCR or JMP is used.
13-7
Note:
The password setting can be specified when the PLC is being connected online.
Procedure 1
Check if the ERROR LED is flashing.
Example:
If the ERROR LED is flashing, check <13.2.1 If ERROR LED is flashing>.
Procedure 2
Execute a total-check function using the tool software to determine the location of the syntax error.
Using FPWIN GR
Select “Debug” on the menu bar, and select “Totally check program”. Click on the “Execute” button in the
total check dialog box.
13-8
Procedure 2
Check if the transmission cables are within the specifications range. At this point, make sure all of the
cables in the link are of the same type, and that multiple types of cables are not being used.
• Do not designate any unit other than those at both ends of the network as a terminal station.
Procedure 3
Check that link areas do not overlap.
Example:
For the specifications range of the transmission cables, <5.8.1 Selection of Transmission Cables>.
Procedure 1
Check if the receive data terminal of a connected device is connected to the SD and the send data
terminal is connected to the RD. Check if the SG is connected.
Procedure 2
1. Check if the CS signal is on.
2. When the “CS” of the communication cassette LED does not light, the CS signal is not on.
3. If the three-wire type is used, connect the RS signal and the CS signal of the communication cassette,
and turn the CS signal on.
Note) For COM1 only.
Procedure 3
Check that link areas do not overlap.
Procedure 4
When the RS232C is either one of the followings, check if “COM. cassette” is selected for “Port
selection”.
1. When controlling the 1-channel type RS232C with 5-wire type.
2. When using the COM2 port with the 2-channel type RS232C
3. When using the COM2 port with the 1-channel RS485 and 1-channel RS232C.
4. When using the COM2 port with the Ethernet and 1-channel RS232C.
Procedure 5
Check that the baud rate is set to 9600 bps, 19200 bps or 115200 bps for the COM2 port of the 2-
channel type RS485. The settings of the system register and the cassette backside switch should be the
same.
13-9
Procedure 1
Check to make sure the transmission cables have been securely connected between the two (+)
terminals and two (−) terminals of the units, and that the final unit has been correctly connected.
Procedure 2
Check if the transmission cables are within the specifications range. At this point, make sure all of the
cables in the link are of the same type, and that multiple types of cables are not being used.
• Do not designate any unit other than those at both ends of the network as a terminal station.
Procedure 3
Check that link areas do not overlap.
Example:
For the specifications range of the transmission cables, <5.8.1 Selection of Transmission Cables>.
Procedure 2
Check if the expansion FP0 adapter is installed at the last position.
When the expansion FP0 adapter is installed at the last position, the terminal setting for other expansion
unit is not necessary.
Procedure 3
Check if the power supply has turned on and off in a short time such as momentary power failure.
There is a possibility that the expansion unit has not been recognized due to the occurrence of
momentary power failure.
Turn off and on the power supply again.
13-10
Procedure 1
Check if the LAN cable is securely connected to each unit or a PC.
When using a HUB for the connection, check if the power supply of the HUB is on.
Procedure 2
Check if the LINK/ACT LED lights up.
- When the LED is off, the LAN cable is not connected correctly.
Procedure 3
Check the IP addresses and the destination.
Procedure 4
Check if the communication format and baud rate for the COM1 port of the FP-X matches the
configuration setting of the AFPX-COM5.
Procedure 1
Check the status with the Configurator WD.
- If the “IP duplicate error” is indicated for the status, the IP address may be duplicate on the network.
Specify an IP address that is not duplicate.
- If the “DHCP error” is indicated for the status, getting IP from the DHCP server has been failed. Check
if there is no problem on the network system.
13-11
14.1.2 When Output is Repeated with an OT, KP, SET or RST Instruction
Condition of internal and output relays during operation
• When instructions are repeatedly used which output to internal and output relays such as transfer
instructions and OT, KP, SET and RST instructions, the contents are rewritten at each step during
operation.
<Example>
Processing when SET, RST and OT instructions are used (X0 to X2 are all on).
14-2
• If you need to output a result while processing is still in progress, use a partial I/O update instruction
(F143).
14-3
14-4
<Example>
Transferring the contents of data register DT100 to the number specified by the contents of an
index register.
In this example, the number of the destination data register varies depending on the contents of I0 with
DT0 acting as a base. For example, when I0 contains K10, the destination will be DT10, and when I0 is
K20, the destination will be DT20.
• In this way, index registers allow the specification of multiple memory areas with a single instruction,
and thus index registers are very convenient when handling large amounts of data.
14-5
○
1 When R0 turns on, 0 is written to index register I0.
○
2 When the R1 turns on, the contents of input WX3 is transferred to the data register specified by I0DT0.
○
3 Add 1 to I0. In this case, the contents of I0 will change successively, and the destination data register
will be as follows.
Input times of R1 Contents of I0 Destination data register
1st 0 DT0
2nd 1 DT1
3rd 2 DT2
: : :
○
1 Convert the BCD timer number data in WX1 to binary and set it in index register I0.
○
2 Convert the BCD timer set value in WX0 to binary and store in the timer set value area SV specified
by contents of I0.
<Example 2>
Taking external output of the elapsed value in a timer number specified by a digital switch
○
1 Convert the BCD timer number data in WX1 to binary and set it in index register I0.
○
2 Convert the elapsed value data EV in the timer specified by I0 to BCD, and output it to output relay
WY0.
14-6
• An error can be cleared by turning the power off and on in PROG. mode, however, the contents of the
operation memory except the hold type data will be cleared.
• An error can also be cleared by executing a self-diagnostic error set instruction (F148).
• If the mode selector is set to “RUN”, RUN will resume as soon as the error is cleared. So if the cause of
the error is not removed, the error may seem not to be cleared.
14-7
In this case, index register modifies the address of data register DT0. If data in I0 is too large, it will
exceed the addressable range of the data register. The last address of the data register is DT32764, so
if the contents of I0 exceeds 32764, an operation error will occur. The same is true when the contents of
I0 are a negative value.
2. Is there any data which cannot be converted using BCD ↔ BIN data conversion?
<Example> When BCD-to-BIN conversion is attempted
In this case, if DT0 contains a hexadecimal number with one of the digits A through F such as 12A4,
conversion will be impossible and an operation error will result.
In this case, if DT1 contains a negative value or a value greater than K9999, an operation error will occur.
In this case, if the content of DT100 is “0”, an operation error will occur.
14-8
Be careful when using leading edge detection type instructions with control instructions, such
as:
1. MC and MCE instructions
2. JP and LBL instructions
3. LOOP and LBL instructions
4. CNDE instruction
5. Step ladder instructions
6. Subroutine instructions
14-9
• If you need to execute an instruction when the trigger (execution condition) is on prior to switching to
RUN mode, make a program as below using R9014 (initial pulse off relay). (R9014 is a special internal
relay which is off during the first scan and turns on at the second scan.)
14-10
14-11
14-12
<Example 2>
<Example 3>
When a combination of contacts are set as the trigger (execution condition) of a differential instruction
(DF) or timer instruction, do not use an AND stack (ANS) instruction, read stack (RDS) instruction, or
pop stack (POPS) instruction.
14-13
14-14
When the timeout error occurs using the through mode in GT series programmable display.
Extend the timeout time of the programmable display using the GTWIN.
(The default setting is 5 seconds.)
14-15
<Example>
When executing the rewriting which does not form the following pair of instructions.
1. Step ladder instructions (SSTP/STPE)
2. Subroutine instructions (SUB/RET)
3. Interrupt instructions (INT/IRET)
4. JP/LBL
5. LOOP/LBL
6. MC/MCE
Also, rewriting is not possible during RUN in case of other syntax errors.
Interrupt restrictions
When using interrupt, high-speed counter, pulse output or PWM output functions, do not perform a
rewrite during RUN.
If a rewrite during RUN is executed, the operation as below will be performed. Exercise caution.
1. Interrupt programs will be disabled. Enable by executing an ICTL instruction once again.
<Example> Using R9034 (rewrite during RUN completed flag)
3.The pulse output/PWM output stops when the rewriting is performed. The operation after the
completion of the rewriting during RUN varies depending on each instruction.
Instruction Operation after the completion of
Name
number rewriting during RUN
The operation before rewriting
F171 (SPDH) Pulse output (Trapezoidal control)
continues.
The operation before rewriting
F171(SPDH) Pulse output (Home position return)
continues.
F172 (PLSH) Pulse output (JOG operation) Stop
F173 (PWMH) PWM output Stop
Pulse output (Selectable data table The operation before rewriting
F174 (SP0H)
control operation) continues.
The operation before rewriting
F175 (SPSH) Pulse output (Linear interpolation)
continues.
14-16
14-17
14-18
14-19
15-2
Service Power Supply for Input (Output) (Used for AC power supply type only)
Specifications
Item
C14 C30/C60/E30
Rated output voltage 24 V DC
Voltage regulation range 21.6 to 26.4 V DC
Rated output current 0.15 A 0.4 A
Overcurrent protection
Note) Available
function
Terminal screw M3
Note) This is a function to protect overcurrent temporarily. If a current load that is out of the
specifications is connected, it may lead to damages.
15-3
Weight
Unit Model No. Weight Unit Model No. Weight
AFPX-C14R Approx. 280 g COM1 AFPX-COM1
AFPX-C14RD Approx. 260 g COM2 AFPX-COM2 Approx.
AFPX-C14T Approx. 270 g FP-X COM3 AFPX-COM3 20 g
AFPX-C14TD Approx. 250 g Communi- COM4 AFPX-COM4
AFPX-C14P Approx. 270 g cation Approx.
COM5 AFPX-COM5
AFPX-C14PD Approx. 250 g cassette 25 g
AFPX-C30R Approx. 490 g Approx.
COM6 AFPX-COM6
AFPX-C30RD Approx. 470 g 20 g
Control AFPX-C30T Approx. 460 g Analog input cassette AFPX-AD2
unit AFPX-C30TD Approx. 440 g Analog output
AFPX-DA2
AFPX-C30P Approx. 460 g cassette
AFPX-C30PD Approx. 440 g Analog I/O cassette AFPX-A21
AFPX-C60R Approx. 780 g Thermocouple
AFPX-TC2
AFPX-C60RD Approx. 760 g cassette Approx.
AFPX-C60T Approx. 700 g RTD cassette AFPX-RTD2 25 g
AFPX-C60TD Approx. 680 g Input cassette AFPX-IN8
AFPX-C60P Approx. 700 g AFPX-TR8
Output cassette
AFPX-C60PD Approx. 680 g AFPX-TR6P
AFPX-E16X Approx. 190 g I/O cassette AFPX-IN4T3
AFPX-E14YR Approx. 230 g Pulse I/O cassette AFPX-PLS
AFPX-E16R Approx. 195 g Master memory Approx.
AFPX-MRTC
AFPX-E16T Approx. 180 g cassette 20 g
AFPX-E16P Approx. 180 g FP-X backup battery AFPX-BATT Approx. 7 g
Expansion
AFPX-E30R Approx. 470 g
I/O unit
AFPX-E30RD Approx. 450 g
AFPX-E30T Approx. 430 g
AFPX-E30TD Approx. 410 g
AFPX-E30P Approx. 430 g
AFPX-E30PD Approx. 410 g
Expansion
FP0 AFPX-EFP0 Approx. 65 g
adapter
15-4
15-5
15-6
1024 points Note2) (for initial setting, Timer: 1008 points (T0 to T1007), Counter: 16
Operation memory
15-7
15-8
Backup by F12,
Flash Data register (32765 words)
P13 instructions
ROM
Automatic backup Counter 16 points (C1008 to C1023) Note10), internal relay 128 points (WR248 to
backup
Note6) when power is cut WR255), data register 55 words
off (C14: DT12230 to DT12284, C30/C60: DT32710 to DT32764)
Memory that is set as hold area at system register (However, only when an
Battery backup
optional battery has been installed.) Note7)
When AFPX-
C14: 3.3 years or more
MRTC is not
C30/C60: 2.7 years or more
installed
Battery
life Note8) C14: 2.1 years or more
When AFPX-
C30/C60: 1.8 years or more
MRTC is
Note) More than 2 batteries can be installed. In that case, the battery life is the
installed
value multiplied by the No. of batteries.
15-9
When using a baud rate of 300 bps to 38400 bps, you can set up to a maximum of
99 units (stations) and maximum transmission distance of 1200 m.
Note3) Only 9600 bps or 19200 bps can be specified when the C-NET adapter is connected with the
RS485 interface.
Note4) The start code and end code can be used only in the general-purpose serial communication
mode.
Note5) The converter SI-35 manufactured by Lineeye Co., Ltd is recommendable for the RS485 at the
computer side. Adjust the response time for the FP-X by the SYS1 instruction if necessary.
Note6) Unit numbers should be registered by the system register.
Note7) The termination resistance of the RS485/RS422 in the COM3,COM4 and COM6 is specified by
the dip switch in the communication cassette. There is no termination resistance at the RS232C
port.
Note8) The baud rates of 300, 600 and 1200 bps can be specified by the SYS instruction only (Ver2.0 or
later).
15-11
15-12
15-14
I/O numbers
I/O No.
Cassette Cassette
Type of control unit
mounting part 1 mounting part 2
Slot 0 Slot 1
FP-X communication
AFPX-COM1 − −
cassette
FP-X communication
AFPX-COM2 − −
cassette
FP-X communication
AFPX-COM3 − −
Communication cassette
cassette FP-X communication
AFPX-COM4 − −
cassette
FP-X communication
AFPX-COM5 − −
cassette
FP-X communication
AFPX-COM6 − −
cassette
FP-X analog input CH0 WX10 CH0 WX20
Note2) AFPX-AD2
cassette CH1 WX11 CH1 WX21
FP-X analog output CH0 WY10 CH0 WY20
AFPX-DA2
cassette CH1 WY11 CH1 WY21
CH0 WX10 CH0 WX20
FP-X analog I/O
AFPX-A21 CH1 WX11 CH1 WX21
cassette
WY10 WY20
FP-X thermocouple CH0 WX10 CH0 WX20
AFPX-TC2
cassette CH1 WX11 CH1 WX21
Application CH0 WX10 CH0 WX20
FP-X RTD cassette AFPX-RTD2
cassette CH1 WX11 CH1 WX21
FP-X input cassette AFPX-IN8 From X100 From X200
FP-X output cassette AFPX-TR8 From Y100 From Y200
FP-X output cassette AFPX-TR6P From Y100 From Y200
From X100 From X200
FP-X I/O cassette AFPX-IN4T3
From Y100 From Y200
FP-X pulse I/O cassette From X100 From X200
Note3) AFPX-PLS
From Y100 From Y200
FP-X master memory
AFPX-MRTC − −
cassette
Note1) There is no I/O for the communication cassette and master memory cassette.
Note2) Digital conversion values are K0 to 4000. As the resolution is 12 bits, upper 4 bits are always 0.
Note3) The pulse I/O cassette cannot be used with the FP-X Tr type.
15-15
Note2)
(DT) handled in 16-bit units (one word).
DT12284) DT32764)
This is a shared data memory which is
Link register
Note2) 256 words (LD0 to LD255) used within the PLC link. Data is handled
(LD)
in 16-bit units (one word).
Timer/Counter Data memory for storing a target value of
set value area 1024 words (SV0 to SV1023) a timer and setting value of a counter.
Note2)
(SV) Stores by timer/counter number
Timer/Counter Data memory for storing the elapsed
elapsed value 1024 words (EV0 to EV1023) value during operation of a timer/counter.
Note2)
area (EV) Stores by timer/counter number.
Data memory for storing specific data.
Special data 374 words (DT90000 to
Various settings and error codes are
register (DT) DT90373)
stored.
Index register Register can be used as an address of
14 words (I0 to ID)
(I) memory area and constants modifier.
15-16
No. of labels
(JP+LOOP) 256 points
(LBL)
No. of step
1000 stages
ladders (SSTP)
No. of
subroutines 500 subroutines
(SUB)
No. of
interrupt Ry type: 14 input programs, 1 periodical program
programs Tr type: 8 input programs, 1 periodical program
(INT)
Decimal K-32, 768 to K32, 767 (for 16-bit operation)
constants (K)
Constant
K-2, 147, 483, 648 to K2, 147, 483, 647 (for 32-bit operation)
Hexadecimal H0 to HFFFF (for 16-bit operation)
constants (H) H0 to HFFFFFFFF (for 32-bit operation)
-38 38
Floating point F-1.175494 x 10 to F-3.402823 x 10
type (F) -38 38
F 1.175494 x 10 to F 3.402823 x 10
Note1) The number of points noted above is the number reserved as the calculation memory. The actual
number of points available for use is determined by the hardware configuration.
Note2) If no battery is used, only the fixed area is backed up. (counters 16 points: C1008 to C1023,
internal relays 128 points: R2480 (WR248) to R255F (WR255), data registers 55 words, C14:
DT12230 to DT12284, C30/C60: DT32710 to DT32764). Writing is available up to 10000 times.
Then the optional battery is used, all area can be backed up.
Areas to be held and not held can be specified using the system registers. If an area is held
when the battery is not installed, the value of data may be indefinite as it is not cleared to 0 when
the power is turned on. When the battery ran out of the power, the data at the hold area will be
indefinite.
Note3) The points for the timer and counter can be changed by the setting of system register 5. The
number given in the table are the numbers when system register 5 is at its default setting.
15-17
16-1
16-3
(Unit: mm)
16-4
7. Tool and COM ports communication settings (System registers 410 to 421)
Set these registers when the Tool port and COM ports are to be used for computer link, general-purpose
serial communication, PC(PLC) link, and modem communication.
17-2
17-3
17-4
17-5
17-6
Pulse catch
403 input Not set
Inter- The pressed contact is set for the pulse catch
rupt/ settings
input.
Pulse
catch Interrupt
settings 404 input Not set
The pressed contact is set for the interrupt
settings
input.
Inter- Interrupt
rupt edge setting
405 Leading edge
edge for controller
settings input The pressed contact is up and set to trailing
edge.
Note1) If CH0, CH2, CH4 and CH6 of the high-speed counter is set to the two-phase input, individual
input or incremental/decremental control input, the settings of CH1, CH3, CH and CH7 will be
invalid.
Note2) Only CH0 and CH2 are available for the reset input of the high-speed counter.
X6 for CH0 and X7 for CH2 can be allocated.
Note3) X4 to X7 can be used as the home input of the pulse output CH0 to CH3.
When using the home return function of the pulse output, always set the home input. In that
case, X4 to X7 cannot be set as the high-speed counter.
Note4) When using the pulse output/PWM output, the controller output settings must be specified.
The output that has been set to the pulse output/PWM output cannot be used as the normal
output.
Note5) If the same input has been set to the high-speed, pulse catch and interrupt input simultaneously,
the following precedence order is effective:
[High-speed counter] [Pulse catch] [Interrupt input]
17-7
17-8
17-9
17-10
Interrupt
edge setting
405 for Leading edge
controller
Inter- input The pressed contact is up and set to trailing
rupt edge.
edge
settings Interrupt
edge setting
406 Leading edge
for pulse I/O
cassette The pressed contact is up and set to trailing
edge.
Note1) For counting two-phase input, only CH0, CH2, CH4 and CH6 can be used.
When two-phase input is specified for CH0, CH2, CH4 and CH6, the settings for CH1, CH3,
CH5 and CH7 corresponding to each CH No. are ignored, however, specify the same setting for
those channels.
Note2) The settings for pulse catch and interrupt input can only be specified in system registers 403 and
404.
Note3) If system register 400 to 404 have been set simultaneously for the same input relay, the following
precedence order is effective: [High-speed counter][Pulse catch][Interrupt input].
<Example>
When the high-speed counter is being used in the addition input mode, even if input X0 is
specified as an interrupt input or as pulse catch input, those settings are invalid, and X0
functions as counter input for the high-speed counter.
Note4) Upgrade FPWIN GR to Ver2.6 or higher version if the No. of I/O allocation is indicated with 1-digit
number such as X0 in the setting window No. 403,404 and 406 of FPWIN GR.
17-11
17-12
Note2) Reference: For information on MODBUS RTU mode operation, <MODBUS RUT
Specifications>.
17-13
17-14
17-15
WR900 FP-X
Address Name Description
Self-diagnostic error Turns on when a self-diagnostic error occurs.
R9000
flag The content of self-diagnostic error is stored in DT90000.
R9001 Not used -
Application cassette Turns on when an error is detected in the I/O type application
R9002
I/O error flag cassette.
Application cassette
R9003 Turns on when an error is detected in the application cassette.
abnormal error flag
I/O verification error
R9004 Turns on when an I/O verification error occurs.
flag
Turns on when a backup battery error occurs.
Backup battery error
R9005 Turns on when the battery has run out even if the system
flag (non-hold)
register No. 4 has been set not to inform the battery error.
Turns on when a backup battery error occurs.
Turns on when the battery has run out even if the system
register No. 4 has been set not to inform the battery error.
Backup battery error
R9006 Once a battery error has been detected, this is held even after
flag (hold)
recovery has been made.
It goes off if the power supply is turned off, or if the system
is initialized.
Turns on and keeps the on state when an operation error
Operation error flag occurs.
R9007
(hold) The address where the error occurred is stored in DT90017.
(indicates the first operation error which occurred).
Turns on for an instant when an operation error occurs.
Operation error flag
R9008 The address where the operation error occurred is stored in
(non-hold)
DT90018. The contents change each time a new error occurs.
This is set if an overflow or underflow occurs in the calculation
R9009 Carry flag results, and as a result of a shift system instruction being
executed.
Turns on for an instant when the compared results become
R900A > Flag
larger in the comparison instructions.
Turns on for an instant,
- when the compared results are equal in the comparison
R900B = Flag instructions.
- when the calculated results become 0 in the arithmetic
instructions.
Turns on for an instant when the compared results become
R900C < Flag
smaller in the comparison instructions.
Turns on when the set time elapses (set value reaches 0) in
Auxiliary timer the timing operation of the F137(STMR)/F183(DSTM)
R900D
Contact auxiliary timer instruction. The flag turns off when the trigger
for auxiliary timer instruction turns off.
Tool port
R900E Turns on when communication error at tool port is occurred.
communication error
Turns on when scan time exceeds the time specified in
Constant scan error
R900F system register 34 during constant scan execution.
flag
This goes on if 0 has been set using system register 34.
17-16
17-17
17-18
17-19
17-20
17-21
17-22
17-23
17-24
17-25
17-26
17-27
17-28
17-29
17-30
High-speed counter
DT90052 N/A A
control flag
17-31
17-32
Real-Time Clock
DT90056 A A
setting (year/month)
Real-Time Clock
DT90057 setting (day-of-the-
week)
As a day of the week is not automatially set on
FPWIN GR, fix what day is set to 00, and set
each value for 00 to 06.
17-33
<Example>
Set the time to 12:00:00 on the 5th day when
the X0 turns on.
Example:
Correct to 0 seconds with X0: on
17-34
17-35
17-36
17-37
17-38
17-39
17-40
System regis-
DT90243
ter 46 and 47
System regis-
DT90244
ter 40 and 41
17-41
Note) Writing in the elapsed value area is available by F1 (DMV) instruction only.
Writing in the target value area is available by F166 (HC1S) and F167 (HC1R) instructions only.
17-42
Note1) Writing in the elapsed value area is available by F1 (DMV) instruction only.
Writing in the target value area is available by F166 (HC1S) and F167 (HC1R) instructions only.
Note2) Available for the FP-X Ry type only.
17-43
Note1) Writing in the elapsed value area is available by F1 (DMV) instruction only.
Writing in the target value area is available by F166 (HC1S) and F167 (HC1R) instructions only.
Note2) Available for the FP-X Tr type only.
17-44
17-45
17-46
17-47
FP2SH/FP10SH
FP0/FP-e
Steps *3
FP0R
FP-X
FP
FP2
Name Boolean Symbol Description
17-48
FP0/FP-e
FP0R
FP-X
FP
FP2
Name Boolean Symbol Description
17-49
FP0R
FP-X
FP
FP2
Name Boolean Symbol Description
Control instructions
Master MC Starts the master control program.
control 2
relay
Master MCE Ends the master control program.
control 2
relay end
Jump JP The program jumps to the label 2
instruction and continues from there. (3)
*2
Label LBL 1
Auxiliary F19 The program jumps to the label
3
jump (SJP) instruction specified by “S” and
continues from there.
1
Label LBL
Loop LOOP The program jumps to the label 4
instruction and continues from there (the (5)
number of jumps is set in “S”). *3
Label LBL
1
Break BRK Stops program execution when the
predetermined trigger turns on in the 1
TEST/RUN mode only.
: Available, : Not available, : Not available partially
*1) In the FP2/FP2SH/FP10SH, when internal relay WR240 or higher is used, the number of steps is the number in
parentheses. Also, in the FP2/FP2SH/FP10SH, when the specified internal relay number (word address) has an index
modifier, the number of steps is the number in parentheses.
*2) In the FP2/FP2SH/FP10SH, when the number “n” in a jump instruction has an index modifier, the number of steps
isthenumber in parentheses.
*3) In the FP2/FP2SH/FP10SH, when the number “n” in a loop instruction has an index modifier, the number of steps is the
number in parentheses.
17-50
FP0R
FP-X
FP
FP2
Name Boolean Symbol Description
17-51
FP0R
FP-X
FP
FP2
Name Boolean Symbol Description
17-52
FP0R
FP-X
FP
FP2
Name Boolean Symbol Description
17-53
FP0R
FP-X
FP
FP2
Name Boolean Symbol Description
17-54
FP0R
FP-X
FP
FP2
Name Boolean Symbol Description
17-55
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
Num- Boo- Ope-
FP
FP2
Name Description
ber lean rand
17-56
FP0R
FP-X
Num- Ope-
FP
FP2
Name Boo-lean Description
ber rand
17-57
FP0R
FP-X
Num- Boo-
FP
FP2
Name Operand Description
ber lean
17-58
FP0R
FP-X
Num- Boo- Ope-
FP
FP2
Name Description
ber lean rand
17-59
FP0R
FP-X
Num- Ope-
FP
FP2
Name Boolean Description
ber rand
F76 ASCII code ABIN S1, S2, Converts the ASCII code specified by
P76 16-bit binary PABIN D “S1” and “S2” to 16 bits of binary data
data and stores it in “D”. 7
Example: H 30 30 31 2D 20 20 K-100
0 0 1 -
F77 32-bit binary DBIA S1, S2, Converts the 32 bits of binary data
P77 data ASCII PDBIA D (S1+1,
11
code S1) to ASCII code and stores it in D
(area of “S2” bytes).
F78 ASCII code DABI S1, S2, Converts the ASCII code specified by
P78 32-bit binary PDABI D “S1” and “S2” to 32 bits of binary data 11
data and stores it in (D+1, D).
F80 16-bit binary BCD S, D Converts the 16 bits of binary data
P80 data 4-digit PBCD specified by “S” to four digits of BCD
5
BCD data data and stores it in “D”.
Example: K100 H100
F81 4-digit BCD BIN S, D Converts the four digits of BCD data
P81 data 16-bit PBIN specified by “S” to 16 bits of binary data
5
binary data and stores it in “D”.
Example: H100 K100
F82 32-bit binary DBCD S, D Converts the 32 bits of binary data
P82 data 8-digit PDBCD specified by (S+1, S) to eight digits of
7
BCD data BCD data and stores it in (D+1, D).
F83 8-digit BCD DBIN S, D Converts the eight digits of BCD data
P83 data 32-bit PDBIN specified by (S+1, S) to 32 bits of binary 7
binary data data and stores it in (D+1, D).
F84 16-bit data INV D Inverts each bit of data of “D”.
P84 invert (com- PINV 3
plement of 1)
F85 16-bit data NEG D Inverts each bit of data of “D” and adds
P85 complement PNEG 1 (inverts the sign). 3
of 2
F86 32-bit data DNEG D Inverts each bit of data of (D+1, D) and
P86 complement PDNEG adds 1 (inverts the sign). 3
of 2
F87 16-bit data ABS D Gives the absolute value of the data of
3
P87 absolute PABS “D”.
F88 32-bit data DABS D Gives the absolute value of the data of
3
P88 absolute PDABS (D+1, D).
F89 16-bit data EXT D Extends the 16 bits of data in “D” to 32
P89 sign extension PEXT bits in (D+1, D). 3
17-60
FP0R
FP-X
Num- Boo- Ope-
FP
FP2
Name Description
ber lean rand
F94 16-bit data distribute DIST S, n, Each of the digits of the data of “S”
P94 PDIST D are stored in (distributed to) the least
7
significant digits of the areas
beginning at “D”.
F95 Character ASCII ASC S, D Twelve characters of the character
P95 code PASC constants of “S” are converted to
15
ASCII code and stored in “D” to
“D+5”.
F96 16-bit table data SRC S1, The data of “S1” is searched for in
P96 search PSRC S2, the areas in the range “S2” to “S3”
7
S3 and the result is stored in DT9037
and DT9038
F97 32-bit table data DSRC S1, The data of (S1+1, S1) is searched
P97 search PDSRC S2, for in the 32-bit data designated by
S3 “S3”, beginning from “S2”, and the 11
result if stored in DT90037 and
DT90038.
Data shift instructions
F98 Data table shift-out CMPR D1, Transfer “D2” to “D3”. Any parts of
P98 and compress PCMPR D2, the data between “D1” and “D2” that
7
D3 are 0 are compressed, and shifted in
order toward “D2”.
F99 Data table shift-in CMPW S, D1, Transfer “S” to “D1”. Any parts of the
P99 and compress PCMP D2 data between “D1” and “D2” that are
7
W 0 are compressed, and shifted in
order toward “D2”.
F100 Right shift of SHR D, n Shifts the “n” bits of “D” to the right.
P100 multiple bits (n bits) PSHR 5
in a 16-bit data
F101 Left shift of multiple SHL D, n Shifts the “n” bits of “D” to the left.
P101 bits (n bits) in a 16- PSHL 5
bit data
F102 Right shift of n bits DSHR D, n Shifts the “n” bits of the 32-bit data
P102 in a 32-bit data PDSHR area specified by (D+1, D) to the 5
right.
F103 Left shift of n bits in DSHL D, n Shifts the “n” bits of the 32-bit data
5
P103 a 32-bit data PDSHL area specified by (D+1, D) to the left.
F105 Right shift of one BSR D Shifts the one digit of data of “D” to
P105 hexadecimal digit (4- PBSR the right. 3
bit)
F106 Left shift of one BSL D Shifts the one digit of data of “D” to
P106 hexadecimal digit PBSL the left. 3
(4-bit)
F108 Right shift of BITR D1, Shifts the “n” bits of data range by
7
P108 multiple bits (n bits) PBITR D2, n “D1” and “D2” to the right.
F109 Left shift of multiple BITL D1, Shifts the “n” bits of data range by
7
P109 bits (n bits) PBITL D2, n “D1” and “D2” to the left.
F110 Right shift of one WSHR D1, Shifts the one word of the areas by
5
P110 word (16-bit) PWSHR D2 “D1” and “D2” to the right.
F111 Left shift of one WSHL D1, Shifts the one word of the areas by
5
P111 word (16-bit) PWSHL D2 “D1” and “D2” to the left.
F112 Right shift of one WBSR D1, Shifts the one digit of the areas by
P112 hexadecimal digit (4- PWBSR D2 “D1” and “D2” to the right. 5
bit)
F113 Left shift of one WBSL D1, Shifts the one digit of the areas by
P113 hexadecimal digit (4- PWBSL D2 “D1” and “D2” to the left. 5
bit)
: Available, : Not available, : Not available partially
17-61
FP0R
FP-X
Num Ope-
FP
FP2
Name Boolean Description
-ber rand
FIFO instructions
F115 FIFO buffer define FIFT n, D The “n” words beginning from “D” are
5
P115 PFIFT defined in the buffer.
F116 Data read from FIFR S, D The oldest data beginning from “S”
P116 FIFO buffer PFIFR that was written to the buffer is read 5
and stored in “D”.
F117 Data write into FIFW S, D The data of “S” is written to the buffer
5
P117 FIFO buffer PFIFW starting from “D”.
Basic function instructions
F118 UP/DOWN counter UDC S, D Counts up or down from the value
preset in “S” and stores the elapsed 5
value in “D”.
F119 Left/right shift LRSR D1, Shifts one bit to the left or right with
register D2 the area between “D1” and “D2” as 5
the register.
Data rotate instructions
F120 16-bit data right ROR D, n Rotates the “n” bits in data of “D” to
5
P120 rotate PROR the right.
F121 16-bit data left ROL D, n Rotates the “n” bits in data of “D” to
5
P121 rotate PROL the left.
F122 16-bit data right RCR D, n Rotates the “n” bits in 17-bit area
P122 rotate with carry PRCR consisting of “D” plus the carry flag 5
flag (R9009) data (R9009) data to the right.
F123 16-bit data left RCL D, n Rotates the “n” bits in 17-bit area
P123 rotate with carry PRCL consisting of “D” plus the carry flag 5
flag (R9009) data (R9009) data to the left.
F125 32-bit data right DROR D, n Rotates the number of bits specified
P125 rotate PDROR by “n” of the double words data (32
5
bits) specified by (D+1, D) to the
right.
F126 32-bit data left DROL D, n Rotates the number of bits specified
P126 rotate PDROL by “n” of the double words data (32 5
bits) specified by (D+1, D) to the left.
F127 32-bit data right DRCR D, n Rotates the number of bits specified
P127 rotate with carry PDRCR by “n” of the double words data (32
5
flag (R9009) data bits) specified by (D+1, D) to the right
together with carry flag (R9009) data.
F128 32-bit data left DRCL D, n Rotates the number of bits specified
P128 rotate with carry PDRCL by “n” of the double words data (32
5
flag (R9009) data bits) specified by (D+1, D) to the left
together with carry flag (R9009) data.
Bit manipulation instructions
F130 16-bit data bit set BTS D, n Sets the value of bit position “n” of
5
P130 PBTS the data of “D” to 1.
F131 16-bit data bit BTR D, n Sets the value of bit position “n” of
5
P131 reset PBTR the data of “D” to 0.
F132 16-bit data invert BTI D, n Inverts the value of bit position “n” of
5
P132 PBTI the data of “D”.
F133 16-bit data bit test BTT D, n Tests the value of bit position “n” of
P133 PBTT the data of “D” and outputs the result 5
to R900B.
F135 Number of on (1) BCU S, D Stores the number of on bits in the
5
P135 bits in 16-bit data PBCU data of “S” in “D”.
F136 Number of on (1) DBCU S, D Stores the number of on bits in the
7
P136 bits in 32-bit data PDBCU data of (S+1, S) in “D”.
: Available, : Not available, : Not available partially
17-62
FP0R
FP-X
Num Boo- Ope-
FP
FP2
Name Description
-ber lean rand
17-63
FP0R
FP-X
Num- Ope-
FP
FP2
Name Boolean Description
ber rand
F150 Data read from READ S1, S2, Reads the data from the
9
P150 intelligent unit PREAD n, D intelligent unit. *3
F151 Data write into WRT S1, S2, Writes the data into the intelligent
9
P151 intelligent unit PWRT n, D unit. *3
F152 Data read from RMRD S1, S2, Reads the data from the
P152 MEWNET-F PRMRD n, D intelligent unit at the MEWNET-F 9
slave station (remote I/O) slave station.
F153 Data write into RMWT S1, S2, Writes the data into the intelligent
P153 MEWNET-F PRMWT n, D unit at the MEWNET-F (remote 9
slave station I/O) slave station.
F155 Sampling SMPL - Starts sampling data.
1
P155 PSMPL *5 *4
F156 Sampling STRG - When the trigger of this
P156 trigger PSTRG instruction turns on, the sampling 1
*5 *4
trace stops.
F157 Time addition CADD S1, S2, The time after (S2+1, S2)
P157 PCADD D elapses from the time of (S1+2,
9
S1+1, S1) is stored in (D+2, D+1, *1
D).
F158 Time CSUB S1, S2, The time that results from
P158 subtraction PCSUB D subtracting (S2+1, S2) from the
9
time (S1+2, S1+1, S1) is stored *1
in (D+2, D+1, D).
F159 Serial port MTRN S, n, D This is used to send data to an
P159 communication PMTRN external device through the
7
specified CPU COM port or MCU *2 *2
COM port.
F161 MCU serial port MRCV S, D1, Data is received from external
P161 reception PMRCV D2 equipment via the COM port of 7
*2 *2
the specified MCU.
BIN arithmetic instruction
F160 Double word DSQR S, D
P160 (32-bit) data PDSQR (S)(D) 7
square root
High speed counter/Pulse output instruction for FP0, FP-e
F0 High-speed MV S, Performs high-speed counter and
counter and DT9052 Pulse output controls according
Pulse output to the control code specified by 5
controls “S”. The control code is stored in
DT9052.
F1 Change and DMV S, Transfers (S+1, S) to high-speed
read of the DT9044 counter and Pulse output elapsed 7
elapsed value value area.
of high-speed DT9044, Transfers value in high-speed
counter and D counter and Pulse output elapsed 7
Pulse output value area to (D+1, D).
F166 High-speed HC1S n, S, Yn Turns output Yn on when the
counter output elapsed value of the built-in high-
set (with speed counter reaches the target 11
channel value of (S+1, S).
specification)
: Available, : Not available, : Not available partially
*1) The instruction is available for FP0 T32 (V2.3 or later) and FP-e.
*2) The instruction is available for FP2/FP2SH Ver. 1.5 or later, and the pulse execution type can be specified.
FP10SH cannot be used.
*3) This instruction is available for FP Ver. 2.0 or later.
*4) This instruction is only available for FP-X Ver.2.0 or later.
*5) This instruction is available for FP Ver. 3.10 or later.
17-64
FP0R
FP-X
Num- Boo-
FP
FP2
Name Operand Description
ber lean
17-65
FP0R
FP-X
Num-
FP
FP2
Name Boolean Operand Description
ber
17-66
FP0R
FP-X
Num- Boo-
FP
FP2
Name Operand Description
ber lean
17-67
FP0R
FP-X
Num Ope-
FP
FP2
Name Boolean Description
-ber rand
17-68
FP0R
FP-X
Num- Ope-
FP
FP2
Name Boolean Description
ber rand
17-69
FP0R
FP-X
Num- Ope-
FP
FP2
Name Boolean Description
ber rand
17-70
FP0R
FP-X
Num- Ope-
FP
FP2
Name Boolean Description
ber rand
F286 Upper and DLIMT S1, S2, When (S1+1, S1)>(S3+1, S3), (S1+1,
P286 lower limit PDLIMT S3, D S1)(D+1, D)
control When (S2+1, S2)<(S3+1, S3), (S2+1,
16
(32-bit data) S2)(D+1, D) *1
When (S1+1, S1)<or = (S3+1, S3)<or
= (S2+1, S2), (S3+1, S3)(D+1, D)
F287 Deadband BAND S1, S2, When S1>S3, S3S1D
P287 control PBAND S3, D When S2<S3, S3S2D 10
*1
(16-bit data) When S1<or = S3<or = S2, 0D
F288 Deadband DBAND S1, S2, When (S1+1, S1)>(S3+1, S3), (S3+1,
P288 control PDBAND S3, D S3)(S1+1, S1)(D+1, D)
(32-bit data) When (S2+1, S2)<(S3+1, S3), (S3+1,
16
S3)(S2+1, S2)(D+1, D) *1
When (S1+1, S1)<or = (S3+1, S3)<or
= (S2+1, S2),0(D+1, D)
F289 Zone control ZONE S1, S2, When S3<0, S3+S1D
P289 (16-bit data) PZONE S3, D When S3=0, 0D 10
*1
When S3>0, S3+S2D
F290 Zone control DZONE S1, S2, When (S3+1, S3)<0, (S3+1,
P290 (32-bit data) PDZONE S3, D S3)+(S1+1, S1)(D+1, D)
When (S3+1, S3)=0, 0(D+1, D) 16
*1
When (S3+1, S3)>0, (S3+1,
S3)+(S2+1, S2)(D+1, D)
BCD type real number operation instructions
F300 BCD type sine BSIN S, D SIN(S1+1, S1)(D+1, D)
6
P300 operation PBSIN
F301 BCD type BCOS S, D COS(S1+1, S1)(D+1, D)
P301 cosine PBCOS 6
operation
F302 BCD type BTAN S, D TAN(S1+1, S1)(D+1, D)
P302 tangent PBTAN 6
operation
F303 BCD type BASIN S, D SIN-1(S1+1, S1)(D+1, D)
P303 arcsine PBASIN 6
operation
F304 BCD type BACOS S, D COS-1(S1+1, S1)(D+1, D)
P304 arccosine PBACOS 6
operation
F305 BCD type BATAN S, D TAN-1(S1+1, S1)(D+1, D)
P305 arctangent PBATAN 6
operation
Floating-point type real number operation instructions
F309 Floating-point FMV S, D (S+1, S)(D+1, D)
P309 type data PFMV 8
*2
move
F310 Floating-point F+ S1, S2, (S1+1, S1)+(S2+1, S2)(D+1, D)
P310 type data PF+ D 14
*2
addition
F311 Floating-point F- S1, S2, (S1+1, S1)(S2+1, S2)(D+1, D)
P311 type data PF- D 14
*2
subtraction
F312 Floating-point F* S1, S2, (S1+1, S1)(S2+1, S2)(D+1, D)
P312 type data PF* D 14
*2
multiplication
F313 Floating-point F% S1, S2, (S1+1, S1)(S2+1, S2)(D+1, D)
P313 type data PF% D 14
*2
division
: Available, : Not available, : Not available partially
*1) This instruction is only available for FP-e Ver.1.2 or later.
*2) This instruction is available for FP-e Ver.1.21 or later, and FP0 V2.1 or later.
17-71
FP0R
FP-X
Num- Boo- Ope-
FP
FP2
Name Description
ber lean rand
17-72
FP0R
FP-X
Num- Ope-
FP
FP2
Name Boolean Description
ber rand
17-73
FP0R
FP-X
Num- Ope-
FP
FP2
Name Boolean Description
ber rand
17-74
FP0R
FP-X
Num- Ope-
FP
FP2
Name Boolean Description
ber rand
17-75
17-76
17-77
Opera-
Error
FP10SH
Name
FP2SH
tion Description and steps to take
FP0R
code
FPΣ
FP-X
FP-e
FP0
FP2
status
17-78
FP10SH
Name
FP2SH
tion Description and steps to take
FP0R
code
FPΣ
FP-X
FP-e
FP0
FP2
status
17-79
Opera-
Error
FP10SH
Name
FP2SH
tion Description and steps to take
FP0R
code
FPΣ
FP-X
FP-e
FP0
FP2
status
17-80
FP10SH
Name
FP2SH
tion Description and steps to take
FP0R
code
FPΣ
FP-X
FP-e
FP0
FP2
status
Configu-
A parameter error was detected in the
ration
E29 Stops MEWNET-W2 configuration area. Set a A A
parameter correct parameter.
error
Interrupt Probably a hardware abnormality.
E30 Stops Please contact your dealer.
error 0
An interrupt occurred without an interrupt
request . A hardware problem or error due to
Interrupt
E31 Stops noise is possible. A A A A A A A A
error 1 Turn off the power and check the noise
conditions.
There is no interrupt program for an interrupt
which occurred.
Interrupt
E32 Stops Check the number of the interrupt program A A A A A A A A
error 2 and change it to agree with the interrupt
request..
Multi-CPU
This error occurs when a FP3/FP10SH is
data CPU2
E33 used as CPU2 for a multi-CPU system. A A
unmatch Stops Refer to “Multi-CPU system Manual”.
error
An abnormal unit is installed.
-FPΣ, FP0R(FP0R mode),FP-X, FP2,FP2SH
and FP10SH:
Check the contents of special data register
DT90036 and locate the abnormal unit. Then
I/O status turn off the power and replace the unit with a
E34 Stops new one.
A A A A A
error
-FP3:
Check the contents of special data register
DT9036 and locate the abnormal unit. Then
turn off the power and replace the unit with a
new one.
MEWNET-F A unit, which cannot be installed on the slave
station of the MEWNET-F link system, is
slave
E35 Stops installed on the slave station. A A A
illegal unit Remove the illegal unit from the slave
error station.
MEWNET-F The number of slots or I/O points used for
(remote MEWNET-F(remote I/O) system exceeds the
limitation.
E36 I/O) Stops Re-configure the system so that the
A A A
limitation number of slots and I/O points is within the
error specified range.
MEWNET-F I/O overlap or I/O setting that is over the
I/O range is detected in the allocated I/O and
E37 Stops MEWNET-F I/O map.
A A A
mapping
error Re-configure the I/O map correctly
A: Available
17-81
FP10SH
Name
FP2SH
-tion Description and steps to take
FP0R
code
FPΣ
FP-X
FP-e
FP0
FP2
status
17-82
FP10SH
Name
FP2SH
tion Description and steps to take
FP0R
code
FPΣ
FP-X
FP-e
FP0
FP2
status
17-83
FP10SH
Name
FP2SH
tion Description and steps to take
FP0R
code
FPΣ
FP-X
FP-e
FP0
FP2
status
17-84
FP10SH
Name
FP2SH
tion Description and steps to take
FP0R
code
FPΣ
FP-X
FP-e
FP0
FP2
status
17-85
FP10SH
Name
FP2SH
tion Description and steps to take
FP0R
code
FPΣ
FP-X
FP-e
FP0
FP2
status
17-86
Error
Name Description
code
17-87
17-88
17-89
17-90
17-91