Programmable Controllers: User's Manual
Programmable Controllers: User's Manual
FP0R
Users Manual
ACGM0475V3EN
This manual and everything described in it are copyrighted. You may not
copy this manual, in whole or part, without written consent of Panasonic
Electric Works Europe AG (PEWEU).
Please direct support matters and technical questions to your local Pana-
sonic representative.
Limited warranty
DANGER
WARNING
CAUTION
NOTICE
Indicates a property damage message.
specifications for the CPU types and expansion units of the FP0R
installation, wiring, and maintenance instructions
general programming information
troubleshooting information
an appendix with:
technical specifications
I/O allocation tables
memory area tables
system registers
unit dimensions
system instructions
special internal flags
data registers
system variables
memory area tables
programming examples
For documentation on other units used with the FP0R, please refer to the
hardware manual for that unit.
Operating environment
After installing the unit, make sure to use it within the range of the general
specifications:
Direct sunlight
Sudden temperature changes causing condensation
Inflammable or corrosive gases
Excessive airborne dust, metal particles or salts
Benzine, paint thinner, alcohol or other organic solvents or strong
alkaline solutions such as ammonia or caustic soda
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. Maintain at
least 100mm of space between these devices and the unit.
Static electricity
Before touching the unit or equipment, always touch some grounded metal
to discharge any static electricity you may have generated (especially in
dry locations). The discharge of static electricity can damage parts and
equipment.
Make sure the power supply of the CPU turns off before the power supply
for input and output. If the power supply for input and output is turned off
first, the CPU will detect the input fluctuations and may begin an unex-
pected operation.
When turning on the power for the first time, be sure to take the precau-
tions given below.
Procedure
To prevent the accidental loss of programs, the user should consider the
following measures:
The programming examples in this manual are designed for Control FPWIN
Pro. For FPWIN GR examples, please refer to: FP0R Users Manual
ARCT1F475E
These and other terms are explained in the Control FPWIN Pro Online Help
and Programming Manual.
Table of contents
1. Overview .................................................................................................................................. 15
1.1 Features ..........................................................................................................15
1.2 Unit types ........................................................................................................18
1.2.1 CPU .......................................................................................................18
1.2.2 FP0/FP0R I/O expansion units ...................................................................19
1.2.3 FP0 intelligent units .................................................................................20
1.2.4 FP series link units ...................................................................................20
1.2.5 Power supply unit ....................................................................................21
1.2.6 Accessories .............................................................................................21
1.3 Restrictions on unit combinations ........................................................................22
1.4 Programming tools ............................................................................................23
1.5 FP0 program compatibility..................................................................................24
3. Expansion ............................................................................................................................... 45
3.1 Expansion method ............................................................................................45
3.2 Expansion unit parts and functions ......................................................................46
3.3 Expansion input specifications ............................................................................47
3.4 Expansion output specifications ..........................................................................48
3.5 Terminal layout ................................................................................................51
6. Communication ...................................................................................................................... 87
6.1 Communication modes ...................................................................................... 87
6.1.1 Terminology in FPWIN Pro and FPWIN GR ................................................... 87
6.1.2 MEWTOCOL-COM master/slave ................................................................. 88
6.1.3 Program controlled communication ............................................................ 89
6.1.4 PLC Link ................................................................................................. 90
6.1.5 Modbus RTU master/slave ........................................................................ 91
6.2 Ports: names and principle applications ............................................................... 92
6.2.1 TOOL port............................................................................................... 92
6.2.2 COM port ................................................................................................ 93
6.2.3 USB port ................................................................................................ 93
6.2.3.1 Installing the USB driver .............................................................. 95
6.2.3.2 Communication with the programming tool .................................... 97
6.2.3.3 Reinstalling the USB driver .......................................................... 98
6.3 Communication specifications ............................................................................. 98
6.4 Communication parameters ............................................................................. 102
Chapter 1
Overview
1.1 Features
The FP0R is an ultra compact PLC (programmable logic controller) with
high-speed processing capabilities and a large memory capacity. The con-
troller uses the comprehensive F instruction set and is programmed with
Control FPWIN Pro or FPWIN GR. With Control FPWIN Pro, programming
according to IEC 61131-3 is possible.
The TOOL port supports USB 2.0 Full Speed and enables ultra high-speed
communication with programming tools. Large programs with up to 32k
steps can now be downloaded in as fast as 5s.
The unit's comment memory area is separate from the program area, and
can store I/O comments for 100 000 points. Program management and
maintenance is easy. Thanks to the separate comment area, programs can
now be developed without concern for comment memory capacity.
JOG operation
1 JOG operation
2 Number of pulses
3 Position control trigger input
Decelerated stop
1 Acceleration time
2 Deceleration time
The F32 type offers a battery-free automatic backup function for all opera-
tion memories (internal flags, data registers, timers/counters). Maintaina-
bility has been significantly improved, as there is no need to change a bat-
tery.
Enhanced security
FP0 compatibility
The FP0 compatibility mode enables programs that have been used on an
existing FP0 to be activated on the FP0R with no further modifications. Al-
so, since both units have an identical shape and terminal layout, there is
no need to check the installation space or change the wiring.
1.2.1 CPU
The operating voltage and the rated input voltage is 24V DC for all CPU
types.
1)
Type I/Os Output Connection COM port Product no.
C10 10 (6/4) Relay Terminal block AFP0RC10RS
RS232C AFP0RC10CRS
RS485 AFP0RC10MRS
C14 14 (8/6) AFP0RC14RS
RS232C AFP0RC14CRS
RS485 AFP0RC14MRS
C16 16 (8/8) Transistor (NPN): 0.2A MIL connector AFP0RC16T
Transistor (PNP): 0.2A AFP0RC16P
Transistor (NPN): 0.2A RS232C AFP0RC16CT
RS485 AFP0RC16MT
Transistor (PNP): 0.2A RS232C AFP0RC16CP
RS485 AFP0RC16MP
1)
Total number (input points/output points)
1)
Type I/Os Output Connection COM Product no.
port
C32 32 Transistor (NPN): MIL con- AFP0RC32T
(16/16) 0.2A nector
Transistor (PNP): AFP0RC32P
0.2A
Transistor (NPN): RS232C AFP0RC32CT
0.2A
RS485 AFP0RC32MT
Transistor (PNP): RS232C AFP0RC32CP
0.2A
RS485 AFP0RC32MP
T32 Transistor (NPN): RS232C AFP0RT32CT
(built-in 0.2A
RS485 AFP0RT32MT
battery)
Transistor (PNP): RS232C AFP0RT32CP
0.2A
RS485 AFP0RT32MP
F32 Transistor (NPN): RS232C AFP0RF32CT
(built-in 0.2A
RS485 AFP0RF32MT
FRAM)
Transistor (PNP): RS232C AFP0RF32CP
0.2A
RS485 AFP0RF32MP
1)
Total number (input points/output points)
1.2.6 Accessories
FP0R CPU
Q Expansion unit 1
W Expansion unit 2
E Expansion unit 3
C10 106
C14 110
C16 112
C32/T32/F32 128
Note Install the FP0 thermocouple unit to the right of other expansion
units. If it is installed on the left side, overall precision will dete-
riorate. For details, refer to the FP0 thermocouple unit manual.
Install the FP0 RTD unit to the right of the other expansion units.
Q Programming software
W RS232C programming cable or USB cable
Programming software
You can use the following programming software to program the FP0R:
PC connection cable
Instead of Panasonic's USB cable any commercial USB cable meeting the
above specifications may be used. The maximum permissible cable length
is 5m.
This allows you to make maximum use of FP0R performance and functions.
However, the following modifications to the FP0 program must be made
before downloading the program to the PLC:
1. Change the PLC type from FP0 to FP0R using the programming soft-
ware.
2. Since the system registers will be initialized when the PLC type is
changed, reconfigure the system registers if necessary.
3. Modify the programs according to the FP0R specifications if necessary.
The FP0 compatibility mode allows you to use existing FP0 programs as
they stand. With a few exceptions, the same specifications apply as for the
FP0.
To enter the FP0 compatibility mode, use your programming tool to down-
load the FP0 program. A confirmation message will appear, and the mode
will automatically change to the FP0 compatibility mode. The FP0 program
may either have been uploaded from an FP0 or it may have been created
on an FP0R in FP0 mode (PLC type is FP0).
Note Due to the FP0R's higher operation speed, the scan time in FP0
compatibility mode may be shorter than the original FP0 scan time.
If you require a scan time close to the original conditions, set a con-
stant scan time in the system registers or add a dummy program,
e.g. a loop operation, to increase the scan time.
An FP0 program can only run in FP0 compatibility mode, if the PLC types
(C10, C14, C16, C32, and T32) match exactly. FP0 compatibility mode is
not available for the F32 type FP0R.
The execution times for this instruction will vary, depending on the
number of write blocks.
No. of write blocks (words) FP0 [ms] FP0 compatibility mode [ms]
1 (64) 5 100
2 (128) 10 100
4 (256) 20 100
8 (512) 40 100
16 (1024) 80 100
32 (2048) 160 100
33 (2112) 165 200
41 (2624) 205 200
64 (4096) 320 200
96 (6144) 480 300
256 (16320) 800 800
FP0: 24 bits
FP0 compatibility mode: 32 bits
There are two differences between the FP0 and the FP0R specifications:
Count mode: The FP0R does not support the "no counting" setting. In-
stead, incremental counting is performed with the FP0 pulse output in-
structions set to "no counting".
Pulse width specification: In FP0 compatibility mode, the duty ratio is
fixed at 25%. Differing settings in the FP0 programs will be ignored.
Since the accuracy of real number calculation has been improved, the
calculation results obtained in the FP0 compatibility mode may differ
from the results obtained in the existing FP0 program.
8. If the secondary battery installed in the T32 type is out of charge, the
next power-on process will be different:
FP0: The value in the hold area of the data memory will be unstable.
FP0 compatibility mode: The value in the hold area of the data memory
will be cleared to 0.
Chapter 2
CPU types
Front view
LED Description
RUN (green) Lights when in RUN mode and indicates that the pro-
gram is being executed.
Flashes during forced input/output (RUN and PROG.
LEDs flash alternately).
PROG. (green) Lights when in PROG mode and indicates that operation
has stopped.
Flashes during forced input/output (RUN and PROG.
LEDs flash alternately).
ERROR/ALARM (red) Flashes when an error is detected by the self-diagnostic
function (ERROR).
Lights if a hardware error occurs, or if operation slows
because of the program, and the watchdog timer is
activated (ALARM).
When performing remote switching with the programming tool, the po-
sition of the operation mode selector and the actual operation mode
may differ. Verify the mode with the operation status LED. Otherwise,
restart the FP0R and set the operation mode using the operation mode
selector.
To use the USB port, you must install the USB driver (see p. 93).
T Input connector
U Output connector
P Expansion hook
Used to secure an expansion unit. The hook is also used for installation
on the flat type mounting plate (part no. AFP0804).
Used for easy attachment to a DIN rail. The lever is also used for in-
stallation on a slim type mounting plate. See "Using optional mounting
plates" on p. 61.
Item Description
Insulation method Optical coupler
Rated input voltage 24V DC
Operating voltage range 21.626.4V DC
Rated input current 2.6mA
Input points per common C10: 6
C14, C16: 8
C32, T32, F32: 16
(Either the positive or negative pole of the input
power supply can be connected to the common
terminal.)
Min. ON voltage/min. ON 19.2V DC/2mA
current
Max. OFF voltage/max. OFF 2.4V DC/1.2mA
current
Input impedance 9.1k
Response FALSE TRUE 20s (see note)
time An input time constant (0.1ms64ms) can be set
TRUE FALSE
using the system registers.
Operation indicator LEDs
Note This specification applies when the rated input voltage is 24V DC
and the temperature is 25C.
Keep the number of inputs per common which are simultaneously TRUE
within the following range as determined by the ambient temperature.
Q Internal circuit
R1 9.1k
R2 1k
Transistor types
These output specifications apply to the CPU types C32 and C28.
Item Description
NPN PNP
Insulation method Optical coupler
Output type Open collector
Rated load voltage 5V DC24V DC 24V DC
Operating load voltage range 4.7526.4V DC 21.626.4V DC
Max. load current 0.2A
Outputs per common C16: 8
C32, T32, F32: 16
OFF state leakage current 1A
ON state voltage drop 0.2V DC
Response time FALSE TRUE 20s (Load current: 5mA)
0.1ms (Load current: 0.5mA)
TRUE FALSE 40s (Load current: 5mA)
0.2ms (Load current: 0.5mA)
External power sup- Voltage 21.626.4V DC
ply for internal circuit
Current C16: 30mA C16:35mA
(+ and - terminals)
C32, T32, F32: C32, T32, F32:
60mA 70mA
Surge absorber Zener diode
Operation indicator LEDs
Keep the number of outputs per common which are simultaneously TRUE
within the following range as determined by the ambient temperature.
Item Description
Output type 1a output
Nominal switching capacity 2A 250V AC, 2A 30V DC (4.5A/common)
(resistive load)
Outputs per common C10: 2+1+1
C14: 4+1+1
Response FALSE TRUE 10ms
time
TRUE FALSE 8ms
Mechanical lifetime 20 000 000 operations (switching frequency: 180
operations/min)
Electrical lifetime 100 000 operations (switching frequency at nom-
inal switching capacity: 20 operations/min)
Surge absorber
Operation indicator LEDs
Q Internal circuit
Input
Output
Q Power supply
Input
Output
Q Power supply
C16T, C16CT
Input
Output
C16P, C16CP
Input
Output
The (+) terminals as well as the (-) terminals of the output circuits are
connected internally.
Input
Output
The (+) terminals as well as the (-) terminals of the output circuits are
connected internally.
Input
Output
The FP0R-F32 CPU has a built-in FRAM, which allows saving all data with-
out a backup battery. The FP0R-F32 type does not offer a clock/calendar
function.
The built-in backup battery is not charged when the unit is shipped. Charge
the battery sufficiently before use.
The number of days the backup battery remains effective (backup time)
depends on the charging time. If the battery has been fully charged (72
hours at an ambient temperature of 25C), the battery will function for ap-
prox. 50 days.
The backup time will vary according to the ambient temperature when the
battery is charged.
The life of the built-in backup battery varies depending on the ambient
temperature while the CPU is on (energized). The temperature when the
CPU is off (not powered) has little influence on the battery life.
Precision of clock/calendar
Timers/Counter (T/C)
Internal flags (R)
Data registers (DT)
Step ladders
Programs and system register settings will be held in the internal ROM re-
gardless of the built-in backup battery.
Procedure
NOTICE
If the battery is empty the data values in the hold area will become indefinite
during power-off. They are cleared to 0 the next time the power is turned on.
We recommend adding a program for checking if the data is set to 0 when the
power is turned on the next time.
Hour and minute data (DT90053) can only be read. All other data can be
read and written.
There are no default clock/calendar settings. There are two ways to set the
clock/calendar function:
Procedure
Using the programming software
Using a program
Note To access special data registers and special internal flags, use
the PLC-independent system variables. You can insert system
variables directly into the POU body: Use the "Variables" dialog
without entering a declaration in the POU header.
To set the clock/calendar, you can also use the instruction
SET_RTC_DT or SET_RTC_INT.
Please refer to the Control FPWIN Pro online help for details and a pro-
Reference
gramming example.
GVL
POU Header
LD Body
POU Header
LD Body
Chapter 3
Expansion
The expansion units are connected to the right side of the CPU. Use the
expansion connectors and the expansion hooks on the side of each unit.
See "Connecting FP0/FP0R expansion units" on p. 65.
W Input connector
R Output connector
Y Expansion hook
Used for easy attachment to a DIN rail. The lever is also used for in-
stallation on a slim type mounting plate. See "Slim type mounting
plate" on p. 61.
Keep the number of inputs per common which are simultaneously TRUE
within the following range as determined by the ambient temperature.
E32
Item Description
Output type 1a
Nominal switching capacity 2A 250V AC, 2A 30V DC (4.5A/common)
(resistive load)
Outputs per common E8R: 4
E16R/E8YR/E32RS: 8
Response FALSE TRUE 10ms
time
TRUE FALSE 8ms
Mechanical lifetime 20 000 000 operations (switching frequency:
180 operations/min)
Electrical lifetime 100 000 operations (switching frequency at
nominal switching capacity: 20 operations/min)
Surge absorber
Operation indicator LEDs
Q Internal circuit
Item Description
NPN PNP
Insulation method Optical coupler
Output type Open collector
Rated load voltage 5V DC24V DC 24V DC
Operating load voltage range 4.7526.4V DC 21.626.4V DC
Max. load current 0.3A/point (max. 1A/common) (0.1A for
FP0 unit)1)
Max. surge current 0.3A
Outputs per common E16T/E8Y: 8
E32/E16Y: 16
OFF state leakage current 100A
ON state voltage drop 1.5V
Response time FALSE TRUE 1ms
TRUE FALSE 1ms
External power supply Voltage 21.626.4V DC
for internal circuit
Current 3mA/point
Surge absorber Zener diode
Operation indicator LEDs
1)
All FP0 expansion units have been replaced by newer FP0R units with improved
specifications.
Keep the number of outputs per common which are simultaneously TRUE
within the following range as determined by the ambient temperature.
E32
E8RS, E8RM
Input
Output
Q Power supply
Output
Q Power supply
The (+) terminals as well as the (-) terminals of the output circuits are
connected internally.
E16P, E8YP
Output
E32P, E16YP
The (+) terminals as well as the (-) terminals of the output circuits are
connected internally.
Output
Chapter 4
I/O allocation
4.1 General
I/O allocation is performed automatically when an expansion unit is added
and is determined by the installation location. The I/O allocation of the
FP0R CPU is fixed.
On the FP0R and the FP0, the same numbers are used for inputs
and outputs, e.g. X20, Y20.
The usable I/O addresses depend on the unit type. See
"FP0/FP0R expansion units" on p. 56.
4.2 CPU
The I/O allocation of the FP0R CPU is fixed.
Note The data for each channel of the A/D and D/A conversion units
FP0-A80, FP0-TC4/TC8, FP0-A04V/I, and FP0-RTD6 is converted and
loaded with a user program that includes a switching flag to convert
the data in 16-bit words (see corresponding manuals).
Chapter 5
5.1 Installation
Please follow the installation instructions carefully to prevent failure or
malfunctions.
Operating environment
After installing the unit, make sure to use it within the range of the general
specifications:
Direct sunlight
Sudden temperature changes causing condensation
Inflammable or corrosive gases
Excessive airborne dust, metal particles or salts
Benzine, paint thinner, alcohol or other organic solvents or strong
alkaline solutions such as ammonia or caustic soda
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. Maintain at
least 100mm of space between these devices and the unit.
Static electricity
Before touching the unit or equipment, always touch some grounded metal
to discharge any static electricity you may have generated (especially in
dry locations). The discharge of static electricity can damage parts and
equipment.
Always install the CPU orientated with the TOOL port facing outward on
the bottom in order to prevent the generation of heat.
Q Upside-down
W Upside-down
E Input and output connectors face down
R Input and output connectors on top
T Horizontal installation of the unit
Do not install the unit above devices which generate heat such as heat-
ers, transformers or large-scale resistors.
Installation space
Leave at least 50mm of space between the wiring ducts of the unit and
other devices to allow heat radiation and unit replacement.
Q PLC
W Other device
E Panel door
Leave at least 100 mm of space from the CPU's front surface to allow
room for programming tool connections and wiring.
Procedure
Installation and removal of the unit is similar to the procedure using DIN
rails:
Installation: Removal:
When combining several mounting plates, tighten the screws after joining
all of the mounting plates to be connected. Tighten all corner screws.
Installation
Procedure
Removal
Procedure
A unit with an attached flat type mounting plate can also be installed side-
ways on a DIN rail.
Q DIN rail
Procedure
You can now add up to two more units in the same manner.
Interlock circuit
Provide an emergency stop circuit externally to turn off the power supply of
controlled devices in order to prevent a system shutdown or an irreparable
accident if a malfunction occurs.
Start-up sequence
The PLC should be operated only after all of the field devices are energized.
To ensure this sequence, the following measures are recommended:
Turn ON the PLC with the operation mode selector set to PROG mode,
and then switch to RUN mode
Program the PLC so as to disregard the inputs and outputs until the
field devices are energized
Note When stopping the operation of the PLC, have the input/output de-
vices turned off after the PLC has stopped operating.
Grounding
When installing the PLC next to devices that generate high voltages from
switching, such as inverters, do not ground them together. Use an exclu-
sive ground for each device.
The FP0R continues to operate normally for a certain period of time in case
of a momentary power failure. We call this the momentary power off time.
However, if the power failure exceeds this period of time, operation de-
pends on the combination of units, the power supply voltage, etc. In some
cases, operation mirrors a power supply reset.
For the momentary power off time values, see "General specifications" on
p. 231.
Q Brown: 24V DC
W Blue: 0V
E Green: function earth
Specifications
Note To minimize adverse effects from noise, twist the brown and blue
wires of the power supply cable.
To protect the system against faulty voltages from the power
supply line, use an insulated power supply with an internal pro-
tective circuit.
The regulator on the unit is a non-insulated type.
If using a power supply device without an internal protective cir-
cuit, always make sure power is supplied to the unit through a
protective element such as a fuse.
Insulate the wiring systems to the CPU, input/output devices, and mechan-
ical power apparatus.
Input/output devices
CPU
Q Circuit breaker
W Insulated DC power supply
Make sure the power supply of the CPU turns off before the power sup-
ply for input and output. If the power supply for input and output is
turned off first, the CPU will detect the input fluctuations and may begin
an unexpected operation.
Be sure to supply power to a CPU and an expansion unit from the same
power supply, and turn the power on and off simultaneously for both.
5.4.1 Grounding
If necessary, ground the instrument to increase the noise resistance.
Q PLC
W Other device (inverter etc.)
Example 1:
Since the power supply line of the FP0/FP0R expansion unit (24V DC and
0V terminal) is connected to the function earth through a varistor, the var-
istor may be shorted if there is an irregular potential between the power
supply line and function earth. (The power supply line of the FP0R is con-
nected to function earth through a high-voltage capacitor. Therefore, there
is no risk of a short-circuit.)
Example 2:
Do not ground the function earth terminal of the FP0R when grounding a
plus terminal (+) of the power supply.
CPU W Cable
Computer
Note Separate the input/output wires from the power and high voltage
wires by at least 100mm.
Be sure to select the thickness (diameter) of the input and out-
put wires while taking into consideration the required current
capacity.
Arrange the wiring so that the input and output wiring are sepa-
rated and so that these wirings are separated from the power
wiring as much as possible. Do not route them through the same
duct or wrap them up together.
Sink input:
Sensor
FP0R
Q Internal circuit
W Flag
E Power supply for sensor
R Power supply for input
T Input terminal
Source input:
Sensor
FP0R
Q Internal circuit
W Flag
E Power supply for sensor
R Power supply for input
T Input terminal
Sensor
FP0R
Q Internal circuit
W Output
E Power supply for input
R Input terminal
Sensor
FP0R
Q Internal circuit
W Output
E Power supply for input
R Input terminal
Sensor
FP0R
Q Internal circuit
W Output
E Power supply for input
R Input terminal
Sensor
FP0R
Q Internal circuit
W Output
E Power supply for input
R Input terminal
FP0R
Q LED
W Contact
E 21.6V
R Input terminal
If the input of the PLC does not turn off because of leakage current from
the two-wire type sensor (photoelectric sensor or proximity sensor), the
use of a bleeder resistor is recommended, as shown below.
FP0R
Q Internal circuit
W Bleeder resistor
E Input terminal
The off voltage of the input is 2.4V. Therefore, select a bleeder resistor
value R so that the voltage between the COM terminal and the input ter-
minal will be less than 2.4V.
Therefore:
If the input of the PLC does not turn off because of the leakage current
from the LED-equipped limit switch, the use of a bleeder resistor is rec-
ommended, as shown below.
FP0R
The OFF voltage of the input is 2.4V. Therefore, when the power supply is
24V, select the bleeder resistor R so that the current will be greater than
the result of this formula:
Do not connect a load that exceeds the maximum switching ability of the
output terminal.
When switching DC inductive loads with the relay output type, be sure to
connect a diode across the ends of the load.
FP0R
Q Output terminal
W Load
E Surge absorber, e.g. re-
sistance R: 50, capacitance
C: 0.47F
FP0R
Q Output terminal
W Load
E Varistor
FP0R
Q Output terminal
W Load
E Diode
FP0R
Q Output terminal
W Load
E Resistor
FP0R
Q Output terminal
W Load
E Inductor
Ordering information
Suitable wire
2
Size Cross-sectional area [mm ] Insulation thickness [mm] Rated current
AWG22 0.3 1.51.1mm 3A
AWG24 0.2
Optional cables
I/O cable with 40-pin MIL connector, colored wires according to AYT58406COLD
DIN 47100, 3m
Wiring method
The wire end can be directly crimped without removing the wire's insula-
tion, saving labor.
Procedure
4. When all wires have been inserted, fit semi-cover into place
Q Press the housing against the pressure connection tool so that the contact puller
pin comes in contact with this section.
Precautions
When removing the wire's insulation, be careful not to scratch the core
wire.
Do not twist the wires to connect them.
Do not solder the wires to connect them. The solder may break due to
vibration.
After wiring, make sure stress is not applied to the wire.
If the socket in the terminal block closes upon counter-clockwise rota-
tion, the connection is wrong. Disconnect the wire, check the terminal
hole, and then re-connect the wire.
Terminal block
Item Description
Number of pins 9
Manufacturer Phoenix Contact Co.
Model MC1,5/9-ST-3,5
Product no. 1840434
Suitable wire
2
Size Cross-sectional area [mm ]
AWG22 0.3
AWG2416 0.21.25
2
Cross-sectional area [mm ] Size
0.25 AWG24
0.50 AWG20
0.75 AWG18
1.00 AWG18
0.5 x 2 AWG20 (for 2 pieces)
Wiring method
Procedure
2. Insert the wire into the terminal block until it contacts the back of the
socket
Precautions
When removing the wire's insulation, be careful not to scratch the core
wire.
Do not twist the wires to connect them.
Do not solder the wires to connect them. The solder may break due to
vibration.
After wiring, make sure stress is not applied to the wire.
Terminal block
Item Description
Number of pins 3
Manufacturer Phoenix Contact Co.
Model MKDS1/3-3.5
Product no. 1751400
Suitable wire
2
Size Cross-sectional area [mm ]
AWG2816 0.081.25
When using a pole terminal, please refer to "Wiring the terminal block" on
p. 81.
Wiring method
Procedure
2. Insert the wire into the COM port until it contacts the back of the socket
Q Bridge the E terminal and the free (-) terminal on the first and on the last sta-
tion of the transmission line to terminate the data bus.
Note Wiring should extend from one station to the next. Never run two
wires from a single station to two other stations.
Q Cover
W Insulator
E Conductor
R Shield
Chapter 6
Communication
MEWTOCOL-COM Master/Slave
Program controlled
PLC Link (MEWNET-W0)
Modbus RTU Master/Slave
Communication ports
There is a master function and a slave function. The side that issues com-
mands is called master. The slave receives the commands, executes the
process and sends back responses. The slave answers automatically to the
commands received from the master, so no program is necessary on the
slave.
Typically, such a user program consists of sending and receiving the data.
The data to be sent and the data received are stored in data register areas
(DT) defined as send and receive buffers.
Link flag L0 for station #1 turns to TRUE. The status change is fed back to
Exam ple
the programs of the other stations, and Y0 of the other stations is set to
TRUE. A constant of 100 is written to link register LD0 of station #1. The
contents of LD0 in the other stations are also changed to a constant of
100.
For detailed information on the PLC Link communication mode, see "PLC
Reference
Link" on p. 141.
There is a master function and a slave function. The side that issues com-
mands is called master. The slave receives the commands, executes the
process and sends back responses. The slave answers automatically to the
commands received from the master, so no program is necessary on the
slave.
The Modbus protocol supports both ASCII mode and RTU binary mode.
However, the PLCs of the FP Series only support the RTU binary mode.
A commercial 5-pin mini DIN connector is used for the TOOL port on the
CPU.
The factory settings are shown below. They can be changed in the system
registers.
Set the station number for the TOOL port in the TOOL port setting area of
the system registers.
CPU types with a COM port for RS232C communication: C10CR, C14CR,
C16C, C32C, T32C, F32C
CPU types with a COM port for RS485 communication: C10MR, C14MR,
C16M, C32M, T32M, F32M
To use the USB port, you must install the USB driver.
Specifications
Item Description
Connector 5-pin Mini-B type
Standard (baud rate) USB 2.0 Full Speed
Communication mode MEWTOCOL-COM Slave
NOTICE
Install the programming tool before connecting the FP0R with a PC.
If you connect the FP0R to a PC with the USB cable before the programming tool
is installed or during installation, the USB driver will not be installed correctly.
The settings for the USB port are fixed and cannot be changed.
Connecting the PLCs with a personal computer using a USB cable enables
communication with our programming software.
This communication method uses the USB as a virtual serial port, i.e. the
FP0R connected via USB is treated by the PC as if connected via the COM
port. The COM port number of the COM port allocated for the USB is fixed
unless you change the number.
You need only perform the connection procedure the first time you estab-
lish the USB connection.
However, you must change the communication setting when switching be-
tween the USB and TOOL port connection.
System requirements
Windows2000
WindowsXP
WindowsVista
Windows7
USB driver
USB-COM conversion driver
Note For a PC with more than one connector, you may be requested to
reinstall these two drivers if the USB connectors' positions have
changed.
Procedure
The FP0R connected to the PC via USB is treated as if connected via a COM
port. It depends on your PC environment to which COM port the USB is al-
located. Therefore, it is necessary to confirm the COM port number.
Procedure
"CP210x USB to UART Bridge Controller (COM n)" is the COM port allo-
cated. COM9 is allocated in the following display.
Note If "? CP210x USB to UART Bridge Controller" appears in "Other de-
vices" or "Unknown device" is indicated, the installation has failed.
Reinstall the USB driver (see p. 98).
Procedure
Parameter Setting
Network type C-NET (RS232C, USB)
COM port COM port number allocated for the USB
Baud rate 115200bit/s
(Communicates with 115200bit/s when the USB is connected)
Data length 8 bits
Stop bit 1 bit
Parity Odd
Please refer to your programming tool's online help for information on the
Reference
COM port settings.
Also, reinstall the driver if the USB connection does not work well.
Procedure
TOOL port
Item Description
Interface RS232C
Transmission distance 15m
Baud rate 2400, 4800, 9600, 19200, 38400, 57600, 115200bit/s
Communication method Half-duplex
Synchronous method Start stop synchronous system
Communication format Data length: 7 bits/8 bits
Parity: None/Odd/Even
Stop bit: 1 bit/2 bits
End code: CR/CR+LF/None/ETX
Start code: No STX/STX
USB port
Item Description
Standard (baud rate) USB 2.0 Full Speed
Communication mode MEWTOCOL-COM Slave
Item Description
Interface RS232C
Transmission distance 15m
Baud rate 2400, 4800, 9600, 19200, 38400, 57600, 115200bit/s
Communication method Half-duplex
Synchronous method Start stop synchronous system
Communication format Data length: 7 bits/8 bits
Parity: None/Odd/Even
Stop bit: 1 bit/2 bits
End code: CR/CR+LF/None/ETX
Start code: No STX/STX
Data transmission order Transmits from bit 0 character by character.
Communication mode MEWTOCOL-COM Master/Slave
Modem connection
Program controlled
Modbus RTU Master/Slave
PLC Link
Item Description
Interface RS485
Connection mode 1:N
1)2)
Transmission distance 1200m
2)3)
Baud rate 19200, 115200bit/s
Communication method 2-wire, half-duplex
Synchronous method Start stop synchronous system
Transmission line Shielded twisted-pair cable or VCTF
Transmission MEWTOCOL-COM ASCII
code
Program controlled ASCII, Binary
Modbus RTU Binary
Communication format (set in sys- Data length: 7 bits/8 bits
tem registers) 4) Parity: None/Odd/Even
Stop bit: 1 bit/2 bits
End code: CR/CR+LF/None/ETX
Start code: No STX/STX
2) 5)
No. of connected stations 99 (32 with C-NET adapter)
Communication mode MEWTOCOL-COM Master/Slave
Modem connection
Program controlled
Modbus RTU Master/Slave
PLC Link
1)
The number of stations, transmission distance, and baud rate may vary de-
pending on the connected RS485 device.
2)
The values for the transmission distance, baud rate and number of stations
should be within the values noted in the following graph.
Note If the potential difference between the power supplies of RS485 de-
vices exceeds 4V, communication may fail because the RS485 port
is non-isolated. The large potential difference will damage the con-
nected devices.
Default settings
Use the programming tool to enter settings for the communication port in
the system registers.
Procedure
To make settings for the TOOL port, select "TOOL port" under "System
registers".
Communication mode
Station number
The priority for setting the station number is in the above order.
For details, please refer to the description of the SYS1 instruction in your
Reference
Programming Manual or in the FPWIN Pro online help.
Baud rate
The default baud rate for most ports is 9600bit/s. Select a value from
2400 to 115200bit/s.
Lower baud rates of 300, 600, and 1200bit/s can be specified using the
SYS1 instruction. However, this will not change the setting value of the
system register.
The setting must match the external device connected to the commu-
nication port.
When using the RS485 port, a baud rate of 19200bit/s or 115200 bit/s
is possible. Set the baud rate in the system registers and set the DIP
switch on the bottom of the unit to the same setting. Confirm the baud
rate setting before installation. The factory setting is 115200bit/s.
Q Unused
Default settings:
The setting must match the external device connected to the communica-
tion port.
MEWTOCOL-COM/ The end code setting must always be "CR", and the start code
Modbus RTU: setting must be "No STX".
PLC Link: The communication format settings are fixed.
Receive buffer
Note When the power is turned on, the communication mode selected
in the system registers is set.
It is not possible to change to Modbus RTU mode or PLC Link
mode during RUN mode.
6.5 MEWTOCOL-COM
This communication mode uses the proprietary MEWTOCOL-COM protocol
to exchange data between a master and one or more slaves. This is called
1:1 or 1:N communication. A 1:N network is also known as a C-NET.
There is a master function and a slave function. The side that issues com-
mands is called master. The slave receives the commands, executes the
process and sends back responses. The slave answers automatically to the
commands received from the master, so no program is necessary on the
slave.
The master can be a PLC or any external device supporting the master
function. To use the built-in master functionality of the PLC, select
MEWTOCOL-COM Master/Slave in the system registers and implement a
PLC program. The applicable instructions are F145_WRITE_DATA and
F146_READ_DATA.
The master function can be used for communication with all Panasonic de-
vices equipped with a MEWTOCOL-COM slave function, for example PLCs,
Imagecheckers, temperature controllers, or eco-power meters.
Q Master W Slave
The slave can be a PLC or any external device which supports the
MEWTOCOL-COM protocol. The slave automatically receives a command,
processes it and sends back a response. To use the built-in slave function-
ality of the PLC, select "MEWTOCOL-COM Master/Slave" in the system reg-
isters. For 1:N communication in a C-NET, the station number must be
specified in the system registers of the slave. No program is necessary on
the slaves.
The program for the master side must send and receive commands ac-
cording to the MEWTOCOL-COM protocol. MEWTOCOL-COM contains the
commands used to control and monitor the slave operation.
Q Master W Slave
Command message
All command-related items should be noted in the text segment. The sta-
tion number must be specified before sending the command.
Q Start code
Commands must always have a "%" (ASCII code: 16#25) or a "<" (ASCII
code: 16#3C) at the beginning of a message.
The FP0R supports an expansion start code ("<") to send single frames of up to
2048 characters. Using the start code "%", a maximum of 118 characters can
be sent in one frame.
W Station number
The station number of the slave to which you want to send the command must
be specified.
The range is 01 to 99 (decimal).
In 1:1 communication, the station number "01" (ASCII code: 16#3031) should
be specified.
E Text
The content differs depending on the command. The content should be noted in
all upper-case characters, following the fixed formula for the particular com-
mand.
The method for writing text segments in the message varies depending on the
type of command.
R Check code
Hexadecimal block check code (BCC) for error detection using horizontal parity.
The BCC should be created so that it targets all of the text data from the head-
er 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: 16#2A2A) in-
stead of the BCC.
T End code
Messages must always end with a "CR" (ASCII code: 16#0D).
Y Target address
Address of the target area to be read or written (e.g. internal flag R1)
U Data area
Specification of the number of points to be read or written (S = 1 point)
I Command name
e.g. RC, read contact area
O Command code
# (16#23) indicates that this is a command
Response message
The slave that received the command in the example above sends the
processing results to the computer.
Q Start code
A "%" (ASCII code: 16#25) or "<" (ASCII code: 16#3C) must be at the begin-
ning of a message. The response must start with the same start code as the
command.
W Station number
The station number of the slave that processed the command is stored here.
E Text
The content of this varies depending on the type of command. The value should
be read based on the content. If the processing is not completed successfully,
an error code will be stored here, so that the content of the error can be
checked.
R Check code
Hexadecimal block check code (BCC) 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.
T End code
There is always a "CR" (ASCII code: 16#0D) at the end of the message.
Y Data
For a read command, the data read is stored here.
6.5.3 Commands
communication mode
station number
baud rate
communication format
Note The end code setting must always be "CR", and the start code
setting must be "No STX".
The station number can be set within a range of 1 to 99.
With a C-NET adapter, a maximum of 32 stations can be speci-
fied.
The master function is only available via the COM port.
All ports can be used in FP0 compatibility mode. For the USB port, the set-
tings are fixed.
TOOL port
station number
modem connection (disable/enable)
communication format (sending data length)
baud rate
COM port
communication mode
station number
baud rate
communication format
modem connection (disable/enable)
The end code setting must always be "CR", and the start code setting
Note
must be "No STX".
Note The communication format and baud rate of the PLC should be set
to match the connected device.
Programming
Please refer to the "GT Series Technical Manual" for more information.
Reference
The computer and the PLCs communicate via commands and responses:
The computer sends a command specifying the station number, and the
PLC with that station number sends a response back to the computer.
Q The station number of the PLC to which the command is being sent is included
in the command message.
W The station number of the PLC sending a response is included in the response
message.
E Commercially available converter (also required for PLCs using the RS232C
port)
# Station number of PLC
Note
The communication format and baud rate of the PLC should be set to
match the connected device.
Lower baud rates of 300, 600, and 1200bit/s can be specified using the
SYS1 instruction. However, this will not change the setting value of the
system register.
When using the RS485 port, a baud rate of 19200bit/s or 115200 bit/s is
possible. Set the baud rate in the system registers and set the DIP switch
on the bottom of the unit to the same setting.
Programming
GVL
POU Header
In order to have consistent data in the master project and in the slave
project, the common data should be kept in the GVL of a common library.
LD Body
Please refer to the Control FPWIN Pro online help for detailed information.
Reference
Typically, such a user program consists of sending and receiving the data.
The data to be sent and the data received are stored in data register areas
(DT) defined as send and receive buffers.
Sending data
Sending includes generating the data for the send buffer and sending it
using the instructions SendCharacters, SendCharactersAndClearString, or
F159_MTRN. SendCharacters and SendCharactersAndClearString implicitly
use F159_MTRN. (See also "Sending data" on p. 124.) Sending data can be
controlled by the "transmission done" flag. (See also "Flag operation" on p.
133.)
1 PLC
2 Writing data into send buffer
3 Sending data using a send instruction
4 Device with RS232C port
The start and end codes specified in the system registers are automatically
added to the data sent. The maximum volume of data that can be sent is
2048 bytes.
Receiving data
Data is automatically received in the receive buffer (see p. 128). The re-
ceive buffer must be defined in the system registers. After the end of re-
ception has been verified, data can be copied into a specified target area of
the CPU. Receiving includes processing the data in the receive buffer and
preparing the system to receive further data. (See also "Receiving data" on
p. 126.)
1 PLC
2 Receiving data in receive buffer
3 Device with RS232C port
4 "Reception done" flag turns to TRUE
No end code is included in the data stored. The maximum volume of data
that can be received is 4094 bytes.
Note Program controlled mode is available via COM port and TOOL port.
1. Starting address
2. The capacity of the receive buffer (number of words)
Q Starting address
W Storage area for the number of bytes received
E Storage area for the data received
R Capacity
Incoming data is stored in the receive buffer. Start and end codes are not
stored in the receive buffer. The storage area for the data received starts
with the second word of the receive buffer (offset 1). Offset 0 contains the
number of bytes received. The initial value of offset 0 is 0.
FPWIN Pro: In order to use the data in the receive buffer, define a global
Note
variable having the same starting address and capacity.
The setting range for the receive buffer starting address is different for the
16k and the 32k type.
FP0R User's Manual 123
In the FP0 compatibility mode, only the COM port can be used.
communication mode
station number
baud rate
communication format
receive buffer starting address
receive buffer capacity
Please be aware that the setting ranges of the FP0 apply if the FP0R is used
in FP0 compatibility mode.
Note The end code setting must always be "CR", and the start code set-
ting must be "No STX".
Instruction Comment
SendCharacters Easy to use, fits most applications, may require
more data memory
SendCharactersAndClearString Like SendCharacters but works without send buff-
er, may require less data memory
F159_MTRN Original F instruction with complete set of param-
eters, additional transfer instruction required to
write data to send buffer
Method Comment
IsTransmissionDone Returns the value of the "transmission done"
flag. It turns to TRUE when the specified
number of bytes has been sent.
sys_bIsComPort1TransmissionDone These system variables turn to TRUE when
sys_bIsComPort2TransmissionDone the specified number of bytes has been sent.
sys_bIsToolPortTransmissionDone
Note When the specified number of bytes has been sent, the "trans-
mission done" flag turns to TRUE. Evaluation of the "transmission
done" flag may be useful in cases where no response can be ex-
pected, e.g. with broadcast messages.
Data cannot be sent unless the pin CS (Clear to Send) is on.
When connecting to a three-wire port, short-circuit the RS and
CS pins.
For details on the operation of the "reception done" flag, the "transmis-
Reference
sion done" flag, and the communication error flag see p. 133.
Bold numbers indicate the order of transmission. The storage area for the
data to be sent starts with the second word of the send buffer (offset 1).
Offset 0 contains the number of bytes to be sent. The maximum volume of
data that can be sent is 2048 bytes.
When the end code is received, the "reception done" flag turns to TRUE.
Reception of any further data is prohibited. The maximum volume of data
that can be received is 4094 bytes. No end code is included in the data
stored.
Method Comment
IsReceptionDone Returns the value of the "reception done" flag.
It is TRUE if the end code has been received.
IsReceptionDoneByTimeOut Used to verify the end of reception by
time-out, e.g. with binary data when no end
code is expected.
sys_bIsComPort1ReceptionDone These system variables turn to TRUE if the end
sys_bIsComPort2ReceptionDone code has been received.
sys_bIsToolPortReceptionDone
Direct evaluation of the receive
buffer.
Instruction Comment
ReceiveData Automatically copies data received by the CPU into the speci-
fied variable.
ReceiveCharacters Automatically copies characters received by the CPU into a
string variable.
F10_BKMV Transfers data from the receive buffer to a target area. Not
required with ReceiveData or ReceiveCharacters.
Instruction Comment
ClearReceiveBuffer The receive buffer is automatically reset when sending the
next data. To reset the receive buffer without sending any
F159_MTRN
data use one of these instructions.
(n_Number=0)
1. Starting address
2. The capacity of the receive buffer (number of words)
Q Starting address
W Storage area for the number of bytes received
E Storage area for the data received
R Capacity
Incoming data is stored in the receive buffer. Start and end codes are not
stored in the receive buffer. The storage area for the data received starts
with the second word of the receive buffer (offset 1). Offset 0 contains the
number of bytes received. The initial value of offset 0 is 0.
Procedure
Note In order to use the data in the receive buffer, define a global varia-
ble having the same starting address and capacity.
Processing data in receive buffer and preparing CPU to receive further data
In order to use the data in the receive buffer, define a global variable hav-
ing the same starting address and capacity. In this example, the starting
address is DT200 (VAR_GLOBAL DT200_awReceivedBuffer) and the receive
buffer capacity is 5 (ARRAY [0..4] OF WORD).
GVL
Data can be received from an external device if the "reception done" flag is
FALSE. The "reception done" flag is evaluated by the system variable
sys_bIsComPort1ReceptionDone. When the reception of the data is com-
plete (the end code has been received), the "reception done" flag turns to
TRUE, and subsequently, receiving data is prohibited. To prepare the sys-
tem to receive the next data without immediately sending further data, the
receive buffer is reset by executing F159_MTRN with n_Number = 0.
Note The status of the "reception done" flag may change while a scan
is being carried out. For example, if the flag is used more than
once as an input condition, different statuses may exist within
one scan. To ensure proper execution of the program, the status
of the special internal flag should be copied to a variable at the
beginning of the program.
The start code "STX" resets the receive buffer. Resetting the re-
ceive buffer sets the number of bytes received in offset 0 to 0
and moves the write pointer back to offset 1. The next data will
be stored starting at offset 1 and overwriting the existing data.
The format of the data in the send buffer depends on the data type of
the transmission data (e.g. STRING) and on the conversion function
used in the PLC program (e.g. F95_ASC). There is no conversion when
data in the send buffer is sent.
The start and end codes specified in the system registers are automati-
cally added to the data sent. The start code is added at the beginning,
the end code at the end of the send string. Do not include start or end
codes in the send string.
The format of the data in the receive buffer depends on the data format
used by the external device. Use a conversion function to convert the
data into the desired format, e.g. F27_AHEX.
Start and end codes in the data received are recognized if the corre-
sponding start and end codes have been specified in the system regis-
ters. Start and end codes are not stored in the receive buffer. The end
code serves as a reception done condition, i.e., the "reception done"
flag turns to TRUE when the end code is received. The start code resets
the receive buffer.
If "None" is selected for the start code, a start code is not added to the
data sent and is not recognized in the data received. Without start
code, the receive buffer can only be reset by executing ClearRe-
ceiveBuffer or F159_MTRN.
If "None" is selected for the end code, an end code is not added to the
data sent and is not recognized in the data received. Without end code,
the "reception done" flag does not turn to TRUE. The end of reception
Sometimes you do not want to send an end code, but need an end code in
the data received to set the "reception done" flag to TRUE. In this case,
select the desired end code in the system registers and execute
F159_MTRN specifying a negative number for n_Number.
POU Header
LD Body
The flags are special internal flags which turn to TRUE or to FALSE under
specific conditions. They can be evaluated using special functions or system
variables.
When the end code is received, the "reception done" flag turns to TRUE.
Reception of any further data is prohibited. F159_MTRN turns the "recep-
tion done" flag to FALSE.
The status of the "reception done" flag may change while a scan is being
carried out. For example, if the flag is used more than once as an input
condition, different statuses may exist within one scan. To ensure proper
execution of the program, the status of the special internal flag should be
copied to a variable at the beginning of the program.
When the specified number of bytes has been sent, the "transmission
done" flag turns to TRUE. New data may be sent or received. Any send in-
struction turns the "transmission done" flag to FALSE and no data can be
received.
4. When the specified number of bytes has been sent, the "transmission
done" flag turns to TRUE.
5. Characters E, F, and G received from the external device are stored in
the receive buffer.
Note Resetting the receive buffer sets the number of bytes received in
offset 0 to 0 and moves the write pointer back to offset 1. The next
data will be stored starting at offset 1 and overwriting the existing
data.
Receiving data:
3. Characters D and E received from the external device are stored in the
receive buffer.
4. When the end code is received, the "reception done" flag turns to TRUE.
Reception of any further data is prohibited. (Character F is not stored.)
5. When F159_MTRN is executed:
Note Resetting the receive buffer sets the number of bytes received in
offset 0 to 0 and moves the write pointer back to offset 1. The
next data will be stored starting at offset 1 and overwriting the
existing data.
If two start codes are received from the external device, data
following the second start code overwrites the data in the receive
buffer.
Sending data:
5. When the specified number of bytes has been sent, the "transmission
done" flag turns to TRUE.
6. Now, F159_MTRN can be executed again. When F159_MTRN is execut-
ed: Steps 1 to 5 are repeated. This time, the characters c, d, and e are
sent.
By default, the COM port is set to MEWTOCOL-COM mode. For 1:1 program
controlled communication, the system registers should be set as shown
below.
1 PLC
2 Sending data using a send instruction
3 Receiving data in receive buffer
By default, the COM port is set to MEWTOCOL-COM mode. For 1:N program
controlled communication, the system registers should be set as shown
below.
Sharing of data in a PLC link using dedicated send and receive areas
Link flag L0 for station #1 turns to TRUE. The status change is fed back to
Exam ple
the programs of the other stations, and Y0 of the other stations is set to
TRUE. A constant of 100 is written to link register LD0 of station #1. The
contents of LD0 in the other stations are also changed to a constant of
100.
The station number can be set within a range of 1 to 16. For details on set-
ting station numbers, see p. 102.
Note Make sure the same station number is not used for more than
one of the PLCs connected through the PLC Link function.
If there are fewer than 16 stations linked, set the highest station
number to reduce the link transmission cycle time. Station num-
bers should be set sequentially and consecutively, starting from
1, with no breaks between them. See "Setting the highest sta-
tion number for a PLC link" on p. 151.
Link areas consist of link flags and link registers and are divided into areas
for PLC link 0 and PLC link 1. A maximum of 1024 link flags (bits) and 128
link registers (words) can be used in the PLC link areas.
Unit: words
Q For PLC link 0: 1024 bits (1st half) Q For PLC link 0: 128 words (1st half)
W For PLC link 1: 1024 bits (2nd half) W For PLC link 1: 128 words (2nd half)
System registers
Note Use the SYS2 instruction to set the link area in RUN mode. Please
refer to the Control FPWIN Pro online help for detailed information.
You can either use PLC link 0 or PLC link 1. Set system register 46 to "Re-
verse" to use PLC link 1. See "PLC link 0 and 1 allocation setting" on p.
152.
When link areas are allocated as shown above, the send area of station no.
1 can be transmitted to the receive areas of stations no. 2, 3, and 4. Also,
the receive area of station no. 1 can receive data from the send areas of
stations no. 2 and 3. Station no. 4 is allocated as a receive area only and
can receive data from stations no. 1, 2, and 3, but cannot send data to
other stations.
When link areas are allocated as shown above, the send area of station no.
1 can be transmitted to the receive areas of stations no. 2, 3, and 4. Also,
the receive area of station no. 1 can receive data from the send areas of
stations no. 2 and 3. Station no. 4 is allocated as a receive area only and
can receive data from stations no. 1, 2, and 3, but cannot send data to
other stations.
Send area
Receive area
Name Name #1
40 Link flags - Send/receive area - Number of words shared by all linked 50
PLCs
42 Link flags - Send area - Start sending from this word address 20
43 Link flags - Send area - Number of words to send 20
With the above settings for station number 1, the 14 words (224 points)
consisting of WL50 to WL63 can be used as internal flags.
Send area
Receive area
Name Name #1
41 Link registers - Send/receive area - Number of words shared by all 100
linked PLCs
44 Link registers - Send area - Start sending from this word address 40
45 Link registers - Send area - Number of words to send 40
With the above settings for station number 1, the 28 words consisting of
LD100 to LD127 can be used as internal registers.
When sending data from the send area to the receive area of another PLC,
send and receive areas must match. In the example shown below, there is
an overlapping area between units no. 2 and 3, and this will cause an er-
ror, so that communication cannot be carried out.
Invalid allocations
The following allocations are not possible, neither for link flags nor for link
registers:
If there are fewer than 16 stations linked, set the highest station number
to reduce the link transmission cycle time. (The default value is 16.) Set
the same value for all PLCs in the link.
The highest station number is set using system register no. 47 for PLC link
0 or system register no. 57 for PLC link 1.
Sample settings
Q In the default setting ("Use PLC link 0"), the first half of the link relays and
link registers is used (WL0-WL63, LD0-LD127).
W In the default setting ("Use PLC link 0"), the second half of the link relays and
link registers is used (WL64-WL127, LD 128-LD225).
3 Set "Use PLC link 0" in the system registers.
4 Set "Use PLC link 1" in the system registers.
PLC link 0
PLC link 1
6.7.5 Monitoring
When using a PLC link, the operation status of the links can be monitored
using the flags below. In FPWIN Pro, choose Monitor Special flags and
registers PLC link status to view the status of each flag.
To monitor other PLC link status items, such as the transmission cycle time
and the number of times that errors have occurred, choose Monitor
PLC link status in FPWIN Pro.
Note To access special data registers and special internal flags, use the
PLC-independent system variables.
Before using the data from a different station in the network, check to
make sure the transmission assurance flag for this station is TRUE.
R9069 10 sys_bIsPlcLink0Station10Active
R906A 11 sys_bIsPlcLink0Statio11Active
R906B 12 sys_bIsPlcLink0Station12Active
R906C 13 sys_bIsPlcLink0Station13Active
R906D 14 sys_bIsPlcLink0Station14Active
R906E 15 sys_bIsPlcLink0Station15Active
R906F 16 sys_bIsPlcLink0Station16Active
The operation modes (RUN/PROG) can be checked for any given PLC.
FALSE:
if there are no transmission errors
The master station scan time should be confirmed using the programming
tool.
Tlc = 10 Ttx
Ttx = 1/transmission speed 1000 11ms 0.096ms at 115200bit/s
Twt = Initial value 400ms (can be changed using SYS1 instruction)
Tls = 7 Ttx
Ttx = 1/transmission speed 1000 11ms 0.096ms at 115200bit/s
Calculation example 1
Conditions: All stations have been added to a 16-unit link. Highest station
number = 16. Flags and registers have been evenly allocated. Scan time
for each PLC: 1ms.
Ttx = 0.096
Given the above conditions, the maximum value for the transmission time
(T) of one cycle will be: T max. = 7.82 16 + 4.32 + 1 = 130.44ms
Calculation example 2
Conditions: All stations have been added to a 16-unit link. Highest station
number = 16. Flags and registers have been evenly allocated. Scan time
for each PLC: 5ms.
Ttx = 0.096
Given the above conditions, the maximum value for the transmission time
(T) of one cycle will be: T max. = 11.82 16 + 4.32 + 5 = 198.44ms
Calculation example 3
Conditions: All but one station have been added to a 16-unit link. Highest
station number = 16. Flags and registers have been evenly allocated. Scan
time for each PLC: 5ms.
Ttx = 0.096
Note: The default value for the addition waiting time is 400ms.
Given the above conditions, the maximum value for the transmission time
(T) of one cycle will be: T max. = 11.82 15 + 4.13 + 5 + 407 =
593.43ms
Calculation example 4
Conditions: All stations have been added to an 8-unit link. Highest station
number = 8. Flags and registers have been evenly allocated. Scan time for
each PLC: 5ms.
Ttx = 0.096
Given the above conditions, the maximum value for the transmission time
(T) of one cycle will be: T max. = 16.43 8 + 2.79 + 5 = 139.23ms
Calculation example 5
Conditions: All stations have been added to a 2-unit link. Highest station
number = 2. Flags and registers have been evenly allocated. Scan time for
each PLC: 5ms.
Ttx = 0.096
Given the above conditions, the maximum value for the transmission time
(T) of one cycle will be: T max. = 44.072 2 + 1.632 + 5 = 94.776ms
Calculation example 6
Conditions: All stations have been added to a 2-unit link. Highest station
number = 2. 32 relays and 2 register words have been evenly allocated.
Scan time for each PLC: 1ms.
Ttx = 0.096
Given the above conditions, the maximum value for the transmission time
(T) of one cycle will be: T max. = 3.976 2 + 1.632 + 1 = 10.584ms
Note In the description, "stations that have been added" refers to sta-
tions which are connected between station no. 1 and the highest
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 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.
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.
Set SYS1 to change the waiting time for a link to be added to the PLC link
Exam ple
from the default value of 400ms to 100ms.
LD Body
Note If there are any stations 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 problems.
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 10ms.)
Set SYS1 to change the time that the PLC link transmission assurance is
Exam ple
off from the default value of 6.4s to 100ms.
LD Body
Note The Modbus protocol supports both ASCII mode and RTU binary
mode. However, the PLCs of the FP Series only support the RTU bi-
nary mode.
Write and read access to various slaves is possible using the F145 and
F146 instructions. Individual access to each slave as well as global trans-
mission is possible.
Q Master W Slave
After having received a command message from the master station, the
slave stations send back the response message based on the instructions
received. Do not execute the F145_WRITE and F146_READ instructions on
slave stations.
Q Master W Slave
The process for receiving a message is complete after all data has been
received and the time given in this table has been reached.
Supported commands
POU Header
In order to have consistent data in the master project and in the slave
project, the common data should be kept in the GVL of a common library.
LD Body
Chapter 7
7.1 Overview
Three built-in hardware extensions allow the FP0R to be used for position-
ing control and measurement: high-speed counting, pulse output, and PWM
(pulse-width modulation) output.
The high-speed counter function counts external inputs such as those from
sensors or encoders. When the count reaches the target value, this func-
tion turns the desired output to TRUE or to FALSE.
Q PLC
E Motor
R Roller
Counting Range
The counting range of the built-in high-speed counter is from -2 147 483
648 to 2 147 483 647 (32-bit binary number).
Q Maximum value
W Minimum value
Input numbers
1) 3)
Input mode No. of Channel Input Reset
2) 4)
phases no. input
Incremental 1 0 X0 X2
Decremental 1 X1 X2
2 X3 X5
3 X4 X5
4 X6
5 X7
Two-phase 2 0 X0, X1 X2
Incremental/decremental 2 X3, X4 X5
Incremental/decremental control
4 X6, X7
1)
For details on the different input modes, see p. 176.
2)
Channel 4 and channel 5 are not available for the C10 type.
3)
X4 and X7 can also be used as home inputs of the pulse output function. Set
the desired function in the system registers.
4)
Reset input X2 can be set to either channel 0 or channel 1. Reset input X5 can
be set to either channel 2 or channel 3.
Performance
The high-speed counter operating status, counting values, and control code
are stored in special internal flags and special data registers. The control
code contains the counter settings. To access special data registers and
special internal flags, use the PLC-independent system variables. You can
insert system variables directly into the POU body: Use the "Variables" di-
alog without entering a declaration in the POU header. See "Instructions
and system variables" on p. 179.
Related instructions
Note The pulse output function is only available with the transistor output
type.
Input/output numbers
Performance
Counter and pulse output settings as well as elapsed values are stored in
special data registers. The pulse output status is stored in special internal
flags. To access special data registers and special internal flags, use the
PLC-independent system variables. You can insert system variables directly
into the POU body: Use the "Variables" dialog without entering a declara-
tion in the POU header. See "Instructions and system variables" on p. 196.
Related instructions
Note The PWM output function is only available with the transistor output
type.
Output numbers
Performance
Control flags
The PWM output status is stored in special internal flags. To access special
data registers and special internal flags, use the PLC-independent system
variables. You can insert system variables directly into the POU body: Use
the "Variables" dialog without entering a declaration in the POU header.
See "PWM output function" on p. 216.
Related instructions
Note The maximum counting speed may be lower than the values indi-
cated in the table when the pulse output speed is changed, or when
a cam control, target value match on/off, or other interrupt pro-
grams are executed simultaneously.
1) 2)
No. Combination of high-speed Maximum counting speed (frequency) [kHz]
counter channels No pulse Pulse out- Pulse out- Pulse out- Pulse out-
output put, 1 put, 2 chan- put, 3 chan- put, 4 chan-
channel nels nels nels
1-phase 2-phase 1- 2- 1- 2- 1- 2- 1- 2- 1- 2-
phase phase phase phase phase phase phase phase phase phase
Channel
0 1 2 3 4 5 0 2 4
1 50 50 50 50 30
2 50 50 50 35 25
3 50 50 50 30 20
4 50 50 40 30 20
5 50 40 35 29 20
6 50 40 30 24 15
7 15 14 10 10 10
8 15 10 9 8 8
9 10 10 9 8 8
10 50 15 50 10 50 10 44 10 30 10
11 50 15 50 10 50 10 40 10 28 10
12 50 15 44 10 44 10 30 10 25 10
13 50 15 35 10 35 10 25 10 20 10
14 50 15 50 9 50 9 35 8 28 8
15 50 15 40 9 40 9 30 8 25 8
16 50 15 50 10 50 10 50 10 40 8
17 50 13 50 10 50 10 45 8 35 7
18 50 12 50 9 50 9 40 8 30 7
19 50 12 50 8 50 8 35 8 30 7
20 50 13 50 10 50 10 50 8 40 8
21 50 12 50 9 50 9 45 8 35 7
The maximum output frequency may be lower than the values indicated
Note
in the table when the pulse output speed is changed, when a target value
match on/off instruction, another pulse I/O process or interrupt program
is executed simultaneously.
Using channels independently: Even if all channels are used, the maximum
output frequency is 50kHz for all.
50
50
Channel is being used
Using linear interpolation control: Even if all channels are used for interpo-
lation, the maximum output frequency is 50kHz for all.
Procedure
Decremental input
The output to be turned to TRUE or to FALSE can be specified with the in-
structions F166_HighSpeedCounter_Set or Hsc_TargetValueMatch_Set and
F167_HighSpeedCounter_Reset or Hsc_TargetValueMatch_Reset. Outputs
can be specified from Y0 to Y7.
Use the target value match instructions to turn the desired output to TRUE
or to FALSE when the specified target value is reached. To turn the output
to TRUE, use F166_HighSpeedCounter_Set or Hsc_TargetValueMatch_Set.
To turn the output to FALSE, use F167_HighSpeedCounter_Reset or
Hsc_TargetValueMatch_Reset.
Enabling/disabling the reset input (hardware reset) of the high-speed counter (bit 2)
When bit 2 of the control code is set to TRUE, a hardware reset using the
reset input specified in the system registers is not possible. Counting will
continue even if the reset input has turned to TRUE. The hardware reset is
disabled until bit 2 is reset to 0.
When bit 1 of the control code is set to TRUE, counting is prohibited and
the elapsed value keeps its current value. Counting is continued when bit 1
is reset to FALSE.
Resetting the elapsed value (software reset) of the high-speed counter to 0 (bit 0)
When bit 0 of the control code is set to TRUE, a software reset is performed
and the elapsed value is set to 0. The elapsed value keeps the value 0 until
bit 0 is reset to FALSE.
Bits 015 of the control code are allocated in groups of four. The bit setting
in each group is represented by a hex number (e.g. 0002 0000 0000 1001
= 16#2009).
Example: 16#2009
Note Use the reset input setting (bit 2) to disable the reset input allocated
in the system registers.
Please refer to the Control FPWIN Pro online help for programming exam-
Reference
ples.
7.3.4.2 Writing and reading the elapsed value of the high-speed counter
The elapsed value is stored as a double word in the special data registers.
Please refer to the Control FPWIN Pro online help for programming exam-
Reference
ples.
F instruction: F166_HighSpeedCounter_Set
The PLC output turns to TRUE when the elapsed value matches the target
value. In addition, the high-speed counter control flag turns to FALSE and
the instruction is deactivated.
F instruction: F167_HighSpeedCounter_Reset
The PLC output turns to FALSE when the elapsed value matches the target
value. In addition, the high-speed counter control flag turns to FALSE and
the instruction is deactivated.
F instruction: F178_HighSpeedCounter_Measure
For input pulse measurement, the channel number, the counting period
(1ms5s) and the number of counting periods (15) must be specified.
These parameters are used to calculate the average number of input
pulses per counting period.
The unit of pulse period measurement ([s], [ms] or both) can be spec-
ified.
Please refer to the Control FPWIN Pro online help for details and a pro-
Reference
gramming example.
The Control FPWIN Pro projects in LD and ST code can be downloaded from
the Panasonic Web site
(http://www.panasonic-electric-works.com/eu/downloadcenter.htm).
These examples can be used with different PLC types. Therefore you have
to adapt the PLC type in the Control FPWIN Pro Navigator.
After you have changed the PLC type, a message appears: "Adapt System
Registers and Compile Options?" Select [Keep current settings], so that
you do not lose the system register settings set in the programming exam-
ple.
Encoder
Motor
Conveyor
Operation chart
x Number of pulses
y Speed
For POU Header and POU Body, please see the programming examples in
Reference
Panasonic's download area.
Motor
Conveyor
When X5 turns to TRUE, Y0 and Y1 turn to TRUE and the conveyor begins
to move. When the elapsed value (sys_diHscChannel0ElapsedValue)
reaches 4500, Y1 turns to FALSE and the conveyor begins to decelerate.
When the elapsed value reaches 5000, Y0 turns to FALSE and the conveyor
stops.
Operation chart
x Number of pulses
y Speed
System register settings
For POU Header and POU Body, please see the programming examples in
Reference
Panasonic's download area.
Note The pulse output function is only available with the transistor output
type.
When using the pulse output function, make sure the high-speed counter
function is not allocated to the channel selected for pulse output.
Procedure
CW/CCW
Pulse/direction
Forward FALSE
Control is carried out using one pulse output to specify the speed and an-
other to specify the direction of rotation with TRUE/FALSE signals. In this
mode, forward rotation is carried out when the rotation direction signal is
FALSE.
Forward TRUE
Control is carried out using one pulse output to specify the speed and an-
other to specify the direction of rotation with TRUE/FALSE signals. In this
mode, forward rotation is carried out when the rotation direction signal is
TRUE.
The number of pulses set with the target value is output. Positive values
result in a positive rotation, negative values in a negative rotation.
With a current position of 5000 and a target value of +1000, 1000 pulses
Exam ple
are output from CW to reach the new position at 6000.
A number of pulses equal to the difference between the set target value
and the current value are output. Values greater than the current value
result in a positive rotation, values smaller than the current value result in
a negative rotation.
With a current position of 5000 and a target value of +1000, 4000 pulses
Exam ple
are output from CCW to reach the new position at 1000.
The following outputs are TRUE or FALSE depending on the selected pulse
output method and position control mode:
Home return
After a drive system has been switched on, there is a difference between
the internal position value (elapsed value) and the mechanical position of
the axis; this difference cannot be predetermined. The internal value must
be synchronized with the actual position value of the axis. This is done by
means of a home return, during which a position value is registered at a
known reference point (home).
The deviation counter clear output can be set to TRUE when home return
has been completed.
JOG operation
Pulses are output from the specified channel while the trigger for the jog
operation instruction is TRUE. Direction output and output frequency are
specified with an instruction.
For the near home input, the desired contact must be allocated and bit 4 of
the special data register storing the pulse output control code
(sys_wHscOrPulseControlCode) must be set to TRUE and back to FALSE
again.
Set the control code for the trapezoidal control instruction to CW/CCW.
Using channel 0 2
PLC
Motor driver
Q Home input X4 X6
W Near home input (see note) e.g. X0 e.g. X1
E CW pulse output Y0 Y4
R CCW pulse output Y1 Y5
Note Any input that is not used for other applications can be used as the
near home input.
One output point is used as the pulse output and the other output is used
as the direction output.
Set the control code for the trapezoidal control instruction to pulse and di-
rection.
Using channel 0 2
PLC
Motor driver
Q Home input X2 X6
W Near home input (see note) e.g. X0 e.g. X1
E Pulse output Y0 Y4
R Direction output Y1 Y5
Any input that is not used for other applications can be used as the near
Note
home input.
The flag is TRUE if a pulse output instruction is being executed. Use this
flag to prohibit the simultaneous execution of other pulse output instruc-
tions on the specified channel, and to verify completion of the execution.
Note The status of the high-speed counter control flag or pulse output
control flag may change while a scan is being carried out. For exam-
ple, if the flag is used more than once as an input condition, differ-
ent statuses may exist within one scan. To ensure proper execution
of the program, the status of the special internal flag should be
copied to a variable at the beginning of the program.
1)
Channel no. Interpolation axis Pulse output Pulse output method
CW/CCW Pulse/direction
0 x Y0 CW Pulse
Y1 CCW Direction
1 y Y2 CW Pulse
Y3 CCW Direction
2 x Y4 CW Pulse
Y5 CCW Direction
3 y Y6 CW Pulse
Y7 CCW Direction
1)
For F175_PulseOutput_Linear
When programming with tool instructions: Use universal pulse control in-
structions which apply to all PLC types to make control code settings. Use
the pulse information instructions to monitor control code settings.
See also:
"Writing the pulse output control code" in the FPWIN Pro online help
The near home bit is retained. Set this bit to FALSE right after setting it to
TRUE to be able to set the near home input a second time during a home
return.
By setting bit 3 of the data register storing the pulse output control code
(sys_wHscOrPulseControlCode) to TRUE pulse output is stopped. The pos-
sibility of a forced stop should be provided for in every program using pulse
output instructions. Reset bit 3 to FALSE to continue pulse output.
Y* Pulse output
Q Elapsed value
W Bit 1 of pulse output control code (count)
When bit 1 of the control code is set to TRUE, counting is prohibited and
the elapsed value keeps its current value. Counting is continued when bit 1
is reset to FALSE.
Y* Pulse output
Q Elapsed value
W Bit 0 of pulse output control code (software reset)
When bit 0 of the control code is set to TRUE, a software reset is performed
and the elapsed value is set to 0. The elapsed value keeps the value 0 until
bit 0 is reset to FALSE.
To cancel execution of a pulse output instruction, set bit 2 of the data reg-
ister storing the pulse output control code (sys_wHscOrPulseControlCode)
to TRUE. The pulse output control flag will then change to FALSE. To reen-
able execution of the instruction, reset bit 2 to FALSE.
Bits 015 of the control code are allocated in groups of four. The bit setting
in each group is represented by a hex number (e.g. 0002 0001 0000 1001
= 16#2109).
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.
Setting the near home input is not possible if counting is prohib-
ited or if a software reset is performed.
Please refer to the Control FPWIN Pro online help for programming exam-
Reference
ples.
7.4.3.2 Writing and reading the elapsed value of the pulse output
The elapsed value is stored as a double word in the special data registers.
Please refer to the Control FPWIN Pro online help for programming exam-
Reference
ples.
F instruction: F166_PulseOutput_Set
The PLC output turns to TRUE when the elapsed value matches the target
value. In addition, the "Output control active" flag turns to FALSE and the
instruction is deactivated.
Please refer to the Control FPWIN Pro online help for details and a pro-
Reference
gramming example.
F instruction: F167_PulseOutput_Reset
The PLC output turns to FALSE when the elapsed value matches the target
value. In addition, the "Output control active" flag turns to FALSE and the
instruction is deactivated.
Please refer to the Control FPWIN Pro online help for details and a pro-
Reference
gramming example.
F instruction: F171_PulseOutput_Trapezoidal
Type 0: The difference between target speed and initial speed determines
the slope of the acceleration ramp. The difference between target speed
and final speed determines the slope of the deceleration ramp.
Type 1: The difference between the maximum speed of 50kHz and the final
speed determines the slope of the deceleration ramp. The difference be-
tween the maximum speed of 50kHz and the initial speed determines the
slope of the acceleration ramp.
Type 1: The speed can be changed within the range of the maximum speed
(50kHz).
Please refer to the Control FPWIN Pro online help for details and a pro-
Reference
gramming example.
Type 0: The speed can be changed within the range of the specified target
speed.
Type 1: The target speed can be changed once when the position control
trigger input turns to TRUE.
F instruction: F171_PulseOutput_Jog_Positioning
The target speed can be changed during pulse output. The speed can be
changed within the range of the specified target speed.
The target speed can be changed once when the position control trigger
input turns to TRUE.
Please refer to the Control FPWIN Pro online help for details and a pro-
Reference
gramming example.
F instruction: F172_PulseOutput_Jog
Mode with no target value (type 0): Pulses are output in accordance
with the conditions set in the DUT as long as the execution condition is
TRUE. A decelerated stop begins whenever the execution condition is
FALSE.
Target value match stop mode (type 1): Output stops when the target
value is reached. Set this mode in the control code, and specify the
FP0R User's Manual 211
target value (an absolute value) in the DUT. A decelerated stop is per-
formed when the target value has been reached. Deceleration is per-
formed within the specified deceleration time.
Please refer to the Control FPWIN Pro online help for details and a pro-
Reference
gramming example.
F instruction: F174_PulseOutput_DataTable
Pulses are output at the specified frequency until the target value is
reached. Then the frequency changes to the second frequency value
and pulse output continues until the second target value is reached, and
so forth.
Pulse output stops when the last target value is reached.
Please refer to the Control FPWIN Pro online help for details and a pro-
Reference
gramming example.
F instruction: F175_PulseOutput_Linear
The two axes are controlled so that a linear path is followed to the target
position.
Please refer to the Control FPWIN Pro online help for details and a pro-
Reference
gramming example.
After a drive system has been switched on, there is a difference between
the internal position value (elapsed value) and the mechanical position of
the axis; this difference cannot be predetermined. The internal value must
be synchronized with the actual position value of the axis. This is done by
means of a home return, during which a position value is registered at a
known reference point (home).
F instruction: F177_PulseOutput_Home
Please refer to the Control FPWIN Pro online help for details and a pro-
Reference
gramming example.
The PWM output status is stored in special internal flags. To access special
data registers and special internal flags, use the PLC-independent system
variables. You can insert system variables directly into the POU body: Use
the "Variables" dialog without entering a declaration in the POU header.
When using the PWM output function, specify the desired PWM output in
the system registers.
Procedure
Please refer to the Control FPWIN Pro online help for details and a pro-
Reference
gramming example.
Chapter 8
Security functions
The LEDs in the dialog display the PLC's current protection status. To dis-
play a tool tip, hold the cursor over the LED for approximately 2s.
NOTICE
Data can be lost permanently - even if you know the password!
When using this function, be sure to back up your programs! The
program on your PLC will not be recoverable, either by a person
knowing the password or by customer support.
You can cancel the setting for this function using FPWIN Pro. However, all
programs, system registers and password information will be deleted!
If upload protection is enabled, you can edit files on the PLC while online
using FPWIN Pro. However, programs will be corrupted if the program in
FPWIN Pro and the program on the PLC are not identical.
Note Even if upload protection has been set, upload to the FP Memory
Loader is possible. If you are using FP Memory Loader version 2 or
higher, you can enable or disable program upload to the FP Memory
Loader or program transfer between two PLCs using the FP Memory
Loader. For details, see "FP Memory Loader" on p. 220.
To access a PLC for which a password has been set, a login is required
whenever the power is turned on.
NOTICE
Be sure to memorize your password. Without the password, you
will not be able to read programs on password-protected PLCs.
If you have forgotten your password, our support team will not
be able to reset it for you.
If you are not logged in, [Clear Password] will erase not only the
password but also the program and parameters stored in the
PLC's comment memory.
For details, please refer to the description of the SYS1 instruction in your
Reference
Programming Manual or in the FPWIN Pro online help.
Upload protection
Download protection
Procedure
When defining security settings for the first time, choose [Set Protec-
tion].
To change existing security settings, choose [Change Protection].
Procedure
2. Select "Allow download to PLC only if password in the PLC is the same"
3. Enter the password
4. Choose [Set Protection] or [Change Protection]
When defining security settings for the first time, choose [Set Protec-
tion].
To change existing security settings, choose [Change Protection].
NOTICE
During program download from the FP Memory Loader to a target
PLC, the password set on the source PLC may be changed.
The password on the source PLC may be changed under the following con-
ditions:
Chapter 9
Other functions
Writing can be performed up to 10000 times. After that, the correct opera-
tion cannot be guaranteed.
If the power supply turns off while the instruction P13_EPWT is being ex-
ecuted or during online editing, data in the hold area may be lost.
For details, please refer to the online help of Control FPWIN Pro.
Reference
For details, please refer to the online help of Control FPWIN Pro.
Reference
To set the time constants, use the system registers or the instruction
F182_FILTER.
For details, please refer to the online help of Control FPWIN Pro.
Reference
Time constants can be set for the following inputs, depending on the CPU
type:
Chapter 10
Troubleshooting
Procedure
Exam ple
Procedure
Note If the operation mode selector has been set to RUN, the error is
cleared and at the same time operation is enabled. However, the
error continues to be displayed unless the cause of the error has
been eliminated.
When an operation error (error code 45) occurs, the address at
which the error occurred is stored in special data registers
DT90017 (sys_iOperationErrorStepHold) and DT90018
(sys_iOperationErrorNonHold). If this happens, monitor the ad-
dress at which the error occurred before cancelling the error.
Set the mode selector of the PLC from RUN to PROG mode and turn the
power off and then on.
Set the mode selector from PROG to RUN mode. If the ERROR/ALARM
LED turns on, the program execution time is too long.
If the LEDs on the CPU turn on at this moment, increase the capacity
of the power supply or prepare another power supply for other de-
vices.
Please contact your dealer for further information.
If the output status LED is turned ON, you must check the input side.
If the output status LED remains OFF, there is probably an abnormal-
ity with the outputs.
Check for duplicate output errors and for outputs having been re-
written by high-level instructions.
Check the program flow when instructions such as MC or JP are used.
Check if the I/O map agrees with the actual mounting status.
To access a PLC for which a password has been set, a login is required
whenever the power is turned on.
Procedure
NOTICE
If you are not logged in, [Clear Password] will erase not only the
password but also the program and parameters stored in the PLC's
comment memory.
Chapter 11
Appendix
11.1 Specifications
Item Description
Rated operating voltage 24V DC
Operating voltage range 20.428.8V DC
Momentary C10, C14, 5ms at 20.4V, 10ms at 21.6V
power off C16
time
C32, T32, 10ms at 20.4V
F32
Fuse Built-in (cannot be replaced)
Ambient temperature 0+55C
Storage temperature -40+70C (T32: -20+70C)
Ambient humidity 10%95% RH (at 25C, non-condensing)
Storage humidity 10%95% RH (at 25C, non-condensing)
Breakdown voltage Transistor Relay
(Cutoff current: 5mA) types types
Input terminals Output ter- 500V AC 1500V AC
minals for 1min for 1min
Output terminals Output 1500V AC
terminals (of different COM for 1min
terminals)
Input terminals Power sup- 500V AC 500V AC
ply terminal/Function earth for 1min for 1min
Output terminals Power 500V AC 1500V AC
supply terminal/Function earth for 1min for 1min
Function earth Power supply 500V AC 500V AC
terminal/ for 1min for 1min
Insulation resistance Input terminals Output ter- Min. Min.
(measured with a 500V minals 100M 100M
DC megger)
Output terminals Output Min.
terminals (of different COM 100M
terminals)
Input terminals Power sup- Min. Min.
ply terminal/Function earth 100M 100M
Output terminals Power Min. Min.
supply terminal/Function earth 100M 100M
Function earth Power supply Min. Min.
terminal/ 100M 100M
Vibration resistance 59Hz, 1 sweep/min, amplitude of 3.5mm
9150Hz, 1 sweep/min, constant acceleration of
9.3m/s2, 10min on 3 axes (in X, Y, and Z direction)
Shock resistance 147m/s2, 4 times on 3 axes (in X, Y, and Z direction)
Item Description
Noise immunity (Power 1000Vp-p, with pulse widths 50ns and 1s (based on
supply terminal) in-house measurements)
Operation conditions Free from corrosive gases and excessive dust
Overvoltage category II
Pollution degree 2
Weight C10: 100g, C14: 105g, C16: 85g, C32: 115g, T32:
115g, F32: 120g
4)
All memory areas including timers/counters, internal flags, link flags, link reg-
isters and data registers can be backed up. Areas to be held and not to be held
can be specified in the system registers.
5)
The built-in backup battery is not charged when the unit is shipped. Charge the
battery sufficiently before use.
The battery does not have an alarm function when it is running low. If the bat-
tery is empty the data values in the hold area will become indefinite during
power-off. They are cleared to 0 the next time the power is turned on. We
recommend adding a program for checking if the data is set to 0 when the
power is turned on the next time.
6)
Precision: at 0C: error <104s/month; at 25C: error <51s/month; at 55C:
error <155s/month
TOOL port
Item Description
Interface RS232C
Transmission distance 15m
Baud rate 2400, 4800, 9600, 19200, 38400, 57600, 115200bit/s
Communication method Half-duplex
Synchronous method Start stop synchronous system
Communication format Data length: 7 bits/8 bits
Parity: None/Odd/Even
Stop bit: 1 bit/2 bits
End code: CR/CR+LF/None/ETX
Start code: No STX/STX
Data transmission order Transmits from bit 0 character by character.
Communication mode MEWTOCOL-COM Slave
Modem connection
Program controlled (in RUN mode only)
USB port
Item Description
Standard (baud rate) USB 2.0 Full Speed
Communication mode MEWTOCOL-COM Slave
Item Description
Interface RS232C
Transmission distance 15m
Baud rate 2400, 4800, 9600, 19200, 38400, 57600, 115200bit/s
Communication method Half-duplex
Synchronous method Start stop synchronous system
Communication format Data length: 7 bits/8 bits
Parity: None/Odd/Even
Stop bit: 1 bit/2 bits
End code: CR/CR+LF/None/ETX
Start code: No STX/STX
Data transmission order Transmits from bit 0 character by character.
Communication mode MEWTOCOL-COM Master/Slave
Modem connection
Program controlled
Modbus RTU Master/Slave
PLC Link
Item Description
Interface RS485
Connection mode 1:N
1)2)
Transmission distance 1200m
2)3)
Baud rate 19200, 115200bit/s
Communication method 2-wire, half-duplex
Synchronous method Start stop synchronous system
Transmission line Shielded twisted-pair cable or VCTF
Transmission MEWTOCOL-COM ASCII
code
Program controlled ASCII, Binary
Modbus RTU Binary
Communication format (set in Data length: 7 bits/8 bits
system registers) 4) Parity: None/Odd/Even
Stop bit: 1 bit/2 bits
End code: CR/CR+LF/None/ETX
Start code: No STX/STX
2) 5)
No. of connected stations 99 (32 with C-NET adapter)
Communication mode MEWTOCOL-COM Master/Slave
Modem connection
Program controlled
Modbus RTU Master/Slave
PLC Link
1)
The number of stations, transmission distance, and baud rate may vary de-
pending on the connected RS485 device.
2)
The values for the transmission distance, baud rate and number of stations
should be within the values noted in the following graph.
Note If the potential difference between the power supplies of RS485 de-
vices exceeds 4V, communication may fail because the RS485 port
is non-isolated. The large potential difference will damage the con-
nected devices.
Default settings
11.2 Dimensions
FP0RC10CRS/14CRS, FP0RC10RS/14RS
FP0R-E8RS
FP0R-E16RS.
FP0RC16CT/P, FP0RC16T/P
FP0R-E32T, FP0R-E32P
FP0R-E16X, FP0R-E16YT, FP0R-E16YP, FP0R-E16T, FP0R-E16P
FP0R-E8X, FP0R-E8YT, FP0R-E8YP
FP-PS24-024E/FP-PS24-060E/FP-PS24-120E
FP0R CPUs
The data for each channel of the A/D and D/A conversion units FP0-A80,
Note
FP0-TC4/TC8, FP0-A04V/I, and FP0-RTD6 is converted and loaded with a
user program that includes a switching flag to convert the data in 16-bit
words (see corresponding manuals).
Flags [bits]
However, MEWNET-W0 PLC link settings, input settings, TOOL and COM
port communication settings become effective when the mode is changed
from PROG to RUN. With regard to the modem connection setting, when
the power is turned off and on or when the mode is changed from PROG to
RUN, the PLC sends a command to the modem which enables it for recep-
tion.
After an initialization with Online Clear PLC, all system register values
(parameters) set will be reset to their default values.
Use these system registers to specify the hold area start addresses for
flags and registers. Hold areas are not cleared to 0 when the PLC is
switched to PROG mode or when the power is turned off.
The memory area for timer flags and counter flags is partitioned using sys-
tem register no. 5. Specify the start address for the counter flags.
Set the operation mode to be chosen after errors such as an operation er-
ror, a battery error, or an I/O verification error.
Set the waiting time before an error is output. You can also specify a con-
stant scan time.
These settings are for using link flags and link registers in MEWNET-W0
PLC link communication. Note that PLC Link is not the default setting.
When using the high-speed counter function, pulse catch function or inter-
rupt function, set the operation mode and the input number to be used for
the function.
Set a time constant for the CPU inputs. These time constants can be useful
to negate the effects of noise or bouncing, e.g. for a switching device.
Set these registers when the TOOL port and COM ports 1 and 2 ports are to
be used for MEWTOCOL-COM Master/Slave connections, program controlled
communication, PLC link, and modem communication. Note that the default
setting is MEWTOCOL-COM Master/Slave.
Procedure
Downloading project and system registers
Procedure
Downloading system registers only
Memory size
Hold on/off 1)
Act on error
Time-Out
PLC Link
If the same input has been set as high-speed counter input, pulse
Note
catch input or interrupt input, the following order of precedence is ef-
fective: High-speed counter Pulse catch Interrupt.
If reset input settings overlap for channel 0 and channel 1, the channel
1 setting takes precedence. If reset input settings overlap for channel 2
and channel 3, the channel 3 setting takes precedence.
The settings for pulse catch inputs and interrupt inputs can only be
specified in the system registers.
CPU outputs which have been specified as pulse output or PWM output
Note
cannot be used as normal outputs.
The output numbers for the deviation counter clear signal, which can
be used with the home return function, are fixed for each channel.
For C16: Channel 0 = Y6, channel 1 = Y7
For C32/T32/F32: Channel 0 = Y8, channel 1 = Y9, channel 2 = YA,
channel 3 = YB
If used for the deviation counter clear signal, these outputs are not
available as pulse outputs.
Time Constants
TOOL Port
COM Port
Note In Control FPWIN Pro, these errors are detected by the compiler.
Therefore, they are not critical.
For details, please refer to the online help of Control FPWIN Pro.
Reference
ANY BOOL INT, UINT, DINT, UDINT, DWORD, REAL, DATE, TOD, STRING
WORD DT
ANY_NOT_BOOL INT, UINT, DINT, UDINT, DWORD, REAL, DATE, TOD,
WORD DT
ANY_NUM INT, UINT DINT, UDINT, REAL
ANY_INT INT, UINT DINT, UDINT
ANY_BIT BOOL WORD DWORD
ANY_BIT_NOT_BOOL WORD DWORD
ANY_DATE DATE, TOD, DT
11.9 Hexadecimal/binary/BCD
Decimal Hexadecimal Binary data BCD data
(Binary Coded Decimal)
0 0000 0000 0000 0000 0000 0000 0000 0000 0000
1 0001 0000 0000 0000 0001 0000 0000 0000 0001
2 0002 0000 0000 0000 0010 0000 0000 0000 0010
3 0003 0000 0000 0000 0011 0000 0000 0000 0011
4 0004 0000 0000 0000 0100 0000 0000 0000 0100
5 0005 0000 0000 0000 0101 0000 0000 0000 0101
6 0006 0000 0000 0000 0110 0000 0000 0000 0110
7 0007 0000 0000 0000 0111 0000 0000 0000 0111
8 0008 0000 0000 0000 1000 0000 0000 0000 1000
9 0009 0000 0000 0000 1001 0000 0000 0000 1001
10 000A 0000 0000 0000 1010 0000 0000 0001 0000
11 000B 0000 0000 0000 1011 0000 0000 0001 0001
12 000C 0000 0000 0000 1100 0000 0000 0001 0010
13 000D 0000 0000 0000 1101 0000 0000 0001 0011
14 000E 0000 0000 0000 1110 0000 0000 0001 0100
15 000F 0000 0000 0000 1111 0000 0000 0001 0101
16 0010 0000 0000 0001 0000 0000 0000 0001 0110
17 0011 0000 0000 0001 0001 0000 0000 0001 0111
18 0012 0000 0000 0001 0010 0000 0000 0001 1000
19 0013 0000 0000 0001 0011 0000 0000 0001 1001
20 0014 0000 0000 0001 0100 0000 0000 0010 0000
21 0015 0000 0000 0001 0101 0000 0000 0010 0001
22 0016 0000 0000 0001 0110 0000 0000 0010 0010
23 0017 0000 0000 0001 0111 0000 0000 0010 0011
24 0018 0000 0000 0001 1000 0000 0000 0010 0100
25 0019 0000 0000 0001 1001 0000 0000 0010 0101
26 001A 0000 0000 0001 1010 0000 0000 0010 0110
27 001B 0000 0000 0001 1011 0000 0000 0010 0111
28 001C 0000 0000 0001 1100 0000 0000 0010 1000
29 001D 0000 0000 0001 1101 0000 0000 0010 1001
30 001E 0000 0000 0001 1110 0000 0000 0011 0000
31 001F 0000 0000 0001 1111 0000 0000 0011 0001
63 003F 0000 0000 0011 1111 0000 0000 0110 0011
255 00FF 0000 0000 1111 1111 0000 0010 0101 0101
9999 270F 0010 0111 0000 1111 1001 1001 1001 1001