FP0R USERS MANUAL fp0r Hard F475e-2 PDF
FP0R USERS MANUAL fp0r Hard F475e-2 PDF
FP0R USERS MANUAL fp0r Hard F475e-2 PDF
FP0R
,
Users Manual
ARCT1F475E-2
2011.8 | panasonic-electric-works.net/sunx
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.
-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 Electric
Works SUNX Co., Ltd.
-Windows is a registered trademark of Microsoft Corporation in the United States and other
countries.
-All other company names and product names are trademarks or registered trademarks of
their respective owners.
PLC_BAT
Table of Contents
Before You Start
Programming Tool Restrictions
When Using FP0 Programs
3. Expansion.................................................................................3-1
3.1 Expansion Method ................................................................................... 3-2
3.2 Part Names and Functions....................................................................... 3-3
3.3 Input and Output Specifications ............................................................... 3-4
3.4 Terminal layout diagram........................................................................... 3-7
7. Communication .......................................................................7-1
7.1 Functions and Types................................................................................ 7-2
7.2 Communicaton Port Type ........................................................................ 7-4
7.3 Communication Specifications ................................................................. 7-5
7.4 Computer Link.......................................................................................... 7-7
7.5 General-purpose Serial Communication................................................. 7-18
7.6 PC(PLC) link Function............................................................................ 7-34
7.7 MODBUS RTU Communication ............................................................. 7-49
i
8. High-speed Counter, Pulse Output and PWM Output
Functions ..................................................................................... 8-1
8.1 Overview of Each Functions .....................................................................8-2
8.2 Function Specifications and Restricted Items ...........................................8-4
8.3 High-speed Counter Function ...................................................................8-9
8.4 Pulse Output Function ............................................................................8-19
8.5 PWM Output Function ............................................................................8-57
ii
15. Appendix.............................................................................. 15-1
15.1 System Registers/Special Internal Relays/Special Data Registers ...... 15-2
15.2 Table of Basic Instructions ................................................................ 15-39
15.3 Table of High-level Instructions ......................................................... 15-47
15.4 Table of Error codes.......................................................................... 15-67
15.5 MEWTOCOL-COM Communication Commands ............................... 15-80
15.6 Hexadecimal/Binary/BCD.................................................................. 15-81
15.7 ASCII Codes ..................................................................................... 15-82
iii
iv
Before You Start
Operating environment (Use the unit within the range of the general specifications when
installing)
* Ambient temperature: 0 to +55°C
* Ambient humidity: 10 to 95 % RH (at 25 °C, non-condensing)
* For use in pollution Degree 2 environment.
* Do not use the unit in the following environments.
- Direct sunlight
- Sudden temperature changes causing condensation.
- Inflammable or corrosive gas.
- Excessive airborne dust, metal particles or saline matter.
- Benzine, paint thinner, alcohol or other organic solvents or strong alkaline solutions such as ammonia
or caustic soda.
- Direct vibration, shock or direct drop of water.
- Influence from power transmission lines, high voltage equipment, power cables, power equipment,
radio transmitters, or any other equipment that would generate high switching surges.(100 mm or more)
Static electricity
- Do not touch connector pins directly to prevent static electricity from causing damage.
- Always rid yourself of any static electricity before handling this product.
Power supply
- Use a power supply wire that is twisted.
- The unit has sufficient noise immunity against the noise generated on the power line. However, it is
recommended to take measures for reducing noise such as using an isolating transformer before
supplying the power.
- Allocate an independent wiring for each power supplying line, input/output device and operating device.
- If using a power supply without a protective circuit, power should be supplied through a protective
element such as fuse. If an incorrect voltage is directly applied, the internal circuit may be damaged or
destroyed.
- Be sure to supply power to a control and an expansion unit from a single power supply. Turning on/off
of the power of all the units must be conducted simultaneously.
Power supply sequence
- Have the power supply sequence such that the power supply of the control unit turns off before the
power supply for input and output. If the input/output power supply is turned off before the control unit,
or if the control unit is not shut off momentarily, the controller detects change of input level, and might
conduct an unexpected operation.
Before turning on the power
When turning on the power for the first time, be sure to take the precautions given below.
- When performing installation, check to make sure that there are no scraps of wiring, particularly
conductive fragments, adhering to the unit.
- Verify that the power supply wiring, I/O wiring, and power supply voltage are all correct.
- Sufficiently tighten the installation screws and terminal screws.
- Set the mode selector to PROG. mode.
Before entering a program
Be sure to perform a program clear operation before entering a program. Refer to the respective tool
software manuals for the details of the operation procedure. (Tool software: FPWIN Pro, FPWIN GR)
Request concerning program storage
To prevent the accidental loss of programs, the user should consider the following measures.
- Drafting of documents
To avoid accidentally losing programs, destroying files, or overwriting the contents of files, documents
should be printed out and then saved.
- Specifying the password carefully.
The password setting is designed to avoid programs being accidentally overwritten. If the password is
forgotten, however, it will be impossible to overwrite the program even if you want to. Also, if a password
is forcibly bypassed, the program is deleted. When specifying the password, note it in the specifications
manual or in another safe location in case it is forgotten at some point.
v
Programming Tool Restrictions
Restrictions on usable programming tools depending on the units.
Note:
- In case of using FPWIN GR Ver.1, please purchase upgrade model FPWIN GR Ver.2.
- FPWIN GR Ver.2 can be upgraded free of charge at our web site.
- FPWIN Pro Ver.6 can be upgraded free of charge at our web site.
- The handy programming unit cannot be used.
Do not download any programs for other units such as FP1 to the FP0R using the handy programming
unit.
http://panasonic-denko.co.jp/ac/e/dl/software-list/patch/plc.jsp
vi
When Using FP0 Programs
The programs used on the existing FP0 can be used on the FP0R in the following 2 cases.
The points to take care when using the FP0 programs on the FP0R are described below in the above 2
cases.
- When using the programs in the FP0R specifications
- When using the programs in the same specifications as the FP0
vii
Differences between specifications of FP0 and FP0R effecting program change
Change in As the size of the data area and the settings of hold and non-hold areas changes,
data areas check if the address of the used data memory is correct. The area that has been used
as a hold area might be a non-hold area.
Change in The following instructions that are supported on the FP0 cannot be used. Replace
supported them with the instructions for the FP0R based on the following description.
instructions [FP0] [FP0R]
F144(TRNS) instruction → F159(MTRN) instruction
F168(SPD1) instruction → F171(SPDH), F177(HOME) instructions
F169(PLS) instruction → F172 (PLSH) instruction
F170(PWM) instruction → F173(PWMH) instruction
As for the following instructions, the specifications change. Modify the programs in
accordance with the specifications after the change.
[FP0] [FP0R]
F12(ICRD) instruction
Unit of read: 64 words → Unit of read: 2048 words
P13(PICWT) instruction
Unit of write: 64 words → Unit of write: 2048 words
Change in The addresses of the following special internal relays are changed.
special High-speed counter control flag
internal [FP0] [FP0R]
relays R903A: For CH0 → R9110 : For CH0
R903B: For CH1 → R9111 : For CH1
R903C: For CH2 → R9112 : For CH2
R903D: For CH3 → R9113 : For CH3
Change in The contents of the following special data registers are changed.
special data
[FP0] [FP0R]
registers DT9052(DT90052) DT90052
:High-speed counter control flag :High-speed counter control flag
As each 4 bits of the control code for all 4 As the areas to write the channel
channels are allocated, write the control code numbers to be changed and the
in the area of the corresponding channel. control codes are separated, write the
corresponding channel numbers and
control codes.
Note:
The FP0 compatibility mode is not available for the F32 type.
The speed of arithmetic processing in the FP0 compatibility mode is the same as the FP0R, so the
timing for processing the program may differ from the original timing for the FP0 program.
If you want to execute the program in the condition close to the original timing, set a constant scan or
insert a program that does not affect the external operation to adjust the timing.
ix
Differences between the specifications of FP0 compatibility mode and FP0
Basically, the FP0 programs do not need to be modified to activate the FP0 programs in the FP0
compatibility mode, however, as for the following items, the specifications are different. Check the
contents, and change the programs if necessary.
x
3. Data size of elapsed value and target value of pulse output and high-speed counter
The data size is changed.
FP0: 24 bits
FP0 compatibility mode: 32 bits
xi
xii
Chapter 1
Functions and Restrictions of the Unit
1.1 Unit Types
1-2
Transistor
output: (NPN) RS232C AFP0RT32CT
0.2A MIL
Transistor connector
32 points output: (PNP) RS232C AFP0RT32CP
32k (Input: 16 points/ 24V 24V DC 0.2A
T32
steps Output: 16 DC ±common Transistor
points) output: (NPN) RS485 AFP0RT32MT
0.2A MIL
Transistor connector
output: (PNP) RS485 AFP0RT32MP
0.2A
Transistor
output: (NPN) RS232C AFP0RF32CT
0.2A MIL
Transistor connector
32 points output: (PNP) RS232C AFP0RF32CP
32k (Input: 16 points/ 24V 24V DC 0.2A
F32
steps Output: 16 DC ±common Transistor
points) output: (NPN) RS485 AFP0RF32MT
0.2A MIL
Transistor connector
output: (PNP) RS485 AFP0RF32MP
0.2A
1-3
FP0 Expansion Units
Specifications
Product Power
Connection Product No.
name No. of I/O points supply Input Output
type
voltage
8 points 24V DC MIL
- - AFP0RE8X
(Input: 8 points) ±common connector
Terminal
8 points AFP0RE8RS
24V 24V DC Relay output: block
(Input: 4 points,
DC ±common 2A Molex
Output: 4 points) AFP0RE8RM
connector
FP0R-E8
8 points 24V Relay output: Terminal
Expansion - AFP0RE8YRS
(Output: 8 points) DC 2A block
Unit
Transistor
8 points MIL
- - output: (NPN) AFP0RE8YT
(Output: 8 points) connector
0.3A
Transistor
8 points MIL
- - output: (PNP) AFP0RE8YP
(Output: 8 points) connector
0.3A
16 points 24V DC MIL
- - AFP0RE16X
(Input: 16 points) ±common connector
Terminal
16 points AFP0RE16RS
24V 24V DC Relay output: block
(Input: 8 points,
DC ±common 2A Molex
Output: 8 points) AFP0RE16RM
connector
16 points Transistor
24V DC MIL
(Input: 8 points, - output: (NPN) AFP0RE16T
FP0R-E16 ±common connector
Output: 8 points) 0.3A
Expansion
16 points Transistor
unit 24V DC MIL
(Input: 8 points, - output: (PNP) AFP0RE16P
±common connector
Output: 8 points) 0.3A
Transistor
16 points MIL
- - output: (NPN) AFP0RE16YT
(Output: 16 points) connector
0.3A
Transistor
16 points MIL
- - output: (PNP) AFP0RE16YP
(Output: 16 points) connector
0.3A
32 points Transistor
24V DC MIL
(Input: 16 points, - output: (NPN) AFP0RE32T
FP0R-E32 ±common connector
Output: 16 points) 0.3A
Expansion
32 points Transistor
unit 24V DC MIL
(Input: 16 points, - output: (PNP) AFP0RE32P
±common connector
Output: 16 points) 0.3A
1-4
1.1.2 Intelligent Units
Product Exclusive
Product name Specifications Part No.
No. manual
<Input specifications>
No. of channels: 2 channels
Input range: Voltage: 0 to 5 V,
-10~+10V (Resolution: 1/4000)
FP0 Analog I/O unit Current: 0 to 20 mA (Resolution: 1/4000) FP0-A21 AFP0480 ARCT1F390
<Output specifications>
No. of channels: 1 channel
Output range: Voltage: -10 to +10 V (Resolution: 1/4000)
Current: 0 to 20 mA (Resolution: 1/4000)
<Input specifications>
No. of channels: 8 channels
FP0 A/D Converter
Input range: Voltage: 0 to 5 V, -10 to +10V, -100 to 100 mV FP0-A80 AFP0401 ARCT1F321
unit
(Resolution: 1/4000)
Current: 0 to 20 mA (Resolution: 1/4000)
FP0 Thermocouple K, J, T, R thermocouples, resolution: 0.1℃ FP0-TC4 AFP0420
ARCT1F366
unit K, J, T, R thermocouples, resolution: 0.1℃ FP0-TC8 AFP0421
FP0 RTD
(Resistance- Pt100, Pt1000,Ni1000
FP0-RTD6 AFP0430 ARCT1F445
temperature detector) Resolution: 0.1℃/0.01℃ (Switch type)
unit
<Output specifications>
FP0-A04V AFP04121
No. of channels: 4 channels
FP0 D/A Converter
Output range: (Voltage output type): -10 to +10 V ARCT1F382
unit
(Resolution: 1/4000) FP0-A04I AFP04123
(Current output type): 4 to 20 mA (Resolution: 1/4000)
1-5
1.1.4 Power Supply Unit
Product name Specifications Part No. Product No.
Input voltage: 100 to 240 V AC Free input
FP0 Power supply unit FP0-PSA4 AFP0634
Output capacity: 0.7A, 24 V DC
1-6
1.2 Restrictions on Unit Combination
Up to three expansion units can be added on the right of the FP0R, these expansion units being either
expansion units or intelligent units.
A combination of relay output and transistor output types is also possible.
Note:
- Install the FP0 thermocouple unit on the right side of all 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 all other expansion units. There is no expansion
connector on the right side.
- Install the FP0 RTD unit on the right side of all other expansion units.
1-7
1.3 Programming Tools
1-8
Type of computer and suitable cable
For the connection between a personal computer (RS232C) and the control unit (RS232C)
For the connection between a personal computer (USB) and the control unit (USB)
USB cable
Use a commercial cable.
Cable type Length
USB 2.0 cable (A: miniB) Max. 5 m
Note) Windows2000 or later OS is required for the communication with a USB.
1-9
1-10
Chapter 2
Specifications and Functions of
Control Unit
2.1 Part Names and Functions
2-2
RUN/PROG. mode switch
This switch is used to change the operation mode of PLC.
Switch Operation mode
RUN (Position: Up) RUN mode :The program is executed and the operation begins.
PROG. (Position: Down) PROG. mode :The operation stops. In this mode, programming can be
done using a tool software.
- Switching between RUN and STOP can be also performed by the remote operation from a
programming tool.
- When performing remote switching from the programming tool, the setting of the mode switch and the
actual mode of operation may differ. Verify the mode with the status indicator LED.
- Restart the power supply to operate in the mode set with the RUN/PROG. mode switch.
- The followings are the default settings when the unit is shipped from the factory. The system register
should be used to change these.
Baud rate 9600bps
Char. Bit 8 bits
Parity check Odd parity
Stop bit 1 bit
Note) The unit number of the tool port should be set by the system register.
Input connector
Input status LEDs
Output connector
Output indicator LEDs
Power supply connector (24 V DC)
Supply 24 V DC. It is connected using the power supply cable (AFPG805) supplied with the unit.
Circuit diagram
R1=9.1 kΩ R2=1 kΩ
2-4
2.2.2 Output Specifications
Transistor output specifications
Description
Item
NPN PNP
Insulation method Optical coupler
Output type Open collector
Rated load voltage 5 V DC to 24 V DC 24 V DC
Operating load voltage range 4.75 V DC to 26.4 V DC 21.6 V DC to 26.4 V DC
Max. load current 0.2A
For C16: 8 points/common
Output points per common
For C32, T32, F32: 16 points/common
Off state leakage current 1 µA or less
On state voltage drop 0.2 V DC or less
OFF→ON 20 µs or less (Load current: 5 mA or more)
0.1 ms or less (Load current: 0.5 mA or more)
Response time
ON→OFF 40 µs or less (Load current: 5 mA or more)
0.2 ms or less (Load current: 0.5 mA or more)
External power Voltage 21.6V DC to 26.4V DC
supply Current C16: 30 mA or less C16:35 mA or less
(+ and - terminals) C32, T32, F32: 60 mA or less C32, T32, F32: 70 mA or less
Surge absorber Zener diode
Operating mode indicator LED display
Circuit diagram
[NPN] [PNP]
2-5
Relay output specifications (C10/C14)
Item Description
Output type 1a output
Rated control capacity 2 A 250 V AC, 2 A 30 V DC (4.5 A or less/common) Note)
C10:2 points/common+1 point/common+1 point/common
Output points per common
C14:4 points/common+1 point/common+1 point/common
Response OFF → ON Approx. 10 ms
time ON → OFF Approx. 8 ms
Mechanical Min. 20,000,000 operations (Switching rate: 180 times/min.)
Lifetime Electrical Min. 100,000 operations (Switching rate: 20 times/min. at rated control
capacity)
Surge absorber None
Operating mode indicator LED display
Note) Resistance load
Circuit diagram
2-6
2.3 Terminal layout diagrams
Model No. Terminal layout diagrams
C10RS
C10CRS
C10RM
C10CRM
C14RS
C14CRS
C14RM
C14CRM
2-7
Model No. Terminal layout diagrams
C16T
C16CT
Note: Two COM terminals of the input circuit are connected internally.
C16P
C16CP
Note: Two COM terminals of the input circuit are connected internally.
2-8
Model
Terminal layout diagrams
No.
C32T
C32CT
T32CT
F32CT
Note: Four COM terminals of the input circuit are connected internally.
Two (+) terminals of the output circuit are connected internally.
Two (-) terminals of the output circuit are connected internally.
C32P
C32CP
T32CP
F32CP
Note: Four COM terminals of the input circuit are connected internally.
Two (+) terminals of the output circuit are connected internally.
Two (-) terminals of the output circuit are connected internally.
2-9
2.4 Functions of T32 Control Unit
The range specified with a programming tool is the hold area to be backed up.
If the range is not specified, it will be the area of the default.
Note) If the battery is out of charge and the hold area becomes indefinite, the value in the hold area will
be cleared to 0 when the power supply is turned on again.
Key Point:
Programs and system registers will be held in the internal ROM regardless of the built-in back up battery.
2-10
2.4.2 Built-in Backup Battery
Time the built-in backup battery can be used (Backup time)
The built-in backup battery is not charged when the unit is shipped.
Charge the battery sufficiently before use. (Full charge (Ambient temperature: 25°C): 72 hours)
It will be charged automatically if the DC power is supplied to the control unit.
If it is charged on a full charge (72 hours) at the ambient temperature of 25°C, the backup time
will be approx. 50 days.
The backup time will vary according to the ambient temperature when the battery is charged.
Ambient temperature when charged Number of days in backup time
70 °C Approx. 14 days
-20 °C Approx. 25 days
2-11
2.4.3 Clock/Calendar
The clock/calendar function is available for the FP0R-T32.
Note) As the value is unstable in the initial state, write the value using a programming tool.
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.
Special data
Higher bytes Lower bytes Reading Writing
register No.
Hour data Minute data
DT90053 Available Not available
H00 to H23 H00 to H59
Minute data Second data
DT90054 Available Available
H00 to H59 H00 to H59
Day data Hour data
DT90055 Available Available
H01 to H31 H00 to H23
Year data Month data
DT90056 Available Available
H00 to H99 H01 to H12
Day-of-the-week data
DT90057 - Available Available
H00 to H06
2-12
Setting and changing using program
(1) The values written to the special data registers DT90054 to DT90057, which are allocated as the
clock/calendar setting area, are sent.
(2) A value of H8000 is written to DT90058.
Note) The value can be sent using the differential instruction "DF", or by changing H8000 to H0000.
Note: As the value is unstable in the initial state, write the value using a programming tool.
As a day of the week is not automatically set on programming tools, fix what day is set to
00, and set the value for 00.
- 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.
2-13
2-14
Chapter 3
Expansion
3.1 Expansion Method
The FP0/FP0R expansion units (expansion I/O unit, high-performance unit) are connected to the right
side of the control Unit.
Unit expansion is done using the right-side connector for FP0/FP0R expansion and the expansion hooks
on the side of the unit.
(1) Peel the seal on the right side of the unit to expose the internal right-side connector for the
FP0/FP0R expansion.
(2) Using a screwdriver or similar tool, pull out the top and bottom expansion hooks.
(3) 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.
(4) Press down the expansion hooks raised in Step (2) to secure the unit.
3-2
3.2 Part Names and Functions
Expansion Units
3-4
(2) Output specifications
Relay type output specifications
E8RS/E8RM/E8YRS/E16RS/E16RM
Item Description
Output type 1a relay output
Rated control capacity: 2 A 250 V AC, 2 A 30 V DC (Max. 4.5 A or less/common) Note)
Output points per E8R 4 points/common
common E16R, E8YR 8 points/common
OFF → ON Approx. 10 ms
Response time
ON → OFF Approx. 8 ms
Mechanical Min. 20,000,000 operations
Lifetime
Electrical Min. 100,000 operations
Surge absorber None
Operating mode indicator LED display
Note) Resistance load
3-5
Limitations on number of simultaneous input on points
Keep the number of input points per common which are simultaneously on within the following range as
determined by the ambient temperature.
3-6
3.4 Terminal layout diagram
Model No. Terminal layout diagrams
E8RS
E8RM
E16RS
E16RM
E8YRS
3-7
Model
Terminal layout diagrams
No.
E8X
E16T
E8YT
Note: Two COM terminals of the input circuit are connected internally.
E16X
E32T
E16YT
Note: Two COM terminals of the input circuit are connected internally.
Two (+) terminals of the output circuit are connected internally.
Two (-) terminals of the output circuit are connected internally.
3-8
Model
Terminal layout diagrams
No.
E16P
E8YP
Note: Two COM terminals of the input circuit are connected internally.
E32P
E16YP
Note: Two COM terminals of the input circuit are connected internally.
Two (+) terminals of the output circuit are connected internally.
Two (-) terminals of the output circuit are connected internally.
3-9
3-10
Chapter 4
I/O Allocation
4.1 I/O Allocation
Note) The usable I/O numbers are different depending on the units.
4-2
4.2 I/O Allocation for FP0R Control Unit
4-3
4.3 I/O Numbers of FP0/FP0R Expansion Unit
・I/O numbers do not need to be set as I/O allocation is automatically performed when an expansion unit
is added.
・The I/O allocation of expansion unit is determined by the installation location.
Number of Expansion Expansion Expansion
Type of unit
allocation unit 1 unit 2 unit 3
E8X Input (8 points) X20 to X27 X40 to X47 X60 to X67
Input (4 points) X20 to X23 X40 to X43 X60 to X63
E8R
Output (4 points) Y20 to Y23 Y40 to Y43 Y60 to Y63
E8YT/P
Output (8 points) Y20 to Y27 Y40 to Y47 Y60 to Y67
E8YR
FP0/FP0R
E16X Input (16 points) X20 to X2F X40 to X4F X60 to X6F
Expansion unit
E16R Input (8 points) X20 to X27 X40 to X47 X60 to X67
E16T/P Output (8 points) Y20 to Y27 Y40 to Y47 Y60 to Y67
E16YT/P Output (16 points) Y20 to Y2F Y40 to Y4F Y60 to Y6F
Input (16 points) X20 to X2F X40 to X4F X60 to X6F
E32T/P
Output (16 points) Y20 to Y2F Y40 to Y4F Y60 to Y6F
Input (16 points) WX2 WX4 WX6
CH0 (X20 to X2F) (X40 to X4F) (X60 to X6F)
FP0 Analog I/O Input (16 points) WX3 WX5 WX7
FP0-A21
unit CH1 (X30 to X3F) (X50 to X5F) (X70 to X7F)
WY2 WY4 WY6
Output (16 points)
(Y20 to Y2F) (Y40 to Y4F) (Y60 to Y6F)
FP0 A/D Input (16 points) WX2 WX4 WX6
FP0-A80
conversion unit CH0, 2, 4, 6 (X20 to X2F) (X40 to X4F) (X60 to X6F)
FP0-TC4
FP0 Thermocouple Input (16 points) WX3 WX5 WX7
FP0-TC8
unit CH1, 3, 5, 7 (X30 to X3F) (X50 to X5F) (X70 to X7F)
Input (16 points) WX2 WX4 WX6
CH0, 2, 4 (X20 to X2F) (X40 to X4F) (X60 to X6F)
Input (16 points) WX3 WX5 WX7
FP0 RTD unit FP0-RTD
CH1, 3, 5 (X30 to X3F) (X50 to X5F) (X70 to X7F)
WY2 WY4 WY6
Output (16 points)
(Y20 to Y2F) (Y40 to Y4F) (Y60 to Y6F)
WX2 WX4 WX6
Input (16 points)
(X20 to X2F) (X40 to X4F) (X60 to X6F)
FP0 D/A FP0-A04V Output (16 points) WY2 WY4 WY6
conversion unit FP0-A04I CH0, 2 (Y20 to Y2F) (Y40 to Y4F) (Y60 to Y6F)
Output (16 points) WY3 WY5 WY7
CH1, 3 (Y30 to Y3F) (Y50 to Y5F) (Y70 to Y7F)
Input (32 points) X20 to X3F X40 to X5F X60 to X7F
FP0 I/O link unit FP0-IOL
Output (32 points) Y20 to Y3F Y40 to Y5F Y60 to Y7F
- The data for the each channels of FP0 A/D conversion unit (FP0-A80), FP0 thermocouple unit (FP0-
TC4/FP0-TC8) and FP0 D/A conversion unit (FP0-A04V/FP0-A04I) is converted and loaded with a user
program that includes a switching flag to convert the data.
- Regarding FP0 CC-Link slave unit, please refer to the exclusive manual.
4-4
Chapter 5
Installation and Wiring
5.1 Installation
Static electricity
- Do not touch connector pins directly to prevent static electricity from causing damage.
- Always rid yourself of any static electricity before handling this product.
- Do not install the unit above devices which generate heat such heaters, transformers or large scale
resistors.
5-2
Installation space
- Leave at least 50 mm of space between the wiring ducts of the unit and other devices to allow heat
radiation and unit replacement.
- Maintain at least 100 mm 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 100 mm of space from the front surface of the control unit in order to allow room for
programming tool connections and wiring.
Procedure of installation
(1) Fit the upper hook of the unit onto the DIN rail.
(2) Without moving the upper hook, press on the lower hook to fit
the unit into position.
Procedure of removal
(1) Insert a slotted screwdriver into the DIN rail attachment lever.
5-3
5.1.3 Installation Using the Optional Mounting Plate
When using the slim type FP0 mounting plate (AFP0803)
Use M4 size pan-head screws for attachment of the mounting plate and install according to the
dimensions shown below.
The rest of the procedure is the same as that for attaching the unit to the DIN rails.
Note:
When using an expansion unit, tighten the screws after joining all of the mounting plate to be connected.
Tighten the screws at each of the four corners.
[Example] When using the maximum numbers of the expansion units (with AFP0803)
5-4
When using the flat type mounting plate (AFP0804)
Use M4 size pan-head screws for attachment of the mounting plate and install according to the
dimensions shown below.
Raise the expansion hooks of the unit. Align the expansion hooks with the mounting plate and press the
hooks.
An unit with an attached mounting plate can also be installed sideways on a DIN rail.
Note:
The flat type mounting plate (AFP0804) should be used only with the control unit as a stand-alone unit.
It should not be used when the unit is being used in combination with an FP0/FP0R expansion unit.
5-5
5.2 Wiring of Power Supply
Exclusive grounding
- The grounding connection should have a resistance of less than 100Ω.
- The point of grounding should be as close to the PLC 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.
Since the power supply line of the FP0/FP0R expansion unit 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.
As for the FP0R control unit, since its power supply line is connected to the function earth through a
high-voltage capacitor, it is no problem.
Do not ground the function earth terminal when grounding a plus (+) terminal of the power.
Do not ground the FP0R function earth terminal when grounding a plus (+) terminal of the power.
In some computers, the SG terminal of RS232C port and connector shielding are connected.
In addition, an FP0R tool port shielding and function earth terminal are connected.
Therefore, the GND terminal of FP0R and the function earth terminal are connected if the computer is
connected.
Especially when the FP0R is connected to a computer with a plus (+) terminal grounded, the GND
terminal is in the state that the voltage of -24 V is applied. As a result, short circuit occurs which may
lead to the breakage of FP0R and its neighboring parts if the GND terminal is connected to the earth
terminal in that state.
5-7
5.3 Wiring of Input and Output
5-8
Precaution when using LED-equipped limit switch
If the input of PLC does not turn off because of
leakage current from the LED-equipped limit
switch, the use of a bleeder resistor is
recommended, as shown on the left.
5-9
5.3.2 Output Wiring
Protective circuit for inductive loads
- With an inductive load, a protective circuit should be installed in parallel with the load.
- When switching DC inductive loads with relay output, be sure to connect a diode across the ends of the
load.
5-10
5.4 Wiring of MIL Connector Type
Supplied connector and suitable wires
The connector listed below is supplied with the unit. Use the suitable wires given below. Also, use the
required pressure connection tools for connecting the wires.
Connector for loose-wire cable (Attached to the control unit and expansion I/O unit)
Unit type and required quantity
Manufacturer Type and product No.
E8 C16/E16 C32/T32/F32/E32
Housing(10P) 1 pc 2 pcs x 1 set 2 pcs x 2 sets
Panasonic Electric
Semi-cover(10P) 2 pcs 4 pcs x 1 set 4 pcs x 2 sets
Works SUNX Co.,
Contact (for AW22 and 24) 4 pcs x 1 set 4 pcs x 2 sets
Ltd. 2 pcs x 1 set
5 pins
Note) The parts of the number of the connectors are supplied with the product. If you need more
connectors, purchase AFP0807 (2 sets/pack).
Pressure connection tool
Manufacturer Product No.
Panasonic Electric Works SUNX Co.,
AXY52000FP
Ltd.
Key Point:
When using a MIL connector for flat cables, purchase the product number AFP0808 (4 pcs, 10-pin
strain-relief with key). In this case, the suitable wire is AWG#28 and the rated current is 1A.
5-11
Wiring method
The wire end can be directly crimped without removing the wire's insulation, saving labor.
(1) Bend the welder (contact) back from the carrier, and set it in the pressure connection tool.
(2) Insert the wire without removing its insulation until it stops, and lightly grip the tool.
(4) When all wires has been inserted, fit the semi-cover into place.
If there is a wiring mistake or the cable is incorrectly pressure-connected, the contact puller pin provided
with the fitting can be used to remove the contact.
5-12
5.5 Wiring of Terminal Block Type
Attached terminal block/Suitable wires
A screw-down connection type is used for the terminal block. The suitable wires are given below.
5-13
Wiring method
(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. (The tightening torque: 0.22 to 0.25 N m (2.3
to 2.5 kgf-cm))
5-14
5.6 Wiring of Molex Connector Type
Supplied connector and suitable wires
The connector listed below is supplied with the unit. Use the suitable wires given below. Also, use the
required pressure connection tools for connecting the wires.
Supplied connector
Manufacturer Molex Japan model No.
Housing 51067-0900 2 pcs
Japan Molex Co., Ltd.
Contact 50217-8100 20 pcs
Wiring method
(1) Remove a potion of the wire's insulation.
(2) Place the contact in the crimping tool, place the wire in the contact and lightly squeeze the tool
(3) Insert the crimped wire into the housing until it contacts the back side.
(4) When removing the wire, use a flat-head screwdriver, or other similar tool, to pull up the hold-down
pin of the housing and then pull out the wire.
5-15
5.7 Wiring of COM Port
Terminal block
The communication connector manufactured by Phoenix Contact is used.
Phoenix Contact model No.
No. of pins
Model No. Product No.
3 pins MKDS1/3-3.5 1751400
5-16
Wiring method
(1) Remove a potion of the wire's insulation.
(2) Insert the wire into the COM port until it contacts the back side.
5-17
5.7.2 Connection of COM Port (RS485 Type)
- Wiring should extend from one unit to the next, between "+" terminals, and "-" terminals as below.
Never run two wires from a single unit to two other units.
- In the unit that serves as the terminal station, connect the "E" terminal and "-" terminal.
2
0.5 mm Max. Polychlo-
Max. Approx. VCTF-0.5
VCTF (AWG20) 37.8 rinated 2
0.6 mm 6.2 mm mm x 2C(JIS)
or greater Ω/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 RS485, use the wires of the same
2
cross-sectional area which is 0.5 mm .
5-18
5.8 Safety Measures
- Power on timing differences between the PLC and input/output or mechanical power apparatus.
- Response time lag when a momentary power drop occurs.
- Abnormality in the PLC unit, external power supply, or other devices.
In order to prevent a malfunction resulting in system shutdown, choose the adequate safety measures
listed in the following:
Interlock circuit
When a motor clockwise/counter-clockwise operation is controlled, provide an interlock circuit externally.
Start up sequence
The PLC should be started after booting the I/O device and mechanical power apparatus. To keep this
sequence, the following measures are recommended.
- Turn on the PLC with the mode selector set to the PROG. mode, and then switch to the RUN mode.
- Program the PLC so as to disregard the inputs and outputs until the outside devices are energized.
Note) In case of stopping the operation of the PLC also, have the input/output devices turned off after the
PLC has stopped operating.
Grounding
When installing the controller next to devices that generate high voltages from switching, such as
inverters, do not ground them together. Use an exclusive ground for each device.
Protection of output
If current exceeding the rated control capacity is being supplied in the form of a motor lock current or a
coil shorting in an electromagnetic device, a protective element such as a fuse should be attached
externally.
5-19
5-20
Chapter 6
Preparation of USB Port
6.1 USB Connection
Do not connect a computer to PLC with USB before installing FPWIN GR.
When connecting a personal computer to PLC with USB, the dialog boxes as below may be displayed.
If the FPWIN GR has not been installed, click [Cancel] to close these dialog boxes.
Windows® XP Windows® 98SE
For Windows® 7, although the following window appears, it will automatically disappear after a short
time. (The driver is not installed.)
6-2
Restrictions on USB Communication
• The FP0R connected to the USB is recognized by the PC as that is connected through the COM port.
When multiple FP0R units are connected to one PC with the USB, they cannot communicate with the
PC simultaneously.
• The PC can communicate with the FP0R that was connected first only, and it cannot communicate with
the other FP0R.
• A USB HUB cannot be used for the connection.
Note:
For the PC with more than one connector, it may be requested to reinstall these two drivers if the
positions of the USB connectors are changed. In that case, reinstall the drivers.
1. Once the FP0R is connected, the following screen is displayed. Select “No, not this time”, and click
“Next>”.
6-3
2. Select “Install from a list of specific location”, and click “Next>”.
3. Select “Search for the best driver in these locations”, and check “Include this location in the search”.
Then, click the “Browse” button to specify the folder that the USB driver of FP0R has been stored, and
click “Next>”.
4. Although the following dialog box appears during the installation, click “Continue anyway”.
6-4
5. Click “Finish” on the following screen to be displayed.
6-5
Procedure of installing the driver (e.g.: Windows® 7)
2. Click the start menu and move the mouse pointer to "Computer", and right-click on it to select
"Properties".
6-6
4. Double-click on "FP0R".
6-7
6. Click "Browse my computer for driver software".
7. Click the "Browse..." button to specify the folder that the USB driver of FP0R has been stored, and
click "Next".
If the location was not changed when installing FPWIN GR, the USB driver of FP0R has been stored in
"C:\Program Files\Panasonic-EW SUNX Control\FP0R USB".
6-8
8. Although the following warning dialog box appears, click "Install this driver software anyway".
9. The installation of the driver software begins. Once the installation completes successfully, the
following screen will be displayed.
In this case, the USB port has been assigned to "COM4". However, it may differ depending on the
environment of the PC you use.
6-9
6.1.3 Confirming COM Ports
The USB connected to the FP0R is recognized as a COM port by a PC. The COM port number assigned
to the USB differs according to the PC environment.
For Windows XP
Select "My computer" > "View System information" > "Hardware" tab > "Device Manager".
3. Double-click "Ports (COM & LPT)". As the table of allocation of COM ports is shown, confirm
the COM port number.
"Panasonic Electric Works PLC Virtual UART(COMn)" is the allocated COM port.
6-10
6.1.4 Communication with Programming Tool
The following communication setting should be specified to perform the communication with a
programming tool (FPWIN GR/FPWIN Pro) using the USB.
2. Specify the communication setting as the table below. Once the setting has been completed,
the communication with the USB becomes available.
6-11
6-12
Chapter 7
Communication
7.1 Functions and Types
7-2
7.1.4 PC(PLC) Link
Using a commercial R232C/RS485 converter enables to configure a PC(PLC) link (MEWNET-W0) with
the FP0R.
- Exclusive internal relays "link relays (L)" and data registers "link registers (LD)" are shared between the
connected PLCs.
Slave function
7-3
7.2 Communicaton Port Type
7-4
7.3 Communication Specifications
Tool Port
Description
Interface RS232C
Transmission distance 15 m
Baud rate 2400,4800,9600,19200,38400,57600,115200 bit/s
Communication method Half-duplex communication
Synchronous method Start stop synchronous system
Data length: 7 bits/8bits
Parity: None/Even/Odd
Communication format Start code: STX/No STX
End code: CR/CR+LF/None/ETX
Stop bit: 1 bit/2 bits
Data transmission order Transmits from bit 0 character by character.
Computer link (slave)
Communication mode Modem initialization
General-purpose communication (only in RUN mode)
USB port
Description
Standard (Baud rate) USB2.0 Fullspeed
Communication mode Computer link (slave)
7-5
COM port (RS485)
Item Description
Interface RS485
Communication mode 1:N communication
Note1) 2)
Transmission distance Max. 1200 m
Note2) 3))
Baud rate 19200, 115200 bps
Communication method Two-wire, half-duplex transmission
Synchronous method Start stop synchronous system
Transmission line Shielded twisted-pair cable or VCTF
Computer link ASCII
Transmissio General-purpose
ASCII, Binary
n code serial communication
MODBUS RTU Binary
Communicati Data length 7bit / 8bit
on format (to Parity None/Even/Odd
be set by Stop bit 1bit / 2bit
system Start code STX/No STX
Note4)
register) End code CR/CR+LF/None/ETX
Note2) 5) Max. 99 units
No. of connected units
(Max. 32 units when our C-ENT adapter is connected.)
Computer link (master/slave)
Modem initialization
Communication function General-purpose serial communication
Modbus RTU (Master/Slave)
PC(PLC) link
Note1) When connecting a commercially available device that has an RS485 interface, please confirm
operation using the actual device. In some cases, the number of units, transmission distance, and baud
rate vary depending on the connected device.
Note2) The values for the transmission distance, baud rate and number of units should be within the
values noted in the graph below.
Note3) The settings of the baud rate switches on the side of the unit and the system register No. 415
should be the same. Only 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) Unit numbers should be registered by the system register.
Note:
If the potential difference between the power supplies of RS485 devices exceeds 4 V, the unit may not
communicate as it is the non-isolated type. The large potential difference leads to the damage to the
devices.
7-6
7.4 Computer Link
7.4.1 Overview
- 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.
- 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.
- 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.
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, temperature control unit, eco-power meter,
machine vision
Note:
It is necessary to set the system register of the communication port to the computer link for using this
function. Both the master and slave functions are available for the FP0R, however, only the slave
function is available for the tool and USB ports.
7-7
7.4.2 MEWTOCOL Slave Function
Outline of operation
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-8
Format of command and response
Command message
All command-related items should be noted in the text segment. The unit number must be specified
before sending the 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.
5. Terminator (End code)
Messages must always end with a "CR" (ASCII code: H0D).
Key Point:
- With the FP0R, an expansion header "<" is supported to send single frame 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
7-9
Response message
The PLC that received the command in the example above sends the processing results to the computer.
4. Check code
BCC (block check code) for error detection using horizontal parity. 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.
5. Terminator (End code)
There is always a "CR" (ASCII code: H0D) at the end of the message.
7-10
Commands to be used
Command name Code Description
RC Reads the on and off status of contacts.
(RCS) ・Specifies only one point.
Read contact area
(RCP) ・Specifies multiple contacts.
(RCC) ・Specifies a range in word units.
WC Turns contacts on or off.
(WCS) ・Specifies only one point.
Write contact area
(WCP) ・Specifies multiple contacts.
(WCC) ・Specifies a range in word units.
Read data area RD Reads the contents of a data area.
Write data area WD Writes data to a data area.
Read timer/counter set
RS Reads the timer/counter setting value.
value area
Write timer/counter set
WS Writes the timer/counter setting value.
value area
Read timer/counter
RK Reads the timer/counter elapsed value.
elapsed value area
Write timer/counter
WK Writes the timer/counter elapsed value.
elapsed value area
Register or Reset
MC Registers the contact to be monitored.
contacts monitored
Register or Reset data
MD Registers the data to be monitored.
monitored
Monitoring start MG Monitors a registered contact or data using MD and MC.
Preset contact area (fill Embeds the area of a specified range in a 16-point on and off
SC
command) pattern.
Preset data area (fill Writes the same contents to the data area of a specified
SD
command) range.
Read system register RR Reads the contents of a system register.
Write system register WR Specifies the contents of a system register.
Reads the specifications of the programmable controller and
Read the status of PLC RT
error codes if an error occurs.
7-11
7.4.3 Setting Communication Parameters
Tool port/COM port
The settings for baud rate and communication format are entered using a programming tool.
Note: When the MEWTOCOL master is used, also select "Computer Link". (COM port only)
Dialog box of PLC system register setting (Tool port selection screen)
USB port
The setting for the USB port is fixed. The setting for the communication parameter is not available.
7-12
7.4.4 1:1 Communication (MEWTOCOL Slave Function)
Overview
For a 1:1 computer link between the FP0R and a computer, and RS232C cable is needed.
Communication is performed via commands from the computer and responses from the PLC.
7-13
7.4.5 1:N Communication (MEWTOCOL Slave Function)
A computer and PLCs are connected through a commercially available RS232C-RS485 converter, and
the respective computer and PLCs are wired using an RS485 cable with crossover wiring.
The computer and the PLC communicate via commands and responses: The computer sends a
command specifying the unit number, and the PLC with that unit number sends a response back to the
computer.
Note) LINEEYE CO., LTD SI-35 is recommended to be used as a converter. For the RS232C-type
COM port, a RS232C-RS485 conversion adapter is also required on the PLC side.
7-14
7.4.6 MEWTOCOL Master
Use the F145 (SEND) "Data send" or F146 (RECV) "Data receive" instruction to use the MEWTOCOL
master function.
Communication port
The MEWTOCOL master is not available for the tool port. It is available for the COM port only.
Sample program
7-15
Flowchart
7-16
7.4.7 Setting in Compatiblity Mode with FP0 (FP0 Compatibility Mode)
Setting Communication Parameters
Confirm that the model of the programming tool is FP0.
Note) Only the salve function is available in the FP0 compatibility mode.
Usable communication ports on FP0R (FP0 compatibility mode)
Tool port
USB port (No communication parameter)
COM port (RS232C port)
Tool port settings
Dialog box of PLC system register setting
7-17
7.5 General-purpose Serial Communication
7.5.1 Overview
- In general-purpose serial communication, data is sent and received over the communication port to and
from an external device such as an image processing device or a bar code reader.
- Data is read from and written to an external device connected to the communication port by means of
an FP0R program and the FP0R data registers.
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 PLC and an external device.
Sending data Receiving data
Data to be transmitted from the PLC is stored Data received from the communication port is stored
in the data register used as the send buffer in the receive buffer specified in the system register,
(DT). When F159(MTRN) is executed, the data and the "reception done" flag goes on. Data can be
is output from the communication port. received whenever the "reception done" flag is off.
- The terminator specified in the system register - When data is being received, the "reception done"
is automatically added to the data that has flag is controlled by the F159(MTRN) instruction.
been sent. - No terminator is included in the stored data.
- The maximum volume of data that can be - The maximum volume of data that can be received
sent is 2048 bytes. is 4094 bytes.
Key Point: In the compatibility mode with the FP0 (FP0 compatibility mode),
the F159(MTRN) instruction is changed to the F144(TRNS) instruction.
Communication Port
Tool port
COM port
7-18
7.5.2 Programming Example of General-purpose Serial Communication
The F159(MTRN) instruction is used to send and receive data via the specified communication port.
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 (K0 and K1 only)
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 communication 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 the communication port.
Receiving data
Data can be received when the “reception done” flag is off. The received data is stored in the receive
buffer specified by the system register. 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-19
Data to be sent/received with FP0R
Remember the following when accessing data in the FP0R send and receive buffers:
- If a header has been chosen in the communication format settings, the code STX (H02) will
automatically be added at the beginning of the data begin sent.
- The data without the code STX at the reception is stored in the receive buffer, and the “reception done”
flag turns on when the terminator (end code) is received. When the terminator has been set to “None”,
the “reception done” flag does not work.
However, if the code STX is added in the middle of the data, the number of received byte is cleared to
0, and the data is stored from the beginning of the receive buffer again.
- A terminator is automatically added to the end of the data being sent.
- There is no terminator on the data stored in the receive buffer.
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 start address of 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-20
7.5.3 Sending Data
Communication with external devices is handled through the data registers.
Data to be output is stored in the data register used as the send buffer (DT), and when the F159 (MTRN)
instruction is executed, the data is output from the communication port.
7-21
Explanation of data table
The data table for transmission starts at the data register specified in S.
- 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 is on, operation is as follows:
1. The number of transmission data [N] is preset in the start address of send buffer [S]. The “reception
done” flag R9038 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 turns off.
- If system register 413 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 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 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 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, do not add the header
to the transmission data. The header is added automatically.
7-22
7.5.4 Receiving Data
Data input from the communication port is
stored in the receive buffer specified by the
system register, and the “reception done” flag
goes on. If the “reception done” flag is off, data
can be received at any time.
Note:
Be aware that the “reception done” flag R9038 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-23
Explanation of data table
Data sent from an external device connected to the communication port is stored in the data registers
that have been set as the receive buffer.
- Specify the data registers in system register 416 to
419.
- The number of bytes of data received is stored in the
starting address of the receive buffer. The initial value
is 0.
- Received data is stored in the received data storage
area in order from the lower -order byte.
Reception process
When the “reception done” flag R9038 is off, operation takes place as follows when data is sent from an
external device. (The R9038 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 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 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.
7-24
7.5.5 Flag Operation in Serial Communication
Header: No-STX, Terminator: CR
Receiving data:
The “reception done” flag, the “transmission done” flag, and the F159 (MTRN) instruction are
related as follows:
Note:
Be aware that the “reception done” flag R9038 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.
7-25
Header: STX, Terminator: ETX
Receiving data:
The “reception done” flag, the “transmission done” flag, and the F159 (MTRN) instruction are
related as follows:
- 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 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 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-26
Sending data:
The “reception done” flag, the “transmission done” flag, and the F159 (MTRN) instruction are
related as follows:
- 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 goes off.
- Duplex transmission is disabled while F159 (MTRN) is being executed. The “transmission done” flag
R9039 must be observed.
7-27
7.5.6 Changing Communication Mode Using F159(MTRN) Instruction
An F159 (MTRN) instruction can be executed to change between general-purpose serial communication
mode and computer link mode. To do so, specify H8000 for n (the number of transmission bytes) and
execute the instruction.
R9032: The COM port mode flag turns on when general-purpose serial communication mode is selected.
Note:
When the power is turned on, the operating mode selected in system register 412 takes effect.
It is not possible to change to the MODBUS RTU mode.
7-28
7.5.7 Setting Communication Parameters
Tool port/COM port
The settings for baud rate and communication format of the tool port are entered using a programming
tool.
Setting with FPWIN GR
Select "Options" in the menu bar, and then select "PLC Configuration". Click "Tool Port" or "COM Port"
from the left list.
Dialog box of PLC system register setting (Tool port selection screen)
7-29
7.5.8 Connection with 1:1 Communication (General-purpose Serial
Communication)
7-30
7.5.9 1:N Communication (General-purpose Serial Communication)
The FP0R and the external units are connected using an RS485 cable. Using the protocol that matches
the external units, the F159 (MTRN) instruction is used to send and receive data.
7-31
7.5.10 Settings in Compatibility Mode with FP0 (FP0 Compatibility Mode)
Programming Example of General-purpose Serial Communication in FP0 compatibility mode
The high-level instruction F144(TRNS) is used to send and receive data via the COM port (RS232C port).
(The F159(MTRN) instruction is used in the normal FP0R mode.)
Key Point: In the FP0 compatibility mode, the F144(TRNS) instruction is used instead of
F159(MTRN) instruction.
F144(TRNS) instruction
Data is sent and received between the FP0R and an external device via the COM port (RS232C port).
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
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 the COM port.
Receiving data
Data can be received when the “reception done” flag is off. The received data is stored in the receive
buffer specified by the system register. When the reception of the data is completed (the terminator is
received), the “reception done” flag (R9038) turns on, and subsequently, receiving data is prohibited. To
receive the next data, execute the F144(TRNS) instruction and turn the “reception done” flag (R9038) 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 F144 (TRNS) instruction.
7-32
Setting Communication Parameters
Confirm that the model of the programming tool is FP0.
Usable communication port
COM port (RS232C port)
COM port (RS232C port) settings
Dialog box of PLC system register setting
7.6.1 Overview
A system can be configured for the PC(PLC) link (MEWNET-W0) with the FP0R.
- Exclusive internal relays "link relays (L)" and data registers "link registers (LD)" are shared between the
connected PLCs.
- Turning on a link relay contact in one PLC turns on the same link relay in all other PLCs on the same
network.
- Likewise, if the contents of a link register in one PLC are changed, the values of the same link register
are changed in all PLCs on the same network.
- The status of the link relays and link registers in any one PLC is fed back to all of the other PLCs
connected to the network, so control of data that needs to be consistent throughout the network, such
as target production values and type codes, can easily be implemented to coordinate the data, and the
data of all units are updated at the same time.
7-34
Operation of PLC link
Turning on a link relay contact in one PLC turns on the same link relay in all other PLCs on the same
network.
Likewise, if the contents of a link register in one PLC are changed, the values of the same link register
are changed in all PLCs on the same network.
Link relay
Link relay L0 for unit no.1 is turned on. The status change is fed back to the programs of the other units,
and Y0 of the other units is set to TRUE.
Link register
A constant of 100 is written to link register LD0 of unit no.1.
The contents of LD0 in the other units are also changed to a constant of 100.
Communication port
It is available for the COM port only.
7-35
7.6.2 Setting of Unit Numbers
By default, the unit number for the communication port is set to 1 in the system registers.
In a PC(PLC) link that connects multiple PLCs on the same transmission line, the unit number must be
set in order to identify the different PLCs.
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, the number of units is 2.
7-36
7.6.3 Setting Communication Parameters: PC(PLC) Link
Settings for baud rate and communication format
The settings for baud rate and communication format of the COM port are entered using a programming
tool.
Key Point:
When using a PC(PLC) link, the communication format and baud rate are fixed:
7-37
7.6.4 Link Area Allocation
The link relays and link registers to be used in the PC(PLC) link are allocated in the link area of the CPU
unit. Link area allocations are specified by setting the system registers of the CPU unit.
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 127 words
link 0 46 PC(PLC) link switch flag Normal Normal: 1st half
Reverse: 2nd half
47 Maximum unit number setting for MEWNET-W0 16 1 to 16 Note)
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 127 words
57 Maximum unit number setting for MEWNET-W0 16 1 to 16 Note)
PC(PLC) link
Note) The same maximum unit number should be specified for all the PLCs connected in the PC(PLC)
link.
Link area configuration
- 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).
7-38
Example of allocation
The areas for PC(PLC) link are divided into send areas and receive areas. The link relays and link
registers are sent from the send area to the receive area of a different PLC. Link relays and link registers
with the same numbers as those on the transmission side must exist in the receive area on the receiving
side.
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-39
For PC(PLC) link 1
Link relay allocation
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.
Link register allocation
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).
7-40
Partial use of link areas
In the link areas available for PC(PLC) link, link relays with a total of 1024 points (64 words) and link
registers with a total of 128 words can be used. This does not mean, however, that it is necessary to
reserve the entire area. Parts of the area which have not been reserved can be used as internal relays
and internal registers.
7-41
Note: Precautions When Allocating Link Areas
If a mistake is made when allocating a link area, be aware that an error will result, and communication
will be disabled.
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-42
7.6.5 Setting the Largest Unit Number for PC(PLC) Link
The largest unit number can be set using system register no.47 (using system register no.57 for
PC(PLC) link 1).
[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-43
7.6.6 Monitoring
When using a PC(PLC) link, the operation status of the links can be monitored using the following relays.
Using FPWIN GR: Select [Status Display] under [Online] in the menu. Click the [PC link] button after the
[Status Display] screen is shown.
Using FPWIN Pro: Select [PLC Link Status] under [Online] in the menu.
Note: Remote programming of the linked PLCs is not possible from the programming tool.
7-44
7.6.7 PC(PLC) Link Response Time
The maximum value for the transmission time (T) of one cycle can be calculated using the following
formula.
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-45
Calculation example 3
When all but one station have been added to a 16-unit link, the largest station number is 16,
relays and registers have been allocated evenly, and the scan time for each PLC is 5 ms.
Ttx = 0.096 Each Ts = 5 + 6.82 = 11.82 ms
Tlt = 0.096 x (13 + 2 x 15) ≒ 4.13 ms
Tlk = 0.96 + 400 + 0.67 + 5 ≒407 ms
Note: The default value for the addition waiting time is 400 ms.
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-46
Reducing the transmission cycle time when there are stations that have not been added
If there are stations that have not been added to the link, the Tlk time (link addition processing time) and
with this the transmission cycle time will be longer.
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-47
Error detection time for transmission assurance relays
The power supply of any given PLC fails or is turned off, it takes (as a default value) 6.4 seconds for the
transmission assurance relay of the PLC to be turned off at the other stations. This time period can be
shortened using the SYS1 instruction.
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-48
7.7 MODBUS RTU Communication
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.
Use Type II instructions of F145 and F146 (Type directly specifying MODBUS address) to
communication with MODBUS devices made by other companies.
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-49
MODBUS RTU command message frame
START ADDRESS FUNCTION DATA CRC CHECK END
3.5-character time 8 bits 8 bits n*8 bits 16 bits 3.5-character time
7-50
Supported commands
Executable
Code Name (MODBUS Remarks
instructions for Name for FP0R
(decimal) original) (Reference No.)
master
F146 (RECV) 01 Read Coil Status Read Y and R Coils 0X
F146 (RECV) 02 Read Input Status Read X Input 1X
F146 (RECV) 03 Read Holding Registers Read DT 4X
F146 (RECV) 04 Read Input Registers Read WL and LD 3X
F145 (SEND) 05 Force Single Coil Write Single Y and R 0X
F145 (SEND) 06 Preset Single Register Write DT 1 Word 4X
Cannot be issued 08 Diagnostics Loopback Test
F145 (SEND) 15 Force Multiple Coils Write Multiple Ys 0X
and Rs
F145 (SEND) 16 Preset Multiple Registers Write DT Multiple 4X
Words
Cannot be issued 22 Mask Write 4X Register Write DT Mask 4X
Cannot be issued 23 Read/Write 4X Registers Read/Write DT 4X
7-51
7.7.2 Setting Communication Parameters
Settings for baud rate and communication format
The settings for baud rate and communication format of the COM port are entered using a programming
tool.
7-52
7.7.3 MODBUS Master
Use the F145 (SEND) “Data send” or F146 (RECV) “Data receive” instruction to use the MODBUS
master function.
Sample program
7-53
Flow chart
7-54
Sample program (For Type II)
Use a program as below to directly specify a MODBUS address.
7-55
Flow chart (For Type II)
7-56
Chapter 8
High-speed Counter, Pulse Output and
PWM Output Functions
8.1 Overview of Each Functions
8-2
8.1.2 Performance of Built-in High-speed Counter
Number of Channel
• There are six channels for the built-in high-speed counter
• The channel number allocated for the high-speed counter will change depending on the function being
used.
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.
8-3
8.2 Function Specifications and Restricted Items
8.2.1 Specifications
High-speed counter function
Input/output
Performance
contact No. being Memory area being used
specifications
used
High-speed counter
Input contact
channel No. Mini-mum Maximum
number (value in Control Elapsed Target
input pulse counting
parenthesis is flag value area value area Note2)
Note1) width speed
reset input)
DT90300 DT90302
X0
CH0 R9110 to to
(X2)
DT90301 DT90303
DT90304 DT90306
X1
CH1 R9111 to to
(X2)
DT90305 DT90307
DT90308 DT90310
X3
CH2 R9112 to to
[Single phase] (X5)
DT90309 DT90311 6CH:
Incremental, 10µs
DT90312 DT90314 50 kHz
Decremental X4
CH3 R9113 to to
(X5)
DT90313 DT90315
DT90316 DT90318
CH4 X6
Note3) R9114 to to
(None)
DT90317 DT90319
DT90320 DT90322
CH5 X7
Note3) R9115 to to
(None)
DT90321 DT90323
X0 DT90300 DT90302
CH0 X1 R9110 to to
1CH:
[2-phase] (X2) DT90301 DT90303
15kHz
2-phase input X3 DT90308 DT90310
2CH:
One input, CH2 X4 R9112 to to 25µs
15kHz
Direction (X5) DT90309 DT90311
3CH:
distinction X6 DT90316 DT90318
CH4 10kHz
Note3) X7 R9114 to to
(None) DT90317 DT90319
Note1) The reset input X2 can be set to either CH0 or CH1. The reset input X5 can be set to either CH2
or CH3. The inputs X4 to X7 are also used for the home input of the pulse output function. It is necessary
to set how to use each input by system registers.
Note2) For information on minimum input pulse width, also refer to <8.3.3 Minimum Input Pulse Width>.
Note3) CH4 and CH5 cannot be used for the C10 type.
Note4) The maximum counting speed is the values when executing with the conditions of each item
(counting method or number of channels) only. These values are not available if executing the high-
speed counter match ON/OFF instruction, other pulse I/O process simultaneously or executing the
interrupt program.
8-4
Pulse output function
Input/output contact number Memory area used
used
Deviation
CW CCW Position Pulse
High-speed counter counter clear Near Target
or or Home control output Elapsed
channel No. output home Target area for
pulse sign input starting instruct value
C32 Note3) input value area match
out- out- Note2) input -tion area
C16 T32 Note5) on-off
put put flag
F32
DT90400 DT90402 DT90404
CH0 Y0 Y1 Y6 Y8 X4 X0 R9120
DT90401 DT90403 DT90405
DT90410 DT90412 DT90414
CH1 Y2 Y3 Y7 Y9 X5 X1 R9121
Indepen- DT90411 DT90413 DT90415
dence DT90420 DT90422 DT90424
CH2 Y4 Y5 None YA X6 X2 R9122
DT90421 DT90423 DT90425
DT90430 DT90432 DT90434
CH3 Y6 Y7 None YB X7 X3 R9123
DT90052 DT90431 DT90433 DT90435
<bit4> DT90400 DT90402 DT90404
CH0 X axis Y0 Y1 Y6 Y8 X4 R9120
DT90401 DT90403 DT90405
DT90410 DT90412 DT90414
Linear CH1 Y axis Y2 Y3 Y7 Y9 X5 R9121
DT90411 DT90413 DT90415
Interpola- -
DT90420 DT90422 DT90424
tion CH2 X axis Y4 Y5 None YA X6 R9122
DT90421 DT90423 DT90425
DT90430 DT90432 DT90434
CH3 Y axis Y6 Y7 None YB X7 R9123
DT90431 DT90433 DT90435
Note1) The pulse output function is available only for the transistor output type.
Note2) When using CH2 or CH3 with the C16 type, the deviation counter clear output cannot be used.
Also, Y6 and Y7 are also used for the pulse output of CH3 and the deviation counter clear of CH0
or CH1, and they can be used only as one of the outputs.
Note3) The home inputs X4 to X7 are also used for the input of the high-speed counter. It is necessary to
set how to use each input by system registers.
Note4) The near home input is used by assigning an arbitrary contact and operating the bit 4 of the
special data register DT90052 with the instruction (F0).
Note5) The home control start input is used for the trigger to start the position control when using the
JOG positioning instruction (F171). It is used by specifying X0 to X3 with the system register or
assigning an arbitrary contact and operating the bit 6 of the special data register DT90052 with
the instruction (F0).
Note6) For the linear interpolation, CH0 and CH1 or CH2 and CH3 are used in combination.
Note7) The output frequency is the value only when the conditions of each item (such as output method
or No. of channels) are executed. This is the value when the pulse input/output process is not
simultaneously performed or interrupt program is not executed.
8-5
8.2.2 Functions Used and Restrictions
Simplified chart - Maximum counting speed of High-speed counter
The maximum counting speed of the high-speed counter varies according to No. of channels to be used
or the simultaneous use of the pulse output function. Use the chart below as a guide.
Max. counting speed
(Frequency kHz)
Combination with pulse output function
(Trapezoidal control, No change in speed
50kHz)
8-6
Max. counting speed
(Frequency kHz)
Combination with pulse output function
(Trapezoidal control, No change in speed 50kHz)
8-7
FP0R pulse output performance
Independent control
Single-phase
Maximum output frequency kHz
CH0 CH1 CH2 CH3
Available 50
Available Available 50
Available Available Available 50
Available Available Available Available 50
Note) Even if all channels are used, they can be used within the ranges above.
Interpolation control
Linear interpolation Maximum output frequency kHz
CH0 CH2 (Composite speed)
Available 50
Available Available 50
Note) Even if all channels are used for the interpolation function, they can be used within the ranges
above.
Note) The maximum counting speed may be lower than the above-mentioned values when the change
of pulse output speed, CAM control instruction, target value match ON/OFF instruction and other
interrupt programs are executed simultaneously.
8-8
8.3 High-speed Counter Function
Direction discrimination
8-9
Count for reset input
(Incremental input mode)
8-10
8.3.4 I/O Allocation
• As shown in the table in the previous section “8.2.1”, the inputs and outputs used will differ depending
on the channel number being used.
• The output turned on and off can be specified from Y0 to Y7 as desired with instructions F166 (HC1S)
and F167 (HC1R).
When using CH0 with incremental input and When using CH0 with two-phase input and
reset input 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 from Y0 to Y7 value is reached can be specified from Y0 to Y7
as desired. as desired.
In case of CH1
8-11
High-speed counter/pulse output control flag area of FP0R
• The area DT90052 for writing channels
and control codes is allocated as shown in
the left figure.
• Control codes written with an F0 (MV)
instruction are stored by channel in
special data registers DT90370 to
DT90375.
8-12
Elapsed value write and read instruction (F1)
• This instruction writes or reads the elapsed value of the high-speed counter.
• Specify this instruction together with the elapsed value area of high-speed counter after the special
data register DT90300.
• If the F1 (DMV) instruction is executed specifying DT90300, the elapsed value will be stored as 32-bit
data in the combined area of special data registers DT90300 and DT90301.
• Use this F1 (DMV) instruction to set the elapsed value.
Note:
The elapsed value area varies during scanning. Replace it with an arbitrary data register at the beginning
of the program as necessary in cases such as using it several times in the program.
8-13
Input pulse measurement instruction (F178)
- This instruction is used to measure the pulse number and cycle of a specified high-speed counter
channel when using the high-speed counter function.
- The pulse number to be measured is counted in a specified counting cycle.
- The one pulse (on-off cycle) right after the execution of the instruction is measured as the pulse cycle.
Note) The last numbers of the actual measured values may vary due to the measurement error.
Setting conditions:
- Channel No.: 0
- Storage location of measured pulse number:
DT200~DT201
- No. of moving average of measured pulse number:
Once
- Measurement cycle of measured pulse number:
100ms
- Pulse cycle measurement by 1µs and 1 ms
- Storage location of measured pulse cycle (1 µs
unit): DT202 to DT203
- Storage location of measured pulse cycle (1 ms
unit): DT204 to DT205
- Measurement limit of measured pulse cycle (1ms
unit): 2s
8-14
Sample program (F178)
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.
8-16
Positioning operations with a double speed inverter
Wiring example
8-17
Program
When X5 is turned on, Y0 and Y1 turn on and the conveyor begins moving. When the elapsed value
(DT90300 and DT90301) reaches K4500, Y1 turns off and the conveyor begins decelerating. When the
elapsed value reaches K5000, Y0 turns off and the conveyor stops.
8-18
8.4 Pulse Output Function
8-19
8.4.2 Types of Pulse Output Method and Operation Modes
Clockwise/counter-clockwise output method
Control is carried out using two
pulses: a forward rotation pulse and a
reverse rotation pulse.
8-20
Operation mode
Incremental <Relative value control>
Outputs the pulses set with the target value.
Selected
Pulse and direction Pulse and direction
Mode HSC counting
CW/CCW forward OFF/ forward ON/
Target Method
reverse ON reverse OFF
value
Pulse output when Pulse output when
Pulse output
Positive direction output is direction output is Incremental
from CW
OFF ON
Pulse output when Pulse output when
Pulse output
Negative direction output is direction output is Decremental
from CCW
ON OFF
Example:
When the current position (value of elapsed value area) is 5000, the pulse of 1000 is output from CW by
executing the pulse output instruction with the target value +1000, and the current position will be 6000.
8-21
8.4.3 I/O Allocation
Double pulse input driver
(CW pulse input and CCW pulse input method)
• Two output contacts are used as a pulse output for “CW, CCW”.
• The I/O allocation of pulse output terminal and home input is determined by the channel used.
• Set the control code for F171 (SPDH) instruction to “CW/CCW”.
* X0 or any other input can be specified for the * X1 or any other input can be specified for the
near home input. near home input.
* X0 or any other input can be specified for the * X1 or any other input can be specified for the
near home input. near home input.
8-22
Wiring example
Note) When the stepping motor input is a 5 V optical coupler type, connect a resister of 2 kΩ (1/2 W) to
R1, and connect a resistor of 2 kΩ (1/2 W) − 470 Ω (2 W) to R2.
8-23
8.4.4 Pulse output control instructions (F0) (F1)
Pulse output control instruction (F0)
• This instruction is used for resetting the built-in high-speed counter, stopping the pulse output, and
setting and resetting the near home input.
• Specify this F0 (MV) instruction together with special data register DT90052.
• Once this instruction is executed, the settings will remain until this instruction is executed again.
Example 1:
Enable the near home input during home return operations and begin deceleration.
In case of CH0
In these programs, the near home input is
enabled in step (1) and 0 is entered just after
that in step (2) to perform the preset operations.
8-24
FP0R Pulse output control flag area
8-25
8.4.5 Forced Stop, Deceleration Stop (F0) Instruction
Pulse output control instruction (F0)
- Forced stop and deceleration stop is executed by F0(MV) instruction in combination with the special
data register DT90052. Once this instruction is executed, the settings will remain until this instruction is
executed again.
[Example ] Performing the forced stop of pulse output.
For CH0 For CH1
Note:
- Performing a forced stop may cause the elapsed value at the PLC output side to differ from the elapsed
value at the motor input side. Therefore, you must execute a home return after pulse output has
stopped..
- When executing the forced stop (pulse output stop) with the pulse output control instruction (F0), the
operations being executed with various instructions are cancelled and the pulse output is immediately
stopped. When the forced stop request flag (bit3 of DT90052) is on, instructions cannot be executed.
- When executing the deceleration stop with the pulse output control instruction (F0), the operations
being executed with various instructions are cancelled and the deceleration operation starts. When the
deceleration stop request flag (bit5 of DT90052) is on, instructions cannot be executed. As for the data
table control instruction (F174), the operation is similar to that of the forced stop.
- After the execution of the forced stop or deceleration stop, pulses are not output unless the execution
condition of each pulse output instruction (F171 to F177) changes from OFF to ON.
8-26
8.4.6 Elapsed Value Read and Write (F1) Instruction
Elapsed value read and write instruction (F1)
- This instruction is used to read and write the pulse number counted by the pulse output control.
- Specify this F1 (DMV) instruction in combination with the pulse output elapsed area after the special
data register DT90400.
- When executing the F1 (DMV) instruction with DT90400, the elapsed value is stored as 32-bit data in
the combined area of the special data registers DT90400 and DT90401.
- The elapsed values can be read or written with this F1 (DMV) instruction only.
Note:
The elapsed value area varies during scanning. Replace it with an arbitrary data register at the beginning
of the program as necessary in cases such as using it several times in the program.
8-27
8.4.7 JOG Operation Instruction (F172)
- This instruction is used to output pulses according to a specified parameter when the trigger (execution
condition) is on.
- When the trigger (execution condition) turns off, deceleration is performed within a specified
deceleration time. However, if the trigger turns on again, acceleration is performed up to the target
speed again.
- When the deceleration stop is requested by the F0 instruction during the pulse output, the deceleration
stop is performed.
- There are two kinds of control method, which are type 0 and type 1.
Type 1
Even if the trigger is on, the deceleration stop is performed according to the settings of the target value.
8-28
Sample program JOG operation: Type 0 (No target value)
The explanation below shows the case that pulses are output from Y0 when using forward rotation and
Y1 when using reverse rotation with the following conditions; Initial speed: 1 kHz, Target speed: 7kHz,
Acceleration time: 100 ms, Deceleration time: 1000 ms.
Timing chart
Data table
Data
Example of sample
register Setting item (Unit) Settable range
program
No.
Type 0 (No target value)
Output type: CW/CCW Set according to the control code
DT300 Control code
H1000 0000 (Forward) on the next page.
H1000 0010 (Reverse)
DT302 Initial speed (Hz) K1000 K1 to K50000
DT304 Target speed (Hz) K7000 K1 to K50000
Acceleration time
DT306 K100 K1 to K32760
(ms)
Deceleration time
DT308 K100 K1 to K32760
(ms)
Target value K-2,147,483,648 to K+
DT310 K0
(pulses ) 2,147,483,647
Note)
1.Each setting item occupies 2-word data registers.
2.When the control type 0 (No target value) is specified for the control code, the target value (pulse
number) of data table is invalid.
3.For the JOG operation, the time from the initial speed to the maximum speed (50 kHz) is specified as
acceleration time or deceleration time. For the details, refer to "8.4.17 Difference in
Acceleration/Deceleration Characteristics Between Instructions".
8-29
Sample program
Control code
8-30
Sample program JOG operation: Type 1 (With target value)
- The explanation below shows the case that pulses are output from Y0 when using forward rotation and
Y1 when using reverse rotation with the following conditions; Initial speed: 1 kHz, Target speed: 5kHz,
Acceleration time: 120 ms, Deceleration time: 120 ms.
- When the elapsed value (absolute value) reaches K324000 (positive direction) and K-45600 (negative
direction), the deceleration stop is performed.
Timing chart
Data table
Data
register Setting item (Unit) Example of sample program Settable range
No.
Type 1 (With target value)
Absolute Set according to the control code
DT300 Control code
CW/CCW on the next page.
H1001 0010
DT302 Initial speed (Hz) K1000 K1 to K50000
DT304 Target speed (Hz) K5000 K1 to K50000
DT306 Acceleration time (ms) K120 K1 to K32760
DT308 Deceleration time (ms) K120 K1 to K32760
324000 (Positive direction) K-2,147,483,648 to K+
DT310 Target value (pulses)
K-45600 (Negative direction) 2,147,483,647
Note)
1.Each setting item occupies 2-word data registers.
2.When the control type 0 (No target value) is specified for the control code, the target value (pulse
number) of data table is invalid.
3.For the JOG operation, the time from the initial speed to the maximum speed (50 kHz) is specified as
acceleration time or deceleration time. For the details, refer to "8.4.17 Difference in
Acceleration/Deceleration Characteristics Between Instructions".
8-31
Sample program
Control code
8-32
8.4.8 Home Return Instruction (F177)
- When the trigger (execution condition) turns on, the home return is performed according to a specified
data table.
- On the completion of the home return, the elapsed value area is reset to "0".。
Operation modes of Home return operation
There are two kinds of operation modes, which are type 0 and type 1.
Type 0
The home input is effective regardless of whether or not there is a near home input, whether
deceleration is taking place, or whether deceleration has been completed. Also, the home return can be
performed without the near home input.
Type 1
In this mode, the home input is effective only after deceleration (started by near home input) has been
completed. If the leading edge of home input (off to on) is detected during the operation at a creep speed
after the deceleration operation, the pulse output stops.
8-33
Sample program: Home return
The explanation below shows the case that home return is performed with the following conditions; Initial
speed: 1 kHz, Target speed: 5 kHz, Creep speed: 500 Hz, Acceleration time: 300 ms, Deceleration time:
500 ms.
Timing chart
Data table
Data
register Setting item (Unit) Example of sample program Settable range
No.
Home return type 1
Operating direction: Reverse Set according to the control code
DT200 Control code
CW/CCW on the next page.
H1001 0010
DT202 Initial speed (Hz) K1000 K1 to K50000
DT204 Target speed (Hz) K5000 K1 to K50000
DT206 Acceleration time (ms) K300 K1 to K32760
DT208 Deceleration time (ms) K500 K1 to K32760
DT210 Creep speed (Hz) K500 K1 to K50000
K0:Not output deviation counter
Deviation counter clear clear signal
DT212 K0 (Not output)
signal output time K1 to K200 x 0.5ms(0.5ms~
100ms)
Note)
1. Each setting item occupies 2-word data registers.
2. The time from the initial speed to the target speed is specified as acceleration time. The time from the
target speed to the creep speed is specified as deceleration time. For the details, refer to "8.4.17
Difference in Acceleration/Deceleration Characteristics Between Instructions".
8-34
Sample program
Control code
8-35
8.4.9 Trapezoidal Control Instruction (F171)
- This instruction automatically performs trapezoidal control according to the specified data table while
the trigger (execution condition) is on.
Control method of Trapezoidal control instruction (F171): Type 0 and Type 1
There are two kinds of operation modes, which are type 0 and type 1.
Type 0
- For type 0, the time from the initial speed to the target speed is specified as acceleration time or
deceleration time.
- The time specified in a program is set as the acceleration time to be processed in the PLC as is. The
same is true for the deceleration time.
- After the execution of the instruction, the speed up to the target speed can be changed.
Type 1
- For type 1, the time from the initial speed to the maximum speed (50 kHz) is specified as acceleration
time or deceleration time.
- When the target speed is below 50 kHz, the acceleration time processed in the PLC is relatively shorter
than the time specified in a program. The same is true for the deceleration time.
- Use the type 1 to change the speed to a speed faster than the target speed after the execution of the
instruction.
- After the execution, the speed up to the maximum speed, 50 kHz can be changed.
Note:
For the details of the difference in acceleration/deceleration characteristics, refer to "8.4.17 Difference in
Acceleration/Deceleration Characteristics Between Instructions".
8-36
Sample program: Trapezoidal control Type 0 (F171)
The explanation below shows the case that pulses are output from Y0 with the following conditions;
Initial speed: 1 kHz, Target speed: 10 kHz, Acceleration time: 100 ms, Deceleration time: 1000 ms,
Movement amount: 30000 pulses.
Timing chart
Data table
Data
register Setting item (Unit) Example of sample program Settable range
No.
Type 0
Incremental Set according to the control code
DT100 Control code
CW/CCW on the next page.
H1000 0000
DT102 Initial speed (Hz) K1000 K1 to K50000
DT104 Target speed (Hz) K10000 K1 to K50000
DT106 Acceleration time (ms) K100 K1 to K32760
DT108 Deceleration time (ms) K1000 K1 to K32760
K-2,147,483,648 to K+
DT110 Target value (pulses) K30000
2,147,483,647
Note)
1. Each setting item occupies 2-word data registers.
2. For type 0, the time from the initial speed to the target speed is specified as acceleration time or
deceleration time.
For the details, refer to "8.4.17 Difference in Acceleration/Deceleration Characteristics Between
Instructions".
8-37
Sample program
Control code
8-38
8.4.10 Speed Change After Starting Trapezoidal Control Type 0 (F171)
- The explanation below shows the program to change the speed to a speed below the target speed
during the trapezoidal control.
Use the type 0 to change the speed to a speed slower than the target speed.
Time chart
Sample program
8-39
8.4.11 Speed Change After Starting Trapezoidal Control Type 1 (F171)
- The explanation below shows the program to change the speed to a speed over the target speed
during the trapezoidal control.
- Use the type 1 to change the speed to a speed faster than the target speed.
Time chart
Sample program
8-40
8.4.12 Precautions When Changing Speed (Common to F171 and F172)
Precautions during programming
- To change the speed, specify the execution condition of instruction to be always executed.
- Using the type 0 of trapezoidal control instruction (F171) enables to perform the
acceleration/deceleration control up to the target value. Using the type 1 of trapezoidal control
instruction (F171) enables to perform the acceleration/deceleration control up to the maximum speed
(50 kHz).
- The speed cannot be changed during the deceleration requested by the deceleration stop and during
the deceleration to stop at the target position.
- Acceleration cannot be performed from that position when the elapsed value goes beyond the
acceleration forbidden area starting position. The acceleration forbidden area starting position can be
monitored by the special data registers shown in the table below.
- The speed cannot be changed to a value below the deceleration minimum speed. If a value below the
deceleration minimum speed is specified, the speed will be corrected. The deceleration minimum
speed can be monitored by the special data registers shown in the table below.
8-41
8.4.13 JOG Positioning Control Instruction (F171)
- When the trigger (execution condition) turns on, the JOG operation is started. When the position control
start input becomes effective, a specified pulse is output and the deceleration stop is performed.
- The position control start input becomes effective when the leading edge of the external inputs X0 to X3
or the bit 6 of the special data register DT90052 is detected. To use the external inputs X0 to X3,
specify them by the system register No. 402 for each channel.
Control method of JOG positioning control instruction (F171): Type 0 and Type 1
Type 0
- Once the trigger (execution condition) turns on, the JOG operation is started, and acceleration is
performed up to the target speed.
- When the position control start input becomes effective, pulses are output up to a specified target value.
- The speed can be changed by rewriting the target speed during the operation after executing the
instruction.
Type 1
- Once the trigger (execution condition) turns on, the JOG operation is started, and acceleration is
performed up to the target speed 1.
- When the position control start input becomes effective, the speed is changed to the target speed 2 at a
specified changeover time and pulses are output up to a specified target value.
- The speed cannot be changed after executing the instruction.
When Target speed 1 > Target speed 2 When Target speed 1 < Target speed 2
8-42
Note:
- When the position control start input does not turn on, the pulse output will not stop. Create a program
to stop the operation when an error occurs, with a combination of the forced stop by the F0 instruction
(bit 3 of DT90052) and the deceleration stop by the F0 instruction (bit 5 of DT90052). As for the
position control start input, only the leading edge is detected.
- When the pulse number from turning on the position control start input until stopping is small relative to
a specified deceleration time, the operation stops before decelerating to the initial speed. When it is
large relative to a specified deceleration time, deceleration starts after holding the target speed.
- Performing rewriting during RUN stops the pulse output.
- When the deceleration stop is requested by the F0 instruction during the pulse output, the deceleration
stop is performed.
- When the position control start input turns on in the acceleration area, the deceleration stop is
performed.
8-43
Sample program: JOG positioning operation: Type 0
- When the trigger (execution condition) is on, the JOG operation is started. When the position control
start input turns on, a specified pulse is output and the deceleration stop is performed.
Time chart
Data table
Data
Setting item (Unit) Example of sample program Settable range
register No.
JOG positioning Type 0
Set according to the control
DT300 Control code CW/CCW
code on the next page.
H1010 0000
DT302 Initial speed (Hz) K1000 K1 to K50000
DT304 Target speed (Hz) K25000 K1 to K50000
DT306 Acceleration time (ms) K300 K1 to K32760
DT308 Deceleration time (ms) K450 K1 to K32760
K-2,147,483,648 to K+
DT310 Target value (pulses) K20000
2,147,483,647
Note)
1.Each setting item occupies 2-word data registers.
2.For the type 0 of JOG positioning control instruction (F171), the time from the initial speed to the
maximum speed (50 kHz) is specified as acceleration time or deceleration time. For the details, refer to
"8.4.17 Difference in Acceleration/Deceleration Characteristics Between Instructions".
3.When the target value is set to zero, the operation stops once the position control start input turns on.
8-44
Sample program
Control code
- Only when the target value is set to "0", the pulse output direction can be reversed by changing the
output type assignment from "0,1,2" to "4,5,6".
Precautions during programming
- For using the pulse output function, it is necessary to set the system register No. 402.
- When the instruction is started during the interrupt program, specify the execution in the interrupt
program with the control code. When describing the same channel in both the normal program and the
interrupt program, be sure to program not to execute them simultaneously.
8-45
Sample program: JOG positioning operation: Type 1
- When the trigger (execution condition) is on, the JOG operation is started. When the position control
start input turns on, the position control is performed up to a specified target value after changing the
target speed at the changeover time specified in advance.
Time chart
Data table
Data
register Setting item (Unit) Example of sample program Settable range
No.
H1011 0000
Set according to the control code
DT300 Control code JOG positioning Type 1
on the next page.
CW/CCW
DT302 Initial speed (Hz) K1000 K1 to K50000
DT304 Target speed 1 (Hz) K5000 K1 to K50000
DT306 Acceleration time (ms) K300 K1 to K32760
DT308 Target speed 2 (Hz) K20000 K1 to K50000
K-2,147,483,648 to K+
DT314 Target value (pulses) K100000
2,147,483,647
Note)
1.Each setting item occupies 2-word data registers.
2.For the type 1 of JOG positioning control instruction, the time from the initial speed to the target speed
1 is specified as acceleration time, the time from the target speed 1 to the target speed 2 is as
changeover time, and the time from the target speed 2 to the initial speed is as deceleration time. For
the details, refer to "8.4.17 Difference in Acceleration/Deceleration Characteristics Between
Instructions".
8-46
Sample program
Control code
8-47
8.4.14 JOG Positioning Control Type 0 - Change Speed (F171)
- Use the type 1 to change the speed to a speed faster than the target speed.
Time chart
Sample program
Time chart
Data table
Data
Example of sample
register Setting item (Unit) Settable range
program
No.
H1000 0010
Set according to the control code
DT400 Control code Absolute
on the next page.
CW/CCW
DT402 Frequency 1 (Hz) K1000 Set frequencies in the following
DT404 Target value 1 (pulses) K1000 range.
DT406 Frequency 2 (Hz) K2500 K1 to K50000
DT408 Target value 2 (pulses) K4000
DT410 Frequency 3 (Hz) K5000 Set target values in the following
DT412 Target value 3 (pulses) K9000 range.
DT414 Frequency 4 (Hz) K1000 K-2,147,483,648 to K+
DT416 Target value 4 (pulses) K11000 2,147,483,647
DT418 End of table K0 K0 fixed
Note)
Each setting item occupies 2-word data registers.
8-49
Sample program
Control code
8-50
8.4.16 Linear Interpolation Control Instruction (F175)
- The linear interpolation controls positioning with two axes according to the specified data table.
- Specify the number (K0 or K2) corresponding to the channel (CH0 or CH2) assigned to the X axis to
execute the F175 instruction.
Time chart
Data table
Data
Example of sample
register Setting item (Unit) Settable range
program
No.
H1000 0000
Set according to the control code
DT500 Control code Increment
on the next page.
CW/CCW
Composite speed (Initial
DT502 K500 K6 to K50000
speed) (Hz)
Composite speed (Target
DT504 K5000 K6 to K50000
speed) (Hz)
DT506 Acceleration time (ms) K300 K1 to K32760
DT508 Deceleration time (ms) K300 K1 to K32760
DT510 X-axis target value (pulses) K5000 K-8,388,608 to K+8,388,607
DT512 Y-axis target value (pulses) K2000 K-8,388,608 to K+8,388,607
X-axis component speed The result is stored as 2 words in real type.
DT514
(Initial speed) (Hz)
X-axis component speed
DT516
(Target speed) (Hz)
Y-axis component speed
DT518
(Initial speed) (Hz)
Y-axis component speed
DT520 。
(Target speed) (Hz)
Note) Each setting item occupies 2-word data registers.
8-51
Sample program
Control code
8-53
Trapezoidal control Type 0 (F171)
- Specify the time from the initial speed to the target speed as acceleration time and the time from the
target speed to the initial speed as deceleration time in the program.
- Each section between the initial speed and the target speed, and between the target speed and the
initial speed is divided into the speed table of 30 steps to calculate the speed. Therefore, the
acceleration/deceleration is smoother compared to the trapezoidal control type 1.
- After the execution of the instruction, the speed can be changed within the range of the target speed.
To change the target speed to the one faster than the target speed right after the execution, select the
type 1..
8-54
JOG positioning control Type 0 (F171)
- Specify the time from the initial speed to the maximum speed (50 kHz) as acceleration time and the
time from the maximum speed (50 kHz) to the initial speed as deceleration time in the program. The
actual acceleration/deceleration time is relatively shorter than the specified acceleration/deceleration
time.
- Each section between the initial speed and the maximum speed (50 kHz), and between the maximum
speed (50 kHz) and the initial speed is divided into the speed table of 30 steps to calculate the speed.
Therefore, the acceleration/deceleration is not as smooth compared to the JOG positioning control
Type 1 especially when the target speed is low. To use in a low-speed area with a device such as a
stepping motor, select the type 1.
- After the execution of the instruction, the speed can be changed within the range of the maximum
speed (50 kHz).
8-55
8.4.18 Pulse Output Instruction Flag
- Note that there are the following restrictions on using each function of the pulse output
Allocation and role of pulse output instruction flag
- When a pulse output instruction (F171/F172/F174/F175/F177) or PWM output instruction (F173) is
executed and pulses are being output, the pulse output instruction flag of the corresponding channel is
ON. No other pulse output instruction can be executed as long as this flag is ON.
- The pulse output instruction flags are allocated to each channel.
8-56
8.5 PWM Output Function
8.5.1 Overview
PWM output function
With the F173 (PWMH) instruction, the pulse width modulation output of the specified duty ratio is
obtained.
System register setting
In order to use the PWM output function, it is necessary to set system register numbers no.402.
Data table
DT100 Control code *1 : K13
DT101 Duty *2 : 50%
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.
8-57
8-58
Chapter 9
Security Functions
9.1 Password Protect Function
9-2
9.1.2 Setting using Programming Tool
Setting using 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 or “Set PLC Password” under “Tool” on the menu bar. The following display will be shown.
Current status
Indicates the current status of the password setting. There are following five statuses.
Item Settings
Password is not set Password is not set.
4 digits Protect Four-digit password, and access is prohibited.
4 digits Available to access Four-digit password, and access is allowed.
(The status that inputting the password completes and that can
access programs.)
8 digits Protect Eight-digit password, and access is prohibited.
8 digits Available to access Eight-digit password, and access is allowed.
(The status that inputting the password completes and that can
access programs.)
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.
9-3
How to prohibit access with password
1. Select "Tool" > "Set PLC Password" in the menu bar.
The "Set PLC Password" dialog box is displayed.
2. Set the items in the table below, and click on the “Settings” button.
Item Settings
Digit number Select “4 digits” or “8 digits”.
Operation Mode Select “Protect”.
4 digits or 8 digits Input a password to be set.
3. Input the password for confirmation again, and click the [OK] button.
Once the PLC is in write-read inhibit state (password-protected), the following message is displayed.
9-4
How to permit access with password
1. Select "Tool" > "Set PLC Password" in the menu bar.
The "Set PLC Password" dialog box is displayed.
Set the items in the table below, and click on the “Settings” button.
Item Settings
Digit number Select “4 digits” or “8 digits”.
Operation Mode Select “Access”.
4 digits or 8 digits Input the set password.
Note:
If the power supply of the PLC is turned on/off when the access is permitted, the PLC will be password
protected again.
9-5
How to cancel the password protection
Following two methods are available to cancel the password setting.
Description Program
Unprotect Cancels the registered password to be specified. All programs are retained.
All programs are deleted.
Erases all programs and security information to
Force cancel (The upload protection
cancel the setting forcibly.
setting is also deleted.)
2. Set the items in the table below, and click on the “Settings” button.
Item Settings
Digit number Select “4 digits” or “8 digits”.
Operation Mode Select “Unprotect”.
4 digits or 8 digits Input the set password.
Note:
Unless the access is permitted, the cancellation of password cannot be executed.
9-6
How to force cancel (Programs and security information are all deleted.)
1. Select "Tool" > "Set PLC Password" in the menu bar.
The "Set PLC Password" dialog box is displayed.
9-7
9.2 Upload Protection
Note:
When performing "Release the upload-protection by compulsion"
- All programs and security information will be deleted when the upload protection setting is cancelled.
We cannot restore the deleted programs even if you ask us. We cannot read the data of the PLC in
which the program upload protection has been set. Keeping your programs is your responsibility.
3. Select "Set the PLC cannot be uploaded.", and press the "Execute" button.
9-8
9.3 Setting Function for FP Memory Loader
9-9
9.3.2 Setting Method
Setting with FPWIN GR
1. Select "Online" > "Online Edit Mode" in the menu bar, and press the CTRL and F2 keys.
The screen is switched to "Online Monitor".
2. Select "Tool" > "Set PLC Password" in the menu bar.
The "Set PLC Password" dialog box is displayed.
3. Set the items in the table below, and click on the “Settings” button.
Item Settings
Digit number Select "8 digits".
Operation Mode Select “Protect”.
8 digits password Enter a 8-digit password.
Check the box of the function to use.
- Limited distribution function
Setting of FP memory loader option → "Allow the download in case of same password"
- Enable the upload protection setting.
→ "Set that PLC cannot be uploaded"
Note:
This function is available only when a 8-digit password has been set.
9-10
9.3.3 Table of Corresponding Operations of FP Memory Loader Security
Function
Note that the operation differs according to the combination of the program stored in the FP memory
loader and the status of the PLC to which is written.
9-11
9.4 Table of Security Settings/Cancel
For the settings on the FP0R control unit
Status of security
Security not Upload 4-digit 8-digit
set protection password password
Upload protection A A A
Sets/
4-digit password A A N/A
Cancels
8-digit password A A N/A
A: Available N/A: Not available
9-12
Chapter 10
Other Functions
10.1 P13 (PICWT) Instruction
Data registers of 32765 words can be stored and used in the built-in ROM (F-ROM data area)
control unit using the P13 (PICWT) instruction.
2.The power supply turns off when the P13 (PICWT) 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.)
10-2
10.2 Sampling Trance Function
10.2.1 Overview
The sampling trace function is available for the FP0R. 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 by [Time chart monitor] 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.
Number Name Operation
F155 (SMPL) sampling instruction
F156 (STRG) Sampling stop trigger instruction
R902C Sample point flag OFF = Sampling by instruction
ON = Sampling at regular time intervals
R902D Sampling trace end flag When sampling trace starts = 0 stops = 1
R902E Sampling trigger flag Turns on when sampling stop trigger is on.
R902F Sampling enable flag Turns on when sampling operation starts.
DT90028 Interval of sampling trace K0 = For sampling by instruction
K1 to K3000 (10 ms to 30 seconds) For
sampling at regular time intervals
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 number 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.
The number of samples before and after the trigger point can be adjusted by the number of delay. When
using the 32-point type with the initial settings (number of samples: 1000, number of delay: 100), the
number of samples before and after the trigger point is 900 and 1000 respectively.
10-3
Operation image of sampling trace
10-4
3) Start monitoring. Start with the button.
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.
10-5
10.3 Time Constant Processing
The input time constants for 16 points of the CPU input X0 to XF can be set by the system registers 430
to 433.
If this setting is specified, an operation like the equivalent circuit below will be performed.
By the setting, the noises or chattering of input will be removed.
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 XF (add-on cassettes or
expansion units) by the F182 (FILTR) instruction.
- The timer instruction is not used for the timer processing in this equivalent circuit.
- The time constant processing is invalid when the high-speed counter, pulse catch or interrupt has been
specified.
10-6
Chapter 11
Self-Diagnostic and Troubleshooting
11.1 Self-Diagnostic function
11-2
11.2 Troubleshooting
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.
11-3
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.
Or execute a check or compile using FPWIN Pro to determine the location of the syntax error.
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.
11-4
11.2.2 If ERROR LED is ON
Condition: The system watchdog timer has been activated and the operation of PLC has been
activated.
Procedure 1
Set the mode selector of PLC from RUN to PROG. mode and turn the power off and then on.
• If the ERROR/ALARM LED is turned on again, there is probably an abnormality in the FP0R control
unit. Please contact your dealer.
• If the ERROR/ALARm LED is flashed, go to chapter 11.2.1.
Procedure 2
Set the mode selector from PROG. to RUN mode.
• If the ERROR/ALARM 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.
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 of 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.
11-5
11.2.4 Diagnosing Output Malfunction
Proceed from the check of the output side to the check of the input side.
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.
11-6
11.2.5 A Protect Error Message Appears
When a password function is used
Procedure
Enter a password in the “Set PLC Password” menu (FPWIN GR), “Security settings” menu (FPWIN Pro)
and change it to the state to enable “Access”.
Using FPWIN GR
(1)Select “Set PLC Password” under “Tool” on the menu bar.
(2)The PLC password setting dialog box shown below is displayed. Turn on the radio button next to
“Access”, enter a password, and click on the “Settings” button.
11-7
11.2.6 PROG Mode does not Change to RUN
Condition: A syntax error or a self-diagnosed error that caused operation to stop has occurred.
Procedure 1
Check if the ERROR/ALARM LED is flashing.
Example:
If the ERROR/ALARM LED is flashing, check <11.2.1 If ERROR/ALARM LED is Flashing >.
Procedure 2
Execute a total check (FPWIN GR) or check/compile (FPWIN Pro) 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.
11-8
11.3 Operation Errors
11-9
11.3.3 Dealing with Operation Errors
<Procedure>
1. Check the location of the error.
Check the address where the error occurred, which is stored in DT90017 and DT90018, and make sure
the high-level instruction for that address is correct and appropriate.
2. Clear the error.
Use a programming tool to clear the error.
- When using FPWIN GR, select "Online" -> "Status Display" in the menu bar.
Execute "Clear Error".
- When using FPWIN Pro, select "Monitor" -> "PLC Status". Press the "Error Clear" button.
- 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.
In this case, index register modifies the address of data register DT0. However, it may exceed the
addressable range of the data register depending on the data in I0. If the value exceeds the range, 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.
<Example> When BIN-to-BCD conversion is attempted
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.
11-10
Chapter 12
Precautions During Programming
12.1 Use of Duplicated Output
Using FPWIN GR
Select the "Debug" → "Totally Check Program" in the menu bar, and click "Execute". If there are any
duplicated outputs, an error message and the address will be displayed.
12-2
12.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).
- If you need to output a result while processing is still in progress, use a partial I/O update instruction
(F143).
12-3
12.2 Handling Index Registers
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.
12-4
12.2.3 Example of Using an Index Register
Repeatedly reading in external data
<Example> Writing the contents of input WX3 to a sequence of data registers beginning from DT0.
Convert the BCD timer number data in WX1 to binary and set it in index register I0.
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
Convert the BCD timer number data in WX1 to binary and set it in index register I0.
Convert the elapsed value data EV in the timer specified by I0 to BCD, and output it to output relay
WY0.
12-5
12.3 Instructions of Leading Edge Detection Method
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
12-6
12.3.2 Operation and Precautions When RUN starts
Operation of first scan after RUN begins
- The leading edge detection instruction is not executed when the mode has been switched to the RUN
mode, or when the power supply is booted in the RUN mode, if the trigger (execution condition) is
already on.
- 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.)
12-7
12.3.3 Precautions When Using a Control Instruction
- If a leading edge detection instruction is in a control instruction, it will be executed only under the
following condition: The leading edge detection instruction was off when the execution condition of the
previous control instruction was reset, and the leading edge detection instruction is on when the
execution condition of the current control instruction becomes on.
- When a leading edge detection instruction is used with an instruction which changes the order of
instruction execution such as MC, MCE, JP or LBL, the operation of the instruction may change as
follows depending on input timing. Take care regarding this point.
12-8
12.4 Precautions for Programming
Programs which are not executed correctly
Do no write the following programs as they will not be executed correctly.
<Example 1>
<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.
12-9
12.5 Rewrite Function During RUN
12-10
12.5.2 Cases Where Rewriting During Run is Not Possible
When the timeout error message is indicated:
Even if the timeout error message is indicated, it is highly possible that the program in PLC has been
already rewritten. Carry out the following operations.
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.)
12-11
Cases where rewriting is not possible during RUN
1. When the result of rewriting is a syntax error.
<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 error.
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.
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.
Mode Instruction Name Operation after the completion
No. of rewriting during RUN
FP0 F168(SPD1) Pulse output (Trapezoidal control) The operation before rewriting
compatibility continues.
mode F168(SPD1) Pulse output (Home return) The operation before rewriting
continues.
F169(PLS) Pulse output (JOG operation) Stop
F170(PWM) PWM output Stop
FP0R mode F171(SPDH) Pulse output (Trapezoidal control) Stop
F171(SPDH) Pulse output(JOG positioning) Stop
F172(PLSH) Pulse output (JOG operation) Stop
F173(PWMH) PWM output Stop
F174(SP0H) Pulse output (Selectable data table The operation before rewriting
control operation) continues.
F175(SPSH) Pulse output (Linear interpolation) The operation before rewriting
continues.
F177(HOME) Pulse output (Home return) The operation before rewriting
continues.
12-12
12.5.3 Procedures and Operation of Rewrite During RUN
FPWIN GR FPWIN GR
Item
Ladder symbol mode Boolean mode
Maximum of 128 steps.
Changes are performed by block.
When PG conversion is executed
Rewriting performed by step.
online, the program will be
Caution is required as rewriting
Rewrite procedure rewritten.
takes place simultaneously with the
change.
12-13
FPWIN GR FPWIN GR
Item
Ladder symbol mode Boolean mode
Writing and deletion of a single
instruction is not possible for a
program with no step ladder area.
A distance with the same number Write or delete both instructions
SSTP/ cannot be defined twice. simultaneously in FPWIN GR ladder
STPE An SSTP instruction cannot be symbol mode.
Operation
written in a subprogram. In the case of an SSTP instruction
of each
only, writing and deletion of a single
instruction
instruction is possible for a program
with a step ladder area.
Write in the order: JP-LBL or
Be sure to write the instruction for
JP/ LOOP-LBL
setting the loop number before LBL-
LOOP/LBL Delete in the order: LBL-JP or LBL-
LOOP instructions.
LOOP
12-14
12.6 Processing During Forced Input and Output
12-15
12-16
Chapter 13
Specifications
13.1 Table of Specifications
13-2
Unit’s current consumption table
Control unit Expansion Input circuit Output circuit
current unit current current current
consumption consumption consumption consumption
This is the current This is the This is the This is the current
consumed from current current consumed by the
the control unit consumed from consumed by the output circuits of
power supply the expansion input circuits of the various units.
connector. If unit power the various units. This value
expansion units or supply This value indicates the
intelligent units are connector. If a indicates the current used to
added, the current unit is not listed current that flows drive the output
is increased by the below, it means into the input circuits. This value
value indicated that it has no circuit. does not include
below. power supply the load current
connector value.
FP0R-C10 100 mA or less − 15.9 mA or less −
FP0R-C14 120 mA or less − 21.1 mA or less −
FP0R FP0R-C16 70 mA or less − 21.1 mA or less 20 mA or less
control unit FP0R-C32
FP0R-T32 90 mA or less − 42.2 mA or less 40 mA or less
FP0R-F32
FP0-E8X 10 mA or less 37.6 mA or less −
FP0-E8R 10 mA or less 50 mA or less 18.8 mA or less −
FP0-E8YR 10 mA or less 100 mA or less − −
FP0/FP0R FP0-E8YT/P 15 mA or less − − 26 mA or less
expansion FP0-E16X 10 mA or less − 75.2 mA or less −
unit FP0-E16R 20 mA or less 100 mA or less 37.6 mA or less −
FP0-E16T/P 20 mA or less − 37.6 ma or less 26 mA or less
FP0-E16YT/P 25 mA or less − − 52 mA or less
FP0-E32T/P 35 mA or less − 75.2 mA or less 52 mA or less
FP0-A21 20 mA or less 100 mA or less − −
FP0-A80 20 mA or less 60 mA or less − −
FP0-A04V 20 mA or less 100 mA or less − −
FP0 FP0-A04I 20 mA or less 130 mA or less − −
intelligent FP0-TC4
unit FP0-TC8 25 mA or less − − −
FP0-RTD6
FP0-IOL 30 mA or less 40 mA or less − −
FP0-CCLS 40 mA or less 40 mA or less − −
Programmable display
80 mA or less − − −
(5 VDC, RS232C type)
C-NET
AFP15402 50 mA or less − − −
adapter S2
13-3
13.1.2 Control Specifications
Item C10, C14 C16 C32 T32 F32
Programming method Relay symbol
Control method Cyclic operation
Program Built-in memory Flash ROM
memory Memory capacity 16000 steps 32000 steps
Rewriting during Available (Simultaneous rewriting capacity: 512 steps)
RUN
Download during Available (All programs)
RUN
Security function Password function (4-digit, 8-digit), Read protection setting
Comment Memory capacity 328 kbytes (All comments including I/O comments, annotations,
memory interlinear comments)
Download during Available (All comments)
RUN
Without expansion units: 0.2 ms or less
I/O update time & base time With expansion units: 0.2 ms or less + (1×the number of expansion
unit) ms
Basic instruction: from 0.08 μs, Timer instruction: 2.2 μs,
Up to 3k steps
Operation High-level instruction: from 0.32μs (MV instruction)
speed Basic instruction: from 0.58 μs, Timer instruction: 3.66 μs,
After 3k steps
High-level instruction: from 1.62μs (MV instruction)
Basic instruction Approx. 110 types
High-level instruction Approx. 210 types
External input (X) 1760 points
External output (Y) 1760 points
Internal Relay (R) 4096 points
Special Internal Relay(R) 224 points
Link Relay (L) 2048 points
1024 points (Factory default: Timer 1008 points: T0 to T1007,
Timer/Counter (T/C)
Counter 16 points: C1008 to C1023)
Data register(DT) 12315 words 32765 words
Special data register(DT) 440 words (DT90000 to DT90443)
Link data register (LD) 256 words
Index register (I0 to ID) 14 words
Master control relay(MCR) 256 points
Number of labels (JMP, LOOP) 256 labels
Differential points Number of points that is within the program capacity
Number of step ladder 1000 stages
Number of subroutines 500 subroutines
Available Sampling by commands/Sampling at regular time
intervals
Sampling trace For one sampling: 16 bits + 3 words
C10/C14/C16=300 samples
C32/T32/F32=1000 samples
High speed counter (HSC) At single phase 6 points (Max. 50 kHz) or second phase 3 points
*1
(Max. 15 kHz)
*1 *2
Pulse output - 4 points (Max. 50 kHz)
PWM output - 4 points (Max. 4.8 kHz) *1 *2
Pulse catch input 8 points in total (including HSC and interrupt input)
Interrupt program Input: 8 programs (C10 only. Input: 6 programs)
Periodical: 1 program
Pulse match: 4 programs
Periodical interrupt 0.5 ms unit: 0.5 ms to 1.5 s/10 ms unit: 10 ms to 30 s
Constant scan 0.5 ms unit: 0.5 ms to 600 ms
13-4
Item C10, C14 C16 C32 T32 F32
Backup by F12, *4
All areas
Flash P13Instruction
ROM Counter: 16 points
Backup*3 Auto backup when
*4 Internal relay: 128 points -
power is OFF
Data register : 315 words
All areas *5
(Built-in *5
RAM backup - All areas
backup
battery) *6
*7
Clock/Calendar - Available-
Communication port Tool port/USB port/COM port
Self-diagnosis functions Watchdog timer (Approx. 690 ms), program syntax checking
*1) The specification is when rated input voltage is at 24 V DC and temperature at 25 °C.
Frequency may decrease depending on voltage, temperature or operating condition.
*2) No. of channels: A total of 4 channels is available for pulse output and PWM output.
Frequency: Pulse output can be specified up to 50 kHz. PWM output can be specified up to 4.8 kHz.
An error on the pulse width that is a maximum of 40µs may occur for the setting value depending on
voltage, temperature or operating condition.
*3) Guaranteed number of writing is up to 10000 times.
*4) Auto backup area when power is off
Type C10, C14, C16 C32, T32
C1008 to 1023 (C: Contact, EV: C1008 to 1023 (C: Contact, EV:
Backup Elapsed value) Elapsed value)
area R2480 to 255F R2480 to 255F
DT12000 to 12314 DT32450 to 32764
*5) All the areas of timer/counter, internal relays, link relays, link registers and data registers can be held.
Non-hold areas and hold areas can be specified by the setting of system register.
*6) Notes about built-in backup battery (T32 only)
Secondary battery is used for this product.
It has not been charged when it is shipped from the factory. Energize and charge it before you use it.
The secondary battery does not have a function to notify the battery voltage reduction. However, if
the battery is out of charge and the hold area becomes indefinite, the values in the hold areas will be
cleared to 0 when the power is turned on next time.
(We recommend to add a program for clearing the data to 0 when the values in hold areas become
indefinite.)
- Relation between charging time and backup time
- Backup time
When ambient temperature is 70 °C: 14 days
When ambient temperature is 25 °C: 50 days
When ambient temperature is -20 °C: 25 days
- Predicted backup life
When ambient temperature is 55 °C: 430 days
When ambient temperature is 45 °C: 1200 days
When ambient temperature is 40 °C: 2100 days
When ambient temperature is 35 °C: 3300 days
When ambient temperature is 34 °C or lower: 10 years
(The temperature when the power is off has little influence on the battery life.)
*7) Precision of Clock/Calendar (T32 only):
When ambient temperature is 0 °C: Less than 104 seconds per month
When ambient temperature is 25 °C: Less than 51 seconds per month
When ambient temperature is 55 °C: Less than 155 seconds per month
13-5
13.1.3 Communication Specifications
Tool port
Description
Interface RS232C
Transmission distance 15 m
Baud rate 2400,4800,9600,19200,38400,57600,115200 bit/s
Communication method Half-duplex operation
Synchronous method Asynchronous communication method
Data length 7 bits / 8 bits
Parity: None/Even/Odd
Transmission format Start code: STX / No STX
End code: CR / CR+LF / None / ETX
Stop bit: 1 bit / 2 bits
Order of data transmission Transmits from bit 0 character by character.
Communication function Computer link (Slave)
Modem initialization
General-purpose communication (In the RUN mode only)
USB port
Description
Standard (Baud rate) USB2.0 Fullspeed
Communication mode Computer link (Slave)
Factory default
Baud rate Data length Parity Stop bit
Tool port 9600 bit/s 8 bits Odd 1 bit
COM port (RS232C port) 9600 bit/s 8 bits Odd 1 bit
13-6
COM port (RS485 port)
Item Description
Interface RS485
Communication mode 1:N communication
Note1) 2)
Transmission distance Max. 1200 m
Baud rate 19200, 115200 bps Note2) 3))
Communication method Two-wire, half-duplex transmission
Synchronous method Start stop synchronous system
Transmission line Shielded twisted-pair cable or VCTF
Computer link ASCII
Transmission General-purpose serial
ASCII, Binary
code communication
MODBUS RTU Binary
Data length 7 bits/8bits
Communication Parity 7 bits/8bits
format (to be set
Stop bit None/Even/Odd
by system
register)
Note4) Start code STX/No STX
End code CR/CR+LF/None/ETX
No. of connected units Note2) 5) Transmits from bit 0 character by character.
Computer link (Master/Slave)
Modem initialization
Communication function General-purpose communication
MODBUS RTU (Master/Slave)
PC(PLC) link
Note1) When connecting a commercially available device that has an RS485 interface, please confirm
operation using the actual device. In some cases, the number of units, transmission distance, and baud
rate vary depending on the connected device.
Note2) The values for the transmission distance, baud rate and number of units should be within the
values noted in the graph below.
Note3) The settings of the baud rate switches on the side of the unit and the system register No. 415
should be the same. Only 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) Unit numbers should be registered by the system register.
Factory default
Port type Baud rate Data length Parity Stop bit
Tool port 9600 bit/s 8 bits Odd 1 bit
COM port (RS485 port) 115200 bit/s 8 bits Odd 1 bit
Note:
If the potential difference between the power supplies of RS485 devices exceeds 4 V, the unit may not
communicate as it is the non-isolated type. The large potential difference leads to the damage to the
devices.
13-7
13.2 I/O Number Allocation
13-8
13.2.2 I/O Numbers for FP0 Expansion Unit
• I/O numbers do not need to be set as I/O allocation is performed automatically by the PLC when an
expansion I/O unit is added.
• The I/O allocation for expansion units is determined by the installation location.
Expansion Expansion Expansion
Unit type Allocation points
unit 1 unit 2 unit 3
E8X Input: 8 points X20 to X27 X40 to X47 X60 to X67
Input: 4 points X20 to X23 X40 to X43 X60 to X63
E8R
Output: 4 points Y20 to Y23 Y40 to Y43 Y60 to Y63
E8YT/P
Output: 8 points Y20 to Y27 Y40 to Y47 Y60 to Y67
E8YR
FP0/FP0R
E16X Input: 16 points X20 to X2F X40 to X4F X60 to X6F
expansion unit
E16R Input: 8 points X20 to X27 X40 to X47 X60 to X67
E16T/P Output: 8 points Y20 to Y27 Y40 to Y47 Y60 to Y67
E16YT/P Output: 16 points Y20 to Y2F Y40 to Y4F Y60 to Y6F
Input: 16 points X20 to X2F X40 to X4F X60 to X6F
E32T/P
Output: 16 points Y20 to Y2F Y40 to Y4F Y60 to Y6F
Input: 16 points WX2 WX4 WX6
(ch0) (X20 to X2F) (X40 to X4F) (X60 to X6F)
FP0 analog I/O Input: 16 points WX3 WX5 WX7
FP0-A21
unit (ch1) (X30 to X3F) (X50 to X5F) (X70 to X7F)
WY2 WY4 WY6
Output: 16 points
(Y20 to Y2F) (Y40 to Y4F) (Y60 to Y6F)
FP0 A/D Input: 16 points WX2 WX4 WX6
converter unit FP0-A80 (ch0, 2, 4, 6) (X20 to X2F) (X40 to X4F) (X60 to X6F)
FP0 FP0-TC4
thermocouple FP0-TC8 Input: 16 points WX3 WX5 WX7
unit (ch1, 3, 5, 7) (X30 to X3F) (X50 to X5F) (X70 to X7F)
Input (16 points) WX2 WX4 WX6
CH0, 2, 4 (X20 to X2F) (X40 to X4F) (X60 to X6F)
FP0 Input (16 points) WX3 WX5 WX7
FP0-RTD
RTD unit CH1, 3, 5 (X30 to X3F) (X50 to X5F) (X70 to X7F)
WY2 WY4 WY6
Output (16 points)
(Y20 to Y2F) (Y40 to Y4F) (Y60 to Y6F)
WX2 WX4 WX6
Input: 16 points
(X20 to X2F) (X40 to X4F) (X60 to X6F)
FP0 D/A FP0-A04V Output: 16 points WY2 WY4 WY6
converter unit FP0-A04I (ch0, 2) (Y20 to Y2F) (Y40 to Y4F) (Y60 to Y6F)
Output: 16 points WY3 WY5 WY7
(ch1, 3) (Y30 to Y3F) (Y50 to Y5F) (Y70 to Y7F)
FP0 I/O link Input: 32 points X20 to X3F X40 to X5F X60 to X7F
FP0-IOL
unit Output: 32 points Y20 to Y3F Y40 to Y5F Y60 to Y7F
• The data of each channel for FP0 A/D converter unit (FP0-A80), FP0 thermocouple unit (FP0-
TC4/FP0-TC8), FP0 D/A converter unit (FP0-A04V/P0-A04I) is switched and read/write using a
program that includes the flag for switching converted data.
• Regarding FP0 CC-Link slave unit, please refer to the exclusive manual.
13-9
13.3 Relays, Memory Areas and Constants
Number of points and range of
Item memory area available for use Function
C10, C14, C16 C32, T32, F32
External input Note1) (X) 1760 points (X0 to X109F) Turns on or off based on external input.
External output Note1) (Y) 1760 points (Y0 to Y109F) Externally outputs on or off state
Internal relay Note2) (R) 4096 points (R0 to R255F) Relay which turns on or off only within program.
Link relay Note2) (L) 2048 points (L0 to L127F) This relay is a shared relay used for PLC link.
This goes on when the timer reaches the
Relay
Number of labels
256 points
(JP and LOOP)
Control
13-10
13.4 Power Supply Unit and I/O Link Unit Specifications
13-11
13-12
Chapter 14
Dimensions and Others
14.1 Dimensions
(Unit: mm)
Note) As for the expansion unit, refer to the dimensions only.
Target expansion units: E8RS, E16RS
14-2
14.1.2 C10/C14 Control Unit (Molex Connector)
(Unit: mm)
Note) As for the expansion unit, refer to the dimensions only.
Target expansion units: E8RM,E16RM
14-3
14.1.3 C16 Control Unit (MIL Connector)
(Unit: mm)
Note) As for the expansion unit, refer to the dimensions only.
Target expansion units: E16X, E16YT, E16YP, E16T, E16P, E8X, E8YT, E8YP
14-4
14.1.4 C32/T32/F32 Control Unit (MIL Connector)
(Unit: mm)
Note) As for the expansion unit, refer to the dimensions only.
Target FP0 expansion units: E32T, E32P
14-5
14.1.5 Power Supply Unit
(Unit: mm)
(Unit: mm)
(Unit: mm)
14-6
14.2 Cable/Adapter Specifications
(Unit: mm)
(Unit: mm)
14-7
14-8
Chapter 15
Appendix
15.1 System Registers / Special Internal Relays / Special
Data Registers
Precaution for System Registers
5. MEWNET-W0 PC(PLC) link settings (System registers 40 to 47, 50 to 55, and 57)
These settings are for using link relays and link registers for MEWNET-W0 PC(PLC) link communication.
Note) The default value setting is "no PC(PLC) link communication".
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.
15-2
Checking and changing the set value of system register
If you are going to use a value which is already set(the value which appears when read),
there is no need write it again.
15-3
15.1.1 Table of System Registers for FP0R
Default
No. Name Descriptions
value
Starting number setting for
5 1008 0 to 1024
counter
Hold type area starting number
6 setting for timer and counter 1008 0 to 1024
(T32/F32)
Hold type area starting number
7 setting for internal relays 248 0 to 256
(T32/F32)
Hold/
Hold type area starting number
Non-
8 setting for data registers 0 0 to 32765
hold 1
(T32/F32)
Hold or non-hold setting for step
14 ladder process Non-hold Hold/Non-hold
(T32/F32)
Previous value is held for a
leading edge detection Hold/
4 Hold
instruction (DF instrucion) with Non-hold
MC Note)
Hold type area starting word
10 number for PC(PLC) link relays 0 0 to 64
(for PC(PLC) link 0) (T32/F32)
Hold type area starting word
11 number for PC(PLC) link relays 64 64 to 128
Hold/
(for PC(PLC) link 1) (T32/F32)
Non-
Hold type area starting number
hold 2
12 for PC(PLC) link registers 0 0 to 128
(for PC(PLC) link 0) (T32/F32)
Hold type area starting number
13 for PC(PLC) link registers 128 128 to 256
(for PC(PLC) link 1) (T32/F32)
Disable or enable setting for
20 Disabled Disabled/Enabled
duplicated output
Action
Operation setting when an I/O
on 23 Stop Stop/Continuation of operation
verification error occurs
error
Operation setting when an
26 Stop Stop/Continuation of operation
operation error occurs
Wait time setting for multi-frame 6500.0
31 10 to 81900 ms
communication ms
Communication timeout setting
Time 10000.0
32 for SEND/RECV, RMRD/RMWT 10 to 81900 ms
set- ms
commands
ting
0: Normal scan
Constant value settings for scan Normal
34 0 to 600 ms: Scans once each
time scan
specified time interval
15-4
FP0R
Default
No. Name Descriptions
value
Range of link relays used for
40 0 0 to 64 words
PC(PLC) link
Range of link data registers
41 0 0 to 128 words
used for PC(PLC) link
Starting word number for link
PC 42 0 0 to 63
relay transmission
(PLC) 43 Link relay transmission size 0 0 to 64 words
link 0
Starting number for link data
set- 44 0 0 to 127
register tranmission
ting
Link data register transmission
45 0 0 to 127 words
size
46 PC(PLC) link switch flag Normal Normal/reverse
Maximum unit number setting
47 16 1 to 16
for MEWNET-W0 PC(PLC) link
Range of link relays used for
50 0 0 to 64 words
PC(PLC) link
Range of link data registers
51 0 0 to 128 words
used for PC(PLC) link
PC Starting word number for link
52 64 64 to 127
(PLC) relay transmission
link 1 53 Link relay transmission size 0 0 to 64 words
set- Starting number for link data
54 128 128 to 255
ting) register tranmission
Link data register transmission
55 0 0 to 127 words
size
Maximum unit number setting
57 16 1 to 16
for MEWNET-W0 PC(PLC) link
15-5
FP0R
No. Name Default value Descriptions
Do not set input X0 as high-speed counter.
Two-phase input (X0, X1)
Two-phase input (X0, X1), Reset input (X2)
Incremental input (X0)
CH0: Incremental input (X0), Reset input (X2)
Do not set input Decremental input (X0)
High-speed CH0
X0 as high-speed Decremental input (X0), Reset input (X2)
counter
counter Individual input (X0, X1)
operation
400 Individual input (X0, X1), Reset input (X2)
mode
Incremental/decremental control input (X0, X1)
settings (X0
Incremental/decremental control input (X0, X1),
to X2)
Reset input (X2)
Controller input settings 1
15-6
FP0R
Default
No. Name Descriptions
value
Normal output (Y0, Y1)
CH0: Pulse output (Y0, Y1)
Pulse output (Y0, Y1)/Home input X4
Normal
Controller output settings 2 (PLS/PWM)
15-7
FP0R
Default
No. Name Descriptions
value
410 Unit No. setting 1 1 to 99
Communication Computer link
Computer link Note2)
mode setting General-purpose communications
412
Selection of modem
connection Disabled Enabled/Disabled
Enter the settings for the various items.
- Data lenght bit: 7 bits/8 bits
- Parity check: none/with odd/with even
Data lenght
- Stop bit: 1 bit/2 bits
bit: 8 bits
413 Communication Parity check: - The following setting is valid only when
format setting “with odd” the communication mode specified by
Stop bit: 1 bit system register 412 has been set to
Tool “General-purpose serial communication”.
port
- Terminator CR/CR+LF/None/ETX
set-
- Header: STX not exist/STX exist
ting
Communication 2400 bps / 4800 bps / 9600 bps /
415 speed (Baud rate) 9600 bps 19200 bps / 38400 bps / 57600 bps /
setting 115200 bps
Starting address for
received buffer of
420 4096 0 to 32764
general (serial data)
communication mode
Buffer capacity
setting for data
421 received of general 2048 0 to 2048
(serial data)
communication mode
410 Unit No. setting 1 1 to 99
Computer link
Communication General-purpose serial communication
Computer link
mode setting PC(PLC) link
412 MODBUS RTU
Selection of modem
Disabled Enabled/Disabled
connection
Enter the settings for the various items.
- Data lenght bit: 7 bits/8 bits
- Parity check: none/with odd/with even
Data lenght
- Stop bit: 1 bit/2 bits
bit: 8 bits
Communication - The following setting is valid only when
413 Parity check:
format setting the communication mode specified by
COM Odd
Stop bit: 1 bit system register 412 has been set to
port
“General-purpose serial communication”.
set-
- Terminator CR/CR+LF/None/ETX
ting
- Header: STX not exist/STX exist
Communication 2400 bps / 4800 bps / 9600 bps /
415 speed (Baud rate) 9600 bps 19200 bps / 38400 bps / 57600 bps /
setting 115200 bps
Starting address for
416 received buffer of 0 0 to 32764
general (serial data)
communication mode
Buffer capacity
setting for data
417 received of general 2048 0 to 2048
(serial data)
communication mode
Note1) The communication format in a PLC link is fixed at the following settings:
Data length is 8 bits, odd parity, stop bit is 1.
The communication speed (baud rate) is fixed at 115200 bps.
Note2) The general-purpose communication with the tool port is available only in RUN mode. In PROG
mode, the computer link mode must be used regardless of settings.
15-8
FP0R
Add- Default
Item Name Description
ress value
Controller input time
430 constant setting 1
X0 to X3 None
Cont- Controller input time 0.1 ms
roller 431 constant setting 1 0.5 ms
input X4 to X7 1 ms
time Controller input time 2 ms
1 ms
cons- constant setting 2 4 ms
432
tant X8 to XB 8 ms
set- (C32/T32/F32) 16 ms
tings Controller input time 32 ms
constant setting 2 64 ms
433
XC to XF
(C32/T32/F32)
Note) X6 and X7 is invalid for C10.
15-9
15.1.2 Table of Special Internal Relays for FP0R
The special internal relays turn on and off under special conditions. The on and off states are not output
externally. Writing is not possible with a programming tool or an instruction.
WR900 FP0R
Relay No. Name Description
Self-diagnostic Turns on when a self-diagnostic error occurs.
R9000
error flag ⇒ The content of self-diagnostic error is stored in DT90000.
R9001 Not used
R9002 Not used
R9003 Not used
I/O verification
R9004 Turns on when an I/O verification error occurs.
error flag
R9005 Not used
R9006 Not used
Turns on and keeps the on state shen an operation error occurs.
Operation error
R9007 ⇒The address where the error occurred is stored in DT90017.
flag (hold)
(indicates the first operation error which occurred).
Turns on for an instant when an operation error occurs.
Operation error
R9008 ⇒The address where the operation error occurred is stored in
flag (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 larger
R900A > Flag
in the comparison instructions (F60 to F63).
Turns on for an instant,
- when the compared results are equal in the comparison
R900B = Flag instructions (F60 to F63).
- when the calculated results become 0 in the arithmetic
instructions.
Turns on for an instant when the compared results become smaller
R900C < Flag
in the comparison instructions (F60 to F63).
Turns on when the set time elapses (set value reaches 0) in the
Auxiliary timer timing operation of the F137(STMR)/F183(DSTM) auxiliary timer
R900D
instruction flag instruction. The flag turns off when the trigger for auxiliary timer
instruction turns off.
Tool port
R900E communication Turns on when communication error at tool port is occurred.
error
Turns on when scan time exceeds the time specified in system
Constant scan
R900F register 34 during constant scan execution.
error flag
This goes on if 0 has been set using system register 34.
A: Available, N/A: Not available
15-10
WR901 FP0R
Relay No. Name Description
R9010 Always on relay Always on.
R9011 Always off relay Always off.
R9012 Scan pulse relay Turns on and off alternately at each scan.
Initial (on type) Goes on for only the first scan after operation (RUN) has been
R9013
pulse relay started, and goes off for the second and subsequent scans.
Initial (off type) Goes off for only the first scan after operation (RUN) has been
R9014
pulse relay started, and goes on for the second and subsequent scans.
Step ladder initial
Turns on for only the first scan of a process after the boot at the
R9015 pulse relay (on
step ladder control.
type)
R9016 Not used
R9017 Not used
0.01 s clock Repeats on/off operations in
R9018
pulse relay 0.01 sec. cycles.
15-11
WR902 FP0R
Relay No. Name Description
Turns off while the mode selector is set to PROG.
R9020 RUN mode flag
Turns on while the mode selector is set to RUN.
R9021 Not used
R9022 Not used
R9023 Not used
R9024 Not used
R9025 Not used
R9026 Message flag Turns on while the F149 (MSG) instruction is executed.
R9027 Not used
R9028 Not used
Turns on during forced on/off operation for input/output relay
R9029 Forcing flag
timer/counter contacts.
Interrupt enable Turns on while the external interrupt trigger is enabled by the ICTL
R902A
flag instruction.
Interrupt error
R902B Turns on when an interrupt error occurs.
flag
Sampling by the instruction=0
R902C Sample point flag
Sampling at constant time intervals=1
Sampling trace When the sampling operation stops=1,
R902D
end flag When the sampling operation starts=0
Sampling stop When the sampling stop trigger activates=1
R902E
trigger flag When the sampling stop trigger stops=0
Sampling enable When sampling starts=1
R902F
flag When sampling stops=0
A: Available, N/A: Not available
15-12
WR903 FP0R
Relay No. Name Description
R9030 Not used
R9031 Not used
- Turns on when the general-purpose communication function
COM port
is being used
R9032 communication mode
- Goes off when the MEWTOCOL-COM or the PLC link
flag
function is being used.
Print instruction Off: Printing is not executed.
R9033
execution flag On: Execution is in progress.
RUN overwrite Goes on for ony the first scan following completion of a rewrite
R9034
complete flag during the RUN operation.
R9035 Not used
R9036 Not used
- Goes on is a transmission error occurs during data
COM port
communication.
R9037 communication error
- Goes off when a request is made to send data, using the
flag
F159 (MTRN) instruction.
COM port reception
done flag during - Turns on when the terminator is received during general -
R9038
general purpose purpose serial communication.
communication
COM port
- Goes on when transmission has been completed in general-
transmission done
purpose serial communication.
R9039 flag during general-
- Goes off when transmission is requested in general-purpose
purpose serial
serial communication.
communication
R903A Not used
R903B Not used
R903C Not used
R903D Not used
TOOL port reception
done flag during - Turns on the terminator is received during general -purpose
R903E
general purpose serial communication.
communication
TOOL port
- Goes on when transmission has been completed in general-
transmission done
purpose serial communication.
R903F flag during general-
- Goes off when transmission is requested in general-purpose
purpose serial
serial communication.
communication
A: Available, N/A: Not available
Note) R9030 to R9030F can be changed during 1 scan.
15-13
WR904 FP0R
Relay
Name Description
No.
TOOL port - Turns on when the general-purpose communication function is being
R9040 operation mode used
flag - Goes off when the computer link function is being used.
COM port PLC
R9041 Turn on while the PLC link function is used.
link flag
R9042 Not used
R9043 Not used
Monitors whether the F145 (SEND) or F146 (RECV) instructions can
COM port
be executed or not.
SEND/RECV
R9044 Off: None of the above mentioned instructions can be executed.
instruction
(During executing the instruction)
execution flag
On: One of the above mentioned instructions can be executed.
COM port Monitors if an abnormality has been detected during the execution of
SEND/RECV the F145 (SEND) or F146 (RECV) instructions as follows:
R9045 instruction Off: No abonormality detected.
execution end On: An abnormality detected. (communication error)
flag End code: DT90124
R9046 Not used
R9047 Not used
R9048 Not used
R9049 Not used
R904A Not used
R904B Not used
R904C
Not used
to R904F
A: Available, N/A: Not available
Note) R9040 to R904F can be changed during 1 scan.
WR905 FP0R
Relay
Name Description
No.
MEWNET-W0
When using MEWNET-W0
PLC link
R9050 - Turns on when a transmission error occurs at PLC link.
transmission
- Turns on when there is an error in the PLC link area settings.
error flag
R9051 to
Not used
R905F
15-14
WR906 FP0R
Relay No. Name Description
Unit Turns on when Unit No. 1 is communicating properly in PC(PLC)
R9060 No.1 link 0 mode. Turns off when operation is stopped, when an error
occurs, or when not in the PC(PLC) link 0 mode.
Unit Turns on when Unit No. 2 is communicating properly in PC(PLC)
R9061 No.2 link 0 mode. Turns off when operation is stopped, when an error
occurs, or when not in the PC(PLC) link 0 mode.
Unit Turns on when Unit No. 3 is communicating properly in PC(PLC)
R9062 No.3 link 0 mode. Turns off when operation is stopped, when an error
occurs, or when not in the PC(PLC) link 0 mode.
Unit Turns on when Unit No. 4 is communicating properly in PC(PLC)
R9063 No.4 link 0 mode. Turns off when operation is stopped, when an error
occurs, or when not in the PC(PLC) link 0 mode.
Unit Turns on when Unit No. 5 is communicating properly in PC(PLC)
R9064 No.5 link 0 mode. Turns off when operation is stopped, when an error
occurs, or when not in the PC(PLC) link 0 mode.
Unit Turns on when Unit No. 6 is communicating properly in PC(PLC)
R9065 No.6 link 0 mode. Turns off when operation is stopped, when an error
occurs, or when not in the PC(PLC) link 0 mode.
Unit Turns on when Unit No. 7 is communicating properly in PC(PLC)
R9066 No.7 link 0 mode. Turns off when operation is stopped, when an error
MEWNET- occurs, or when not in the PC(PLC) link 0 mode.
W0 Unit Turns on when Unit No. 8 is communicating properly in PC(PLC)
R9067 PC(PLC) link 0 mode. Turns off when operation is stopped, when an error
link 0 No.8 occurs, or when not in the PC(PLC) link 0 mode.
trans- Turns on when Unit No. 9 is communicating properly in PC(PLC)
R9068 mission Unit link 0 mode. Turns off when operation is stopped, when an error
assurance No.9
occurs, or when not in the PC(PLC) link 0 mode.
relay Turns on when Unit No. 10 is communicating properly in
R9069 Unit PC(PLC) link 0 mode. Turns off when operation is stopped, when
No.10 an error occurs, or when not in the PC(PLC) link 0 mode.
Unit Turns on when Unit No. 11 is communicating properly in
R906A No.11 PC(PLC) link 0 mode. Turns off when operation is stopped, when
an error occurs, or when not in the PC(PLC) link 0 mode.
Unit Turns on when Unit No. 12 is communicating properly in
R906B No.12 PC(PLC) link 0 mode. Turns off when operation is stopped, when
an error occurs, or when not in the PC(PLC) link 0 mode.
Unit Turns on when Unit No. 13 is communicating properly in
R906C No.13 PC(PLC) link 0 mode. Turns off when operation is stopped, when
an error occurs, or when not in the PC(PLC) link 0 mode.
Unit Turns on when Unit No. 14 is communicating properly in
R906D PC(PLC) link 0 mode. Turns off when operation is stopped, when
No.14 an error occurs, or when not in the PC(PLC) link 0 mode.
Unit Turns on when Unit No. 15 is communicating properly in
R906E No.15 PC(PLC) link 0 mode. Turns off when operation is stopped, when
an error occurs, or when not in the PC(PLC) link 0 mode.
Unit Turns on when Unit No. 16 is communicating properly in
R906F No.16 PC(PLC) link 0 mode. Turns off when operation is stopped, when
an error occurs, or when not in the PC(PLC) link 0 mode.
A: Available, N/A: Not available
15-15
WR907 FP0R
Relay No. Name Description
Unit Turns on when Unit No. 1 is in the RUN mode.
R9070
No.1 Turns off when Unit No. 1 is in the PROG. mode.
Unit Turns on when Unit No. 2 is in the RUN mode.
R9071
No.2 Turns off when Unit No. 2 is in the PROG. mode.
Unit Turns on when Unit No. 3 is in the RUN mode.
R9072
No.3 Turns off when Unit No. 3 is in the PROG. mode.
Unit Turns on when Unit No. 4 is in the RUN mode.
R9073
No.4 Turns off when Unit No. 4 is in the PROG. mode.
Unit Turns on when Unit No. 5 is in the RUN mode.
R9074
No.5 Turns off when Unit No. 5 is in the PROG. mode.
Unit Turns on when Unit No. 6 is in the RUN mode.
R9075
No.6 Turns off when Unit No. 6 is in the PROG. mode.
Unit Turns on when Unit No. 7 is in the RUN mode.
R9076
MEWNET- No.7 Turns off when Unit No. 7 is in the PROG. mode.
W0 Unit Turns on when Unit No. 8 is in the RUN mode.
R9077
PC(PLC) No.8 Turns off when Unit No. 8 is in the PROG. mode.
link 0 Unit Turns on when Unit No. 9 is in the RUN mode.
R9078
operation No.9 Turns off when Unit No. 9 is in the PROG. mode.
mode relay Unit Turns on when Unit No. 10 is in the RUN mode.
R9079
No.10 Turns off when Unit No. 10 is in the PROG. mode.
Unit Turns on when Unit No. 11 is in the RUN mode.
R907A
No.11 Turns off when Unit No. 11 is in the PROG. mode.
Unit Turns on when Unit No. 12 is in the RUN mode.
R907B
No.12 Turns off when Unit No. 12 is in the PROG. mode.
Unit Turns on when Unit No. 13 is in the RUN mode.
R907C
No.13 Turns off when Unit No. 13 is in the PROG. mode.
Unit Turns on when Unit No. 14 is in the RUN mode.
R907D
No.14 Turns off when Unit No. 14 is in the PROG. mode.
Unit Turns on when Unit No. 15 is in the RUN mode.
R907E
No.15 Turns off when Unit No. 15 is in the PROG. mode.
Unit Turns on when Unit No. 16 is in the RUN mode.
R907F
No.16 Turns off when Unit No. 16 is in the PROG. mode.
A: Available, N/A: Not available
15-16
WR908 FP0R
Relay No. Name Description
Unit Turns on when Unit No. 1 is communicating properly in PC(PLC)
R9080 No.1 link 1 mode. Turns off when operation is stopped, when an error
occurs, or when not in the PC(PLC) link 1 mode.
Unit Turns on when Unit No. 2 is communicating properly in PC(PLC)
R9081 No.2 link 1 mode. Turns off when operation is stopped, when an error
occurs, or when not in the PC(PLC) link 1 mode.
Unit Turns on when Unit No. 3 is communicating properly in PC(PLC)
R9082 No.3 link 1 mode. Turns off when operation is stopped, when an error
occurs, or when not in the PC(PLC) link 1 mode.
Unit Turns on when Unit No. 4 is communicating properly in PC(PLC)
R9083 No.4 link 1 mode. Turns off when operation is stopped, when an error
occurs, or when not in the PC(PLC) link 1 mode.
Unit Turns on when Unit No. 5 is communicating properly in PC(PLC)
R9084 No.5 link 1 mode. Turns off when operation is stopped, when an error
occurs, or when not in the PC(PLC) link 1 mode.
Unit Turns on when Unit No. 6 is communicating properly in PC(PLC)
R9085 No.6 link 1 mode. Turns off when operation is stopped, when an error
occurs, or when not in the PC(PLC) link 1 mode.
Unit Turns on when Unit No. 7 is communicating properly in PC(PLC)
R9086 No.7 link 1 mode. Turns off when operation is stopped, when an error
MEWNET- occurs, or when not in the PC(PLC) link 1 mode.
W0 Unit Turns on when Unit No. 8 is communicating properly in PC(PLC)
R9087 PC(PLC) link 1 mode. Turns off when operation is stopped, when an error
link 1 No.8 occurs, or when not in the PC(PLC) link 1 mode.
trans- Turns on when Unit No. 9 is communicating properly in PC(PLC)
R9088 mission Unit link mode. Turns off when operation is stopped, when an error
assurance No.9
occurs, or when not in the PC(PLC) link mode.
relay Turns on when Unit No. 10 is communicating properly in PC(PLC)
R9089 Unit link 1 mode. Turns off when operation is stopped, when an error
No.10 occurs, or when not in the PC(PLC) link 1 mode.
Unit Turns on when Unit No. 11 is communicating properly in PC(PLC)
R908A No.11 link 1 mode. Turns off when operation is stopped, when an error
occurs, or when not in the PC(PLC) link 1 mode.
Unit Turns on when Unit No. 12 is communicating properly in PC(PLC)
R908B No.12 link 1 mode. Turns off when operation is stopped, when an error
occurs, or when not in the PC(PLC) link 1 mode.
Unit Turns on when Unit No. 13 is communicating properly in PC(PLC)
R908C No.13 link 1 mode. Turns off when operation is stopped, when an error
occurs, or when not in the PC(PLC) link 1 mode.
Unit Turns on when Unit No. 14 is communicating properly in PC(PLC)
R908D link 1 mode. Turns off when operation is stopped, when an error
No.14 occurs, or when not in the PC(PLC) link 1 mode.
Unit Turns on when Unit No. 15 is communicating properly in PC(PLC)
R908E No.15 link 1 mode. Turns off when operation is stopped, when an error
occurs, or when not in the PC(PLC) link 1 mode.
Unit Turns on when Unit No. 16 is communicating properly in PC(PLC)
R908F No.16 link 1 mode. Turns off when operation is stopped, when an error
occurs, or when not in the PC(PLC) link 1 mode.
A: Available, N/A: Not available
15-17
WR909 FP0R
Relay No. Name Description
Unit Turns on when Unit No. 1 is in the RUN mode.
R9090
No.1 Turns off when Unit No. 1 is in the PROG. mode.
Unit Turns on when Unit No. 2 is in the RUN mode.
R9091
No.2 Turns off when Unit No. 2 is in the PROG. mode.
Unit Turns on when Unit No. 3 is in the RUN mode.
R9092
No.3 Turns off when Unit No. 3 is in the PROG. mode.
Unit Turns on when Unit No. 4 is in the RUN mode.
R9093
No.4 Turns off when Unit No. 4 is in the PROG. mode.
Unit Turns on when Unit No. 5 is in the RUN mode.
R9094
No.5 Turns off when Unit No. 5 is in the PROG. mode.
Unit Turns on when Unit No. 6 is in the RUN mode.
R9095
No.6 Turns off when Unit No. 6 is in the PROG. mode.
Unit Turns on when Unit No. 7 is in the RUN mode.
R9096
MEWNET- No.7 Turns off when Unit No. 7 is in the PROG. mode.
W0 Unit Turns on when Unit No. 8 is in the RUN mode.
R9097
PC(PLC) No.8 Turns off when Unit No. 8 is in the PROG. mode.
link 1 Unit Turns on when Unit No. 9 is in the RUN mode.
R9098
operation No.9 Turns off when Unit No. 9 is in the PROG. mode.
mode relay Unit Turns on when Unit No. 10 is in the RUN mode.
R9099
No.10 Turns off when Unit No. 10 is in the PROG. mode.
Unit Turns on when Unit No. 11 is in the RUN mode.
R909A
No.11 Turns off when Unit No. 11 is in the PROG. mode.
Unit Turns on when Unit No. 12 is in the RUN mode.
R909B
No.12 Turns off when Unit No. 12 is in the PROG. mode.
Unit Turns on when Unit No. 13 is in the RUN mode.
R909C
No.13 Turns off when Unit No. 13 is in the PROG. mode.
Unit Turns on when Unit No. 14 is in the RUN mode.
R909D
No.14 Turns off when Unit No. 14 is in the PROG. mode.
Unit Turns on when Unit No. 15 is in the RUN mode.
R909E
No.15 Turns off when Unit No. 15 is in the PROG. mode.
Unit Turns on when Unit No. 16 is in the RUN mode.
R909F
No.16 Turns off when Unit No. 16 is in the PROG. mode.
A: Available, N/A: Not available
15-18
WR910 FP0R
Relay
Name Description
No.
R9110 HSC-CH0
- Turns on the channel of high-speed counter during the
R9111 HSC-CH1
High-speed control using F165(CAM0), F166(HC1S), F167(HC1R),
R9112 HSC-CH2
counter F178(PLSM) instructions.
R9113 HSC-CH3
control flag - Turns off when the control is cleared or this instruction is
R9114 HSC-CH4
completed.
R9115 HSC-CH5
R9116 to
Not used
R911F
R9120 PLS-CH0
Pulse output - Turns on while the pulses are being output using
R9121 PLS-CH1
instruction F171(SPDH), F172 (PLSH), F173(PWMH), F174 (SP0H),
R9122 PLS-CH2
flag F175(SPSH), F177(HOME) instructions.
R9123 PLS-CH3
R9124 to
Not used
R912F
R9130 PLS-CH0 - Turns on the channel of pulse output during the control
R9131 Pulse output PLS-CH1 using F166(HC1S), F167(HC1R) instructions.
R9132 control flag PLS-CH2 - Turns off when the control is cleared or this instruction is
R9133 PLS-CH3 completed.
R9134 to
Not used
R913F
A: Available, N/A: Not available
15-19
15.1.3 Table of Special Data Registers for FP0R
FP0R (A: Available, N/A: Not available)
Read- Writ-
Address Name Description
ing ing
Self-diagnostic error The self-diagnostic error code is stored here
DT90000 A N/A
code when a self-diagnostic error occurs.
DT90001 Not used - N/A N/A
DT90002 Not used N/A N/A
DT90003 Not used - N/A N/A
DT90004 Not used - N/A N/A
DT90005 Not used - N/A N/A
DT90006 Not used - N/A N/A
DT90007 Not used - N/A N/A
DT90008 Not used - N/A N/A
DT90009 Not used - N/A N/A
When the state of installation of FP0
expansion I/O unit has changed since the
power was turned on, the bit corresponding to
Extension (right side) the unit No. will turn on. Monitor using binary
DT90010 I/O verify error unit display. A N/A
[0 to 3]
15-20
FP0R (A: Available, N/A: Not available)
Read- Writ-
Address Name Description
ing ing
One shift-out hexadecimal digit is stored in bit
Operation auxiliary positions 0 to 3 when the data shift instruction,
DT90014 register for data shift F105 (BSR) or F106 (BSL) is executed. The A A
instruction value can be read and written by executing F0
(MV) instruction.
15-21
FP0R (A: Available, N/A: Not available)
Read- Writ-
Address Name Description
ing ing
The current scan time is stored here. Scan
time is calculated using the formula:
Scan time (current
DT90022 Note) Scan time (ms) = stored data (decimal) x 0.1 A N/A
value)
ms
Example: K50 indicates 5 ms.
The minimum scan time is stored here. Scan
time is calculated using the formula:
Scan time (minimum
DT90023 Note) Scan time (ms) = stored data (decimal) x 0.1 A N/A
value)
ms
Example: K50 indicates 5 ms.
The maximum scan time is stored here. The
scan time is calculated using the formula:
Scan time (maximum
DT90024 Scan time (ms) = stored data (decimal) x 0.1 A N/A
value) Note)
ms
Example: K125 indicates 12.5 ms.
The mask conditions of interrupts using the
instruction can be stored here. Monitor using
Mask condition binary display.
monitoring register
DT90025 A N/A
for interrupts
(INT0 to 11)
15-22
FP0R (A: Available, N/A: Not available)
Read- Writ-
Address Name Description
ing ing
The number of data that match the searched
Work1 for SRC
DT90037 data is stored here when F96 (SRC) A N/A
instructions
insturction is executed.
The position of the first matching data is
Work2 for SRC
DT90038 stored here when an F96 (SRC) instruction is A N/A
instructions
executed.
DT90039 Not used - N/A N/A
DT90040 Not used - N/A N/A
DT90041 Not used - N/A N/A
DT90042 Not used - N/A N/A
DT90043 Not used - N/A N/A
DT90044 Not used - N/A N/A
DT90045 Not used - N/A N/A
DT90046 Not used - N/A N/A
DT90047 Not used - N/A N/A
DT90048 Not used - N/A N/A
DT90049 Not used - N/A N/A
DT90050 Not used - N/A N/A
DT90051 Not used - N/A N/A
The pulse output instruction can be continued
or cleared by writing a value with MV
instruction (F0).
Control code setting
High-speed counter
DT90052 A A
control flag
15-23
FP0R (A: Available, N/A: Not available)
Read- Writ-
Address Name Description
ing ing
A value can be written with F0 (MV) instruction
to reset the high-speed counter, disable
counting, continue or clear high-speed counter
instruction.
15-24
FP0R (A: Available, N/A: Not available)
Read- Writ-
Address Name Description
ing ing
Hour and minute data of the clock/calender
are stored here. This data is read-only data. It
cannot be overwritten.
Clock/calender
DT90053 monitor (hour/minute) A N/A
(T32 only)
Clock/calender setting
DT90057 (day-of-the-week)
(T32 only)
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.
15-25
FP0R (A: Available, N/A: Not available)
Read- Writ-
Address Name Description
ing ing
The clock/calender is adjusted as follows.
When setting the clock/calender by
program
By setting the highest bit of DT90058 to 1, the
time becomes that written to DT90054 to
DT90057 by F0 (MV) instruction. After the
time is set, DT90058 is cleared to 0. (Cannot
be performed with any instruction other than
F0 (MV) instruction.)
<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
15-26
FP0R (A: Available, N/A: Not available)
Read- Writ-
Address Name Description
ing ing
Step ladder process
DT90060
(0 to 15)
Step ladder process
DT90061
(16 to 31)
Step ladder process
DT90062
(32 to 47)
Step ladder process
DT90063
(48 to 63)
Step ladder process
DT90064
(64 to 79)
Step ladder process
DT90065
(80 to 95)
Step ladder process
DT90066
(96 to 111)
Step ladder process
DT90067
(112 to 127)
Indicates the startup condition of the step
Step ladder process
DT90068 ladder process. When the process starts up,
(128 to 143)
the bit corresponding to the process number
Step ladder process
DT90069 turns on.
(144 to 159)
Step ladder process
DT90070 Monitor using binary display.
(160 to 175) A
A Note)
Step ladder process
DT90071
(176 to 191)
Step ladder process
DT90072
(192 to 207)
Step ladder process
DT90073 Note) A programming tool software can be
(208 to 223)
used to write data.
Step ladder process
DT90074
(224 to 239)
Step ladder process
DT90075
(240 to 255)
Step ladder process
DT90076
(256 to 271)
Step ladder process
DT90077
(272 to 287)
Step ladder process
DT90078
(288 to 303)
Step ladder process
DT90079
(304 to 319)
Step ladder process
DT90080
(320 to 335)
Step ladder process
DT90081
(336 to 351)
15-27
FP0R (A: Available, N/A: Not available)
Read- Writ-
Address Name Description
ing ing
Step ladder process
DT90082
(352 to 367)
Step ladder process
DT90083
(368 to 383)
Step ladder process
DT90084
(384 to 399)
Step ladder process
DT90085
(400 to 415)
Step ladder process
DT90086
(416 to 431)
Indicates the startup condition of the step
Step ladder process
DT90087 ladder process. When the process starts up,
(432 to 447)
the bit corresponding to the process number
Step ladder process
DT90088 turns on .
(448 to 463)
Step ladder process
DT90089 Monitor using binary display.
(464 to 479) A
A Note)
Step ladder process
DT90090
(480 to 495)
Step ladder process
DT90091
(496 to 511)
Step ladder process
DT90092 Note) A programming tool software can be
(512 to 527)
used to write data.
Step ladder process
DT90093
(528 to 543)
Step ladder process
DT90094
(544 to 559)
Step ladder process
DT90095
(560 to 575)
Step ladder process
DT90096
(576 to 591)
Step ladder process
DT90097
(592 to 607)
15-28
FP0R (A: Available, N/A: Not available)
Read- Writ-
Address Name Description
ing ing
Step ladder process
DT90098
(608 to 623)
Step ladder process
DT90099
(624 to 639)
Step ladder process
DT90100
(640 to 655)
Step ladder process
DT90101
(656 to 671)
Step ladder process
DT90102
(672 to 687)
Step ladder process
DT90103
(688 to 703)
Step ladder process
DT90104
(704 to 719)
Step ladder process
DT90105
(720 to 735)
Step ladder process
DT90106
(736 to 751)
Step ladder process
DT90107 Indicates the startup condition of the step
(752 to 767)
Step ladder process ladder process. When the process starts up,
DT90108 the bit corresponding to the process number
(768 to 783)
Step ladder process turns on.
DT90109
(784 to 799)
Step ladder process Monitor using binary display
DT90110
(800 to 815)
A A
Step ladder process
DT90111
(816 to 831)
Step ladder process
DT90112
(832 to 847)
Step ladder process
DT90113
(848 to 863)
A programming tool software can be used to
Step ladder process
DT90114 write data.
(864 to 879)
Step ladder process
DT90115
(880 to 895)
Step ladder process
DT90116
(896 to 911)
Step ladder process
DT90117
(912 to 927)
Step ladder process
DT90118
(928 to 943)
Step ladder process
DT90119
(944 to 959)
Step ladder process
DT90120
(960 to 975)
Step ladder process
DT90121
(976 to 991)
Step ladder process
DT90122 (992 to 999)
(higher byte is not used.)
15-29
FP0R (A: Available, N/A: Not available)
Read- Writ-
Address Name Description
ing ing
DT90123 Not used - N/A N/A
COM SEND/RECV For details, refer to Programming Manual
DT90124 N/A N/A
instruction end code (F145 and F146).
DT90125 Not used - N/A N/A
Forced ON/OFF
DT90126 operating station Used by the system N/A N/A
display
DT90127
to Not used - N/A N/A
DT90139
The number of times the receiving operation
DT90140
is performed.
The current interval between two receiving
DT90141
operations: value in the register x 2.5ms
The minimum inerval between two receiving
DT90142
operations: value in the register x 2.5ms
The maximum interval between two receiving
DT90143
MEWNET-W0 operations: value in the register x 2.5ms
A N/A
PC(PLC) link 0 status The number of times the sending operation is
DT90144
performed.
The current interval between two sending
DT90145
operations: value in the register x 2.5ms
The minimum interval between two sending
DT90146
operations: value in the register x 2.5ms
The maximum interval between two sending
DT90147
operations: value in the register x 2.5ms
The number of times the receiving operation
DT90148
is performed.
The current interval between two receiving
DT90149
operations: value in the register x 2.5ms
The minimum inerval between two receiving
DT90150
operations: value in the register x 2.5ms
The maximum interval between two receiving
DT90151
MEWNET-W0 operations: value in the register x 2.5ms
A N/A
PC(PLC) link 1 status The number of times the sending operation is
DT90152
performed.
The current interval between two sending
DT90153
operations: value in the register x 2.5ms
The minimum interval between two sending
DT90154
operations: value in the register x 2.5ms
The maximum interval between two sending
DT90155
operations: value in the register x 2.5ms
Area used for measurement of receiving
DT90156
MEWNET-W0 interval.
A N/A
PC(PLC) link 0 status Area used for measurement of sending
DT90157
interval.
15-30
FP0R (A: Available, N/A: Not available)
Read- Writ-
Address Name Description
ing ing
Area used for measurement of receiving
DT90158
MEWNET-W0 interval.
A N/A
PC(PLC) link 1 status Area used for measurement of sending
DT90159
interval.
MEWNET-W0
DT90160 Stores the unit No. of PC(PLC) link 0. A N/A
PC(PLC) link 0 unit No.
MEWNET-W0
DT90161 PC(PLC) link 0 error Stores the error contents of PC(PLC) link 0. A N/A
flag
DT90162
to Not used - N/A N/A
DT90169
Duplicated destination for PC(PLC) inter-link
DT90170
address
DT90171 Counts how many times a token is lost.
Counts how many times two or more tokens
DT90172
are detected.
DT90173 Counts how many times a signal is lost.
No. of times underfined commands have
DT90174
been received.
MEWNET-W0
No. of times sum check errors have occurred A N/A
DT90175 PC(PLC) link 0 status
during reception.
No. of times format errors have occurred in
DT90176
received data.
No. of times transmission errors have
DT90177
occurred.
DT90178 No. of times procedural errors have occurred.
No. of times overlapping parent units have
DT90179
occurred.
DT90180
to Not used - N/A N/A
DT90189
DT90190 Not used - N/A N/A
DT90191 Not used - N/A N/A
DT90192 Not used - N/A N/A
DT90193 Not used - N/A N/A
DT90194
to Not used - N/A N/A
DT90218
15-31
FP0R (A: Available, N/A: Not available)
Read- Writ-
Address Name Description
ing ing
Unit No. (Station No.)
0: Unit No. (Station No.) 1 to 8,
DT90219 selection for DT90220 to A A
1: Unit No. (Station No.) 9 to 16
DT90251
System regis-
DT90220
ter 40 and 41
PC(PLC)
System regis-
DT90221 link
ter 42 and 43
Unit
System regis- The contents of the system register settings
DT90222 (station)
ter 44 and 45 partaining to the PLC inter-link function for
No. 1 or 9
System regis- the various unit numbers are stored as
DT90223
ter 46 and 47 shown below.
System regis-
DT90224
ter 40 and 41 <Example>
PC(PLC)
System regis- When DT90219 is 0
DT90225 link
ter 42 and 43
Unit
System regis-
DT90226 (station)
ter 44 and 45
No. 2 or 10
System regis-
DT90227
ter 46 and 47
System regis-
DT90228
ter 40 and 41
PC(PLC)
System regis-
DT90229 link
ter 42 and 43
Unit A N/A
System regis- • When the system register 46 in the home
DT90230 (station)
ter 44 and 45 unit is in the standard setting, the values in
No. 3 or 11
System regis- the home unit are copied in the system
DT90231
ter 46 and 47 registers 46 and 47.
System regis- When the system register 46 in the home
DT90232
ter 40 and 41 unit is in the reverse setting, the registers
PC(PLC)
System regis- 40 to 45 and 47 corresponding to the
DT90233 link
ter 42 and 43 home unit mentioned in the left column will
Unit
System regis- be changed to 50 to 55 and 57, and the
DT90234 (station)
ter 44 and 45 system register 46 will be set as it is.
No. 4 or 12
System regis- Also, the system registers 40 to 45
DT90235 corresponding to other units will be
ter 46 and 47
System regis- changed to the values which the received
DT90236 values are corrected, and the registers 46
ter 40 and 41
PC(PLC) and 57 in the home unit are set for the
System regis-
DT90237 link registers 46 and 47.
ter 42 and 43
Unit
System regis-
DT90238 (station)
ter 44 and 45
No. 5 or 13
System regis-
DT90239
ter 46 and 47
15-32
FP0R (A: Available, N/A: Not available)
Read- Writ-
Address Name Description
ing ing
System regis-
DT90240 The contents of the system register
ter 40 and 41
settings partaining to the PLC inter-link
PC(PLC) System regis- function for the various unit numbers are
DT90241 link stored as shown below.
ter 42 and 43
Unit
(station) System regis- <Example> when DT90219 is 0.
DT90242
No. 6 or 14 ter 44 and 45
System regis-
DT90243
ter 46 and 47
System regis-
DT90244
ter 40 and 41
15-33
FP0R (A: Available, N/A: Not available)
Read- Writ-
Address Name Description
ing ing
Counting area for input (X0) or Note)
DT90300 Elapsed Lower words A A
(X0, X1) of the main unit.
value
Note)
DT90301 area Higher words A A
HSC-CH0
The target value is set when Note)
DT90302 Target Lower words A A
instructions F166 (HC1S) and
value
F167 (HC1R) are executed.
DT90303 area Higher words A A Note)
Counting area for input (X1) of
DT90304 Elapsed Lower words A A Note)
the main unit.
value
DT90305 area Higher words A A Note)
HSC-CH1
The target value is set when Note)
DT90306 Target Lower words A A
instructions F166 (HC1S) and
value
F167 (HC1R) are executed.
DT90307 area Higher words A A Note)
15-34
FP0R (A: Available, N/A: Not available)
Read- Writ-
Address Name Description
ing ing
Counting area for input (X5) of A
DT90320 Elapsed Lower words A Note1)
value the main unit.
area A
DT90321 Higher words A Note1)
HSC-CH5
The target value is set when A
DT90322 Target Lower words A Note1)
value instructions F166 (HC1S) and
F167 (HC1R) are executed. A
DT90323 area Higher words A Note1)
15-35
FP0R (A: Available, N/A: Not available)
Read- Writ-
Address Name Description
ing ing
DT90370 HSC-CH0 When HSC control is executed by A N/A
DT90371 HSC-CH1 F0 (MV)S, DT90052 instruction, A N/A
DT90372 Control flag monitor HSC-CH2 the setting value for the target CH A N/A
DT90373 area HSC-CH3 is stored in each CH. A N/A
DT90374 HSC-CH4 A N/A
DT90375 HSC-CH5 A N/A
DT90376 Not used - N/A N/A
DT90377 Not used - N/A N/A
DT90378 Not used - N/A N/A
DT90379 Not used - N/A N/A
DT90380 PLS-CH0 When pulse output control is A N/A
Control flag monitor
DT90381 PLS-CH1 executed by F0 (MV)S, DT90052 A N/A
area (Transistor
DT90382 PLS-CH2 instruction, the setting value for the A N/A
output type only)
DT90383 PLS-CH3 target CH is stored in each CH. A N/A
DT90384 Not used - N/A N/A
DT90385 Not used - N/A N/A
DT90386 Not used - N/A N/A
DT90387 Not used - N/A N/A
DT90388 Not used - N/A N/A
DT90389 Not used - N/A N/A
15-36
FP0R (A: Available, N/A: Not available)
Read- Writ-
Address Name Description
ing ing
DT90400 Elapsed value Lower words Available for the transistor A A
area output type only.
DT90401 Higher words Note) When controlling the A A
DT90402 Lower words pulse output CH by A N/A
Target value
F166(HC1S), F167(HC1R)
DT90403 area Higher words A N/A
instructions, the target
DT90404 Target value Lower words value is stored. A N/A
area for match The target value for match
DT90405 ON/OFF Higher words ON/OFF is stored. A N/A
Corrected PLS- The initial speed of the
DT90406 speed of initial CH0 calculated result is stored. A N/A
speed
Lower words
Deceleration The minimum speed for the
DT90407 minimum change of speed. A N/A
speed
If the elapsed value corsses
DT90408 Acceleration Lower words A N/A
over this position when
forbidden area
changing the speed,
starting
DT90409 Higher words acceleration cannot be A N/A
position
performed.
DT90410 Elapsed value Lower words Available for the transistor A A
area output type only.
DT90411 Higher words Note) When controlling the A A
DT90412 Lower words pulse output CH by A N/A
Target value
F166(HC1S), F167(HC1R)
DT90413 area Higher words A N/A
instructions, the target
DT90414 Target value Lower words value is stored. A N/A
area for match The target value for match
DT90415 ON/OFF Higher words ON/OFF is stored. A N/A
Corrected PLS- The initial speed of the
DT90416 speed of initial CH1 calculated result is stored. A N/A
speed
Lower words
Deceleration The minimum speed for the
DT90417 minimum change of speed. A N/A
speed
If the elapsed value corsses
DT90418 Acceleration Lower words A N/A
over this position when
forbidden area
changing the speed,
starting
DT90419 Higher words acceleration cannot be A N/A
position
performed.
15-37
FP0R (A: Available, N/A: Not available)
Read- Writ-
Address Name Description
ing ing
DT90420 Elapsed value Lower words Available for the transistor A A
area output type only.
DT90421 Higher words Note) When controlling the A A
DT90422 Lower words pulse output CH by A N/A
Target value
F166(HC1S), F167(HC1R)
DT90423 area Higher words A N/A
instructions, the target
DT90424 Target value Lower words value is stored. A N/A
area for match The target value for match
DT90425 ON/OFF Higher words ON/OFF is stored. A N/A
Corrected PLS- The initial speed of the
DT90426 speed of initial CH2 calculated result is stored. A N/A
speed
Lower words
Deceleration The minimum speed for the
DT90427 minimum change of speed. A N/A
speed
If the elapsed value corsses
DT90428 Acceleration Lower words A N/A
over this position when
forbidden area
changing the speed,
starting
DT90429 Higher words acceleration cannot be A N/A
position
performed.
DT90430 Elapsed value Lower words Available for the transistor A A
area output type only.
DT90431 Higher words Note) When controlling the A A
DT90432 Lower words pulse output CH by A N/A
Target value
F166(HC1S), F167(HC1R)
DT90433 area Higher words A N/A
instructions, the target
DT90434 Target value Lower words value is stored. A N/A
area for match The target value for match
DT90435 ON/OFF Higher words ON/OFF is stored. A N/A
Corrected PLS- The initial speed of the
DT90436 speed of initial CH3 calculated result is stored. A N/A
speed
Lower words
Deceleration The minimum speed for the
DT90437 minimum change of speed. A N/A
speed
If the elapsed value corsses
DT90438 Acceleration Lower words A N/A
over this position when
forbidden area
changing the speed,
starting
DT90439 Higher words acceleration cannot be A N/A
position
performed.
15-38
15.2 Table of Basic Instructions
FP2SH/FP10SH
FP0/FP-e
Steps *3
FP0R
FP-X
FPΣ
FP2
Name Boolean Symbol Description
15-39
FP2SH/FP10SH
Steps *5 *6
FP0/FP-e
FP0R
FP-X
FPΣ
FP2
Name Boolean Symbol Description
15-40
FP2SH/FP10SH
FP0/FP-e
Steps
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.
15-41
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
FPΣ
FP2
Name Boolean Symbol Description
Subroutine instructions
Subroutine CALL When the trigger is on: Executes the
call subroutine. 2
When the trigger is off: Not execute the (3)
subroutine. The output in the *2
subroutine is maintained.
Output off FCAL When the trigger is on: Executes the
type subroutine. 4
subroutine When the trigger is off: Not execute the (5)
call subroutine. But, the output in *2
the subroutine is cleared.
Subroutine SUB Indicates the start of the subroutine
1
entry program “n”.
Subroutine RET Ends the subroutine program.
1
return
Interrupt instructions
Interrupt INT Indicates the start of the interrupt program
1
“n”.
Interrupt IRET Ends the interrupt program.
1
return
Interrupt ICTL Select interrupt enable/disable or clear in
5
control “S1” and “S2” and execute.
: Available, : Not available, : Not available partially
*1) Available for FP-e only.
*2) In the FP2/FP2SH/FP10SH, when the number “n” of a subroutine program has an index modifier, the number of steps is
the number in parentheses.
15-42
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
FPΣ
FP2
Name Boolean Symbol Description
15-43
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
FPΣ
FP2
Name Boolean Symbol Description
15-44
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
FPΣ
FP2
Name Boolean Symbol Description
15-45
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
FPΣ
FP2
Name Boolean Symbol Description
15-46
15.3 Table of High-level Instructions
The high-level instructions are expressed by the prefixes “F” or “P” with numbers. For most of the high-level
instructions, “F” and “P” types are available. The differences between the two types are explained as follows:
- Instructions with the prefix “F” are executed in every scan while its trigger is in the on.
- Instructions with the prefix “P” are executed only when the leading edge of its trigger is detected.
For the FP0/FP0R/FPΣ/FP-X, the P type high-level instructions are not available.
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
Num- Boo- Ope-
FPΣ
FP2
Name Description
ber lean rand
15-47
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
Num- Ope-
FPΣ
FP2
Name Boo-lean Description
ber rand
15-48
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
Num- Boo-
FPΣ
FP2
Name Operand Description
ber lean
15-49
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
Num- Boo- Ope-
FPΣ
FP2
Name Description
ber lean rand
15-50
FP2SH/FP10SH
FP0/FP-e
Steps
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
15-51
FP2SH/FP10SH
FP0/FP-e
Steps
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
15-52
FP2SH/FP10SH
FP0/FP-e
Steps
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
15-53
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
Num Boo- Ope-
FPΣ
FP2
Name Description
-ber lean rand
15-54
FP2SH/FP10SH
FP0/FP-e
Steps
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.
1 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.
15-55
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
Num- Boo-
FPΣ
FP2
Name Operand Description
ber lean
15-56
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
Num-
FPΣ
FP2
Name Boolean Operand Description
ber
15-57
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
Num- Boo-
FPΣ
FP2
Name Operand Description
ber lean
15-58
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
Num Ope-
FPΣ
FP2
Name Boolean Description
-ber rand
15-59
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
Num- Ope-
FPΣ
FP2
Name Boolean Description
ber rand
15-60
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
Num- Ope-
FPΣ
FP2
Name Boolean Description
ber rand
15-61
FP2SH/FP10SH
FP0/FP-e
Steps
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, S3−S1→D
P287 control PBAND S3, D When S2<S3, S3−S2→D 10
*1
(16-bit data) When S1<or = S3<or = S2, 0→D
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+S1→D
P289 (16-bit data) PZONE S3, D When S3=0, 0→D 10
*1
When S3>0, S3+S2→D
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.
15-62
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
Num- Boo- Ope-
FPΣ
FP2
Name Description
ber lean rand
15-63
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
Num- Ope-
FPΣ
FP2
Name Boolean Description
ber rand
15-64
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
Num- Ope-
FPΣ
FP2
Name Boolean Description
ber rand
15-65
FP2SH/FP10SH
FP0/FP-e
Steps
FP0R
FP-X
Num- Ope-
FPΣ
FP2
Name Boolean Description
ber rand
15-66
15.4 Table of Error codes
Difference in ERROR display
There are differences in the way errors are displayed depending on the model.
Model Display Display method
FP1,FP-M,FP2,FP3,FP10SH LED ERROR. Continually lit
FPΣ,FP0, FP0R, FP-X LED ERROR/ALARM Flashes/continually lit
FP-e Screen display ERR. Continually lit
15-67
-Self-diagnostic Error
This error occurs when the control unit (CPU unit) self-diagnostic function detects the occurrence of an
abnormality in the system. The self-diagnostic function monitors the memory abnormal detection, I/O
abnormal detection, and other devices.
15-68
15.4.1 Table of Syntax Check Error
Opera-
Error
FP10SH
Name
FP2SH
tion Description and steps to take
code
FP0R
FPΣ
FP-X
FP-e
FP0
FP2
status
15-69
Opera-
Error
FP10SH
Name
FP2SH
tion Description and steps to take
code
FP0R
FPΣ
FP-X
FP-e
FP0
FP2
status
15-70
15.4.2 Table of Self-Diagnostic Error
Opera-
Error
FP10SH
Name
FP2SH
tion Description and steps to take
code
FP0R
FPΣ
FP-X
FP-e
FP0
FP2
status
15-71
Opera-
Error
FP10SH
Name
FP2SH
tion Description and steps to take
code
FP0R
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
15-72
Opera
Error
FP10SH
Name
FP2SH
-tion Description and steps to take
code
FP0R
FPΣ
FP-X
FP-e
FP0
FP2
status
15-73
Opera-
Error
FP10SH
Name
FP2SH
tion Description and steps to take
code
FP0R
FPΣ
FP-X
FP-e
FP0
FP2
status
15-74
Opera-
Error
FP10SH
Name
FP2SH
tion Description and steps to take
code
FP0R
FPΣ
FP-X
FP-e
FP0
FP2
status
15-75
Opera-
Error
FP10SH
Name
FP2SH
tion Description and steps to take
code
FP0R
FPΣ
FP-X
FP-e
FP0
FP2
status
15-76
Opera-
Error
FP10SH
Name
FP2SH
tion Description and steps to take
code
FP0R
FPΣ
FP-X
FP-e
FP0
FP2
status
15-77
15.4.3 Table of MEWTOCOL-COM Communication Error
Error
Name Description
code
15-78
Error
Name Description
code
15-79
15.5 MEWTOCOL-COM Communication Commands
Table of MEWTOCOL-COM commands
Command name Code Description
RC Reads the on and off status of contact.
(RCS) - Specifies only one point.
Read contact area
(RCP) - Specifies multiple contacts.
(RCC) - Specifies a range in word units.
WC Turns contacts on and off.
(WCS) - Specifies only one point.
Write contact area
(WCP) - Specifies multiple contacts.
(WCC) - Specifies a range in word units.
Read data area RD Reads the contents of a data area.
Write data area WD Writes data to a data area.
Read timer/counter set value area RS Reads the value set for a timer/counter.
Write timer/counter set value area WS Writes a timer/counter setting value.
Read timer/counter elapsed value area RK Reads the timer/counter elapsed value.
Write timer/counter elapsed value area WK Writes the timer/counter elapsed value.
Register or Reset contacts monitored MC Registers the contact to be monitored.
Register or Reset data monitored MD Registers the data to be monitored.
Monitors a registered contact or data using the
Monitoring start MG
code “MC or MD”.
Embeds the area of a specified range in a 16-
Preset contact area (fill command) SC
point on and off pattern.
Writes the same contents to the data area of a
Preset data area (fill command) SD
specified range.
Read system register RR Reads the contents of a system register.
Write system register WR Specifies the contents of a system register.
Reads the specifications of the programmable
Read the status of PLC RT
controller and error codes if an error occurs.
Switches the operation mode of the
Remote control RM
programmable controller.
Abort AB Aborts communication.
15-80
15.6 Hexadecimal/Binary/BCD
BCD data
Decimal Hexadecimal Binary data
(Binary Coded Decimal)
0 0000 00000000 00000000 0000 0000 0000 0000
1 0001 00000000 00000001 0000 0000 0000 0001
2 0002 00000000 00000010 0000 0000 0000 0010
3 0003 00000000 00000011 0000 0000 0000 0011
4 0004 00000000 00000100 0000 0000 0000 0100
5 0005 00000000 00000101 0000 0000 0000 0101
6 0006 00000000 00000110 0000 0000 0000 0110
7 0007 00000000 00000111 0000 0000 0000 0111
8 0008 00000000 00001000 0000 0000 0000 1000
9 0009 00000000 00001001 0000 0000 0000 1001
10 000A 00000000 00001010 0000 0000 0001 0000
11 000B 00000000 00001011 0000 0000 0001 0001
12 000C 00000000 00001100 0000 0000 0001 0010
13 000D 00000000 00001101 0000 0000 0001 0011
14 000E 00000000 00001110 0000 0000 0001 0100
15 000F 00000000 00001111 0000 0000 0001 0101
16 0010 00000000 00010000 0000 0000 0001 0110
17 0011 00000000 00010001 0000 0000 0001 0111
18 0012 00000000 00010010 0000 0000 0001 1000
19 0013 00000000 00010011 0000 0000 0001 1001
20 0014 00000000 00010100 0000 0000 0010 0000
21 0015 00000000 00010101 0000 0000 0010 0001
22 0016 00000000 00010110 0000 0000 0010 0010
23 0017 00000000 00010111 0000 0000 0010 0011
24 0018 00000000 00011000 0000 0000 0010 0100
25 0019 00000000 00011001 0000 0000 0010 0101
26 001A 00000000 00011010 0000 0000 0010 0110
27 001B 00000000 00011011 0000 0000 0010 0111
28 001C 00000000 00011100 0000 0000 0010 1000
29 001D 00000000 00011101 0000 0000 0010 1001
30 001E 00000000 00011110 0000 0000 0011 0000
31 001F 00000000 00011111 0000 0000 0011 0001
. . . .
. . . .
. . . .
63 003F 00000000 00111111 0000 0000 0110 0011
. . . .
. . . .
. . . .
255 00FF 00000000 11111111 0000 0010 0101 0101
. . . .
. . . .
. . . .
9999 270F 00100111 00001111 1001 1001 1001 1001
15-81
15.7 ASCII Codes
15-82
Record of changes
Manual No. Date Desceiption of changes