Manual Fpsigma
Manual Fpsigma
WARNING
If critical situations that could lead to user’s death or serious injury is assumed by
mishandling of the product.
-Always take precautions to ensure the overall safety of your system, so that the whole
system remains safe in the event of failure of this product or other external factor.
-Do not use this product in areas with inflammable gas. It could lead to an explosion.
-Exposing this product to excessive heat or open flames could cause damage to the lithium
battery or other electronic parts.
-Battery may explode if mistreated. Do not recharge, disassemble or dispose of fire.
CAUTION
If critical situations that could lead to user’s injury or only property damage is
assumed by mishandling of the product.
-To prevent excessive exothermic heat or smoke generation, use this product at the values
less than the maximum of the characteristics and performance that are assured in these
specifications.
-Do not dismantle or remodel the product. It could cause excessive exothermic heat or smoke
generation.
-Do not touch the terminal while turning on electricity. It could lead to an electric shock.
-Use the external devices to function the emergency stop and interlock circuit.
-Connect the wires or connectors securely.
The loose connection could cause excessive exothermic heat or smoke generation.
-Do not allow foreign matters such as liquid, flammable materials, metals to go into the inside
of the product. It could cause excessive exothermic heat or smoke generation.
-Do not undertake construction (such as connection and disconnection) while the power
supply is on. It could lead to an electric shock.
Copyright / Trademarks
-This manual and its contents are copyrighted.
-You may not copy this manual, in whole or part, without written consent of Panasonic Electric
Works SUNX Co., Ltd.
-Windows is a registered trademark of Microsoft Corporation in the United States and other
countries.
-All other company names and product names are trademarks or registered trademarks of
their respective owners.
PLC_BAT
Table of Contents
Before You Start
Differences in Functions Between Versions of Controller
Programming Tool Restrictions
When Changing Ladder Program from 12k Type to 32k Type
Compatibility with FP0
Manuals to be Used
i
4.3 Allocation of FPΣ Expansion Unit .................................................................................. 4-4
6 High-speed counter, Pulse Output and PWM Output functions ........... 6-1
ii
8.2 Password Protect Function ............................................................................................ 8-3
iii
13.1 Dimensions................................................................................................................... 13-2
14.1 System Registers / Special Internal Relays / Special Data Registers .................... 14-2
iv
Before You Start
Operating environment
(Use the unit within the range of the general specifications when installing)
-Ambient temperatures:0 ~ +55 °C
-Ambient humidity: 30% to 85% RH (at 25°C, non-condensing)
-Keep the height below 2000m.
-For use in pollution Degree 2 environment.
-Do not use it in the following environments.
- Direct sunlight
- Sudden temperature changes causing condensation.
- Inflammable or corrosive gas.
-Excessive airborne dust, metal particles or saline matter.
- Benzine, paint thinner, alcohol or other organic solvents or strong alkaline solutions such as ammonia
or caustic soda.
-Direct vibration, shock or direct drop of water.
- Influence from power transmission lines, high voltage equipment, power cables, power equipment,
radio transmitters,or any other equipment that would generate high switching surges.(100mm or more)
Static electricity
- Do not touch connector pins directly to prevent static electricity from causing damage.
- Always rid yourself of any static electricity before handling this product.
Power supplies
-Twist the wires of the power supply.
-The unit has sufficient noise immunity against the noise generated on the power line.
However, it is recommended to take measures for reducing noise such as using a isolating transformer
before supplying the power.
-Allocate an independent wiring for each power supplying line, input/output device and operating device.
-If using a power supply without a protective circuit, power should be supplied through a protective
element such as a fuse.
-Be sure to supply power to a control and an expansion units from a single power supply.
Turning on/off of the power of all the units must be conducted simultaneously.
v
Before entering a program
-Be sure to perform a program clear operation before entering a program.
-For information on the operating procedure, refer to the manuals of tool software.
(Tool software: FPWIN Pro, FPWIN GR)
Battery
Do not install the battery when it is not used.
There is a possibility of leak if the battery remains discharged.
vi
Differences in Functions Between Versions of Controller
Usable model Version Usable functions
V1.11 Addition of F174(SP0H) instruction
By SYS1 instruction
Detection edge setting for external input interrupt
MEWTOCOL-COM Response time setting
V1.20 Writing into DT90014, DT90037, DT90038 by F0(MV) instruction
V1.24 Operand and index modificaiton by F12(ICRD)/P13(ICWT) instruction
V1.30 Shortening of polling cycle by MEWTOCOL-COM during 1:N
12k type communication
V1.40 Setting for dealing the previous value of DF instruction in the system
register 4th bit D and MC
60-step acceleration/deceleration by F171(SPDH) instruction
Target value match stop mode by F172(PLSH) instruction
V1.50 R9005 and R9006 is always announced when the batter error occurs.
Change in the detection timing of the battery error. It is detected 2
seconds after the power is on.
V2.00 Left expansion refresh is available.
V2.01 Operand and index modificaiton by F12(ICRD)/P13(ICWT) instruction
V2.10 Shortening of polling cycle by MEWTOCOL-COM during 1:N
communication
12k type V2.40 Setting for dealing the previous value of DF instruction in the system
register 4th bit D and MC
V2.50 R9005 and R9006 is always announced when the batter error occurs.
Change in the detection timing of the battery error. It is detected 2
seconds after the power is on.
Interrupt program can be started when the high-speed counter target
value matches.
Scan time display in 100us unit
10us ring counter DT90020
General-purpose communication function with TOOL port
MODBUS-RTU master/slave communication function (COM1, COM2)
MEWTOCOL-COM master communication function (COM1, COM2)
32k-step program capacity
Enhancement of comment capacity
Enhancement of security functions
If failed to input a correct 4-digit password for 3 times in succession,
the oepration cannot be continued.
8-digit password
32k type V3.00 Prohibition of program readout
Forced cancel of security
Reading of security information
Reverse setting function of PC link (32k type only)
R9005 and R9006 is always announced when the batter error occurs.
Change in the detection timing of the battery error. It is detected 2
seconds after the power is on.
Real number basic compare instructions 18 types
STF=S1, S2 ANF=S1, S2 ORF=S1, S2
STF<>S1, S2 ANF<>S1, S2 ORF<>S1, S2
STF>S1, S2 ANF>S1, S2 ORF>S1, S2
STF>=S1, S2 ANF>=S1, S2 ORF>=S1, S2
STF<S1, S2 ANF<S1, S2 ORF<S1, S2
STF<=S1, S2 ANF<=S1, S2 ORF<=S1, S2
vii
Usable model Version Usable functions
<Special instructions>
F230 (TMSEC)
F231 (SECTM)
F354 (FSCAL)
<Serial data conversion>
F250 (BTOA) Binary → ASCII conversion
F251 (ATOB) ASCII → Binary conversion
<SYS instructions>
UP/DOWN switching of HSC by SYS1 instruction
Addition of 8-digit password operaton by SYS1 instruction
Addition of operation by SYS2 instruction
MODBUS master instructions
32k type V3.00
F145 (SEND) Data send
F146 (RECV) Data receive
MEWTOCOL master instruction
F145 (SEND) Data send
F146 (RECV) Data receive
F356 (EZPID) Easy PID instruction
<Partial I/O refresh>
Partial I/O refresh for FP0 expansion
<10us ring counter current value read>
F0 (MV) DT90020, D
<New PID instruction>
F356 (EZPID)
F182(FILTR) Time constant processing
Sampling trace function (Refer to Chapter 9.)
Sampling by instrucitons
F155(SMPL) Sampling
F156(STRG) Sampling trigger
Sampling by specifying time
Leading contact, trailing contact instructions
ST↑ AN↑ OR↑
ST↓ AN↓ OR↓
An arbitrary device can be specified for the setting value of
Timer/counter instruction.
32k type V3.10
e.g.) TML 0, DT0
Other additional convenient instructions
F252(ACHK) ASCII data check
F284(RAMP) Inclination output
Baud rate setting (300, 600, 1200 bps) by SYS instruction
High-speed operaiton
F0(MV) and F1(DMV) instructions Execution time: Approx. 1us
Only when every operands are without index modifier.
Function addition to exsiting instructions
F70(BCC) Block check code calculation
F356(EZPID) Easy PID instruction
viii
Programming Tool Restrictions
Type of unit
FPG-C32T2 FPG-C32T2H
FPG-C28P2 FPG-C28P2H
Type of programming tool FPG-C32T FPG-C24R2 FPG-C32TH FPG-C24R2H
FPT-C32TTM FPG-C32T2TM FPG-C32THTM FPG-C32T2HTM
FPG-C28P2TM FPG-C28P2HTM
FPG-C24R2TM FPG-C24R2HTM
Used Used Used
FPWIN GR
Used (Ver. 2.1 or (Ver. 2.6 or (Ver. 2.6 or
Windows Ver.2
later) later) later)
software
FPWIN GR
Not used Not used Not used Not used
Ver.1
Windows
software FPWIN Pro
Used Used Used Used
Conforms to Ver.6
IEC61131-3
AFP1113V2
Not used Not used Not used Not used
AFP1114V2
AFP1113
Handy Not used Not used Not used Not used
AFP1114
programming
AFP1111A
unit
AFP1112A
Not used Not used Not used Not used
AFP1111
AFP1112
ix
When Changing Ladder Program from 12k Type to 32k Type
It is necessary to convert the program to change the ladder program that is used for the FPΣ 12k
type to the one for FPΣ 32k type.
Program Conversion
When the FPWIN GR is used to change the model, the system register is automatically initialized.
If the setting value has been changed from the default value, note it down before the program conversion.
Number of points of internal relay for the 32k type is different from the 12k type.
The hold-type areas differ (automatic backup areas when the power supply was cut off) as the figure
shown below.
When the hold-type area in the internal relay is used, the program for that part should be converted.
(As the number of points for the counter, timer, DT and special DT is the same for the 12k type and 32k
type, the program conversion is not necessary.)
x
Procedure of Program Conversion
1. Retrieve a program to be converted with FPWIN GR.
6. For the program using the hold-type area in the internal relay (R900 to R97F and WR90 to WR97), the
device should be changed to the hold-type area for the FPΣ 32k type (R2480 to R255F and WR248 to
WR255).
Select “Edit” → “Change Device”.
xi
How to change an existing program
It is an easy method for chaging an existing program by partially adding a program without modifying the
exsiting program.
(When a programmable display is connected, it is not necessary to change the R and WR that are
referred for the switches and data parts in the programmable display.)
xii
Compatibility with FP0
Program compatibility
The following points require attention if using FP0 programs on the FPΣ.
xiii
Manuals to be Used
Necessary manuals vary according to the unit used. Check the following table and prepare required
manuals.
Unit type User's Manual Programming Manual Exclusive manual
ARCT1F333E ARCT1F353E
FP Control unit Yes Yes
FP Expansion I/O unit Yes Yes No
FP Positioning unit Yes Yes ARCT1F365E
FP Expansion Yes Yes No
data memory unit
FP CC-Link slave unit Yes Yes ARCT1F380E
FP S-LINK unit Yes Yes ARCT1F403E
FP Communication Yes Yes No
cassette
Key Point:
As for requesting for manuals, please contact your dealer or donwload the PDF data from our web site.
http://panasonic-denko.co.jp/ac/e/dl/manual-list/plc.jsp (User registration is required. Free of charge)
xiv
Chapter 1
Functions and Restrictions of the Unit
1.1 Features and Functions of the Unit
Powerful control capabilities
All of the functions of a mid-scale PLC are packed into the compact body size of the 32-pont type FP0. A
program capacity of 12k steps or 32k steps is provided as a standard feature, so you never have to
worry about how much memory is left as you’re programming. In addition, 32k words are reserved for
data registers, so large volumes of data can be compiled and multiple operations can be processed
without running out of memory.
1-2
Data can be share among the various PLCs using the PC(PLC) link function
When using the 1-channel RS485 type communication cassette
When using the 1-channel RS485 and 1-channel RS232C combination type
PC(PLC) link function (up to 16 units) or 1:N communication (up to 99 units) with RS232C devices
When using the 1-channel RS485 and 1-channel RS232C in combination
1-3
Positioning control supported through high-speed counter and pulse output
A high-speed counter and pulse output functions are provided as standard features. The pulse output
function supports frequencies of up to 100kHz, enabling positioning control using a stepping motor or
servo motor.
1-4
Security functions have been enhanced.
1. Upload protection. (Enables not to upload programs.)
2. 8-digit alphameric password
3. 4-digit numeric password
1-5
1.2 Unit Types
32k type
Name Number of I/O points Part No. Product No.
Input: 16 points/Transistor output: 16
FPG-C32TH AFPG2543H
points NPN
FPΣ Control unit Input: 16 points/Transistor output: 16
FPG-C32T2H AFPG2643H
(High capacity type) points NPN
Program capacity: 32k Input: 16 points/Transistor output: 12
FPG-C28P2H AFPG2653H
points PNP
Input: 16 points/Relay output: 8 points FPG-C24R2H AFPG2423H
Input: 16 points/Transistor output: 16 FPG-
AFPG2543HTM
points NPN C32THTM
FPΣ Control unit
Input: 16 points/Transistor output: 16 FPG-
(High capacity type) AFPG2643HTM
points NPN C32T2HTM
Program capacity: 32k
Input: 16 points/Transistor output: 12 FPG-
With thermister input AFPG2653HTM
points PNP C28P2HTM
function
FPG-
Input: 16 points/Relay output: 8 points AFPG2423HTM
C24R2HTM
Note) The FPΣ expansion I/O unit cannot be added to FPG-C32TH nor FPG-C32THTM FPΣ control unit.
1-6
1.2.2 FPΣ Expansion Unit
Name Specifications Part No. Product No. Manual
Input: 32 points/Transistor
FPG-XY64D2T AFPG3467
FPΣ Expansion output: 32 points NPN This
I/O unit Input: 32 points/Transistor manual
FPG-XY64D2P AFPG3567
output: 32 points PNP
Transistor output: 1-axis type FPG-PP11 AFPG430
FPΣ Transistor output: 2-axis type FPG-PP21 AFPG431 ARCT1F
Positioning unit Line driver output: 1-axis type FPG-PP12 AFPG432 365E
Line driver output: 2-axis type FPG-PP22 AFPG433
FPΣ Expansion This
256 kbyte FPG-EM1 AFPG201
data memory unit manual
Number of points of
exchanged data with CC-
Link master station
FPΣ CC-Link ARCT1F
Max. 224 points (Input: 112 FPG-CCLS AFPG7943
slave unit 380E
points, output: 112 point)
Writing max. 16-word data
Reading 4-word data
128 input/output points using ARCT1F
FPΣ S-LINK unit FPG-SL AFPG780
S-LINK 403E
FPΣ 2-axis type FPG-PN2AN AFPG43610
ARCT1F
Positioning unit 4-axis type FPG-PN4AN AFPG43620
421E
RTEX 8-axis type FPG-PN8AN AFPG43630
Note) The FPΣ expansion I/O unit cannot be added to FPG-C32T nor FPG-C32TTM FPΣ control unit.
1-7
1.2.4 Communication Cassette
Name Description Part No. Product No.
FPΣ Communication This communication cassette is a 1-channel
cassette 1-channel unit with a five-wire RS232C port. RS/CS FPG-COM1 AFPG801
RS232C type control is possible.
FPΣ Communication This communication cassette is a 2-channel
cassette 2-channel unit with a three-wire RS232C port.
FPG-COM2 AFPG802
RS232C type Communication with two external devices is
possible.
FPΣ Communication This communication cassette is a 1-channel
cassette 1-channel unit with a two-wire RS485 port. FPG-COM3 AFPG803
RS485 type
FPΣ Communication This communication cassette is a 1-channel
cassette 1-channel unit with a two-wire RS485 port and a 1-
FPG-COM4 AFPG806
RS485 type & 1- channel unit with a three-wire RS232C port.
channel RS232C type
1-8
1.3 Restrictions on Unit Combinations
Up to three expansion units can be added on the right of the FPΣ, these expansion units being either
expansion units or intelligent units from the earlier FP0 series, or a combination of the two.
A combination of relay output types and transistor output types is also possible.
Note:
• Install the FP0 thermocouple unit on the right side of all other expansion units. If it is installed on the
left side, the total precision will deteriorate.
• Install the FP0 CC-Link slave unit on the right side of the other expansion units. There is no expansion
connector on the right side.
• Install the FP0 RTD unit on the right side of the other expansion units.
1-9
1.3.2 Restrictions on FPΣ Expansion Unit
Up to four dedicated FPΣ expansion units can be added on the left of the FPΣ.
The 64 points type expansion unit consists of 32 input points and 32 transistor NPN output points.
Key Point:
If using FP0 expansion units and FPΣ expansion units in combination, the number of input and output
points can be expanded to a maximum of 384 points for FPG-C32T2 and FPG-C32T2TM.
1-10
1.4 Programming Tools
2. PC connection cable
• The connection cable is available.
Windows2000
FPWIN Pro Ver.6 WindowsXP
100MB or more FPWINPROFEN6
English-language menu Windows Vista
Windows7
Note1) Ver.6.0 can be upgraded to Ver. 6.1 or later free of charge at our web site
(http://www.panasonic-electric-works.com/peweu/en/html/22164.php).
1-11
1-12
Chapter 2
Specifications and Functions of the Unit
2.1 Parts and Functions
2-2
② RUN/PROG. mode switch
This switch is used to change the operation mode of the PLC.
Switch position Operation mode
This sets the RUN mode. The program is executed is executed and operation
RUN (upward)
begins.
This sets the PROG. mode. The operation stops. In this mode, programming
PROG. (downword)
can be done using tools.
• The remote switching operation from the programming tool is operable.
• When performing remote switching from the programming tool, the setting of the mode switch and the
actual mode of operation may differ. Verify the mode with the status indicator LED.
• Restart FPΣ to operate in the mode set with the RUN/PROG. mode switch.
• The followings are the default settings set when the unit is shipped from the factory. The system
register should be used to change these.
- Baud rate …….. 9600 bps
- Character bit …. 8 bit
- Parity check ….. Odd parity
- Stop bit length .. 1 bit
⑤ Input connector
⑦ Output connector
2-3
⑧ Output indicator LEDs
The unit No. (station No.) setting switch is located under the cover on the back of
the unit. Specify the unit (station) No. using the selector switch and the dial.
⑭ Expansion hook
This hook is used to secure expansion units. The hook on the right side is also used for installation on
flat type mounting plate (AFP0804).
2-4
⑯ DIN hook
The FPΣ unit enables attachment at a touch to a DIN rail. The lever is also used for installation on slim
30 type mounting plate (AFP0811).
⑰ Battery cover
This is uncovered to mount the backup battery sold separately.
The backup of the calendar timer function or data register is possible with the backup battery.
⑱ Thermister input line (The end of part No. and product No. is TM type only)
It is used to connect the thermister to read the change in the resistance value of the thermister as analog
input values.
2-5
2.2 Input and Output Specifications
2-6
Limitations on number of simultaneous input on points
Keep the number of input points per common which are simultaneously on within the following range as
determined by the ambient temperature.
Circuit diagram
[X0, X1, X3, X4] [X2, X5 to XF]
2-7
2.2.2 Output Specifications
Transistor output specifications
Description
Item
C32(NPN) C28(PNP)
Insulation method Optical coupler
Output type Open collector
Rated load voltage 5 to 24V DC 24V DC
Operating load voltage range 4.75 to 26.4V DC 21.6 to 26.4V DC
For Y0, Y1, Y3, Y4: 0.3A For Y0, Y1, Y3, Y4: 0.5A
Max. load current
For Y2, Y5 to YF: 0.1A For Y2, Y5 to YB: 0.3A
For Y0, Y1, Y3, Y4: 0.9A For Y0, Y1, Y3, Y4: 1.5A
Max. surge current
For Y2, Y5 to YF: 0.5A For Y2, Y5 to YB: 0.7A
Output points per common 16 points/common 12 points/common
Off state leakage current 100µA or less
On state voltage drop 0.5V or less
For Y0, Y1, Y3, Y4 (at 15mA or less): 2µs or less
off→on
For Y2, Y5 or later: 0.2ms or less
Response time
For Y0, Y1, Y3, Y4 (at 15mA or less): 8µs or less
on→off
For Y2, Y5 or later: 0.5ms or less
External power Voltage 21.6 to 26.4V DC
supply for driving
internal circuit Current 70mA or less
Surge absorber Zener diode
Operating mode indicator LED display
Phase fault protection Phase fault protection, thermal protection for Y2, Y5 or later
2-8
Circuit diagram
[C32] [C28]
[Y0,Y1,Y3,Y4] [Y0,Y1,Y3,Y4]
2-9
Relay output specifications (C24)
Item Description
Output type 1a output
Rated control capacity 2A 250V AC, 2A 30V DC (4.5A per common or less) Note1)
Output points per common 8 points/common
offon Approx. 10ms
Response time
onoff Approx. 8ms
Mechanical lifetime Min. 20,000,000 operations
Electrical lifetime Min. 100,000 operations
Surge absorber None
Operating mode indicator LED display
Note1) Resistance load
Circuit diagram
2-10
2.3 Terminal Layout Diagram
Note) The four COM terminals of input circuit are connected internally.
Output
Note) The two (+) terminals of output circuit are connected internally. The two (−) terminals of output
circuit are connected internally.
2-11
2.3.2 Control Unit (for C28)
Input
Note) The four COM terminals of input circuit are connected internally.
Output
Note) The two (+) terminals of output circuit are connected internally. The two (−) terminals of output
circuit are connected internally.
Note) The two COM terminals of input circuit are not connected internally.
Output
2-12
2.4 Analog Potentiometer
2-13
2.5 Thermister Input (Only for TM type)
<Block diagram>
Total precision
Total precision
= (Total precision of AD converter in which microcomputer is built: ±5LSBNote))+(Precision of thermister)
Note) ±5LSB means there is a margin of error of ±5LSB for the values (0 to 1000) converted with AD
converter.
1024 X 2.2
Thermister resistance value (kΩ) = -2.2
(Digital value+12)
2-14
Usable thermister
• Thermisters of which resistance values are within a range of 200Ω to 75kΩ.
Manufacturer Thermister type (B constant) Guide for Measuring range (°C)
3390 K -50 to +100 °C
Shibaura 3450 K 50 to +150 °C
Electronics Co., Ltd. 4300 K +100 to +200 °C
5133 K +150 to +300 °C
Note:
• The length of the wiring between the FPΣ control unit and the thermister should be less than 10m.
• A thin wire (AWG28, length: 150 mm) is used for the leader line. Connect and bundle the wire without
any stress.
• It is recommended to mount parts such as condensers externally if the converted value is unstable.
2-15
2.5.2 Loading of Thermister Temperature Data
Reading the value of the FPΣ special data resister enables to load the analog value data that
corresponds to the resistance value of the thermister.
2-16
2.6 Clock/Calendar Function
If a backup battery is installed in the FP∑, the clock/calendar function can be used. This funcation cannot
be used without a backup battery.
2-17
Example showing the date and time being written
Set the time to 12:00:00 on the 5th day when the X0 turns on.
Note:
No values have been set in the default settings, so the programming tool or another means must be
used to specify the values.
As a day of the week is not automatially set on FPWIN GR, fix what day is set to 00, and set
each value for 00 to 06.
The hour data is stored in the upper 8 bits of DT90053 and the minute data in the lower 8 bits, in the
BCD format. This hour and minute data is compared with the appointed time (BCD), and the R900B
(=flag) special internal relay is used to detect whether or not it matches the appointed time.
2-18
2.6.4 30-second Compensation Sample Program
This is a program to perform the compensation for 30 seconds when R0 is turned ON. If the 30-second
compensation is required, use this program.
2-19
2-20
Chapter 3
Expansion
3.1 Type of Expansion Unit
The FPΣ expansion unit (including intelligent units) and the FP0/FP0R expansion unit (expansion I/O unit
and intelligent unit) can be used with FPΣ.
The FP0/FP0R expansion units are connected on the right side of the control unit, just as they were with
the FP0. The FPΣ expansion units are connected to the left side of the control unit.
Note:
• The FPΣ expansion unit cannot be connected to FPG-C32T, FPG-C32TTM, FPG-C32TH or FPG-
C32THTM. Only the FP0/FP0R expansion unit can be connected.
• Up to 2 units of FP∑ positioning unit RTEX can be installed.
3-2
3.2 Expansion Method of FP0/FP0R Expansion Unit
The FP0/FP0R expansion unit (expansion I/O unit, intelligent unit) is expected by connecting to the right
side of the control unit.
Unit expansion is done using the right-side connector for FP0 expansion and expansion hook on the side
of the unit.
(1) Peel the seal on the side of the unit so that the internal right-side connector for FP0 expansion
is exposed.
(2) Raise the expansion hooks on the top and bottom sides of the unit with a screwdriver.
(3) Align the pins and holes in the four corners of the control unit and expansion unit, and insert
the pins into the holes so that there is no gap between the units.
(4) Press down the expansion hooks raised in step 2 to secure the unit.
3-3
3.3 Expansion Method of FPΣ Expansion Unit
The dedicated expansion unit for FPΣ (including intelligent unit) is expanded by connecting to the left
side of the control unit.
Unit expansion is done using the left-side connector for FPΣ expansion and expansion hook on the side
of the unit.
(1) Remove the cover on the left side of the unit so that the internal left-side connector for FPΣ
expansion is exposed.
(2) Raise the expansion hooks on the top and bottom sides of the unit with a screwdriver.
(3) Align the pins and holes in the four corners of the control unit and expansion unit, and insert
the pins into the holes so that there is no gap between the units.
(4) Press down the expansion hooks raised in step 2 to secure the unit.
3-4
3.4 Specifications of FP Expansion Unit
3-5
Input specifications
Item Description
Insulation method Optical coupler
Rated input voltage 24 V DC
Operating voltage range 21.6 to 26.4 V DC
Rated input current Approx. 3.5 mA
Input points per common 32 points/common
(Either the positive or negative of input power supply can be
connected to common terminal.)
Min. on voltage/Min. on current 19.2 V DC/3 mA
Max. off voltage/Max. off current 2.4 V DC/1.3 mA
Input impedance Approx. 6.8 kΩ
off→on 0.2 ms or less
Response time
on→off 0.3 ms or less
Operating mode indicator LED display
3-6
Limitations on number of simultaneous on points
Keep the number of points which are simultaneously on within the following range as determined by the
ambient temperature.
Circuit diagram
3-7
Terminal layout diagram
Note: The numbers in the connector are for the first expansion.
3-8
3.4.2 FPΣ Expansion Data Memory Unit
Parts and Functions
3-9
General specifications
Item Description
Ambient temperature/humidity 0 to +55 °C, 30 to 85 %RH (at 25°C, non-condensing)
Storage temperature/humidity -20 to +70 °C, 30 to 85 %RH (at 25°C, non-condensing)
10 to 55 Hz, 1 cycle/min, double amplitude of 0.75 mm,
Vibration resistance
10 min on 3 axes
Shock resistance Shock of 98 m/s2, 4 times on 3 axes
1000 Vp-p with pulse widths 50 ns and 1µs
Noise immunity
(based on in-house measurements
Operation condition Free from corrosive gases and excessive dust
Weight Approx. 80 g
Performance specifications
Item Description
Memory 256 k words (1k word x 256 banks)
Battery life 5 years or more
Consumption current (5V) 100 mA or less
No of occupied I/O points Input 16 points
Data organization
This unit is organized with 256 banks (1 k word = 1 bank).
Banks are assigned with numbers which are from “0” to “FF” in hexadecimal.
Each bank is assigned with an address for every word, and one bank is organized with 1024 words (1k
word) of a range within 0 to 3FF (0 to 1023 for decimal address).
Specify the above bank No. H0 to HFF (hexadecimal) and address (K0 to K1023) for reading data from
the control unit to this unit.
3-10
How to access the memory unit
The following instructions are used to access the expansion data memory unit to the control unit.
1. F150 instruction (To read data from the expansion data memory unit to the control unit)
2. F151 instruction (To write data to the expansion data memory unit from the control unit)
1.
S1: The area for specifying the slot No. of an Intelligent I/O unit (this unit) and bank numbers
Specify them in hexadecimal.
S2: The first address (word address), K0 to K1023 (H0 to H3FF), for reading the memory of an
intelligent I/O unit (this unit)
The area for specifying addresses in the bank specified in S1
n: No. of words to read, K1 to K1024 (H1 to H400)
D: The first area No. to store read data
[Example]
When R0 is on, 10 words will be read from the address K500 of the bank No. H50 in the expansion
data memory unit installed in the slot No. 03 to store DT100 to DT109 in order.
2.
S1: The area for specifying the slot No. of an Intelligent I/O unit (this unit) and bank numbers
Specify them in hexadecimal.
[Example]
When R0 is on, the contents of DT10, 11, 12 and higher are written for 10 words in order in the area
starting with the address H2FE of the bank No. HAB in the expansion data memory unit installed in
the slot No. H01.
Battery error
When any error occurs in a backup battery, the input will be turned on as follows.
Note:
• If an error with a battery is detected, backup the data within one month and replace the unit with a new
one.
3-12
Chapter 4
I/O Allocation
4.1 I/O Allocation
• Slot No.
Slot No. is the number indicating the installing position of the expansion unit which is used to generate
programs by some FPΣ expansion unit.
4-2
4.2 Allocation of FPΣ Control Unit
4-3
4.3 Allocation of FPΣ Expansion Unit
The FPΣ expansion unit is installed on the left side of the FPΣ control unit.
The I/O numbers of the FPΣ expansion unit start with the lowest number at the right and proceed in
sequential order.
4-4
4.4 Allocation of FP0/FP0R Expansion Unit
The FP0/FP0R expansion unit is installed on the right side of the FPΣ control unit.
The I/O numbers start with the lowest number at the expansion unit nearest the control unit and proceed
in sequential order.
4-5
4-6
Chapter 5
Installation and Wiring
5.1 Installation
Static electricity
- Do not touch connector pins directly to prevent static electricity from causing damage.
- Always rid yourself of any static electricity before handling this product.
• Do not install the unit above devices which generate heat such heaters, transformers or large scale
resistors.
5-2
Installation space
• Leave at least 50mm/1.97 in. of space between the wiring ducts of the unit and other devices to allow
heat radiation and unit replacement.
• Maintain at least 100mm/3.937 in. of space between devices to avoid adverse affects from noise and
heat when installing a device or panel door to the front of the PLC unit.
• Leave at least 100mm/3.937 in. of space opean from the front surface of the control unit in order to
allow room for programming tool connections and wiring.
5-3
5.1.2 Installation and Removal
Attachment to DIN rail and removal from DIN rail
FPΣ unit can be simply attached to DIN rail.
(2) Without moving the upper hook, press on the lower hook
to fit the unit into position.
5-4
5.1.3 Installation Using the Optional Mounting Plate
When using the slim 30 type mounting plate (AFP0811) (for mounting FPΣ)
Use M4 size pan-head screws for attachment of the slim 30 type mounting plate and install according to
the dimensions shown below.
The rest of the procedure is the same as that for attaching the unit to the DIN rails.
When using the slim type mounting plate (AFP0803) (for mounting FP0)
Use M4 size pan-head screws for attachment of the slim type mounting plate and install according to the
dimensions shown below.
The rest of the procedure is the same as that for attaching the unit to the DIN rails.
5-5
Note) The procedure for the removal is the same as AFP0811.
Note:
When using an expansion unit, tighten the screws after joining all of the slim type mounting plate to be
connected. Tighten the screws at each of the four corners.
[Example] When using the maximum numbers of the expansion units (with AFP0811, AFP0803)
5-6
When using the flat type mounting plate (AFP0804)
Use M4 size pan-head screws for attachment of the slim type mounting plate and install according to the
dimensions shown below.
Raise the expansion hooks on the top and bottom of the unit.
Align the expansion hooks with the mounting plate and press the hooks on the top and bottom.
An unit with an attached flat type mounting plate can also be installed sideways on a DIN rail.
Note:
The flat type mounting plate (AFP0804) should be used only with the control unit as a stand-alone unit. It
should not be used when the control unit is being used in combinaton with an FP0 expansion unit or FPΣ
expansion unit.
5-7
5.2 Wiring of Power Supply
5-8
Wiring system
Isolate the wiring systems to the control unit, input/output devices, and mechanical power apparatus.
5-9
5.2.2 Grounding
In situations of excess noise
Under normal conditions, the inherent noise resistance is sufficient. However, in situations of excess
noise, ground the instrument to increase noise suppression.
Exclusive grounding
• The grounding connection should have a resistance of less than 100Ω.
• The point of grounding should be as close to the PLC unit as possible. The ground wire should be as
short as possible.
• If two devices share a single ground point, it may produce an adverse effect. Always use an exclusive
ground for each device.
Note:
Depending on the surroundings in which the equipment is used, grounding may cause problems.
[Example]
Since the power supply line of the FPΣ power supply connector is connected to the function earth
through a varistor, if there is an irregular potential between the power supply line and earth, the varistor
may be shorted.
Do not ground the FPΣ function earth terminal when grounding a plus (+) terminal of the power.
In some computers, the SG terminal of RS232C port and connector shieldingare connected. Also the
FPΣ tool port shielding is connected with the function earth terminal. Therefore, the GND terminal of FPΣ
and the function earth terminal are connected if the computer is connected. Especially when the FPΣ is
connected to a computer with a plus (+) terminal grounded, therefore, an FPΣ’s minus (-) terminal is
connected with the function earth terminal. As a result, short circuit occurs which may lead to the
breakage of FPΣ and its neighboring parts.
5-10
5.3 Wiring of Input and Output
5-11
Precaution when using LED-equipped limit switch
If the input of PLC does not turn off because of the
leakage current from the LED-equipped limit
switch, the use of a bleeder resistor is
recommended, as shown below.
5-12
5.3.2 Output Wiring
Protective circuit for inductive loads
With an inductive load, a protective circuit should be installed in parallel with the load.
When switching DC inductive loads with relay output type, be sure to connect a diod across the ends of
the load.
5-13
5.3.3 Precautions Regarding Input and Output Wirings
• Be sure to select the thickness (dia.) of the input and output wires while taking into consideration the
required current capacity.
• Arrange the wiring so that the input and output wiring are separated, and 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.
• Separate the input/output wires from the power and high voltage wires by at least 100mm/3.937 in.
5-14
5.4 Wiring of MIL Connector Type
Supplied connector and suitable wires
The connector listed below is supplied with the FPΣ control unit. Use the suitable wires given below. Also,
use the required pressure connection tools for connecting the wires.
Suitable wires
Size Nominal cross-sectional area Insulation thickness Rated current
AWG#22 0.3mm2
Dia. 1.5 to dia. 1.1 3A
AWG#24 0.2mm2
Key Point:
When using a MIL connector for flat cables, purchase the product number AFP0808 (4 pcs,
10-pin strain-relief with key). In this case, the suitable wire is AWG#28 and the rated current is
1A.
5-15
Procedure of assembly (Wiring method)
The wire end can be directly crimped without removing the wire’s insulation, saving labor.
(1) Bend the welder (contact) back from the carrier, and set it in the pressure connection tool.
(2) Insert the wire without removing its insulation until it stops, and lightly grip the tool.
(4) When all wires has been inserted, fit the semi-cover into place.
If there is a wiring mistake or the cable is incorrectly pressure-connected, the contact puller pin provided
with the fitting can be used to remove the contact.
Key Point:
If using a MIL connector for flat cables, specify the product No. AXM110915.
In this case, the suitable wire is AWG#28 and the rated current is 1A.
5-16
5.5 Wiring of Terminal Block Type
A screw-down connection type for terminal block is used. The suitable wires are given below.
Suitable wires
Size Nominal cross-sectional area
AWG #24 to 16 0.2 to 1.25mm2
5-17
Wiring method
(1) Remove a portion of the wire’s insulation.
(2) Insert the wire into the terminal block until it contacts the back of the block socket, and then
tighten the screw clockwise to fix the wire in place. (Tightening torque: 0.22 N·m to 0.25 N·m
(2.3 kgf·cm to 2.5 kgf·cm))
Note:
• When removing the wire’s insulation, be careful not to scratch the core wire.
• Do not twist the wires to connect them.
• Do not solder the wires to connect them. The solder may break due to vibration.
• After wiring, make sure stress is not applied to the wire.
• In the terminal block socket construction, if the wire closes upon counter-clockwise rotation, the
connection is faulty. Disconnect the wire, check the terminal hole, and then re-connect the wire.
5-18
5.6 Safety Measures
• Power on timing differences between the PLC system and input/output or mechanical power apparatus.
• Response time lag when a momentary power drop occurs.
• Abnormality in the PLC unit, external power supply, or other devices.
In order to prevent a malfunction resulting in system shutdown choose the adequate safety measures
listed in the following:
Interlock circuit
When a motor clockwise/counter-clockwise operation is controlled, provide an interlock circuit externally.
Start up sequence
The PLC should be operated after all of the outside devices are energized. To keep this sequence, the
following measures are recommended:
• Turn on the PLC with the mode selector set to the PROG. mode, and then switch to the RUN mode.
• Program the PLC so as to disregard the inputs and outputs until the outside devices are energized.
Note) In case of stopping the operation of the PLC also, have the input/output devices turned off after
the PLC has stopped operating.
Grounding
When installing the PLC next to devices that generate high voltages from switching, such as inverters,
do not ground them together. Use an exclusive ground for each device.
5-19
5.6.3 Protection of Power Supply and Output Sections
Power supply
An insulated power supply with an internal protective circuit should be used. The power supply for the
control unit operation is a non-insulated circuit, so if an incorrect voltage is directly applied, the internal
circuit may be damaged or destroyed. If using a power supply without a protective circuit, power should
be supplied through a protective element such as a fuse.
Protection of output
If current exceeding the rated control capacity is being supplied in the form of a motor lock current or a
coil shorting in an electromagnetic device, a protective element such as a fuse should be attached
externally.
5-20
5.7 Handling of Backup Battery
Name: Battery
Product No.: AFPG804
5-21
5.7.2 Settings of Battery Error Alarm and Hold Area
Setting of the battery error alarm
- Setting the battery error alarm enables you to monitor the remaining backup battery level. By default,
the battery error alarm is set to off in the system register settings. For using the battery, check the box
of the system register No.4 "Alarm Battery Error" of the control unit.
Note:
- When "Battery Error Alarm" is not set, the ERR.LED will not flash even if a battery error is detected.
Note that data may be lost as the result of the battery shutoff.
- The setting of the system registers Nos. 6 to 14 are effective only when the backup battery is installed.
- Without the battery, use at the default settings. If changing the settings, the “Hold/Non-hold” operation
becomes unstable.
5-22
5.7.3 Replacement of Backup Battery
The procedure for replacing the backup battery is as follows.
Procedure
1. Supply power to the control unit for more than one minute.
Charge the built-in capacitor to retain the contents of the memory during the replacement of the battery.
2. Turn off the power supply.
Remove the battery cover using a tool such as a screwdriver.
Note:
- If the power is not sufficiently supplied or it takes too much time to replace the battery, retained memory
data may be lost.
5-23
5.7.4 Lifetime and Time for Replacement of Backup Battery
Battery lifetime
Suggested Typical lifetime
Type of control unit Battery lifetime
replacement interval in actual use
Approx. 2.3 years
FPΣ control unit 220 days or more 1 year
(at 25 °C)
Note1) The battery lifetime is the value when no power at all is supplied.
Note2) Note that the lifetime in actual use may be shorter than the typical lifetime depending on the use
conditions.
Note3) The battery is used for the battery detection circuit even when power is supplied. The lifetime is
about twice as long as that when no power is supplied.
Note:
- if a week has passed without power after the special internal relays R9005 and R9006 turned on or the
ERR.LED flashed, retained memory data may be lost.
- Regardless of how much time has passed after the detection of battery error, supply power to the
control unit for more than one minute when replacing the battery.
- Special internal relays R9005 and R9006 will be on when a batttery error is detected regardless of the
setting of system regisnter No.4.
5-24
Chapter 6
High-speed counter, Pulse Output and
PWM Output functions
6.1 Overview of Each Functions
6-2
6.1.2 Performance of Built-in High-speed Counter
Number of Channel
• There are four channels for the built-in high-speed counter
• The channel number allocated for the high-speed counter will change depending on the function being
used.
Counting range
• K-2, 147, 483, 648 to K+2, 147, 483, 647 (Coded 32-bit binary)
• The built-in high-speed counter is a ring counter. Consequently, if the counted value exceeds the
maximum value, it returns to the minimum value. Similarly, if the counted value drops below the
minimum value, it goes back to the maximum value and continues counting from there.
Note:
When the linear interpolation instruction F175 or the circular interpolation instruction F176 is used, the
value for the target value or the amount of travel should be set so that it is within the range indicated
below.
-8,388,608 to +8,388,607 (Coded 24-bit binary)
The F175 and F176 instructions can be used only with the C32T2, C28P2, C32T2H and C28P2H control
units.
6-3
6.2 Function Specifications and Restricted Items
6.2.1 Specifications
High-speed counter function
Input/output
contact No. Memory area being used Performance specifications
being used
Input contact Mini-
High-speed counter
number mum
channel No.
(value in Control Elapsed Target input Maximu←m
parenthesis flag value area value area pulse counting speed
is reset width
Note1) Note2)
input)
DT90044 DT90046
X0
CH0 R903A to to
(X2)
DT90045 DT90047
Using 1 channel:
DT90048 DT90050 Max. 50kHz (x1-ch)
X1
CH1 R903B to to Using 2 channels:
[Single phase] (X2)
DT90049 DT90051 10µs Max. 30kHz (x2-ch)
Incre-mental,
(100µs) Using 3 channels:
Decre-mental
Max. 20kHz (x3-ch)
DT90200 DT90202 Using 4 channels:
X3
CH2 R903C to to Max. 20kHz (x4-ch)
(X5)
DT90201 DT90203
DT90204 DT90206
X4
CH3 R903D to to
(X5)
DT90205 DT90207
X0 DT90044 DT90046
[2-phase]
CH0 X1 R903A to to Using 1 channel:
2-phase input
(X2) DT90045 DT90047 25µs Max. 20kHz (x1-ch)
One input,
(100µs) Using 2 channels:
Direction X3 DT90200 DT90202
Max. 15kHz (x2-ch)
distinction CH2 X4 R903C to to
(X5) DT90201 DT90203
Related instructions:
F0(MV) :High-speed counter control
F1(DMV) :Read/write of elapsed value of high-speed counter
F166(HC1S) :Target value match on (Specify the desired output from Y0 to Y7 using instruction)
F167(CH1R) :Target value match off (Specify the desired output from Y0 to Y7 using instruction)
Note1) Reset input X2 can be set to either CH0 or CH1. Reset input X5 can be set to either CH2 or CH3.
Note2) Reference: For information on minimum input pulse width,
6-4
Pulse output function
Input/output contact number used Memory area used
Devi-
CCW
CW ation
High-speed or Near
or coun- Con- Elapsed
counter dire- Home home Target
pulse ter trol value
channel No. ction input input value area
out- clear Note4) flag area
out-
put out-
put
put
DT9005
DT90044 to DT90046 to
CH0 Y0 Y1 Y2 X2 2 R903A
DT90045 DT90047
Indepen- <bit4>
dence DT9005
DT90020 to DT90202 to
CH2 Y3 Y4 Y5 X5 2 R903C
DT90201 DT90203
<bit4>
DT90044 to DT90046 to
Y2 X2 DT9005
Li- Y0 Y1 R903A DT90045 DT90047
Y5 X5 2
near Y3 Y4 Note3) Note3) R903C DT90200 to DT90202 to
<bit4>
DT90201 DT90203
Inter-
polation R903A DT90044 to DT90046 to
Y2 X2 DT9005
Cir- Y0 Y1 R903C DT90045 DT90047
Y5 X5 2
cular Y3 Y4 Note3) Note3) R904E DT90200 to DT90202 to
<bit4>
R904F DT90201 DT90203
Max. output frequency
- Using one ch: Max. 100 kHz (x1-ch)
- Using two chs: Max. 60 kHz (x2-ch)
-Using linear inter-polation: Max. 100 kHz
- Using circular iner-polation: Max. 20 kHz
Related instructions
F0 (MV) :high-speed counter control
F1 (DMV) :Read/write of elapsed value of high-speed counter
F171 (SPDH) :trape-zoidal control/home return
F172 (PLSH) :JOG opera-tion
F174 (SP0H) :Data table control
F175 (SPSH) :Linear inter-polation control
F176 (SPCH) :circular inter-polation control
Note1) The pulse output function is only available with the transistor output type.
Note2) Linear and circular interpolation control is only available with the C32T2 or C28P2 units.
Note3) The home return operation of the interpolation axes should be performed for every channel.
Note4) Reference: For DT90052, see <6.4.4 Pulse Output Control Instruction (F0) (F1)>.
A
Note3) A A 20 45
A A A A 20 30
A A 15 45
A A A 20 15 30
A 100
A
Note3) A 30 60
A
A Note3) A 20 45
A A A A 20 30
A A 15 45
A A A 20 15 30
6-6
A: Available
Max. counting speed
Channel being used
(frequency) [kHz]
High-speed
High-speed counter Pulse output Pulse output
counter
Single phase 2-phase Independence Inde- Inter-
Interpo- Single 2-
pen- pola-
CH0 CH1 CH2 CH3 CH0 CH2 CH0 CH2 lation phase phase
dence tion
A A
Note1) Note1) 60
A
Note3) A A 20 45
A
Note3) A A 20 45
A A
Note3) Note3) A A 20 30
100
Linear Note2)
Linear 80
A
Note3) Linear 20 60
A
Note3) Linear 20 60
A A
Note3) Note3) Linear 20 45
Circular 20
A
Note3) Circular 20 20
A
Note3) Circular 20 20
A A
Note3) Note3) Circular 20 20
Note1)If two channels are not executed simultaneously, each axis may be used up to 100 kHz.
Note2)These are the values when PC link and fixed-interval interrupt function are not used.
Note3)When using CH0 pulse output, do not use the hard reset (X2) at CH0 and CH1 of HSC.
When using CH2 pulse output, do not use the hard reset (X5) at CH2 and CH3 of HSC.
Example 1:
If no reset input is used in the high-speed counter function, X2 and X5 can be as normal inputs.
Example 2:
If no output is used to clear the differential counter in the pulse output function, Y2 and Y5 can be used
as normal outputs.
6-7
• Please be aware that the control flag “in progress” may change while a scan is being carried out. To
prevent multiple read access to this special internal relay, you should generate a copy of it at the
beginning of the program.
• When the control flag for a channel turns on, another instruction using that same channel cannot be
executed.
• Executing circular interpolation control instruction F176 sets the circular interpolation in progress flag
(special internal relay: R904E), and that state is maintained until the target value is achieved. During
this time, other pulse output instructions (F171 to F176) cannot be executed.
6-8
6.2.3 Booting Time
The booting time is the time span from the execution of the instruction to the actual pulse output.
Type of instruction Booting time
CW/CCW is set : Approx. 200 µs (with 30 steps)
Pulse output instruction F171
Approx. 400 µs (with 60 steps)
(SPDH)
Pulse/direction is set : Approx. 500 µs (with 30 steps) Note)
Trapezoidal control/home return
Approx. 700 µs (with 60 steps) Note)
Pulse output instruction F172
CW/CCW is set : Approx. 20 µs
(PLSH)
Pulse/direction is set : Approx. 320 µs Note)
JOG operation
Pulse output instruction F174
CW/CCW is set : Approx. 30 µs
(SP0H)
Pulse/direction is set : Approx. 330 µs Note)
Data table control
PWM output instruction F173
Approx. 30 µs
(PWMH)
Note) If pulse/direction is set, a waiting time (approx. 300 µs) is included from the time that the direction
output goes on until the pulse output instruction can be executed.
6-9
6.3 High-speed Counter Function
Direction discrimination
6-10
Count for reset input
(Incremental input mode)
6-11
6.3.4 I/O Allocation
As shown in the table in the previous section “6.2.1”, the inputs and outputs used will differ depending
on the channel number being used.
The output turned on and off can be specified from Y0 to Y7 as desired with instructions F166 (HC1S)
and F167 (HC1R).
When using CH0 with incremental input and When using CH0 with two-phase input and
reset input reset input
* The output turned on and off when the target * The output turned on and off when the target
value is reached can be specified from Y0 to Y7 value is reached can be specified from Y0 to Y7
as desired. as desired.
In case of CH1
6-12
High-speed counter/pulse output control flag area of FP
6-13
Elapsed value write and read instruction (F1)
• This instruction changes or reads the elapsed value of the high-speed counter.
• Specify this instruction together with the special data register DT90044.
• The elapsed value is stored as 32-bit data in the combined area of special data registers DT90044 and
DT90045.
• Use this F1 (DMV) instruction to set the elapsed value.
Example 2:
If the elapsed value (DT90200 and DT90201)
for channel 2 matches K20000, output Y6 turns
on.
Example 2:
If the elapsed value (DT90204 and DT90205)
for channel 3 matches K40000, output Y5 turns
off.
6-14
6.3.6 Sample program
Positioning operations with a single speed inverter
Wiring example
Program
When X5 is turned on, Y0 turns on and the conveyor begins moving. When the elapsed value (DT90044
and DT90045) reaches K5000, Y0 turns off and the conveyor stops.
6-15
Positioning operations with a double speed inverter
Wiring example
6-16
Program
When X5 is turned on, Y0 and Y1 turn on and the conveyor begins moving. When the elapsed value
(DT90044 and DT90045) reaches K4500, Y1 turns off and the conveyor begins decelerating. When the
elapsed value reaches K5000, Y0 turns off and the conveyor stops.
6-17
6.4 Pulse Output Function
Note:
• The thermister input type for various units is included.
• The pulse output function can be used with the transistor output type only.
6-18
6.4.2 Types of Pulse Output Method and Operation Modes
Clockwise/counter-clockwise output method
Control is carried out using two
pulses: a forward rotation pulse and a
reverse rotation pulse.
6-19
Operation mode
Incremental <Relative value control>
Outputs the pulses set with the target value.
Selected
Pulse and direction Pulse and direction
Mode HSC counting
CW/CCW forward OFF/ forward ON/
Target Method
reverse ON reverse OFF
value
Pulse output when Pulse output when
Pulse output
Positive direction output is direction output is Incremental
from CW
OFF ON
Pulse output when Pulse output when
Pulse output
Negative direction output is direction output is Decremental
from CCW
ON OFF
Example:
When the current position (value of elapsed value area) is 5000, the pulse of 1000 is output from CW by
executing the pulse output instruction with the target value +1000, and the current position will be 6000.
Home return
• When executing the F171 (SPDH) instruction, the pulse is continuously output until the home input (X2
or X5) is enabled.
• To decelerate the movement when near the home position, designate a near home input and set bit 4
of special data register DT90052 to off → on → off.
• The deviation counter clear output can be output when home return has been completed.
JOG operation
• Pulses are output from the specified channel while the trigger for F172 (PLSH) instruction is in the ON
state. Also, the pulse output can be stopped when the specified target value is matched.
• The direction output and output frequency are specified by F172 (PLSH) instruction.
6-20
6.4.3 I/O Allocation
Double pulse input driver
(CW pulse input and CCW pulse input method)
Two output contacts are used as a pulse output for “CW, CCW”.
The I/O allocation of pulse output terminal and home input is determined by the channel used.
Set the control code for F171 (SPDH) instruction to “CW/CCW”.
<When using CH0> <When using CH2>
* X3 or any other input can be specified for the * X6 or any other input can be specified for the
near home input. near home input.
* X3 or any other input can be specified for the * X6 or any other input can be specified for the
near home input. near home input.
6-21
6.4.4 Pulse output control instructions (F0) (F1)
Pulse output control instruction (F0)
• This instruction is used for resetting the built-in high-speed counter, stopping the pulse output, and
setting and resetting the near home input.
• Specify this F0 (MV) instruction together with special data register DT90052.
• Once this instruction is executed, the settings will remain until this instruction is executed again.
Example 1:
Enable the near home input during home return operations and begin deceleration.
In case of CH0
Example 2:
Performing a forced stop of the pulse output.
In case of CH0
6-22
Key Point: : High-speed counter/pulse output control flag area of FP
The area DT90052 for writing channels and
control codes is allocated as shown in the left
figure.
Control codes written with an F0 (MV)
instruction are stored by channel in special
data register DT90190 and DT90192.
Note) The output counting value of the elapsed
value area may be different from the input
counting value of the motor side if the pulse
output is stopped by the “Continue/stop of pulse
output”. After the pulse output stops, execute
the home return.
Reference: <6.2.1 Table of specifications> for information on the special data register.
Example 1:
Writing the elapsed value
Set the initial value of K3000 in the high-speed
counter.
6-23
Wiring example
Note) When the stepping motor input is a 5 V optical coupler type, connect a resister of 2 kΩ (1/2 W) to
R1, and connect a resistor of 2 kΩ (1/2 W) − 470 Ω (2 W) to R2.
6-24
6.4.5 Positioning Control Instruction F171 - Trapezoidal Control (Common to
Transistor type)
• This instruction automatically performs trapezoidal control according to the specified data table.
6-25
6-26
Sample program
Incremental Position Control Operation: Plus Direction
When X8 turns on, the pulse is output from CW output Y0 of the specified channel CH0.
Program
6-27
Incremental Position Control Operation: Minus Direction
When X9 turns on, the pulse is output from CCW output Y0 of the specified channel CH0.
Program
6-28
Absolute position control operation
When X1 is turned on, pulses are output from CW output Y0 or CCW output Y1 of the specified channel
CH0. If the current value at that point is larger than 22000, the pulses are output from Y1, and if the
value is smaller than 22000, the pulses are output from Y0.
Program
6-29
6.4.6 Positioning Control Instruction F171 – Home Return (Common to
Transistor type)
• This function performs home return according to the specified data table. The elapsed value area CH0
(DT90044, DT90045) and CH1 (DT90200, DT90202) is cleared to zero after the completion of home
return.
6-30
6-31
Home return operation modes
There are two operation modes for a home return with the FPΣ: Type I and Type II.
Reference:
The Pulse output control instruction (F0) is used for the near home input.
<6.4.4 Pulse output control instructions (F0) (F1)>.
6-32
Sample program
Home return operation using CH0: Minus direction
When XA turns on, a pulse is output from CCW output Y1 of the specified channel CH0 and the return to
home begins. When X0 turns on, deceleration begins, and when X2 turns on, home return is completed.
After the return to home is completed, the elapsed value areas DT90044 and DT90045 are cleared to 0.
Program
6-33
Sample program
Home return operation using CH2: Plus direction
When XB turns on, a pulse is output from CW output Y3 of the specified channel CH2 and the return to
home begins. When X3 turns on, deceleration begins, and when X5 turns on, home return is completed.
After the return to home is completed, the elapsed value areas DT90200 and DT90201 are cleared to 0.
Program
6-34
6.4.7 Pulse Output Instruction F172 – JOG operation
This instruction is used for JOG operation by obtaining a pulse from the desired output when the
execution condition (trigger) turns on.
6-35
Key Point:
The FPΣ supports two operation modes for JOG operation, one in which no target value is specified, and
one in which feed stops when the target value is reached.
Output stops when target value is reached (FPΣ Ver 1.4 or later)
With FPΣ Ver 1.4 or later, a target value at which pulse output stops can be specified for jogging
operation. As shown below, this mode is selected in the control code, and the target value (an absolute
value) is specified in the data table.
6-36
Sample program
JOG operation : Plus direction
While XB is in the ON state, a pulse is output from the CW output Y0 of the specified channel CH0.
Program
6-37
JOG operation : Minus direction
While XC is in the ON state, a pulse is output from the CCW output Y1 of the specified channel CH0.
Program
Reference:
The pulse output control instruction (F0) is used for the pulse output stop.
<6.4.4 Pulse output control instruction (F0)>
6-38
6.4.8 Positioning Control Instruction F174 – Data Table Contro.
• Positioning is performed according to the specified data table.
6-39
6-40
6.4.9 Action of the Flag concerning Linear Interpolation and Circular
Interpolation
Key Point:
Can be used with C32T2, C28P2, C32T2H and C28P2H only.
Note:
• When the target value has not been reached and the execution condition is off, circular interpolation
control flag R904E turns on and other positioning instructions F171 to F176 cannot be start up.
• The above flags vary during scanning.
Example: If the above flags are used for more than one time as input conditions, there may be the
different states in the same scan. Replace with internal relays at the beginning of the program as a
measure.
6-41
Flag movement when command running
Note:
• Right when the execution condition turn off, positioning instructions F171 to F176, other than the
currently running instruction F176, cannot be started up when the target value has not been reached.
• When restarting, use pulse output control instruction F0, below, to reset the pulse output instruction.
This operation resets the control flag for circular interpolation (R904E).
Note:
• The instruction calculates the component speed at each scan. Therefore, accuracy may be degraded if
the scan time exceeds 10 ms. If this should happen, execute circular interpolation instruction F176
using the periodical interrupt function with an interrupt time of around 0.5 ms.
6-42
Restrictions on positioning data setting
• Designate settings for the target position, pass position and center position so they are within the
following range.
Allowable range: -8,388,608 to +8,388,608
• When using in combination with other positioning instructions like F171, designate so the target value
is within the above range, even in those instructions.
6-43
Sample program for interpolation control
Wiring diagram
Note) If the input of the stepping motor is 5V photocoupler type, connect a resistor of 2kΩ(1/2 W) to R1,
and connect a resistor of 2kΩ(1/2 W) − 470Ω(2 W) to R2.
6-44
Home return operation (Minus direction)
When XA turns on, the pulse is output from CCW output Y1 of the specified channel CH0 and CCW
output Y4 of the specified channel CH2, and the return to home begins.
In CH0, when X3 turns on, deceleration begins, and when X2 turns on, home return is completed. After
the return to home is completed, the elapsed value areas DT90044 and DT90045 are cleared to 0.
In CH2, when X6 turns on, deceleration begins, and when X5 turns on, home return is completed. After
the return to home is completed, the elapsed value areas DT90200 and DT90201 are cleared to 0.
When the operations in both CHs is completed, the return to home completes.
6-45
Program
Key Point:
As there is not interpolation function for the home return, the home return should be executed for each
channel. After the home return for both channels is completed, the positioning operation running
program (R40) turns off.
6-46
6.4.10 Pulse Output Instruction F175 – Linear Interpolation (Only for C32T2,
C28P2, C32T2H and C28P2H)
• The linear interpolation controls positioning with two axes according to the specified data table.
6-47
6-48
6.4.11 Pulse Output Instruction F176 – Circular Interpolation (Only for C32T2,
C28P2, C32T2H and C28P2H)
• The circular interpolation controls positioning with two axes according to the specified data table.
6-49
6-50
Sample program
Continuous interpolation control (linear and circular)
• Using linear and circular interpolation functions, perform positioning control that draws trajectory like
the one shown below.
• The interval between the first postion P1 and P2 and the interval between P3 and P4 perform control
using linear interpolation.
• The interval between P2 and P3 performs circular interpolation control using center designation.
• The interval between P4 and P1 performs circular interpolation control using passing position
designation.
I/O Allocation
I/O No. Description I/O No. Description
XB Positioning start R9010 Always ON
XC Emergency stop switch R903A Control flag (CH0)
R20 From P1 to P2 start R903C Control flag (CH2)
R21 From P2 to P3 start R904E Circular interpolation control flag
R22 From P3 to P4 start
R23 From P4 to P1 start
R2F Positioning done
6-51
Data register allocation
Data register
Item Details On this program details
No.
Control code when executing linear interpolation,
DT0 to DT1 Control code
absolute
User setting DT2 to DT3 Startup speed 2000 Hz
area for linear DT4 to DT5 Target speed 2000 Hz
interpolation Acceleration/de-
DT6 0 ms
celeration time
P1 to P2 Target position Specify the target position of X-axis when moving from
DT8 to DT9
P3 to P4 (X-axis) P1 to P2 and P3 to P4.
Target position Specify the target position of Y-axis when moving from
DT10 to DT11
(Y-axis) P1 to P2 and P3 to P4.
Operation result Parameters calculated due to instruction execution are
Work area DT12 to DT23
storage area stored.
Specify control codes when executing the circular
interpolation of P4 to P1.
DT40 to DT41 Control code
Stop mode, Pass position setting, Absolute
From CH0-CW to CH2-CW direction
User setting DT42 to DT43 Composite speed 2000 Hz
are for circular Target position Specify the target position of X-axis when moving from
DT44 to DT45
interpolation (X-axis) P4 to P1.
Target position Specify the target position of Y-axis when moving from
DT46 to DT47
P4 to P1 (Y-axis) P4 to P1.
Pass position Specify the X-coodinate of the pass position when
DT48 to DT49
(X-axis) moving from P4 to P1.
Pass position Specify the Y-coodinate of the pass position when
DT50 to DT51
(Y-axis) moving from P4 to P1.
Work area for
Operation result Parameters calculated due to instruction execution are
circular DT52 to DT57
storage area stored.
interpolation
Specify control codes when executing the circular
interpolation of P2 to P3.
DT60 to DT61 Control code
Stop mode, Center position setting, Absolute
From CH0-CW to CH2-CW direction
User setting
DT62 to DT63 Composite speed 2000 Hz
area for
Target position Specify the target position of X-axis when moving from
circular DT64 to DT65
(X-axis) P2 to P3.
interpolation
Target position Specify the target position of Y-axis when moving from
DT66 to DT67
(Y-axis) P2 to P3.
P2 to P3
Center position Specify the X-coodinate of the center position when
DT68 to DT69
(X-axis) executing the circular interpolation of P2 to P3.
Center position Specify the Y-coodinate of the center position when
DT70 to DT71
(Y-axis) executing the circular interpolation of P2 to P3.
Work area for
Operation result Parameters calculated due to instruction execution are
circular DT72 to DT73
storage area stored.
interpolation
Key Point:
• With this program, because the next action that follows circular interpolation control is linear
interpolation, the control code is designated with the stop mode.
• The rotation direction during circular interpolation is the same direction for both P2 to P3 and P4 to P1.
Designate the control code rotation direction with “from CH0-CW direction to CH2-CW direction”.
• Use the circular interpolation control flag R904E to verify completion of the circular interpolation action.
6-52
Program
6-53
6-54
Sample program (Continue mode method)
• This is a program that continually executes the circular interpolation action.
• Start the first point P1 (0, 0), overwrite the target value three times, and move to final position P4.
• To overwrite the data after startup, use the special internal relay R904F and a shift register.
I/O Allocation
I/O No. Description I/O No. Description
XB Positioning start R903A Control flag (CH0)
R0 Positioning running R903C Control flag (CH2)
R1 Positioning done R904E Circular interpolation control flag
R10 Data setting for the control from P1 to P2 R904F Set value change confirmation flag
R11 Data setting for the control from P2 to P3
R12 Data setting for the control from P3 to P4
R13 Mode changing for stoppage
Note) R10 to R13 are used by shift register.
6-55
Program
6-56
Key Point:
• To overwrite the data after startup use the circular interpolation data overwrite permission flag R904F.
• In control that heads toward final point P4, designate by switching the control code to the stop mode.
• In this example, since the rotation direction changes for each positioning point, designation of the
control code rotation direction is as follows.
Between P1 and P2: From CH2-CW to CH0-CW direction
Between P2 and P3: From CH0-CW to CH2-CW direction
Between P3 and P4: From CH2-CW to CH0-CW direction
6-57
6.5 PWM Output Function
6.5.1 Overview
PWM output function
With the F173 (PWMH) instruction, the pulse width modulation output of the specified duty ratio is
obtained.
Data table
DT100 Control code *1 : K1
DT101 Duty *2 : 50%
6-58
*2: specification of duty (specify using K constant)
If the control code is K0 to K19, the duty is K0 to K999 (0.0% to 99.9%).
If the control code is K20 to K24, the duty is K0 to K990 (0% to 99%).
Values are specified in units of 1% (K10) (digits behind the decimal point are rounded off).
Note:
• If a value outside the specified range is written to the duty area while the instruction is being executed,
a frequency corrected to the maximum value is output. If written when instruction execution is started,
an operation error is occurred.
6-59
6-60
Chapter 7
Communication Cassette
7.1 Functions and Types
Computer link
• The computer link function is to communicate between a computer and PLCs or between PLC and
external devices connected. A proprietary MEWNET protocol called MEWTOCOL-COM is used for
communicating with the computer link. MEWTOCOL-COM is also used for the communication between
the tool software such as FPWIN-GR and the PLC.
• There are a MEWTOCOL master function and a MEWTOCOL slave function for the computer link. The
side that issues commands is called master, and the side that receives the commands, executes the
process and sends back responses is called slave.
Note:
It is necessary to set the system register of the communication port to the computer link for using this
function.
1. Only the slave function is available for the FPΣ 12k type.
2. Both the master and slave functions are available for the FPΣ 32k type, however, the master function
is not available for the TOOL port.
The 1:1 or 1:N communication is available between our devices equipped with the computer link function
and the MEWTOCOL-COM.
[Our devices (e.g.)] : PLC, IPD, temperature control unit, eco-power meter
For the MEWTOCOL master function, communication is possible with COM1 port and COM2 port of the
32k type only. Do not execute the F145 (SEND) nor F146 (RECV) instructions when the unti is used as a
slave unit.
7-2
MEWTOCOL slave function
• This function is to receive commands from the computer link, execute the process and send back the
results. Any special ladder program is not necessary to use this function. (Set the communication
conditions in the system registers.) It enables the 1:1 or 1:N communication with a master computer or
PLC.
• The program for the computer side must be written in BASIC or C language according to the
MEWTOCOL-COM. MEWTOCOL-COM contains the commands used to monitor and control PLC
operation.
7-3
PC(PLC) link
In a PC(PLC) link, data is shared with all PLCs connected via MEWNET using dedicated internal relays
called link relays (L) and data registers called link registers (LD).
If the link relay contact for one PLC goes on, the same link relay also goes on in each of the other
PLCs connected to the network. Likewise, if the contents of a link register are rewritten in one PLC, the
change is made in the same link register of each of the other PLCs connected to the network.
The status of the link relays and link registers in any one PLC is fed back to all of the other PLCs
connected to the network, so control of data that needs to be consistent throughout the network, such
as target production values and type codes, can easily be implemented to coordinate the data, and the
data of all units are updated at the same time.
- Link relay
In the figure below, when link relay L0 of the master station (no.1) turns on, this signal is converted by
the programs of the other stations, and Y0 of the other stations is activated.
- Link register
In the figure below, if a constant of 100 is written to LD0 of the master station (no.1), the contents of LD0
in the other stations are also changed to a constant of 100.
7-4
MODBUS RTU (32k type only)
Function overview
• The MODBUS RTU protocol enables the communication between the FPΣ and other devices (including
our FP-e, Programmable display GT series and KT temperature control unit).
• Enables to have conversations if the master unit sends instructions (command messages) to slave
units and the slave units respond (response messages) according to the instructions.
• Enabels the communication between the devices of max. 99 units as the master function and slave
function is equipped.
Master function
Writing and reading data for various slaves is available using the F145 (SEND) and F146 (RECV)
instructions.
Individual access to each slave and the global transmission is possible.
Slave function
If the slave units receive a command message from the master unit, they send back the response
message corresponding to the content.
Do not execute the F145 (SEND) nor F146 (RECV) instructions when the unti is used as a slave unit.
7-5
7.1.2 Types of Communication Cassette
There are four types of communication cassettes, each having a particular field of application:
Terminal layout
Abbreviation Name Signal direction Port
SD Transmitted Data FPΣ → External device
RD Received Data FPΣ ← External device
RS Request to Send FPΣ → External device COM1 port
CS Clear to Send FPΣ ← External device
SG Signal Ground
Terminal layout
Abbreviation Name Signal direction Port
S1 Transmitted Data 1 FPΣ → External device
COM1 port
R1 Received Data 1 FPΣ ← External device
S2 Transmitted Data 2 FPΣ → External device
COM2 port
R2 Received Data 2 FPΣ ← External device
COM1 port
SG Signal Ground
COM2 port
7-6
1-channel RS485 type (Product No. AFPG803)
This communication cassette is a 1-channel unit with a two-wire RS485 port.
Terminal layout
Signal
Abbr. Name Port
direction
+ Transmission line (+)
− Transmission line (−)
COM
+ Transmission line (+)
1 port
− Transmission line (−)
E Terminal station setting
1-channel RS485 and 1-channel RS232C combination type (Product No. AFPG806)
This communication cassette equips a 1-channel unit with a two-wire RS485 port and 1-channel unit with
a three-wire RS232C port.
Terminal layout
Abbr. Name Signal direction Port
Transmission
+ RS485
line (+)
(COM1
Transmission
− port)
line (−)
SD Sent Data FPΣ → External device RS232C
RD Received Data FPΣ ← External device (COM2
SG Signal Ground port)
7-7
Communication cassette LED indication
The indication of the control unit is for 2-channel RS232C type. For the other types, refer to the following.
Indication of
AFPG801 AFPG802 AFPG803 AFPG806
control unit
RS485
SD SD SD
SD
RS485
RD RD RD
RD
RS232C
RS SD Not used
SD
RS232C
CS RD Not used
RD
LED Communicating: Flashes
No communication: Lights out
Difference of dimensions
AFPG801 AFPG806
AFPG802 Note) This is longer by 5mm.
AFPG803
7-8
7.1.3 Names and Principle Applications of the Ports
Port name Port type Communication function
Standard feature
Computer link
COM0 port (Mini DIN 5-pin
General-purpose serial communicatoin (in RUN mode only)
connector)
Computer link
MEWTOCOL master
Communication
COM1 port General-purpose serial communication
cassette
PC(PLC) link
MODBUS RTU
Computer link
Communication MEWTOCOL master
COM port 2
cassette General-purpose serial communication
MODBUS RTU
7-9
7.2 Communication Specifications
Communication Specifications
Note1) 9) General-purpose serial Note1)
Computer link Note1) 9) MODBUS RTU
communication
1:1 1:N 1:1 1:N PC(PLC) link 1:1 1:N
communi- communi- communi- communi- communi- communi-
cation cation cation cation cation cation
Note2)
RS232C
Interface RS232C RS485 RS232C RS485 RS232C RS485
RS485
AFPG-801
AFPG-801 AFPG-801 AFPG-801
Target AFPG-803 AFPG-803 AFPG-802 AFPG-803
AFPG-802 AFPG-802 AFPG-802
items AFPG-806 AFPG-806 AFPG-803 AFPG-806
AFPG-806 AFPG-806 AFPG-806
AFPG-806
Half- Two-wire, Two-wire, Two-wire,
Commu- Half-duplex Token bus Half-duplex
duplex half-duplex half-duplex half-duplex
nication communi- (Floating communi-
communi- communi- communi- communi-
method cation master) cation
cation cation cation cation
Note1) Although it has adequate tolerance to noise, it is recommendable to make the user program to
execute retransmission (in order to improve reliability of the communication when a
communication error occurs due to excessive noises or when a receiver equipment cannot
receive data temporarily).
Note2) The number of units of the PC(PLC) link with RS232C is two.
Communication specifications
Item Specifications
Interface RS232C (non-isolated) RS485 (isolated) Note1) 2)
Communication mode 1:1 communicaion 1:N communication
Communication method Half-duplex communication Two-wire half-duplex communication
Synchronous method Start stop synchronous system
Transmission line Multicore shielded line Shielded twisted-pair cable or VCTF
Transmission distance 15 m Max. 1200 m Note1) 2)
Baud rate Note3) Note8)
2400, 4800, 9600, 19200, 38400, 57600, 115200 bps
(to be set by system register)
Computer link ASCII, JIS7, JIS8
Trans-
General-purpose
mission ASCII, JIS7, JIS8, Binary
serial ommunication
code
MODBUS RTU Binary
Communication Data length 7 bits/8 bits
format Parity None/Even/Odd
(to be set by Stop bit 1 bit/2 bits
system register) Start code STX/No STX
Note4)
End code CR/CR+LF/None/ETX
Max. 99 units (Max. 32 units when C-
No. of connected units Note5) 6) 7) 2 units
NET adapter is connected.)
Note1) When connecting a commercially available device that has an RS485 interface, please confirm
operation using the actual device. In some cases, the number of units, transmission distance,
and baud rate vary depending on the connected device.
7-10
Note2) The values for the transmission distance, baud rate and number of units should be
within the values noted in the graph below.
When using a baud rate of 2400 bps to 38400 bps, you can set up to a maximum of
99 units (stations) and maximum transmission distance of 1200 m.
Note3) Only 9600 bps or 19200 bps can be specified when the C-NET adapter is connected with the
RS485 interface.
Note4) The start code and end code can be used only in the general-purpose serial communication
mode.
Note5) The converter SI-35 manufactured by Lineeye Co., Ltd is recommendable for the RS485 at the
computer side. Adjust the response time for the FP-X by the SYS1 instruction if necessary.
Note6)Regarding the setting of unit numbers:
When the unit number setting switch is “0”, the system register is effective.
When the unit number setting switch is other than “0”, the unit number setting switch is effective,
and the unit number setting of the system register is ignored.
(Max. 31 units can be specified with the unit number setting switch.) (When the setting is specified
with the unit number setting switch, the COM1 port and the COM2 port has the same unit
number.
Note7)Connect the “−“ terminal and the “+” terminal with a lead wire to make the termination resistance
of the AFPG803 effective.
The termination resistance of the AFPG806 is specified by the dip switch in the communication
cassette.
There is no termination resistance at the RS232C port.
Note8) The RS485 port of the AFPG806 is either 19200 bps or 115200 bps only.
Also the baud rate must be identically set by the system register and the dip switch in the
communication cassette. The baud rate for the PC(PLC) link mode is fixed at 115200 bps.
The baud rate for the RS232C port of the AFPG806 can be set by the system register only.
Note9) The MEWTOCOL master function, MODBUS RTU master function and general-purpose serial
communication function at the TOOL port is available only for the FPΣ 32k type.
7-11
7.2.1 Precaution When Using RS485 Port
FPG-COM3 (AFPG803), FPG-COM4 (AFPG806)
SYS1 instruction is available for FPΣ, which enables to change the time after receiving a command until
a response is returned.
With the converter SI-35 manufactured by Lineeye Co., Ltd, adjust the response time by this instruction if
necessary.
SYS1 instruction: This is to delay a response for [n] scan time to be specified.
Example:
When R0 turns on, the response of COM1 port (RS485 port) delays for two scans. If the scan time is
500µs, it delays for 1 ms.
The RS485 port of AFPG806 (COM4) occupies the communication line for a given time after transmitting
data. No transmission is available during this period.
When data is transmitted from FPΣ via the RS485 communication of AFPG806 (COM4), start the
transmission of the data to FPΣ after the time mentioned blow passes at a receiver.
7-12
Following adjustments are required depending on the types of connected equipment.
1. With FPΣ (when the connected equipment are also the combination of FPΣ and AFPG806)
• When PC(PLC) link mode: Adjustment is not required.
• When general communication mode: Adjust timing by ladder program.
• When computer link mode: Adjust timing by SYS1 instruction.
3. With computer
• Adjust timing by wait instruction system.
7-13
7.3 Installation and Wiring
7-14
7.3.2 Wiring
Accessory communication connector/Suitable wire
The communication cassette is supplied with a communication connector, which has a screw-type
terminal block.
Use the following items for wiring.
7-15
Screwdriver for terminal block
To tighten the terminals of the communication connector, use a screwdriver by Phoenix Contact (product
no. 1205037, blade size 0.4 x 2.5, model no. SZS 0,4 x 2,5). The tightening torque should be 0.22 to
0.25 Nm (2.3 kgfcm to 2.5 kgfcm).
Wiring method
1. Remove 7 mm of the wire’s insulation.
2. Insert wire into terminal hole until it stops. Tighten screw clockwise to fix wire in place.
(Tightening torque: 0.22 Nm to 0.25 Nm (2.3 kgfcm to 2.5 kgfcm)
7-16
7.3.3 Cables
Please use the following cables for systems using RS485 type communication cassettes.
2
0.75 mm Max. Polychlo-
Max. Approx. VCTF-0.75
VCTF (AWG18) 25.1 rinated 2
0.6 mm 6.6 mm mm x 2C(JIS)
or greater Ω/km biphenyl
Note:
• Use shielded twisted pair cables.
• Use only one type of transmission cable. Do not mix more than 1 type.
• Twisted pair cables are recommended in noisy environments.
• When using shielded cable with crossover wiring for the RS485 transmission line, grounded one end.
• If two wires are connected to the plus terminal and minus terminal of the RS485 of AFPG806 (COM4),
use the wires of the same cross-sectional area which is 0.5 to 0.75 mm2.
7-17
7.4 Communication Function 1: Computer Link
Computer link
• The computer link function is to communicate between a computer and PLCs or between PLC and
external devices connected. A proprietary MEWNET protocol called MEWTOCOL-COM is used for
communicating with the computer link. MEWTOCOL-COM is also used for the communication between
the tool software such as FPWIN-GR and the PLC.
• There are a MEWTOCOL master function and a MEWTOCOL slave function for the computer link. The
side that issues commands is called master, and the side that receives the commands, executes the
process and sends back responses is called slave.
•
Note:
It is necessary to set the system register of the communication port to the computer link for using this
function.
1. Only the slave function is available for the FPΣ 12k type.
2. Both the master and slave functions are available for the FPΣ 32k type, however, the master function
is not available for the TOOL port.
7-18
MEWTOCOL master function (32k type only)
• This function is to carry out the communication on the master side (side 0that issues commands) of the
computer link. It is executed with the PLC’s instruction F145(SEND) or F146(RECV). It is not necessary
to write the response process as a ladder, so the program is easier than the general-purpose
communication function.
The 1:1 or 1:N communication is available between our devices equipped with the computer link function
and the MEWTOCOL-COM.
[Our devices (e.g.)] : PLC, IPD, temperature control unit, eco-power meter
For the MEWTOCOL master function, communication is possible with the 32k-type COM1 and COM2
ports only. Do not execute the F145 (SEND) nor F146 (RECV) instructions when the unti is used as a
slave unit.
7-19
Outline of operation when using computer link (MEWTOCOL slave)
Command and response
• Instructions issued by the computer to the PLC are called commands. Messages sent back to the
computer from the PLC are called responses. When the PLC receives a command, it processes the
command regardless of the sequence program, and sends a response back to the computer.
MEWTOCOL-COM sketch
• Communication is carried out in a conversational format, based on the MEWTOCOL-COM
communication procedures.
• Data is sent in ASCII format.
• The computer has the first right of transmission. The right of transmission shifts back and forth
between the computer and the PLC each time a message is sent.
7-20
Format of command and response
Command message
All command-related items should be noted in the text segment. The unit number must be specified
before sending the command.
2. Unit number
The unit number of the PLC to which you want to send the command must be specified. In 1:1
communication, the unit number “01” (ASCII code: H3031) should be specified.
3. Text
The content differs depending on the command. The content should be noted in all upper-case
characters, following the fixed formula for the particular command.
4. Check code
BCC (block check code) for error detection using horizontal parity. The BCC should be created so that it
targets all of the text data from the header to the last text character. The BCC starts from the header and
checks each character in sequence, using the exclusive OR operation, and replaces the final result with
character text. It is normally part of the calculation program and is created automatically.
The parity check can be skipped by entering “* *” (ASCII code: H2A2A) instead of the BCC.
7-21
Note:
• The method for writing text segments in the message varies depending on the type of command.
• If there is a large number of characters to be written, they may be divided and sent as several
commands. If there is a large number of characters in the value that was loaded, they may be divided
and several responses sent.
Key Point:
• With the FPΣ, an expansion header “<” is supported to send single frames of up to 2048 characters as
well as general “%”.
Type of header No. of characters that can be sent in 1 frame
% Max. 118 characters
< Max. 2048 characters
Response message
The PLC that received the command in the example above sends the processing results to the computer.
2. Unit number
The unit number of the PLC that processed the command is stored here.
3. Text
The content of this varies depending on the type of command. The value should be read based on the
content. If the processing is not completed successfully, an error code will be stored here, so that the
content of the error can be checked.
7-22
4. Check code
BCC (block check code) for error detection using horizontal parity. The BCC starts from the header and
checks each character in sequence, using the exclusive OR operation, and replaces the final result with
character text.
Note:
• If no response is returned, the communication format may not be correct, or the command may not
have arrived at the PLC, or the PLC may not be functioning. Check to make sure all of the
communication specifications (e.g. baud rate, data length, and parity) match between the computer and
the PLC.
• If the response contains an “!” instead of a “$”, the command was not processed successfully. The
response will contain a communication error code. Check the meaning of the error code.
• Unit number and command name are always identical in a command and its corresponding response
(see below). This makes the correspondence between a command and a response clear.
7-23
Commands
Command name Code Description
RC Reads the on and off status of contacts.
(RCS) - Specifies only one point.
Read contact area
(RCP) - Specifies multiple contacts.
(RCC) - Specifies a range in word units.
WC Turns contacts on and off.
(WCS) - Specifies only one point.
Write contact area
(WCP) - Specifies multiple contacts.
(WCC) - Specifies a range in word units.
Read data area RD Reads the contents of a data area.
Write data area WD Writes data to a data area.
Read timer/counter set value area RS Reads the value set for a timer/counter.
Write timer/counter set value area WS Writes a timer/counter setting value.
Read timer/counter elapsed value area RK Reads the timer/counter elapsed value.
Write timer/counter elapsed value area WK Writes the timer/counter elapsed value.
Register or Reset contacts monitored MC Registers the contact to be monitored.
Register or Reset data monitored MD Registers the data to be monitored.
Monitors a registered contact or data using MD
Monitoring start MG
and MC.
Embeds the area of a specified range in a 16-
Preset contact area (fill command) SC
point on and off pattern.
Writes the same contents to the data area of a
Preset data area (fill command) SD
specified range.
Read system register RR Reads the contents of a system register.
Write system register WR Specifies the contents of a system register.
Reads the specifications of the programmable
Read the status of PLC RT
controller and error codes if an error occurs.
Switches the operation mode of the
Remote control RM
programmable controller.
Abort AB Aborts communication.
7-24
Setting communication parameters
Setting for Baud rate and communication format
The settings for baud rate and communication format of the COM port are entered using the FPWIN GR.
Select “Options” in the menu bar, and then select “PLC Configuration”. Double-click “COM Port”. There
are separate settings for COM1 and COM2 .
Note) Also, select “Computer Link” when using the MEWTOCOL master funciton. (FPΣ 32k type only)
No. 413 (for COM1 port), No. 414 (for COM2 port) Communication Format setting
Default setting:
Char. Bit …………… 8 bits
Parity ………………. Odd
Stop Bit ……………. 1 bit
Terminator ………… CR
Header …………….. STX not exist
To change the communication format to match an external device connected to the COM port, enter the
settings for the various items.
No. 415 Baud rate (communication speed) setting
The default setting for the communication speed for the various ports is 9600 bps. Change the value to
match the external device connected to the COM port:
Click on , and select one of the values from 2400, 4800, 9600, 19200, 38400, 57600 and
115200 bps.
Restrictions
• The two ports of the communication cassette can be used independently. They can be set to computer
link mode or general-purpose serial communication
• There is no restriction when multiple ports are used.
7-25
7.4.2 1:1 Communication (Computer link)
System register settings
Settings for COM1 port (AFPG801, AFPG802)
No. Name Set Value
No. 410 COM1 port unit number 1
No. 412 Note) COM1 port selection of communication mode Computer link
No. 413 Communication format for COM1 port Data length: …… 7 bits/8 bits
Parity check: ….. None/Odd/Even
Stop bit: ………… 1 bit/2 bit
Terminator: …….. CR
Header: ………… STX not exist
No. 415 Note) Baud rate setting for COM1 port 2400 to 115200 bps
Programming
• For a computer link, a program should be created that allows command messages to be sent and
response messages to be received on the computer side. The PLC automatically sends back a
response to a command. No communication program is required on the PLC side.
• Also, if a software program such as PCWAY is used on the computer side, PLC data can easily be
read and written without having to think about the MEWTOCOL-COM protocol
7-26
Connection to the computer <1:1 communication>
Overview
For a 1:1 computer link between the FPΣ and a computer, an RS232C cable is needed. Communication
is performed via commands from the computer and responses from the PLC.
7-27
7.4.3 1:N Communication (Computer Link)
Overview
For a 1:N computer link, the computer and the FPΣ are connected through a commercially available
RS232C-RS485 conversion adapter, and the respective PLCs are wired using an RS485 cable.
The computer and the PLC communicate via commands and responses: The computer sends a
command specifying the unit number, and the PLC with that unit number sends a response back to the
computer.
When data is transmitted from FPΣ via the RS485 communication of AFPG806 (COM4), start the
transmission of the data to FPΣ after the time mentioned blow passes at a receiver.
In case of 19200 bps: 1 ms In case of 115200 bps: 200µs
Note) Lineeye SI-35 is recommended to be used as a conversion adapter.
7-28
Setting of unit numbers
By default, the unit number for each communication port is set to 1 in the system register settings. There
is no need to change this for 1:1 communication, but if 1:N communication is used to connect multiple
PLCs to the transmission line (e.g. in a C-NET), the unit number must be specified so that the
destination of the command can be identified.
The unit number is specified either by using the unit number setting switch or the system register.
When the unit number setting switch is “0”, the system register is valid.
When the unit number setting switch is “other than 0”, the unit number setting switch is valid, and the unit
number setting of the system register is ignored. In this case, the same number is given to the port 1 and
port 2.
Note:
• Unit numbers set using the unit number setting switch are valid only for the communication port of the
communication cassette. Tool port unit numbers should be set using the system register.
7-29
Setting unit numbers with the setting switch
The unit number setting switch is located underneath the cover on the left side of the FPΣ control unit.
By setting the selector switch and the dial, a unit number between 1 and 31 can be set.
No. 410 (for COM1 port), No. 411 (for COM2 port) unit number settings
With 1:N communication, the various RS485 devices are connected using twisted pair cables. The (+)
and (-) signals of transmission line 1 and transmission line 2 are connected inside the communication
cassette, and either port may be used as COM1 port.
7-31
AFPG806
Connection diagram
In case of using the AFPG806, connect two cables each to the (+) terminal and (-) terminal.
Use the wires of the same cross-sectional area which should be 0.5 to 0.75 mm2.
7-32
7.4.4 MEWTOCOL Master (Sample Program) (Available For 32k Type Only)
Use the F145 (SEND) “Data send” or F146 (RECV) “Data receive” instruction to use the MEWTOCOL
master function.
Sample program
7-33
Flow chart
Note) The above COM1 port will be COM2 port for the COM2 port.
7-34
7.5 Communication Function: General-purpose Serial
Communication
Outline of operation
To send data to and receive it from an external device using the general-purpose serial communication
function, the data transmission and data reception functions described below are used. The F159
(MTRN) instruction and the “reception done” flag are used in these operations, to transfer data between
the FPΣ and an external device.
Sending data
Data to be transmitted from the PLC is stored in the data register used as the send buffer (DT). When
F159 (MTRN) is executed, the data is output from the COM port.
• The terminator specified in the system
register is automatically added to the data
that has been sent.
• The maximum volume of data that can be
sent is 2048 bytes.
7-35
Receiving data
Data received from the COM port is stored in the receive buffer specified in the system register, and the
“reception done” flag goes on. Data can be received whenever the “reception done” flag is off.
7-36
Setting Baud rate, communication format
By default, the COM port is set to “Computer link”. System register settings should be entered for the
following items.
The settings for baud rate and communication format are made using the FPWIN GR programming tool.
Select “Options” in the menu bar, and then select “PLC Configuration”. Double-click “COM Port”. There
are separate settings for COM1 and COM2 .
No. 413 (for COM1 port), No. 414 (for COM2 port) Communication Format setting
Default setting:
Char. Bit …………… 8 bits
Parity ………………. Odd
Stop Bit ……………. 1 bit
Terminator ………… CR
Header …………….. STX not exist
Enter the appropriate settings to match the communication format of the external device connected to
the COM port..
Click on , and select one of the values from 2400, 4800, 9600, 19200, 38400, 57600 and
115200 bps.
No. 416 (for COM1 port), No. 418 (for COM2 port) Starting address for data received
No. 417 (for COM1 port), No. 419 (for COM2 port) Buffer capacity setting for data received
To use general-purpose serial communication, the receive buffer must be specified. By default, the entire
data register area is defined as the receive buffer. To change this area, specify the starting address
using system register no. 416 (no. 418 for COM2 port) and the volume (number of words) using no. 417
(no. 419 for COM2 port). The receive buffer layout is shown below.
7-37
7.5.2 Communication with External Devices
Programming example of general-purpose serial communication
The F159 (MTRN) instruction is used to send and receive data via the specified COM port. F159 (MTRN)
is only used with the FPΣ. It is an updated version of F144 (TRNS) and allows multiple communication
ports to be accommodated.
F144 (TRNS) is not available with the FPΣ.
Devices that can be specified for S: Only data registers (DT) can be specified as the send buffer.
Devices that can be specified for n: WX, WY, WR, WL, SV, EV, DT, LD, I (I0 to ID), K, H
Devices that can be specified for D: Only the K constants (only K1 and K2)
Transmission of data
The amount of data specified by n is sent to the external device from among the data stored in the data
table, starting with the area specified by S, through the COM port specified by D. Data can be sent with
the header and terminator automatically attached. A maximum of 2048 bytes can be sent. When the
above program is run, the eight bytes of data contained in DT101 to DT104 and stored in the send buffer
starting from DT100 are sent from COM1 port.
Reception of data
Reception of data is controlled by turning the “reception done” flags R9038/R9048 on and off. The
received data is stored in the receive buffe specified in the system register. Data can be received when
F159 (MTRN) turns the “reception done” flag off. When the reception of the data is completed (the
terminator is received), the “reception done” flag turns on, and subsequently, receiving data is prohibited.
To receive the next data, execute the F159 (MTRN) instruction and turn the “reception done” flag off to
clear the number of received bytes to 0. To receive data continuously without sending data, clear the
number of transmitted bytes to 0 (set “n” to “K0”), and then execute the F159 (MTRN) instruction.
7-38
Sending data to external devices
Communication with external devices is handled through the data registers.
Data to be output is stored in the data register used as the send buffer (DT), and when the F159 (MTRN)
instruction is executed, the data is output from the COM port.
Explanatory diagram
7-39
Explanation of data table
The data table for transmission starts at the data register specified in S.
• Use an F0 (MV) or F95 (ASC) instruction to write the data to be transmitted to the transmission data
storage area specified in S.
Transmission process
When the execution condition of the F159 (MTRN) instruction turns on and the “transmission done” flag
R9039/R9049 is on, operation is as follows:
1. N is preset in S. The “reception done” flag R9038/R9048 is turned off, and the reception data number
is cleared to 0.
2. The set data is transmitted in order from the lower-order byte in S+1 of the table.
• During transmission, the “transmission done” flag R9039/R9049 turns off.
• If system register 413 or 414 is set to header (start code) with STX, the header is automatically added
to the beginning of the data.
• The terminator (end code) specified in system register 413 or 414 is automatically added to the end of
the data.
3. When all of the specified quantity of data has been transmitted, the S value is cleared to 0 and the
“transmission done” flag R9039/R9049 turns on.
When you do not wish to add the terminator (end code) during transmissions:
• Specify the number of bytes to be transmitted using a negative number.
• If you also do not wish to add a terminator to received data, set system register 413 or 414 to
“Terminator - None”.
Programming example:
The following program transmits 8 bytes of data without adding the terminator.
Key Point:
• Do not include the terminator (end code) in the transmission data. The terminator is added
automatically.
• When “STX exist” is specified for the header (start code) in system register 413 or 414, do not add the
header to the transmission data. The header is added automatically.
• When using the 1-channel RS232C type communication cassette, transmission does not take place
until CS (Clear to Send) turns on. If you are not going to connect to the other device, connect to RS
(Request to Send).
• The maximum number of transmission bytes n is 2048.
• The contact numbers in parentheses refer to COM2 port.
7-40
Receiving data from external devices
Data input from the COM port is stored in the
receive buffer specified by the system register,
and the “reception done” flag goes on. If the
“reception done” flag is off, data can be received
at any time.
Note:
• Be aware that the “reception done” flag R9038 or R9048 changes even while a scan is in progress
(e.g., if the “reception done” flag is used multiple times as an input condition, there is a possibility of
different statuses existing within the same scan.) To prevent multiple read access to the special internal
relay you should generate a copy of it at the beginning of the program.
Explanatory diagram
7-41
Explanation of data table
Data sent from an external device connected to the RS232C port is stored in the data registers that have
been set as the receive buffer.
• Specify the data registers in system register 416 to
419.
• The number of bytes of data received is stored in the
starting address of the receive buffer. The initial value
is 0.
• Received data is stored in the received data storage
area in order from the lower -order byte.
Reception process
When the “reception done” flag R9038 (R9048) is off, operation takes place as follows when data is sent
from an external device. (The R9038 (R9048) flag is off during the first scan after RUN).
1. Incoming data is stored in order from the lower-order byte of the 2nd-word area of the receive buffer.
Header and terminator (start and end codes) are not stored.
2. When the terminator (end code) is received, the “reception done” flag R9038 (R9048) turns on.
Reception of any further data is prohibited.
3. When an F159 (MTRN) instruction is executed, the “reception done” flag R9038 (R9048) turns off, the
number of received bytes is cleared, and subsequent data is stored in order from the lower-order byte.
For repeated reception of data, perform the following steps:
1. Receive data
2. Reception done (R9038/R9048: on, reception prohibited)
3. Process received data
4. Execute F159 (MTRN) (R9038/R9048: off, reception possible)
5. Receive subsequent data
Key Point:
• The contact numbers in parentheses refer to COM2 port.
7-42
Data to be sent/received with FPΣ
Remember the following when accessing data in the FPΣ send and receive buffers:
• If a header has been chosen in the communication format settings, the code STX (H02) will
automatically be added at the beginning of the data begin sent.
• The data without the Code STX at the reception is stored in the receive buffer, and the “reception
done” flag turns on when the terminator (end code) is received.
However, if the code STX is added in the middle of the data, the number of received byte is cleared to
0, and the data is stored from the beginning of the receive buffer.
• A terminator is automatically added to the end of the data being sent.
• There is no terminator on the data stored in the receive buffer.
Sending data:
Data written to the send buffer will be sent just as it is.
Example:
The data “12345” is transmitted as an ASCII code to a device with RS232C port.
1. Data sent using the F95 (ASC) instruction should be converted to ASCII code data.
2. If DT100 is being used as the send buffer, data will be stored in sequential order in the data registers
starting from the next register (DT101), in two-byte units consisting of the upper and the lower byte.
Receiving data:
The data of the receive area being read is ASCII code data.
Example:
The data “12345CR” is transmitted from a device with RS232C port.
• If DT200 is being used as the receive buffer, received data will be stored in the registers starting from
DT201, in sequential order of first the lower byte and then the upper byte.
7-43
Flag operation in serial communication
Header: No-STX, Terminator: CR
Receiving data:
The “reception done” flag, the “transmission done” flag, and the F159 (MTRN) instruction are related as
follows:
Note:
• Be aware that the “reception done” flag R9038 or R9048 changes even while a scan is in progress
(e.g., if the “reception done” flag is used multiple times as an input condition, there is a possibility of
different statuses existing within the same scan.) To prevent multiple read access to the special internal
relay you should generate a copy of it at the beginning of the program.
Key Point:
• The contact numbers in parentheses refer to COM2 port.
7-44
Header: STX, Terminator: ETX
Receiving data:
The “reception done” flag, the “transmission done” flag, and the F159 (MTRN) instruction are related as
follows:
• The data is stored in the receive buffer in sequential order. When the header is received, the number of
bytes received is cleared, and the address (write pointer) in the receive buffer is reset to the initial
address.
• Reception is disabled while the “reception done” flag R9038 or R9048 is on.
• Also, When F159 (MTRN) is executed, the number of bytes received is cleared, and the address (write
pointer) in the receive buffer is reset to the initial address.
• If there are two headers, data following the second header overwrites the data in the receive buffer.
• The “reception done” flag R9038 or R9048 is turned off by the F159 (MTRN) instruction. Therefore, if
F159 (MTRN) is executed at the same time the terminator is received, the “reception done” flag will not
be detected.
7-45
Sending data:
The “reception done” flag, the “transmission done” flag, and the F159 (MTRN) instruction are related as
follows:
• Header (STX) and terminator (ETX) are automatically added to the data being transmitted. The data is
transmitted to an external device.
• When the F159 (MTRN) instruction is executed, the “transmission done” flag R9039 or R9049 goes off.
• Duplex transmission is disabled while F159 (MTRN) is being executed. The “transmission done” flag
R9039 or R9049 must be observed.
Key Point:
• The contact numbers in parentheses refer to COM2 port.
7-46
Changing communication mode of COM port
An F159 (MTRN) instruction can be executed to change between general-purpose serial communication
mode and computer link mode. To do so, specify H8000 for n (the number of transmission bytes) and
execute the instruction.
The RS232C port selection flag in R9032 or R9042 turns on when general-purpose serial communication
mode is selected.
Note:
• When the power is turned on, the operating mode selected in system register no. 412 takes effect.
7-47
7.5.3 Connection with 1:1 Communication (General-purpose serial
communication)
System register settings
Settings for COM1 port (AFPG801, AFPG802)
No. Name Set Value
No. 412 COM1 port selection of communication General-purpose serial communication
mode
No. 413 Communication format for COM1 port Data length: …… 7 bits/8 bits
Parity check: ….. None/Odd/Even
Stop bit: ………… 1 bit/2 bits
Terminator: …….. CR/CR+LF/None/ETX
Header: ………… No STX/STX
No. 415 Baud rate setting for COM1 port 2400 to 115200 bps
No. 416 Starting address for receive buffer for DT0 to DT32764 (Initial value: DT0)
COM1 port
No. 417 Receive buffer capacity for COM1 port 0 to 2048 words (Initial value: 2048 words)
Note:
The TOOL port becomes the computer link automatically in the PROG. mode even if the general-
purpose serial communication has been set. (It is always possible to communicate with the tool software
such as FPWIN GR in the PROG. mode)
7-48
7.5.4 1:N Communication (General-purpose Serial Communication)
Overview
The FPΣ and the external units are connected using an RS485 cable. Using the protocol that matches
the external units, the F159 (MTRN) instruction is used to send and receive data.
When data has been sent from FPΣ via the RS485 communication of AFPG806, start sending data to
FPΣ side after the time mentioned below passed at the receiver.
In case of 19200 bit/s: 1 ms In case of 115200 bit/s: 200µs
7-50
Operation of PC(PLC) link
• Turning on a link relay contact in one PLC turns on the same link relay in all other PLCs on the same
network.
• Likewise, if the contents of a link register in one PLC are changed, the values of the same link register
are changed in all PLCs on the same network.
7-51
7.6.2 Setting Communication Parameters
Setting of communication mode
In the default settings, the COM port is set to computer link mode.
Set the communication mode using the FPWIN GR programming tool. Select “PLC Configuration” under
“Options”, and then select “COM1 port” tab. (The PC(PLC) link is available for COM1 port only.)
Key Point:
• When using a PC(PLC) link, the communication format and baud rate are fixed:
No. Name Set Value
No. 413 Communication format for COM1 Data length: …… 8 bits
port Parity check: ….. Odd
Stop bit: ………… 1 bit
Terminator: …….. CR
Header: ………… No STX
No. 415 Baud rate setting for COM1 port 115200 bps
Note1) Connect the “−“ terminal and the “E” terminal with a lead wire to make the termination resistance
of the AFPG803 effective.
The termination resistance of the AFPG806 is specified by the dip switch located in the
communication cassette.
Note2) The baud rate of the AFPG806 must be identically set to 115200 bps by the system register and
the dip switch located in the communication cassette.
7-52
Setting of unit numbers
By default, the unit number for the communication port is set to 1 in the system registers.
In a PC(PLC) link that connects multiple PLCs on the same transmission line, the unit number must be
set in order to identify the different PLCs.
The unit number is specified either by using the unit number setting switch, SYS1 instruction or the
system register.
Unit numbers are the numbers to identify the different PLCs on the same network. The same number
must not be used for more than one PLC on the same network.
If unit number setting switch is 0, SYS1 instruction and the system register Is valid.
If unit number setting switch is a number other than 0, the unit number setting switch is valid, and the
unit number setting with the system register is ignored. The same unit number is given to both COM1
port and COM2 port.
Note:
When using the PC(PLC) link with the RS232C, the number of units is 2.
7-53
Setting unit numbers with the setting switch
The unit number setting switch is located underneath the cover on the leftside of the FPΣ control unit.
The selector switch and the dial can be used in combination to set a unit number between 1 and 16.
(With the RS232C, a maximum of 2 unit number can be set.
Note1) Station numbers should be set sequentially and consecutively, starting from 1, with no breaks
between them. If there is a missing station number, the transmission time will be longer.
Note2) If fewer than 16 units are linked, the transmission time can be shortened by setting the largest
station number in system register no. 47.
Setting with SYS instruction
Setting the unit number setting switch to 0 makes the SYS instruction settings valid.
7-54
Link area allocation
• The link relays and link registers to be used in the PC(PLC) link are allocated in the link area of the
CPU unit. Link area allocations are specified by setting the system registers of the CPU unit.
Note:
The PC(PLC) link 1 is available for the FPΣ 32k type only.
Set the system register 46 to “Reverse” to use the PC(PLC) link 1.
System registers
Default
No. Name Set value
value
40 Range of link relays used for PC(PLC) link 0 0 to 64 words
41 Range of link data registers used for PC(PLC) link 0 0 to 128 words
42 Starting number for link relay transmission 0 0 to 63
For 43 Link relay transmission size 0 0 to 64 words
PC 44 Starting number for link data register tranmission 0 0 to 127
(PLC) 45 Link data register transmission size 0 0 to 128 words
link 0 46 PC(PLC) link switch flag Normal Normal: 1st half
Reverse: 2nd half
47 Maximum unit number setting for MEWNET-W0 16 1 to 16 Note1)
PC(PLC) link
46 PC(PLC) link switch flag Normal Normal: 1st half
Reverse: 2nd half
50 Range of link relays used for PC(PLC) link 0 0 to 64 words
For 51 Range of link data registers used for PC(PLC) link 0 0 to 128 words
PC
52 Starting number for link relay transmission 64 64 to 127
(PLC)
53 Link relay transmission size 0 0 to 64 words
link 1
54 Starting number for link data register tranmission 128 128 to 255
55 Link data register transmission size 0 0 to 128 words
57 Maximum unit number setting for MEWNET-W0 0 0 to 16 Note1)
PC(PLC) link
Note1) The same maximum unit number should be specified for all the PLCs connected in the PC(PLC)
link.
Link area configuration
• Link areas consist of link relays and link registers, and are divided into areas for PC(PLC) link 0 and
PC(PLC) link 1 and used with those units.
• The link relay which can ben used in an area for either PC(PLC) link 0 or PC(PLC) link 1 is maximum
1024 points (64 words), and the link register is maximum 128 words.
Note:
The PC link 1 can be used to connect with the second PC link W0 of the FP2 Multi Communication Unit
(MCU). At that time, the link relay number and link register number for the PC link can be the same
values as the FP2 (from WL64, from LD128).
Reference:
For the information on FP2-MCU, <Chapter 5 Communication Function PC(PLC) Link in FP2 Multi
Communication Unit Technical Manual ARCT1F396E>.
7-55
[Example]
The PC(PLC) link areas are divided into send and receive areas. The link relays and link registers are
transmitted from the send area to the receive area of a different FPΣ. The link relays and registers in the
receive area on the receiving side must be within the same area as on the sending side.
System registers
Set value of various control units
No. Name
No. 1 No. 2 No. 3 No. 4
No. 40 Range of link relays used for PC(PLC) link 64 64 64 64
No. 42 Start address of link relay send area 0 20 40 0
No. 43 Size of link relay send area 20 20 24 0
Note) No. 40 (range of link relays) must be set to the same range for all the units.
System registers
Set value of various control units
No. Name
No. 1 No. 2 No. 3 No. 4
No. 41 Range of link registers used for PC(PLC) link 128 128 128 128
No. 44 Start address of link register send area 0 40 80 0
No. 45 Size of link register send area 40 40 48 0
Note) No. 41 (range of link registers) must be set to the same range for all the units.
When link areas are allocated as shown above, the send area of unit no. 1 can be transmitted to the
receive areas of units no. 2, 3 and 4. Also, the receive area of unit no. 1 can receive data from the send
areas of units no. 2 and 3 . Unit no. 4 is allocated as a receive area only and can receive data from units
no. 1, 2 and 3, but cannot send data to other units.
7-56
For PC(PLC) link 1 (For FPΣ 32k type only)
Link relay allocation
System registers
Setting for various units
No. Name
No. 1 No. 2 No. 3 No. 4
50 Range of link relays used 64 64 64 64
52 Starting No. of word for link relay transmission 64 84 104 64
53 Link relay transmission size 20 20 24 0
Note) No. 50 (range of link relays used) must be set to the same range for all the units.
System registers
Setting for various units
No. Name
No. 1 No. 2 No. 3 No. 4
51 Range of link registers used 128 128 128 128
54 Starting No. for link register transmission 128 128 208 128
55 Link register transmission size 40 40 48 0
Note) No. 51 (range of link registers used) must be set to the same range for all the units.
When link areas are allocated as shown above, the No. 1 send area can be sent to the No. 2, No. 3 and
No. 4 receive areas. Also, the No. 1 receive area can receive data from the No. 2 and No. 3 send areas.
No. 4 is allocated as a receive area only, and can receive data from No. 1, No. 2 and No. 3, but cannot
transmit it to other stations.
Note:
The PC link 1 can be used to connect with the second PC link W0 of the FP2 Multi Communication Unit
(MCU). At that time, the link relay number and link register number for the PC link can be the same
values as the FP2 (from WL64, from LD128).
Set the system register 46 to “Reverse” to use the PC(PLC) link 1(the second half of link relays and link
registers).
Reference:
For the information on FP2-MCU, <Chapter 5 Communication Function PC(PLC) Link in FP2 Multi
Communication Unit Technical Manual ARCT1F396E>.
7-57
Partial use of link areas
In the link areas available for PC(PLC) link, link relays with a total of 1024 points (64 words) and link
registers with a total of 128 words can be used. This does not mean, however, that it is necessary to
reserve the entire area. Parts of the area which have not been reserved can be used as internal relays
and internal registers.
7-58
Note: Precautions for link area allocation
A mistake in the link area allocation will cause an error, and communication will be disabled.
System registers
Set value of various control units
No. Name
No. 1 No. 2 No. 3
No. 40 Range of link relays used for PC(PLC) link 64 64 64
No. 42 Start address of link relay send area 0 20 30
No. 43 Size of link relay send area 20 20 34
Invalid allocations
The allocations shown below are not possible, neither for link relays nor for link registers:
7-59
Setting the largest unit number for a PC(PLC) link
The largest unit number can be set using system register no. 47 (using system register no. 57 for
PC(PLC) link 1 (for FPΣ 32k type only)).
[Sample setting]
No. of units linked Setting contents
2 1st unit: Unit no. 1 is set
2nd unit: Unit no. 2 is set
A largest unit no. of 2 is set for each.
4 1st unit: Unit no. 1 is set
2nd unit: Unit no. 2 is set
3rd unit: Unit no. 3 is set
4th unit: Unit no. 4 is set
A largest unit no. of 4 is set for each.
n Nth unit: Unit no. n is set
A largest unit no. of n is set for each.
Note:
• Unit numbers should be set sequentially and consecutively, starting from 1, with no breaks between
them. If there is a missing unit number, the transmission time will be longer.
• For all PLCs which are linked, the same value should be set for the largest unit number.
• If there are fewer than 16 units linked and the largest unit number has not been set (default=16), or the
largest unit number has been set but the unit number settings are not consecutive, or the unit number
settings are consecutive but there is a unit for which the power supply has not been turned on, the
response time for the PC(PLC) link (the link transmission cycle) will be longer.
Setting PC(PLC) link switching flag (For FPΣ 32k type only)
PC(PLC) link switching flag can be set using system register no. 46.
If it is set to 0 (default value), the first half of the link relays and registers are used. If it is set to 1, the
second half of the loink relays and registers are used.
7-60
7.6.3 Monitoring
When using a PC(PLC) link, the operation status of the links can be monitored using the following relays.
Note:
Remote programming of the linked PLCs is not possible.
7-61
7.6.4 Connection Example of PC(PLC) link
When using three PLCs
The following example demonstrates how the PLC can be connected to two other FPΣ PLCs using a
PC(PLC) link connection. In the example shown here, link relays are use. When X1 of control unit no. 1
turns on, Y1 of unit no. 2 turns on. When X2 of unit no. 1 turns on, Y1 of unit no. 3 turns on.
Key Point:
Make sure the same unit number is not used for more than one of the PLCs connected through the
PC(PLC) link function.
7-62
Link area allocation
- Link relay allocation
System registers
Set value of various control units
No. Name
No. 1 No. 2 No. 3
No. 40 Range of link relays used for PC(PLC) link 64 64 64
No. 42 Start address of link relay send area 0 20 40
No. 43 Size of link relay send area 20 20 24
System registers
Set value of various control units
No. Name
No. 1 No. 2 No. 3
No. 41 Range of link registers used for PC(PLC) 128 128 128
link
No. 44 Start address of link register send area 0 40 80
No. 45 Size of link register send area 40 40 48
7-63
Connection diagram
<AFPG803>
<AFPG806>
In case of using the AFPG806, connect two cables each to the (+) terminal and (-) terminal.
Use the wires of the same cross-sectional area which should be 0.5 to 0.75 mm2.
The terminal station is specified with the dip switch located in the communication cassette.
7-64
Sample program
- Unit no. 1
When X1 is input, L0 of the link relay goes on, and when X2 is input, L1 of the link relay goes on.
- Unit no. 2
When L0 of the link relay goes on, Y0 is output.
- Unit no. 3
When L1 of the link relay goes on, Y1 is output.
7-65
7.6.5 PC(PLC) link Response Time
The maximum value for the transmission time (T) of one cycle can be calculated using the following
formula.
↓ Tlk (link addition processing time) …. If no stations are being added, Tlk = 0.
Tlk = Tlc (link addition command sending time) + Twt (addition waiting time) + Tls (sending time for
command to stop transmission if link error occurs) + Tso (master station scan time)
Calculation example 1
When all stations have been added to a 16-unit link, the largest station number is 16, relays and
registers have been evenly allocated, and the scan time for each PLCs is 1 ms.
Ttx = 0.096 Each Pcm = 23 + (4 + 8) x 4 = 71 bytes Tpc = Ttx x Pcm = 0.096 x 71 ≒ 6.82 ms
Each Ts = 1 + 6.82 = 7.82 ms Tlt = 0.096 x (13 + 2 x 16) = 4.32 ms
Given the above conditions, the maximum value for the transmission time (T) of one cycle will be:
T max. = 7.82 x 16 + 4.32 + 1 = 130.44 ms
7-66
Calculation example 2
When all stations have been added to a 16-unit link, the largest station number is 16, relays and
registers have been evenly allocated, and the scan time for each PLC is 5 ms
Ttx = 0.096 Each Pcm = 23 + (4 + 8) x 4 = 71 bytes Tpc = Ttx x Pcm = 0.096 x 71 ≒ 6.82 ms
Each Ts = 5 + 6.82 = 11.82 ms Tlt = 0.096 x (13 + 2 x 16) = 4.32 ms
Given the above conditions, the maximum value for the transmission time (T) of one cycle will be:
T max. = 11.82 x 16 + 4.32 + 5 = 198.44 ms
7-67
Calculation example 3
When all but one station have been added to a 16-unit link, the largest station number is 16, relays and
registers have been allocated evenly, and the scan time for each PLC is 5 ms.
Ttx = 0.096 Each Ts = 5 + 6.82 = 11.82 ms
Tlt = 0.096 x (13 + 2 x 15) ≒ 4.13 ms
Tlk = 0.96 + 400 + 0.67 + 5 ≒407 ms
Note: The default value for the addition waiting time is 400 ms.
Given the above conditions, the maximum value for the transmission time (T) of one cycle will be:
T max. = 11.82 x 15 + 4.13 + 5 + 407 = 593.43 ms
Calculation example 4
When all stations have been added to an 8-unit link, the largest station number is 8, relays and register
have been evenly allocated, and the scan time for each PLC is 5 ms.
Ttx = 0.096 Each Pcm = 23 + (8 + 16) x 4 = 119 bytes
Tpc = Ttx x Pcm = 0.096 x 119 ≒ 11.43 ms
Each Ts = 5 + 11.43 = 16.43 ms Tlt = 0.096 x (13 + 2 x 8) ≒ 2.79 ms
Given the above conditions, the maximum value for the transmission time (T) of one cycle will be:
T max. = 16.43 x 8 + 2.79 + 5 = 139.23 ms
Calculation example 5
When all stations have been added to a 2-unit link, the largest station number is 2, relays and registers
have been evenly allocated, and the scan time for each PLC is 5 ms.
Ttx = 0.096 Each Pcm = 23 + (32 + 64) x 4 = 407 bytes
Tpc = Ttx x Pcm = 0.096 x 407 ≒ 39.072 ms
Each Ts = 5 + 39.072 = 44.072 ms Tlt = 0.096 x (13 + 2 x 2) ≒ 1.632 ms
Given the above conditions, the maximum value for the transmission time (T) of one cycle will be:
T max. = 44.072 x 2 + 1.632 + 5 = 94.776 ms
Calculation example 6
When all stations have been added to a 2-unit link, the largest station number is 2, 32 relays and 2
register words have been evenly allocated, and the scan time for each PLC is 1 ms.
Ttx = 0.096 Each Pcm = 23 + (1 + 1) x 4 = 31 bytes
Tpc = Ttx x Pcm = 0.096 x 31 ≒ 2.976 ms
Each Ts = 1 + 2.976 = 3.976 ms Tlt = 0.096 x (13 + 2 x 2) ≒ 1.632 ms
Given the above conditions, the maximum value for the transmission time (T) of one cycle will be:
T max. = 3.976 x 2 + 1.632 + 1 = 10.584 ms
Note:
• In the description, “stations that have been added” refers to stations which are connected between
station no. 1 and the largest station number and for which the power supply has been turned on.
• Comparing examples 2 and 3, the transmission cycle time is longer if there is one station that has not
been added to the link. As a result the PC(PLC) link response time is longer.
• The SYS1 instruction can be used to minimize thte transmission cycle time even if there are one or
more stations that have not been added to the link.
7-68
Reducing the transmission cycle time when there are stations that have not been added
If there are stations that have not been added to the link, the Tlk time (link addition processing time) and
with this the transmission cycle time will be longer.
With the SYS1 instruction, the link addition waiting time Twt in the above formula can be reduced. Thus,
SYS1 can be used to minimize the increase in the transmission cycle time.
Note:
If there are any 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 problem.
• The SYS1 instruction should be executed at the beginning of the program, at the rise of R9014. The
same waiting time should be set for all linked PLCs.
• The waiting time should be set to a value of at least twice the maximum scan time for any of the PLCs
connected to the link.
• If a short waiting time has been set, there may be PLCs that cannot be added to the link even if their
power supply is on. (The shortest time that can be set is 10 ms.)
7-69
Error detection time for transmission assurance relays
The power supply of any given PLC fails or is turned off, it takes (as a default value) 6.4 seconds for the
transmission assurance relay of the PLC to be turned off at the other stations. This time period can be
shortened using the SYS1 instruction.
Note:
The setting should not be changed as long as a longer transmission assurance relay detection
time does not cause any problems.
• The SYS1 instruction should be executed at the beginning of the program, at the rise of R9014. The
same time should be set for all linked PLCs.
• The time should be set to a value of at least twice the maximum transmission cycle time when all of the
PLCs are connected to the link.
• If short time has been set, the transmission assurance relay may not function properly. (The shortest
time that can be set is 100 ms.)
7-70
7.7 Communication Function 4: MODBUS RTU
Communication
Master function
Writing and reading data for various slaves is available using the F145 (SEND) and F146 (RECV)
instructions.
Individual access to each slave and the global transmission is possible.
Slave function
If the slave units receive a command message from the master unit, they send back the response
message corresponding to the content.
Do not execute the F145 (SEND) or F146 (RECV) instructions when the unti is used as a slave unit.
7-71
MODBUS RTU command message frame
START ADDRESS FUNCTION DATA CRC CHECK END
3.5-character time 8 bits 8 bits n*8 bits 16 bits 3.5-character time
7-72
Supported commands
Executable
Code Name (MODBUS Remarks
instructions for Name for FPΣ
(decimal) original) (Reference No.)
master
F146 (RECV) 01 Read Coil Status Read Y and R Coils 0X
F146 (RECV) 02 Read Input Status Read X Input 1X
F146 (RECV) 03 Read Holding Registers Read DT 4X
F146 (RECV) 04 Read Input Registers Read WL and LD 3X
F145 (SEND) 05 Force Single Coil Write Single Y and R 0X
F145 (SEND) 06 Preset Single Register Write DT 1 Word 4X
Cannot be issued 08 Diagnostics Loopback Test
F145 (SEND) 15 Force Multiple Coils Write Multiple Ys 0X
and Rs
F145 (SEND) 16 Preset Multiple Registers Write DT Multiple 4X
Words
Cannot be issued 22 Mask Write 4X Register Write DT Mask 4X
Cannot be issued 23 Read/Write 4X Registers Read/Write DT 4X
7-73
Setting using FPWIN GR
1. Change the display to the “Online monitor” by selecting “Online Edit Mode” under “Online” in the menu
bar or pressing [CTRL] and [F2] keys at the same time.
2. Select “Options” in the menu bar, and then select “PLC Configuration”. Click “COM Port”. There are
separate tabs for setting the COM1 and COM2 .
7-74
Sample program for MODBUS master
Use the F145 (SEND) “Data send” or F146 (RECV) “Data receive” instruction to use the MODBUS
master function.
7-75
Flow chart
Note) The above COM1 port will be COM2 port for the COM2 port.
7-76
Chapter 8
Security Functions
8.1 Type of Security Functions
There are mainly two functions as the security function of the FPΣ.
It is possible to rewrite data during any of these functions is being used.
• 4-digit password: 4 characters of 16 characters that are “0” to “9” and “A” to “F” can be used.
• 8-digit password: A maximum of 8 English one byte characters (case-sensitive) and symbols
can be used.
Note) 8-digit password is available for FPΣ 32k type only.
The state of the security can be checked at two displays of the programming tool FPWIN GR.
1. Select [Online Edit Mode] under the [Online] on the menu bar, or press the [CTRL] and [F2] keys at
the same time, to switch to the [Online] screen.
2. Select “Security information” or “Set PLC Password” under “Tool” on the menu bar.
8-2
8.2 Password Protect Function
This function is used to prohibit reading and writing programs and system registers by setting a
password on the FPΣ.
There are two ways to set a password as below.
1. Sets using the programming tool.
2. Sets using an instruction (SYS1 instruction).
8-3
8.2.1 Password Setting For FPΣ 32k Type Only
Setting using FPWIN GR
1. Select [Online Edit Mode] under the [Online] on the menu bar, or press the [CTRL] and [F2] keys at
the same time, to switch to the [Online] screen.
2. Select or “Set PLC Password” under “Tool” on the menu bar. The following display will be shown.
Current status
Indicates the current status of the password setting. There are following five statuses.
Note:
If the power supply of the PLC is turned on/off with the setting that the access is allowed, the setting will
be that the PLC is protected again.
8-4
Setting the Password protect function
As the dialog box is shown, select as below.
Digit number:
Select “4 digits” or “8 digits”.
Operation Mode:
Select “Protect”.
Click “Settings”.
Digit number:
Select “4 digits” or “8 digits”.
Operation Mode:
Select “Access”.
Click “Settings”.
Note:
If the power supply of the PLC is turned on/off with the setting that the access is allowed, the setting will
be that the PLC is protected again.
8-5
How to cancel the password setting
Following two methods are available to cancel the password setting.
Description Program
Unprotect Cancels the registered password to be specified. All programs are retained.
All programs are deleted.
Erases all programs and security information to
Force cancel (The upload protection setting is
cancel the setting forcibly.
also deleted.)
Digit number:
Select “4 digits” or “8 digits”.
Operation Mode:
Select “Unprotect”.
Click “Settings”.
Click [OK].
Executing the force cancel (Programs and security information are all deleted.)
Click [Force cancel].
Click [Yes].
8-6
If the current status is “Password is not set”, this
procedure has completed.
All programs and security information were
deleted.
Operation Mode:
Select “Protect”.
4 digits password:
Input a password to be set.
Click “Settings”.
8-7
Setting to allow the access to the program by inputting a password
As the dialog box is shown, select as below.
Operation Mode:
Select “Access”.
4 digits password:
Input a password to be set.
Click “Settings”.
Note:
If the power supply of the PLC is turned on/off with the setting that the access is allowed, the setting will
be that the PLC is protected again.
8-8
How to cancel the password setting
Following two methods are available to cancel the password setting.
Description Program
Unprotect Cancels the registered password to be specified. All programs are retained.
All programs are deleted.
Erases all programs and security information to
Force cancel (The upload protection setting is
cancel the setting forcibly.
also deleted.)
Operation Mode:
Select “Unprotect”.
4 digits password:
Input a password to be set.
Click “Settings”.
Click [OK].
Click [Yes].
Click [Yes].
8-9
8.3 Upload Protection FPΣ 32k Type Only
This function is to prohibit reading programs and system registers by setting to disable program
uploading.
If setting to prohibit program uploading, note that the ladder programs and system registers will be
disalbed to be uploaded after that.
However, editing the files that are controlled with a PC can be carried out online using the programming
tool. Note that the programs will be broken if the programs are not absolutely matched.
When using this function, store ladder programs as files without fail.
Click “Execute”.
8-10
8.4 Setting Function for FP Memory Loader
The following three functions of the FP memory loader (AFP8670/AFP8671) can be set through the FPΣ.
The setting will be effective when it is transferred to another FPΣ after the upload to the FP
memory loader from the set FPΣ.
Setting conditions
- 32k-type FPΣ V3.2 or later
- FP memory loader V2.0 or later
- FPWIN GR V2.8 or later
- 8-digit password is set.
Note: This function cannot be used when the setting to disable the download to the FPΣ older
than V3.2 has not been made.
8-11
8.4.3 Upload Protection Setting Function
(Set that PLC cannot be uploaded)
If this function is valid, the PLC will be in the upload protection state by downloading a program to the
PLC from the FP memory loader.
Note: This function cannot be used when the setting to disable the download to the FPΣ older
than V3.2 has not been made.
8-12
8.4.4 Version Check List
Version check list
State of target PLC to be written PLC Password 4 digits 8 digits 8 digits
version to Protected
Not set Protected Protected
Program in FP memory loader be written Note4)
V3.11
- No password
FPΣ 32K or older Note3)
or
All versions V3.20
- 4-digit or 8-digit password
or later Note1)
V3.11
- 8-digit password
or older
and
V3.20
- Download prohibition to old ver.
or later Note1) Note1) Note1)
- 8-digit password V3.11
and or older
- Download protection to old ver.
and V3.20
- Download permission only for or later Note1)
models with same password.
FPΣ 32K - 8-digit password V3.11
Ver3.20 or later and or older
- Download protection to old ver.
V3.20
and
or later Note1) Note1) Note1) Note2)
- Upload protection
- 8-digit password V3.11
and or older
- Download protection to old ver.
and
- Download permission only for V3.20
models with same password or later Note5) Note5) Note1)
and
- Upload protection
FPΣ 12K - No password
or - - -
- 4-digit
: Download possible : Download possible only for models with same password
: Download impossible -: No target model
Note1) Program downloading is not possible for FP memory loader Ver.1.*.
Note2) Upload protection cannot be set for FP memory loader Ver.1.*.
Note3) When downloading programs with 8-digit password, FP memory loader Ver.1.* will not enter
protection state after downloading finishes. To enter protection state, turn off the power and then
turn it on again.
Note4) The state that the setting has been made not to disable downloading to the old version on the
FPΣ Ver.3.20 or later .
Note5) When transferring data from FP memory loader to PLC, program data cannot be transferred by
Ver. 2 or later, however, only the "Upload protection" setting is effective.
8-13
8.4.5 Setting using FPWIN GR
1. Select [Online Edit Mode] under the [Online] on the menu bar, or press the [CTRL] and [F2] keys at
the same time, to switch to the [Online] screen.
2. Select or “Set PLC Password” under “Tool” on the menu bar. The following display will be shown.
8-14
8.5 Table of Security Settings/Cancel
When setting the security on FPΣ control unit
Status of security
Security not Upload 4-digit 8-digit
set protection password password
Upload protection A A A
Sets/
4-digit password A A N/A
Cancels
8-digit password A A N/A
A: Available, N/A: Not available
Note:
The following functions are not available for the FPΣ 12k type.
8-digit password
Upload protection
8-15
8-16
Chapter 9
Other Functions
9.1 P13 (ICWT) Instruction
Data registers of 32765 words can be stored and used in the built-in ROM (F-ROM data area)
control unit using the P13 (ICWT) instruction.
2. The power supply turns off when the P13 (ICWT) instruction is being executed.
If the power supply turns off during this instruction is being executed, the hold type area may not be kept.
(Also, when the power is shut off during rewriting in the RUN mode, the same event may occur.)
9-2
9.2 Sampling Trace Function 32k Type Only
9.2.1 Overview
The FPΣ control unit Ver3.10 and later versions support the sampling trace function.
Using this function enables to take samplings and record (accumulate) the state of artibrary data of 16
bits + 3 data registered in the PLC at an arbitrary timing, and to examine the changes in the bit and data
in details after stopping sampling at an arbitrary timing.
The sampling trace function is used in the time chart monitor function under the online menu of the
FPWIN GR.
The instructions, functions, special relays and special registers related to the sampling trace
function are as below.
F155(SMPL) sampling instruction
F156(STRG) sampling stop trigger instruction
Time charge monitor of FPWIN GR
Note: It is not possible to activate the sampling at regular time intervals and the sampling by the
F155(SMPL) instruction simultaneously.
If the stop trigger activates, the PLC will continue to take samplings for the specified No. of delay, and
then stop the sampling operaton. Once the sampling operation stops, the data will be automatically
retrieved by the tool software and will be indicated in a time chart.
It is possible to adjust whether to see before or after the trigger point by the setting of the No. of delay.
9-3
Operation image of sampling trace
9-4
(3) Start monitoring. Start with the button.
2. Sampling by instruction
(1) Register the bit/word device to be monitored by the time chart monitor function of FPWIN GR.
(2) Specify the sampling configurations.
Set the mode of the sampling configurations to “Trace”.
Set the sampling rate (time) to 0.
Stop monitoring. (Stop with the button, stop by the “Trigger Break” in the menu, or stop by the F156
instruction.)
9-5
9-6
Chapter 10
Self-Diagnostic and Troubleshooting
10.1 Self-Diagnostic function
10-2
10.2 Troubleshooting
Using FPWIN GR
With the FPWIN GR Ver. 2, if a PLC error occurs during programming or debugging and the RUN mode
is changed to the PROG. mode, the following status display dialog box is displayed automatically.
Check the contents of the self-diagnosed error.
Key Point:
To display the status display dialog box, select “Status Display” under “Online” on the menu bar.
Procedure 2
<For error code is 1 to 9>
• Condition
There is a syntax error in the program.
• Operation 1
Change to PROG. mode and clear the error.
• Operation 2
Execute a total-check function using FPWIN GR to determine the location of the syntax error.
10-3
<For error code is 20 or higher>
• Condition
A self-diagnostic error other than a syntax error has occurred.
• Operation 1
Use the programming tool in PROG. mode to clear the error.
Using FPWIN GR
Click on the “Clear Error” button in the “Status display dialog box”. Error code 43 and higher can be
cleared.
• In the PROG. mode, the power supply can be turned off and then on again to clear the error, but all of
the contents of the operation memory except hold type data arecleared.
• An error can also be cleared by executing a self-diagnostic error set instruction F148 (ERR).
Key Point:
When an operation error (error code 45) occurs, the address at which the error occurred is stored in
special data registers DT90017 and DT90018. If this happens, click on the “Operation Err” button in the
“Status display dialog box” and confirm the address at which the error occurred before cancelling the
error.
Procedure 1
Set the mode selector of PLC from RUN to PROG. mode and turn the power off and then on.
• If the ERROR/ALARM LED is turned on again, there is probably an abnormality in the FPΣ control unit.
Please contact your dealer.
• If the ERROR/ALARM LED is flashed, go to chapter 8.2.1.
Procedure 2
Set the mode selector from PROG. to RUN mode.
• If the ERROR/ALARM LED is turned on, the program execution time is too long. Check the program.
Check
(1)Check if instructions such as “JMP” or “LOOP” are pgrogrammed in such a way that a scan never
finish.
(2)Check that interrupt instructions are executed in succession.
10-4
10.2.3 ALL LEDs are OFF
Procedure 1
Check wiring of power supply.
Procedure 2
Check if the power supplied to the FPΣ control unit is in the range of the rating.
• Be sure to check the fluctuation in the voltage.
Procedure 3
Disconnect the power supply wiring to the other devices if the power supplied to the FPΣ control unit is
shared with them.
• If the LED on the control unit turn on at this moment, increase the capacity of the power supply or
prepare another power supply for other devices.
• Please contact your dealer for further questions.
10-5
10.2.4 Diagnosing Output Malfunction
Proceed from the check of the output side to the check of the input side.
Check
(1)Check for the duplicated use of output and for the output using the high-level instruction.
(2)Check the program flow when a control instruction such as MCR or JMP is used.
10-6
10.2.5 A Protect Error Message Appears
When a password function is used
Procedure
Enter a password in the “Set PLC Password” menu in FPWIN GR and turn on the “Access” radio button.
Using FPWIN GR
(1)Select “Set PLC Password” under “Tool” on the menu bar.
(2)The PLC password setting dialog box shown below is displayed. Turn on the radio button next to
“Access”, enter a password, and click on the “Settings” button.
Procedure 1
Check if the ERROR/ALARM LED is flashing.
Reference:
If the ERROR/ALARM LED is flashing, check <10.2.1 If ERROR/ALARM LED is flashing>.
Procedure 2
Execute a total-check function to determine the location of the syntax error.
Using FPWIN GR
Select “Debug” on the menu bar, and select “Totally check program”. Click on the “Execute” button in the
total check dialog box.
10-7
10.2.7 A Transmission Error has Occurred through RS485
Procedure 1
Check to make sure the transmission cables have been securely connected between the two (+)
terminals and two (−) terminals of the units, and that the final unit has been correctly connected.
Procedure 2
Check if the transmission cables are within the specifications range. At this point, make sure all of the
cables in the link are of the same type, and that multiple types of cables are not being used.
• Do not designate any unit other than those at both ends of the network as a terminal station.
Reference:
For the specifications range of the transmission cables, refer to <7.3.3 Selection of Transmission
Cables>.
Procedure 3
Check that link areas do not overlap.
Procedure 1
Check if the CS signal is on.
When the “COM.2 R” of the communication cassette LED does not light, the CS signal is not on.
If the three-wire type is used, connect the RS signal and the CS signal of the communication cassette,
and turn the CS signal on.
10-8
Chapter 11
Precautions During Programming
11.1 Use of Duplicated Output
11.1.2 When Output is Repeated with an OT, KP, SET or RST Instruction
Condition of internal and output relays during operation
• When instructions are repeatedly used which output to internal and output relays such as transfer
instructions and OT, KP, SET and RST instructions, the contents are rewritten at each step during
operation.
<Exmaple>
Processing when SET, RST and OT instructions are used (X0 to X2 are all on).
11-2
The output is determined by the final operation results
• If the same output is used by several instructions such as the OT, KP, SET, RST or data transfer
functions, the output obtained at the I/O update is determined by the final results of the operation.
<Exmaple>
Output to the same output relay Y0 with OT, KP, SET and RST instructions.
• If you need to output a result while processing is still in progress, use a partial I/O update instruction
(F143).
11-3
11.2 Handling BCD Data
11-4
11.3 Handling Index Registers
<Example>
Transferring the contents of data register DT100 to the number specified by the contents of an
index register.
In this example, the number of the destination data register varies depending on the contents of I0 with
DT0 acting as a base. For example, when I0 contains K10, the destination will be DT10, and when I0 is
K20, the destination will be DT20.
• In this way, index registers allow the specification of multiple memory areas with a single instruction,
and thus index registers are very convenient when handling large amounts of data.
11-5
11.3.3 Example of Using an Index Register
Repeatedly reading in external data
<Example>
Writing the contents of input WX3 to a sequence of data registers beginning from DT0.
Convert the BCD timer number data in WX1 to binary and set it in index register I0.
Convert the BCD timer set value in WX0 to binary and store in the timer set value area SV specified
by contents of I0.
<Example 2>
Taking external output of the elapsed value in a timer number specified by a digital switch
Convert the BCD timer number data in WX1 to binary and set it in index register I0.
Convert the elapsed value data EV in the timer specified by I0 to BCD, and output it to output relay
WY0.
11-6
11.4 Operation Errors
• An error can be cleared by turning the power off and on in PROG. mode, however, the contents of the
operation memory except the hold type data will be cleared.
• An error can also be cleared by executing a self-diagnostic error set instruction (F148).
• If the mode selector is set to “RUN”, RUN will resume as soon as the error is cleared. So if the cause of
the error is not removed, the error may seem not to be cleared.
11-7
11.4.4 Points to Check in Program
1. Check if an extraordinarily large value or negative value was stored in the index register.
<Example> When a data register is modified using an index register
In this case, index register modifies the address of data register DT0. If data in I0 is too large, it will
exceed the addressable range of the data register. The last address of the data register is DT32764, so
if the contents of I0 exceeds 32764, an operation error will occur. The same is true when the contents of
I0 are a negative value.
2. Is there any data which cannot be converted using BCD ↔ BIN data conversion?
<Example> When BCD-to-BIN conversion is attempted
In this case, if DT0 contains a hexadecimal number with one of the digits A through F such as 12A4,
conversion will be impossible and an operation error will result.
In this case, if DT1 contains a negative value or a value greater than K9999, an operation error will occur.
In this case, if the content of DT100 is “0”, an operation error will occur.
11-8
11.5 Instruction of Leading Edge Detection Method
Be careful when using leading edge detection type instructions with control instructions, such
as:
1. MC and MCE instructions
2. JP and LBL instructions
3. LOOP and LBL instructions
4. CNDE instruction
5. Step ladder instructions
6. Subroutine instructions
11-9
11.5.2 Operation and Precautions When RUN Starts
Operation of first scan after RUN begins
• The leading edge detection instruction is not executed when the mode has been switched to the RUN
mode, or when the power supply is booted in the RUN mode, if the trigger (execution condition) is
already on.
• If you need to execute an instruction when the trigger (execution condition) is on prior to switching to
RUN mode, make a program as below using R9014 (initial pulse off relay). (R9014 is a special internal
relay which is off during the first scan and turns on at the second scan.)
11-10
11.5.3 Precautions When Using a Control Instruction
• If a leading edge detection instruction is in a control instruction, it will be executed only under the
following condition: The leading edge detection instruction was off when the execution condition of the
previous control instruction was reset, and the leading edge detection instruction is on when the
execution condition of the current control instruction becomes on.
• When a leading edge detection instruction is used with an instruction which changes the order of
instruction execution such as MC, MCE, JP or LBL, the operation of the instruction may change as
follows depending on input timing. Take care regarding this point.
11-11
<Example 2> Using the CT instruction between JP and LBL instructions
11-12
11.6 Precautions for Programming
Programs which are not executed correctly
Do not write the following programs as they will not be executed correctly.
<Example 1>
<Example 2>
<Example 3>
When a combination of contacts are set as the trigger (execution condition) of a differential instruction
(DF) or timer instruction, do not use an AND stack (ANS) instruction, read stack (RDS) instruction, or
pop stack (POPS) instruction.
11-13
11.7 Rewrite Function During RUN
11-14
11.7.2 Cases Where Rewriting During Run is not Possible
When the timeout error message is indicated:
Even if the timeout error message is indicated, it is highly possible that the program in PLC has been
already rewritten. Carry out the following operations.
When the timeout error occurs using the through mode in GT series programmable display.
Extend the timeout time of the programmable display using the GTWIN.
(The default setting is 5 seconds.)
11-15
Cases where rewriting is not possible during RUN
1. When the result of rewriting is a syntax error.
<Example>
When executing the rewriting which does not form the following pair of instructions.
1. Step ladder instructions (SSTP/STPE)
2. Suroutine instructions (SUB/RET)
3. Interrupt instructions (INT/IRET)
4. JP/LBL
5. LOOP/LBL
6. MC/MCE
Also, rewritng is not possible during RUN in case of other syntax errors.
Interrupt restrictions
When using interrupt, high-speed counter, pulse output or PWM output functions, do not perform a
rewrite during RUN.
If a rewrite during RUN is executed, the operation as below will be performed. Exercise caution.
1. Interrupt programs will be disabled. Enable by executing an ICTL instruction once again.
<Example> Using R9034 (rewrite during RUN completed flag)
11-16
11.7.3 Procedures and Operation of Rewrite During RUN
FPWIN GR FPWIN GR
Item
Ladder symbol mode Boolean mode
Maximum jof 128 steps. Rewriting performed by step.
Changes are performed by block. Caution is required as rewriting
When PG conversion is executed takes place simultaneously with
online, the program will be the change.
rewritten.
Rewrite procedure
11-17
FPWIN GR FPWIN GR
Item
Ladder symbol mode Boolean mode
A distance with the same number Writign and deletion of a single
cannot be defined twice. instruction is not possible for a
An SSTP instruction cannot be program with no step ladder area.
written in a subprogram. Write or delete both instructions
simultaneously in FPWIN GR
SSTP/STPE
ladder symbol mode.
Operation
In the case of an SSTP instruction
of each
only, writing and deletion of a
instruciton
single instruction is possible for a
program with a step ladder area.
Be sure to write the instruction for Write in the order: JP-LBL or
JP/LOOP/ setting the loop number before LOOP-LBL
LBL LBL-LOOP instructions. Delete in the order: LBL-JP or
LBL-LOOP
11-18
11.8 Processing During Forced Input and Output
11-19
11-20
Chapter 12
Specifications
12.1 Table of Specifications
12-2
Weight
Unit type Part No. Weight
FPG-C32/C28 Approx. 120g
FPΣ control unit
FPG-C24 Approx. 140g
FPG-XY64D2T
Approx. 100g
FPG-XY64D2P
FPG-PP11/PP12 Approx. 75g
FPG-PP21/PP22 Approx. 80g
FPΣ expansion unit
FPG-PN2AN/PN4AN/PN8AN Approx. 90g
FPG-EM1 Approx. 80g
FPG-CCLS Approx. 90g
FPG-SL Approx. 85g
FP0-E8X Approx. 65g
FP0-E8R/E8YR Approx. 90g
FP0-E8YT/E8YP Approx. 65g
FP0-E16R Approx. 105g
FP0-E16T/E16P/E
Approx. 70g
16X/E16YT/E16YP
FP0-E32T/E32P Approx. 85g
FP0 expansion units
FP0-A21 Approx. 80g
FP0-A80 Approx. 90g
FP0-IOL
Approx. 85g
FP0-TC4
FP0-TC8 Approx. 95g
FP0-CCLS Approx. 80g
FP0-A04V/A04I/RTD6 Approx. 75g
12-3
Unit’s current consumption table
Control unit Expansion Input circuit Output circuit
current unit current current current
consumption consumption consumption consumption
This is the current This is the This is the This is the
consumed form current current cosumed current
the control unit consumed from by the input consumed by the
power supply the expansion circuits of the output circuits of
connector. If unit power various units. the various units.
expansion units or supply This value This value
high-performance connector. If a indicates the indicates the
units are added, unit is not listed current that current used to
the current is below, it means flows into the drive the output
increased by the that it has no input circuit. circuits. This
value indicated power supply value does not
below. connector include the load
current value.
FPG-C32
FPΣ control 90mA or less − 77.2mA or less 70mA or less
FPG-C28
unit
FPG-C24 160mA or less − 77.2mA or less None
FPΣ expan- FPG-XY64D2T
35mA or less − 112mA or less 15mA or less
sion unit FPG-XY64D2P
FPG-PP11
50mA or less 20mA or less − −
FPG-PP12
FPG-PP21
70mA or less 35mA or less − −
FPG-PP22
FPΣ
FPG-PN2AN
intelligent
FPG-PN4AN 90mA or less − − −
unit
FPG-PN8AN
FPG-EM1 35mA or less − − −
FPG-CCLS 40mA or less 40mA or less − −
FPG-SL 40mA or less − − −
FP0-E8X 10mA or less 34.4mA or less −
FP0-E8R 15mA or less 50mA or less 17.2mA or less −
FP0-E8YR 10mA or less 100mA or less − −
FP0-E8YT/P 15mA or less − − 24mA or less
FP0 expan-
FP0-E16X 20mA or less − 68.8mA or less −
sion unit
FP0-E16R 20mA or less 100mA or less 34.4mA or less −
FP0-E16T/P 25mA or less − 34.4ma or less 24mA or less
FP0-E16YT/P 25mA or less − − 48mA or less
FP0-E32T/P 40mA or less − 68.8mA or less 48mA or less
FP0-A21 20mA or less 100mA or less − −
FP0-A80 20mA or less 60mA or less − −
FP0 FP0-A04V 20mA or less 100mA or less − −
intelligent FP0-A04I 20mA or less 130mA or less − −
unit FP0-TC4/C8/RTD6 25mA or less − − −
FP0-IOL 30mA or less 40mA or less − −
FP0-CCLS 40mA or less 40mA or less − −
FPG-COM1
Communi- 20mA or less − − −
FPG-COM2
cation
FPG-COM3
cassette 25mA or less − − −
FPG-COM4
Display
GT01,GT01R 80mA or less − − −
(5 V DC, RS232C type)
C-NET
AFP15402 50mA or less − − −
adapter S2
12-4
12.1.2 Performance Specifications
FPΣ 12k type
Descriptions
Item C32T C32T2 C24R2 C28P2
C32TTM C32T2TM C24R2TM C28P2TM
32 points 32 points 24 points 28 points
Control unit (DC input:16, (DC input: 16, (DC input: 16, (DC input: 16,
NPN output: 16) NPN output: 16) Relay output: 8) NPN output: 12)
Max. 120 units
(up to 3 units)
When using
Max. 128 points Max. 128 points *When using Max. 124 points
FP0 expansion
(up to 3 units) (upt to 3 units) transistor output (up to 4 units)
units
type expansion
units
Max. 280 points
No. of Max. 284 points
(up to 4 units)
When using (up to 4 units)
controllable Max. 288 points *When using
FPΣ expansion Not possible *When using
I/O points (up to 4 units) transistor output
units NPN output type
type expansion
expansion units
units
Max. 376 points
Max. 380 points
(up to FP0 3
(up to FP0 3
Max. 384 points units and FPΣ 4
When using units and FPΣ 4
(up to FP0 3 units)
FP0 and FPΣ − units) *When
units and FPΣ 4 *When using
expansion units using NPN
units) transistor output
output type
type expansion
expansion units
units
Programming
Relay symbol/Cyclic operation
method/Control method
Program memory Built-in Flash ROM (without backup battery)
Program capacity 12000 steps
No. of Basic 93
instruction High-level 216 218 216 218
Operation speed 0.4 µs/step (by basic instruction)
External input
Note1)
512 points 1184 points
(X)
External output
Note1)
512 points 1184 points
(Y)
Internal relay
Relay 1568 points (R0 to R97F)
(R)
Note2)
Ope- 1024 points (for initial setting, Timer: 1008 points (T0 to T1007),
Timer/ Counter: 16 points (C1008 to C1023))
ration
Counter (T/C) Timer: can count up to (in units of 1ms, 10ms, 100ms or 1s)× 32767.
me- Counter: Can count up to 1 to 32767.
mory Link relay(L) 1024 points
Data register
32765 words (DT0 to DT32764)
(DT)
Mem
Link register
ory 128 words
(LD)
area
Index register
14 words (I0 to ID)
(I)
12-5
Descriptions
Item C32T C32T2 C24R2 C28P2
C32TTM C32T2TM C24R2TM C28P2TM
Differential points Unlimited points
Master control relay points (MCR) 256 points
No. of labels (JP and LOOP) 256 points
No. of step laddars 1000 stages
No. of subroutines 100 subroutines
Pulse catch input 8 points (X0, X1, X3, X4:5µs X2, X5 to X7: 100µs)
9 programs (external input 8 points X0, X1, X3, X4: 5µs X2, X5 to
No. of interrupt programs
X7: 100µs), periodical interrupt 1 point (0.5ms to 30s)
Self-diagnosis function Such as watchdog timer, program syntax check
Available (year, month, day, hour, minute, second and day of
Calendar timer week) (However, this can only be used when a battery has been
Note3)
installed.)
Backup by F12, P13
Data register (32765 words)
Flash ROM instructions
backup Note4) Automatic backup Counter 16 points (1008 to 1023)
Note6)
, internal relay 128 points
when power is cut off (R900 to R97F), data register 55 words (32710 to 32764)
Memory that is set as hold area at system register (However, only
Battery backup Note5)
when an optional battery has been installed.)
2 points, Resolution: 10 bits (K0 to K1000) (C32T, C32T2, C24R2,
Potentiometer (Volume) input
C28P2 only)
2 points, Resolution: 10 bits (K0 to K1000) (C32TTM, C32T2TM,
Thermister input
C24R2TM, C28P2TM only)
220 days or more (Actual usage value: approx. 840 days (25°C))
Bettery life (Periodic replacement interval: 1 year) (Value applies when no
power is supplied at all)
All kindls of comments, including I/O comments, remarks and block
Comment storage
comments can be sotred.
PLC link function Max. 16 units, Link relay: 1024 points, Link register: 128 words
Program edition during RUN, constant scan, forced on/off,
Other functions
password, floating-point operation, and PID processing
Note1)The number of points actually available for use is determined by the hardware configuration.
Note2)The number of points can be increased by using an auxiliary timer.
Note3)Precision of calendar timer:
- At 0°C: less than 119 seconds per month
- At 25°C: less than 51 seconds per month
- At 55°C: less than 148 seconds per month
Note4)Writing is available up to 10000 times. When the optional battery is used, all rea can be backed
up. Areas to be held and not held can be specified using the system registers.
Note5)If an area is held when the battery is not installed, the value of data may be indefinite as it is not
cleared to 0 when the power is turned on. When the battery ran out of the power, the data at the
hold area will be indefinite.
Note6) The contact information and the elapsed value (EV) of the counter is backed up. The setting
value (SV) is not held.
12-6
FPΣ 32k type
Descriptions
Item C32TH C32T2H C24R2H C28P2H
C32THTM C32T2HTM C24R2HTM C28P2HTM
32 points 32 points 24 points 28 points
Control unit (DC input:16, (DC input: 16, (DC input: 16, (DC input: 16,
NPN output: 16) NPN output: 16) Relay output: 8) NPN output: 12)
Max. 120 units
(up to 3 units)
When using
Max. 128 points Max. 128 points *When using Max. 124 points
FP0 expansion
(up to 3 units) (upt to 3 units) transistor output (up to 3 units)
units
type expansion
units
Max. 280 points
No. of Max. 284 points
(up to 4 units)
When using (up to 4 units)
controllable Max. 288 points *When using
FPΣ expansion Not possible *When using
I/O points (up to 4 units) transistor output
units NPN output type
type expansion
expansion units
units
Max. 376 points
Max. 380 points
(up to FP0 3
(up to FP0 3
Max. 384 points units and FPΣ 4
When using units and FPΣ 4
(up to FP0 3 units)
FP0 and FPΣ − units) *When
units and FPΣ 4 *When using
expansion units using NPN
units) transistor output
output type
type expansion
expansion units
units
Programming
Relay symbol/Cyclic operation
method/Control method
Program memory Built-in Flash ROM (without backup battery)
Program capacity 32000 steps
No. of Basic 93
instruction High-level 216 218 216 218
Operation speed 0.32 µs/step (by basic instruction)
External input
Note1)
1184 points
(X)
External output
Note1)
1184 points
(Y)
Internal relay
Relay 4096 points (R0 to R255F)
(R)
Note2)
Ope- 1024 points (for initial setting, Timer: 1008 points (T0 to T1007),
Timer/ Counter: 16 points (C1008 to C1023))
ration
Counter (T/C) Timer: can count up to (in units of 1ms, 10ms, 100ms or 1s)× 32767.
me- Counter: Can count up to 1 to 32767.
mory Link relay(L) 2048 points
Data register
32765 words (DT0 to DT32764)
(DT)
Mem
Link register
ory 256 words
(LD)
area
Index register
14 words (I0 to ID)
(I)
12-7
Descriptions
Item C32T C32T2 C24R2 C28P2
C32TTM C32T2TM C24R2TM C28P2TM
Differential points Unlimited points
Master control relay points (MCR) 256 points
No. of labels (JP and LOOP) 256 points
No. of step laddars 1000 stages
No. of subroutines 500 subroutines
Pulse catch input 8 points (X0, X1, X3, X4:5µs X2, X5 to X7: 100µs)
9 programs (external input 8 points X0, X1, X3, X4: 5µs X2, X5 to
No. of interrupt programs
X7: 100µs), periodical interrupt 1 point (0.5ms to 30s)
Self-diagnosis function Such as watchdog, program syntax check
Available (year, month, day, hour, minute, second and day of
Calendar timer week) (However, this can only be used when a battery has been
Note3)
installed.)
Backup by F12, P13
Data register (32765 words)
Flash ROM instructions
backup Note4) Automatic backup Counter 16 points (1008 to 1023)
Note6)
, internal relay 128 points
when power is cut off (R2480 to R255F), data register 55 words (32710 to 32764)
Memory that is set as hold area at system register (However, only
Battery backup Note5)
when an optional battery has been installed.)
2 points, Resolution: 10 bits (K0 to K1000) (C32TH, C32T2H,
Potentiometer (Volume) input
C24R2H, C28P2H only)
2 points, Resolution: 10 bits (K0 to K1000) (C32THTM,
Thermister input
C32T2HTM, C24R2HTM, C28P2HTM only)
220 days or more (Actual usage value: approx. 840 days (25°C))
Bettery life (Periodic replacement interval: 1 year) (Value applies when no
power is supplied at all)
All kindls of comments, including I/O comments, remarks and block
Comment storage
comments can be sotred. (328kbyte)
Max. 16 units, Link relay: 1024 points, Link register: 128 words
PLC link function (Link area allocation can be switched between the first half and the
second half.)
Program edition during RUN, constant scan, forced on/off,
Other functions
password, floating-point operation, and PID processing
Note1)The number of points actually available for use is determined by the hardware configuration.
Note2)The number of points can be increased by using an auxiliary timer.
Note3)Precision of calendar timer:
- At 0°C: less than 119 seconds per month
- At 25°C: less than 51 seconds per month
- At 55°C: less than 148 seconds per month
Note4)Writing is available up to 10000 times. When the optional battery is used, all rea can be backed
up. Areas to be held and not held can be specified using the system registers.
Note5)If an area is held when the battery is not installed, the value of data may be indefinite as it is not
cleared to 0 when the power is turned on. When the battery ran out of the power, the data at the
hold area will be indefinite.
Note6) The contact information and the elapsed value (EV) of the counter is backed up. The setting
value (SV) is not held.
12-8
High-speed counter, pulse output and PWM output specifications
Item Descriptions
No. of input When using single-phase: Max. 4 When using 2-phase: Max. 2
points channels channels
Used ch. Note2) ch0 to ch4 ch0, ch2
When using single-phase: When using 2-phase:
for 1 channel: Max. 50kHz (x1ch) for 1 channel: Max. 20kHz (x1ch)
Max. counting
for 2 channels: Max. 30kHz (x2ch) for 2 channels: Max. 15kHz (x2ch)
speed
for 3 or 4 channels: Max. 20kHz (x3
High to 4ch)
speed When using single-phase: When using 2-phase:
coun- Input mode Addition input, Two-phase input, One input,
ter Subtraction input Direction distinction input
When using single-phase: When using 2-phase:
X0: count input (ch0) X0, X1: count input (ch0)
X1: count input (ch1) X2: reset input (ch0)
Input contact
Note1) X2: reset input (ch0, ch1) X3, X4: count input (ch2)
used
X3: count input (ch2) X5: reset input (ch2)
X4: count input (ch3)
X5: reset input (ch2, ch3)
No. of output
Max. 2 channels
points
Note2)
Used ch ch0, ch2
Output mode CW and CCW mode, Pulse and Sign mode
When using 1 channel: Max. When using linear interpolation
Max. output 100kHZ (x1ch) function: Max. 100kHz
Pulse When using circular interpolation
frequency When using 2 channels: Max.
output function: Max. 20kHz
60kHz (x2ch)
<ch0> <ch2>
Input/output X2: Home input X5: Home input
contact used Y0: CW output (Pulse output) Y3: CW output (Pulse output)
Note1)
Y1: CCW output (Sign output) Y4: CCW output (Sign output)
Y2: Deviation counter reset output Y5: Deviation counter reset output
No. of output
Max. 2 channels
points
Used ch Note2) ch0, ch2
Output 1.5 to 12.5kHz (at resolution of 1000), 15.6 to 41.7kHZ
PWM
frequency (at resolution of 100)
output
Output duty 0.0 to 99.9% (at resolution of 1000), 1 to 99% (at reslution of 100)
Output
contact used <ch0>Y0, <ch2>Y3
Note1)
Note1)The contacts noted above cannot be allocated for more than one function. Also, contacts that are
not assigned to the various functions can be used as general inputs/outputs. Inputs functions can
be used as general inputs/outputs. Inputs X0 to X5 are pulse catch inputs, and can also be used
for interrupt input.
Note2)The pulse output, PWM output and high-speed counter of the same channel cannot be used at
the same time.
12-9
Communication Specifications
Note1) 9) General-purpose serial Note1)
Computer link Note1) 9) MODBUS RTU
communication
PC(PLC)
1:1 1:N 1:1 1:N 1:1 1:N
link
communi- communi- communi- communi- communi- communi-
cation cation cation cation cation cation
RS232C
Interface RS232C RS485 RS232C RS485 RS232C RS485
RS485
AFPG-801
AFPG-801 AFPG-801 AFPG-801
Target AFPG-803 AFPG-803 AFPG-802 AFPG-803
AFPG-802 AFPG-802 AFPG-802
items AFPG-806 AFPG-806 AFPG-803 AFPG-806
AFPG-806 AFPG-806 AFPG-806
AFPG-806
Half- Two-wire, Two-wire, Two-wire,
Commu- Half-duplex Token bus Half-duplex
duplex half-duplex half-duplex half-duplex
nication communi- (Floating communi-
communi- communi- communi- communi-
method cation master) cation
cation cation cation cation
Note1) Although it has adequate tolerance to noise, it is recommendable to make the user program to
execute retransmission (in order to improve reliability of the communication when a
communication error occurs due to excessive noises or when a receiver equipment cannot
receive data temporarily).
Note2) The number of units of the PC(PLC) link with RS232C is two.
Communication specifications
Item Specifications
Interface RS232C (non-isolated) RS485 (isolated) Note1) 2)
Communication mode 1:1 communicaion 1:N communication
Communication method Half-duplex communication Two-wire half-duplex communication
Synchronous method Start stop synchronous system
Transmission line Multicore shielded line Shielded twisted-pair cable or VCTF
Transmission distance 15 m Max. 1200 m Note1) 2)
Baud rate Note3) Note8)
2400, 4800, 9600, 19200, 38400, 57600, 115200 bps
(to be set by system register)
Computer link ASCII
Trans-
General-purpose
mission ASCII, Binary
serial ommunication
code
MODBUS RTU Binary
Communication Data length 7 bits/8 bits
format Parity None/Even/Odd
(to be set by Stop bit 1 bit/2 bits
system register) Start code STX/No STX
Note4)
End code CR/CR+LF/None/ETX
Max. 99 units (Max. 32 units when C-
No. of connected units Note5) 6) 7) 2 units
NET adapter is connected.)
Note1) When connecting a commercially available device that has an RS485 interface, please confirm
operation using the actual device. In some cases, the number of units, transmission distance,
and baud rate vary depending on the connected device.
12-10
Note2) The values for the transmission distance, baud rate and number of units should be
within the values noted in the graph below.
When using a baud rate of 2400 bps to 38400 bps, you can set up to a maximum of
99 units (stations) and maximum transmission distance of 1200 m.
Note3) Only 9600 bps or 19200 bps can be specified when the C-NET adapter is connected with the
RS485 interface.
Note4) The start code and end code can be used only in the general-purpose serial communication
mode.
Note5) The converter SI-35 manufactured by Lineeye Co., Ltd is recommendable for the RS485 at the
computer side. Adjust the response time for the FP-X by the SYS1 instruction if necessary.
Note6)Regarding the setting of unit numbers:
When the unit number setting switch is “0”, the system register is effective.
When the unit number setting switch is other than “0”, the unit number setting switch is effective,
and the unit number setting of the system register is ignored.
(Max. 31 units can be specified with the unit number setting switch.) (When the setting is specified
with the unit number setting switch, the COM port 1 and the COM port 2 has the same unit
number.
Note7)Connect the “−“ terminal and the “+” terminal with a lead wire to make the termination resistance
of the AFPG803 effective.
The termination resistance of the AFPG806 is specified by the dip switch in the communication
cassette.
There is no termination resistance at the RS232C port.
Note8) The RS485 port of the AFPG806 is either 19200 bps or 115200 bps only.
Also the baud rate must be identically set by the system register and the dip switch in the
communication cassette. The baud rate for the PC(PLC) link mode is fixed at 115200 bps.
The baud rate for the RS232C port of the AFPG806 can be set by the system register only.
Note9) The MEWTOCOL master function, MODBUS RTU master function and general-purpose serial
communication function at the TOOL port is available only for the FPΣ 32k type.
12-11
12.2 I/O No. Allocation
FPΣ control unit
Unit type Allocation points I/O No.
Input: 16 points X0 to XF
Control unit (NPN) FPG-C32
Output: 16 points Y0 to YF
Input: 16 points X0 to XF
Control unit (PNP) FPG-C28
Output: 12 points Y0 to YB
Input: 16 points X0 to XF
Control unit (Relay) FPG-C24
Output: 8 points Y0 to Y7
12-12
I/O No. of FP0 expansion unit (for right side expansion)
• I/O numbers do not need to be set as I/O allocation is performed automatically by the PLC when an
expansion I/O unit is added.
• The I/O allocation of expansion unit is determined by the installation location.
Expansion Expansion Expansion
Unit type Allocation points
unit 1 unit 2 unit 3
FP0-E8X Input: 8 points X20 to X27 X40 to X47 X60 to X67
Input: 4 points X20 to X23 X40 to X43 X60 to X63
FP0-E8R
Output: 4 points Y20 to Y23 Y40 to Y43 Y60 to Y63
FP0-E8YT/P
Output: 8 points Y20 to Y27 Y40 to Y47 Y60 to Y67
FP0-E8YR
FP0 expansion
FP0-E16X Input: 16 points X20 to X2F X40 to X4F X60 to X6F
unit
FP0-E16R Input: 8 points X20 to X27 X40 to X47 X60 to X67
FP0-E16T/P Output: 8 points Y20 to Y27 Y40 to Y47 Y60 to Y67
FP0-E16YT/P Output: 16 points Y20 to Y2F Y40 to Y4F Y60 to Y6F
Input: 16 points X20 to X2F X40 to X4F X60 to X6F
FP0-E32T/P
Output: 16 points Y20 to Y2F Y40 to Y4F Y60 to Y6F
Input: 16 points WX2 WX4 WX6
(ch0) (X20 to X2F) (X40 to X4F) (X60 to X6F)
FP0 analog I/O Input: 16 points WX3 WX5 WX7
FP0-A21
unit (ch1) (X30 to X3F) (X50 to X5F) (X70 to X7F)
WY2 WY4 WY6
Output: 16 points
(Y20 to Y2F) (Y40 to Y4F) (Y60 to Y6F)
FP0 A/D Input: 16 points WX2 WX4 WX6
converter unit FP0-A80 (ch0, 2, 4,6) (X20 to X2F) (X40 to X4F) (X60 to X6F)
FP0 FP0-TC4
thermocouple FP0-TC8 Input: 16 points WX3 WX5 WX7
unit (ch1, 3, 5, 7) (X30 to X3F) (X50 to X5F) (X70 to X7F)
Input (16 points) WX2 WX4 WX6
CH0, 2, 4 (X20 to X2F) (X40 to X4F) (X60 to X6F)
FP0 Input (16 points) WX3 WX5 WX7
FP0-RTD6
RTD unit CH1, 3, 5 (X30 to X3F) (X50 to X5F) (X70 to X7F)
WY2 WY4 WY6
Output (16 points)
(Y20 to Y2F) (Y40 to Y4F) (Y60 to Y6F)
WX2 WX4 WX6
Input: 16 points
(X20 to X2F) (X40 to X4F) (X60 to X6F)
FP0 D/A FP0-A04V Input: 16 points WY2 WY4 WY6
converter unit FP0-A04I (ch0, 2) (Y20 to Y2F) (Y40 to Y4F) (Y60 to Y6F)
Input: 16 points WY3 WY5 WY7
(ch1, 3) (Y30 to Y3F) (Y50 to Y5F) (Y70 to Y7F)
FP0 I/O link Input: 32 points X20 to X3F X40 to X5F X60 to X7F
FP0-IOL
unit Output: 32 points Y20 to Y3F Y40 to Y5F Y60 to Y7F
• The data of each channel for FP0 A/D conver unit (FP0-A80), FP0 thermocouple unit (FP0-TC4/FP0-
TC8), FP0 RTD unit (FP0-RTD6), FP0 D/A converter unit (FP0-A04V/P0-A04I) is switched and
read/write using a program that includes the flag for switching converted data.
• Regarding FP0 CC-Link slave unit, please refer to the exclusive manual.
12-13
12.3 Relays, Memory Areas and Constants
FPΣ 12k type
Number of points and
range of memory area
available for use
C32T2
Item C23T2TM Function
C32T C24R2
C32TTM C24R2TM
C28P2
C28P2TM
Note1) 512 points 1184 points
External input (X) Turns on or off based on external input.
(X0 to X31F) (X0 to X73F)
Note1) 512 points 1184 points
External output (Y) Externally outputs on or off state
(Y0 to Y31F) (Y0 to Y73F)
Note2) Relay which turns on or off only within
Internal relay (R) 1568 points (R0 to R97F)
program.
Relay
Note2)
Link relay (L) 1024 points (L0 to R97F) This relay is a shared relay used for PLC link.
This goes on when the timer reaches the
Note2)
Timer (T) specified time. It corresponds to the timer
1024 points (T0 to
Note3) number.
T1007/C1008 to C1023)
Note2) This goes on when the timer increments. It
Counter (C)
corresponds to the timer number.
Special internal relay Relay which turns on or off based on specific
176 points (R9000 to R910F)
(R) conditions and is used as a flag.
32 words 74 words
Note1) Code for speciyfying 16 external input points
External input (WX) (WX0 to (WX0 to
as one word (16 bits) of data.
WX31) WX73)
Note1) 32 words 74 words
External output Code for specifying 16 external output points
(WY0 to (WY0 to
(WY) as one word (16 bits) of data.
WY31) WY73)
Note2) Code for specifying 16 internal relay points as
Internal relay (WR) 98 words (WR0 to WR97)
one word (16 bits) of data.
Code for specifying 16 link relay points as
Link relay (WL) 64 words (WL0 to WL63)
one word (16 bits) of data.
Memory area
points (MCR)
Number of labels
Control
256
(JP and LOOP)
Number of step ladders 1000 stages
Number of subroutines 100 subroutines
Number of interrupt 9 programs (8 external input points “X0 to X7”, 1 periodical interrupt point “0.5
programs ms to 30s”)
12-14
Number of points and
range of memory area
available for use
C32T2
Item C23T2TM Function
C32T C24R2
C32TTM C24R2TM
C28P2
C28P2TM
Decimal constants K-32, 768 to K32, 767 (for 16-bit operation)
(Integer type) (K) K-2, 147, 483, 648 to K2, 147, 483, 647 (for 32-bit operation)
Constant
12-15
FPΣ 32k type
Number of points and
range of memory area
available for use
Item C32TH/C32THTM Function
C32T2H/C32T2HTM
C24R2H/C24R2HTM
C28P2H/C28P2HTM
Note1)
External input (X) 1184 points (X0 to X73F) Turns on or off based on external input.
Note1)
External output
1184 points (Y0 to Y73F) Externally outputs on or off state
(Y)
Note2) Relay which turns on or off only within
Internal relay (R) 4096 points (R0 to R255F)
program.
Note2)
Link relay (L) 2048 points (L0 to R127F) This relay is a shared relay used for PLC link.
Relay
Number of labels
256
(JP and LOOP)
Control
Number of step
1000 stages
ladders
Number of
500 subroutines
subroutines
Number of interrupt 9 programs (8 external input points “X0 to X7”, 1 periodical interrupt point “0.5
programs ms to 30s”)
Decimal constants K-32, 768 to K32, 767 (for 16-bit operation)
(Integer type) (K) K-2, 147, 483, 648 to K2, 147, 483, 647 (for 32-bit operation)
Constant
12-16
Note2)If no battery is ued, only the fixed area is backed up. (counters 16 points: C1008 to C1023,
internal relays 128 points: R2480 to R255F, data registers 55 words: DT32710 to DT32764).
Writing is available up to 10000 times. Then the optional battery is used, all area can be backed
up. Areas to be held and not held can be specified using the system registers. If an area is held
when the battery is not installed, the value of data may be indefinite as it is not cleared to 0 when
the power is turned on. When the battery ran out of the power, the data at the hold area will be
indefinite.
Note3)The points for the timer and counter can be changed by the setting of system register 5. The
number given in the table are the numbers when system register 5 is at its default setting.
12-17
12-18
Chapter 13
Dimensions
13.1 Dimensions
13-2
13.1.2 Control Unit (Relay Output Type)
FPG-C24R2, FPG-C24R2H
FPG-C24R2TM, FPG-C24R2HTM
* The dimension with the communication cassette mounted is the same as the transistor output type.
13-3
13.1.3 Expansion Unit
FPG-XY64D2T, FPG-XY64D2P
FPG-EM1
13-4
13.2 Connection Diagram with Motor Driver
13-5
13.3 FP0 Power Supply Unit (AFP0634)
Item Description
Input Rated operationg voltage 100-240 V AC
Operating voltage range 85-264 V AC
Rated frequency 50/60 Hz
Operating frequency 47-63 Hz
The number of phase Single phase
Inrush current 30 A(0-p) or less (Cold start)
Leakage current 0.75 mA or less
Holding time 10 ms or more
Output Reted output 24 V (±5 %) DC
Rated current 0.7A
Operating output current 0-0.7A
Output ripple 500 mV
Protection Over current regulation 0.735 A or more
feature Over voltage regulation Possible
Life time 20000h ( at 55 °C)
13-6
13.4 Cable/Adapter Specifications
(Unit: mm)
(Unit: mm)
13-7
13-8
Chapter 14
Appendix
14.1 System Registers / Special Internal Relays / Special
Data Registers
Precation for System Registers
14-2
Checking and changing the set value of system register
If you are going to use a value which is already set(the value which appears when read),
there is no need write it again.
14-3
14.1.1 Table of System Registers for FPΣ
Default
No. Name Descriptions
value
Starting number setting for
5
counter
1008 0 to 1024 • These settings are
Hold type area starting number effective if the
6 1008 0 to 1024 optional backup
setting for timer and counter
12k: 90 battery is installed.
Hold type area starting number 12k: 0 to 98 • If no backup
7 32k: 0 to
setting for internal relays 32k: 0 to 256
Hold/ 256 battery is used, do
Non- Hold type area starting number not change the
8 32710 0 to 32765
hold 1 setting for data registers default settings.
Hold or non-hold setting for step Otherwise proper
14 Non-hold Hold/Non-hold
ladder process functioning of
Previous value is held for a hold/non-hold
leading edge detection Hold/ values cannot be
4 Hold
instruction (DF instrucion) with Non-hold
guaranteed.
MC Note)
Hold type area starting word
10 number for PC(PLC) link relays 64 0 to 64
(for PC(PLC) link 0)
Hold type area starting word
128
11 number for PC(PLC) link relays 64 to 128
Hold/ (32k only)
(for PC(PLC) link 1)
Non-
Hold type area starting number
hold 2
12 for PC(PLC) link registers 128 0 to 128
(for PC(PLC) link 0)
Hold type area starting number
256
13 for PC(PLC) link registers 128 to 256
(32k only)
(for PC(PLC) link 1)
Disable or enable setting for
20 Disabled Disabled/Enabled
duplicated output
Operation setting when an I/O
23 Stop Stop/Continuation of operation
verification error occurs
Operation setting when an
26 Stop Stop/Continuation of operation
operation error occurs
Action Dis- When a battery error occurs,
on abled: a self-diagnostic error is not
error
issued and the ERROR/
Alarm battery error
ALARM LED does not flash.
4 (Operating setting when Disabled
battery error occurs) Ena- When a battery error occurs,
bled: a self-diagnostic error is
issued and the ERROR/
ALARM LED flashes.
Note) The 12k type is available with Ver. 1.4 to 1.9, 2.4 or later.
14-4
Default
No. Name Descriptions
value
Wait time setting for multi-frame 6500.0
31 10 to 81900 ms
communication ms
Communication timeout setting
Time 10000.0
32 for SEND/RECV, RMRD/RMWT 10 to 81900 ms
set- ms
commands
ting
0: Normal scan
Constant value settings for scan Normal
34 0 to 350 ms: Scans once each
time scan
specified time interval
Range of link relays used for
40 0 0 to 64 words
PC(PLC) link
Range of link data registers
41 0 0 to 128 words
used for PC(PLC) link
Starting word number for link
42 0 0 to 63
PC relay transmission
(PLC) 43 Link relay transmission size 0 0 to 64 words
link 0 Starting number for link data
44 0 0 to 127
set- register tranmission
ting Link data register transmission
45 0 0 to 127 words
size
Normal
46 PC(PLC) link switch flag Normal/reverse
(32k only)
Maximum unit number setting
47 16 1 to 16
for MEWNET-W0 PC(PLC) link
Range of link relays used for
50 0 0 to 64 words
PC(PLC) link
Range of link data registers
51 0 0 to 128 words
PC used for PC(PLC) link
(PLC) Starting word number for link
52 64 64 to 127
link 1 relay transmission
set- 53 Link relay transmission size 0 0 to 64 words
ting Starting number for link data
54 128 128 to 255
(32k register tranmission
only) Link data register transmission
55 0 0 to 127 words
size
Maximum unit number setting
57 16 1 to 16
for MEWNET-W0 PC(PLC) link
14-5
Default
No. Name Descriptions
value
Do not set input X0 as high-speed counter.
Two-phase input (X0, X1)
Two-phase input (X0, X1), Reset input (X2)
Incremental input (X0)
CH0: Incremental input (X0), Reset input (X2)
Do not set Decremental input (X0)
input X0 Decremental input (X0), Reset input (X2)
CH0
as high- incremental/decremental input (X0, X1)
speed incremental/decremental input (X0, X1),
High-speed counter Reset input (X2)
counter Incremental/decremental control input (X0,
400 operation mode
settings (X0 to X2) X1)
Incremental/decremental control input (X0,
X1), Reset input (X2)
CH1:
Do not set Do not set input X1 as high-speed counter.
Incremental input (X1)
input X1
CH1 Incremental inptu (X1), Reset input (X2)
as high- Decremental input (X1)
speed Decremental input (X1), Reset input (X2)
High- counter
speed Do not set input X3 as high-speed counter.
coun- Two-phase input (X3, X4)
ter Two-phase input (X3, X4), Reset input (X5)
Incremental input (X3)
CH2: Incremental input (X3), Reset input (X5)
Do not set Decremental input (X5)
input X3 Decremental input (X5), Reset input (X5)
CH2 Incremental/decremental input (X3, X4)
as high-
speed Incremental/decremental input (X3, X4),
Reset input (X5)
High-speed counter counter Incremental/decremental control
401 operation mode (X3, X4)
settings (X3 to X5) Incremental/decremental control
(X3, X4), Reset input (X5)
HC3:
Does not Does not set input X4 as high-speed
set input counter.
Incremental input (X4)
X4 as CH3 Incremental input (X4), Reset input (X5)
high- Decremental input (X4)
speed Decremental input (X4), Reset input (X5)
counter
14-6
Default
No. Name Descriptions
value
Inter-
rupt-
input
Specify the input contacts used as intrrupt
Interrupt input input.
403 Not set
settings
14-7
Default
No. Name Descriptions
value
410 Unit No. setting 1 1 to 99
Communication Computer link
Computer link
mode setting General-purpose communications
412
Selection of modem
Disabled Enabled/Disabled
connection
Enter the settings for the various items.
- Data lenght bit: 7 bits/8 bits
- Parity check: none/with odd/with even
Data lenght
- Stop bit: 1 bit/2 bits
bit: 8 bits
Communication - The following setting is valid only when
413 Parity check:
format setting the communication mode specified by
“with odd”
system register 412 has been set to
Tool Stop bit: 1 bit
“General-purpose serial communication”.
port
- Terminator CR/CR+LF/None
set-
- Header: STX not exist/STX exist
ting
Communication 2400 bps / 4800 bps / 9600 bps /
415 speed (Baud rate) 9600 bps 19200 bps / 38400 bps / 57600 bps /
setting 115200 bps
Starting address for
received buffer of
420 0 0 to 32764
general (serial data)
communication mode
Buffer capacity
setting for data
421 received of general 0 0 to 2048
(serial data)
communication mode
410 Unit No. setting 1 1 to 99
Computer link
Communication General-purpose serial communication
Computer link
mode setting PC(PLC) link
412 MODBUS RTU
Selection of modem
Disabled Enabled/Disabled
connection
Enter the settings for the various items.
- Data lenght bit: 7 bits/8 bits
- Parity check: none/with odd/with even
Data lenght
- Stop bit: 1 bit/2 bits
bit: 8 bits
Communication - The following setting is valid only when
413 Parity check:
format setting the communication mode specified by
COM Odd
system register 412 has been set to
1 port Stop bit: 1 bit
“General-purpose serial communication”.
set-
- Terminator CR/CR+LF/None
ting
- Header: STX not exist/STX exist
Communication 2400 bps / 4800 bps / 9600 bps /
415 speed (Baud rate) 9600 bps 19200 bps / 38400 bps / 57600 bps /
setting 115200 bps
Starting address for
received buffer of
416 0 0 to 32764
general (serial data)
communication mode
Buffer capacity
setting for data
417 received of general 2048 0 to 2048
(serial data)
communication mode
Note) The communication format in a PLC link is fixed at the following settings:
Data length is 8 bits, odd parity, stop bit is 1.
The communication speed (baud rate) is fixed at 115200 bps.
The transmission speed of the RS485 port (COM1) of AFPG806 must be identically set by the
system register and the dip switch in the communication cassette.
14-8
Default
No. Name Descriptions
value
411 Unit No. setting 1 1 to 99
Computer link
Communication
Computer link General-purpose serial communication
mode setting
412 MODBUS RTU
Selection of modem
Disabled Enabled/Disabled
connection
Enter the settings for the various items.
- Data lenght bit: 7 bits/8 bits
- Parity check: none/odd/even
Data lenght
- Stop bit: 1 bit/2 bits
bit: 8 bits
Communication - The following setting is valid only when
414 Parity check:
format setting the communication mode specified by
“with odd”
system register 412 has been set to
Stop bit: 1 bit
“General-purpose serial communication”.
COM
- Terminator: CR/CR+LF/None
2
- Header: STX not exist/STX exist
port
2400 bps
set-
4800 bps
ting
Communication 9600 bps
415 speed (Baud rate) 9600 bps 19200 bps
setting 38400 bps
57600 bps
115200 bps
Starting address for
received buffer of
416 2048 0 to 32764
general (serial data)
communication mode
Buffer capacity
setting for data
417 received of general 2048 0 to 2048
(serial data)
communication mode
Note) The communication format in a PLC link is fixed at the following settings:
the data length is 8 bits, odd parity, stop bit is 1.
The communication speed (baud rate) is fixed at 115200 bps.
The transmission speed of the RS485 port (COM1) of AFPG806 must be identically set by the
system register and the dip switch in the communication cassette.
14-9
14.1.2 Table of Special Internal Relays for FPΣ
The special internal relays turn on and off under special conditions. The on and off states are not output
externally. Writing is not possible with a programming tool or an instruction.
WR900
Relay No. Name Description
Turns on when a self-diagnostic error occurs.
R9000 Self-diagnostic error flag ⇒ The content of self-diagnostic error is stored in
DT90000.
R9001 Not used
R9002 Not used
R9003 Not used
R9004 I/O verification error flag Turns on when an I/O verification error occurs.
Backup battery error flag
R9005 Turns on when an backup battery error occurs.
(non-hold)
Turns on when a backup battery error occurs.
Once a battery error has been detected, this is held even
Backup battery error flag
R9006 after recovery has been made.
(hold)
It goes off if the power supply is turned off, or if the
system is initialized.
Turns on and keeps the on state shen an operation error
occurs.
Operation error flag
R9007 ⇒The address where the error occurred is stored in
(hold)
DT90017. (indicates the first operation error which
occurred).
Turns on for an instant when an operation error occurs.
Operation error flag ⇒The address where the operation error occurred is stored
R9008
(non-hold) in DT90018. The contents change each time a new error
occurs.
This is set if an overflow or underflow occurs in the
R9009 Carry flag calculation results, and as a result of a shift system
instruction being executed.
Turns on for an instant when the compared results become
R900A > Flag
larger in the comparison instructions.
Turns on for an instant,
- when the compared results are equal in the comparison
R900B = Flag instructions.
- when the calculated results become 0 in the arithmetic
instructions.
Turns on for an instant when the compared results become
R900C < Flag
smaller in the comparison instructions.
Turns on when the set time elapses (set value reaches 0) in
Auxiliary timer the timing operation of the F137(STMR)/F183(DSTM)
R900D
instruction flag auxiliary timer instruction. The flag turns off when the
trigger for auxiliary timer instruction turns off.
Tool port
R900E Turns on when communication error at tool port is occurred.
communication error
Turns on when scan time exceeds the time specified in
R900F Constant scan error flag system register 34 during constant scan execution.
This goes on if 0 has been set using system register 34.
14-10
WR901
Relay No. Name Description
R9010 Always on relay Always on.
R9011 Always off relay Always off.
R9012 Scan pulse relay Turns on and off alternately at each scan.
Goes on for only the first scan after operation (RUN) has
Initial (on type) pulse
R9013 been started, and goes off for the second and subsequent
relay
scans.
Goes off for only the first scan after operation (RUN) has
Initial (off type) pulse
R9014 been started, and goes on for the second and subsequent
relay
scans.
Step ladder initial pulse Turns on for only the first scan of a process after the boot at
R9015
relay (on type) the step ladder control.
R9016 Not used -
R9017 Not used -
14-11
WR902
Relay No. Name Description
Turns off while the mode selector is set to PROG.
R9020 RUN mode flag
Turns on while the mode selector is set to RUN.
R9021 Not used
R9022 Not used
R9023 Not used
R9024 Not used
R9025 Not used
R9026 Message flag Turns on while the F149 (MSG) instruction is executed.
R9027 Not used
R9028 Not used
Turns on during forced on/off operation for input/output
R9029 Forcing flag
relay timer/counter contacts.
Turns on while the external interrupt trigger is enabled by
R902A Interrupt enable flag
the ICTL instruction.
R902B Interrupt error flag Turns on when an interrupt error occurs.
Sampling by the instruction=0
R902C Sample point flag Note)
Sampling at constant time intervals=1
Sample trace end flag When the sampling operation stops=1,
R902D Note)
When the sampling operation starts=0
Sampling stop trigger When the sampling stop trigger activates=1
R902E
flag Note) When the sampling stop trigger stops=0
Sampling enable flag When sampling starts=1
R902F Note)
When sampling stops=0
Note) Available for the 32k type only.
14-12
WR903
Relay No. Name Description
R9030 Not used -
R9031 Not used -
- Turns on when the general-purpose communication
COM1 port
function is being used
R9032 communication mode
- Goes off when the MEWTOCOL-COM or the PLC link
flag
function is being used.
Print instruction Off: Printing is not executed.
R9033
execution flag On: Execution is in progress.
RUN overwrite complete Goes on for ony the first scan following completion of a
R9034
flag rewrite during the RUN operation.
R9035 Not used -
R9036 Not used -
- Goes on is a transmission error occurs during data
COM1 port
communication.
R9037 communication error
- Goes off when a request is made to send data, using the
flag
F159 (MTRN) instruction.
COM1 port reception
- Turns on when the terminator is received during general -
R9038 done flag during general
purpose serial communication.
purpose communication
COM1 port transmission - Goes on when transmission has been completed in
done flag during general-purpose serial communication.
R9039
general-purpose serial - Goes off when transmission is requested in general-
communication purpose serial communication.
High-speed Turn on while the high-speed counter instructions
R903A counter control ch0 F166(HC15), F167(HC1R) and the pulse output instructions
flag F171(SPDH) to F176(PWMH) are executed.
High-speed Turn on while the high-speed counter instructions
R903B counter control ch1 F166(HC15), F167(HC1R) and the pulse output instructions
flag F171(SPDH) to F176(PWMH) are executed.
High-speed Turn on while the high-speed counter instructions
R903C counter control ch2 F166(HC15), F167(HC1R) and the pulse output instructions
flag F171(SPDH) to F176(PWMH) are executed.
High-speed Turn on while the high-speed counter instructions
R903D counter control ch3 F166(HC15), F167(HC1R) and the pulse output instructions
flag F171(SPDH) to F176(PWMH) are executed.
TOOL port reception
- Turns on when the terminator is received during general -
R903E done flag during general
purpose serial communication.
purpose communication
TOOL port transmission - Goes on when transmission has been completed in
done flag during general-purpose serial communication.
R903F
general-purpose serial - Goes off when transmission is requested in general-
communication purpose serial communication.
Note) R9030 to R9030F can be changed during 1 scan.
14-13
WR904
Relay No. Name Description
- Turns on when the general-purpose communication
TOOL port operation
R9040 function is being used
mode flag - Goes off when the computer link function is being used.
R9041 COM1 port PLC link flag Turn on while the PLC link function is used.
COM2 port - Goes on when the general-purpose serial communication
R9042 communication mode is used.
flag - Goes off when the MEWTOCOL is used.
R9043 Not used -
Monitors whether the F145 (SEND) or F146 (RECV)
instructions can be executed or not.
COM1 port SEND/RECV Off: None of the above mentioned instructions can be
R9044 instruction execution executed. (During executing the instruction)
flag On: One of the above mentioned instructions can be
executed.
Monitors if an abnormality has been detected during the
execution of the F145 (SEND) or F146 (RECV)
COM1 port SEND/RECV instructions as follows:
R9045 instruction execution Off: No abonormality detected.
end flag On: An abnormality detected. (communication error)
The error code is stored in DT90039.
End code: DT90124
R9046 Not used -
- Goes on if a transmission error occurs during data
COM2 port communication.
R9047 communication error - Goes off when a request is made to send data, using the
flag F159 (MTRN) instruction.
COM2 port port
reception done flag - Turn on when the terminator is received during general-
R9048 during general-purpose purpose serial communication.
communicating
COM2 port transmission - Goes on when transmission has been completed in
done flag during general-purpose serial communication.
R9049 general-purpose - Goes off when transmission is requested in general-
communication purpose communication.
Monitors whether the F145 (SEND) or F146 (RECV)
instructions can be executed or not.
COM2 port SEND/RECV Off: None of the above mentioned instructions can be
R904A instruction execution executed. (During executing the instruction)
flag On: One of the above mentioned instructions can be
executed.
Monitors if an abnormality has been detected during the
execution of the F145 (SEND) or F146 (RECV)
COM2 port SEND/RECV instructions as follows:
R904B instruction execution Off: No abonormality detected.
end flag On: An abnormality detected. (communication error)
The error code is stored in DT90039.
End code: DT90125
R904C to Not used -
R904D
Circular interpolation Goes on when the F176 (SPCH) circular interpolation
R904E control flag instruction is executed.
Circular interpolation It is used to overwrite next data when the circular
R904F data overwrite interpolation instruction is used in the continuation mode.
confirmation flag
Note) R9040 to R904F can be changed during 1 scan.
WR905
Relay No. Name Description
When using MEWNET-W0
MEWNET-W0 - Turns on when a transmission error occurs at PLC link.
R9050 PLC link transmission - Turns on when there is an error in the PLC link area
error flag settings.
R9051 to Not used
R905F
14-14
WR906
Relay No. Name Description
Turns on when Unit No. 1 is communicating properly in
Unit
R9060 PC(PLC) link 0 mode. Turns off when operation is stopped,
No.1
when an error occurs, or when not in the PC(PLC) link 0 mode.
Turns on when Unit No. 2 is communicating properly in
Unit
R9061 PC(PLC) link 0 mode. Turns off when operation is stopped,
No.2
when an error occurs, or when not in the PC(PLC) link 0 mode.
Turns on when Unit No. 3 is communicating properly in
Unit
R9062 PC(PLC) link 0 mode. Turns off when operation is stopped,
No.3
when an error occurs, or when not in the PC(PLC) link 0 mode.
Turns on when Unit No. 4 is communicating properly in
Unit
R9063 PC(PLC) link 0 mode. Turns off when operation is stopped,
No.4
when an error occurs, or when not in the PC(PLC) link 0 mode.
Turns on when Unit No. 5 is communicating properly in
Unit
R9064 PC(PLC) link 0 mode. Turns off when operation is stopped,
No.5
when an error occurs, or when not in the PC(PLC) link 0 mode.
Turns on when Unit No. 6 is communicating properly in
Unit
R9065 PC(PLC) link 0 mode. Turns off when operation is stopped,
No.6
when an error occurs, or when not in the PC(PLC) link 0 mode.
Turns on when Unit No. 7 is communicating properly in
Unit
R9066 PC(PLC) link 0 mode. Turns off when operation is stopped,
No.7
when an error occurs, or when not in the PC(PLC) link 0 mode.
MEWNET-W0 Turns on when Unit No. 8 is communicating properly in
Unit
R9067 PC(PLC) link PC(PLC) link 0 mode. Turns off when operation is stopped,
No.8
0 when an error occurs, or when not in the PC(PLC) link 0 mode.
transmission Turns on when Unit No. 9 is communicating properly in
Unit
R9068 assurance PC(PLC) link 0 mode. Turns off when operation is stopped,
No.9
relay when an error occurs, or when not in the PC(PLC) link 0 mode.
Turns on when Unit No. 10 is communicating properly in
Unit
R9069 PC(PLC) link 0 mode. Turns off when operation is stopped,
No.10
when an error occurs, or when not in the PC(PLC) link 0 mode.
Turns on when Unit No. 11 is communicating properly in
Unit
R906A PC(PLC) link 0 mode. Turns off when operation is stopped,
No.11
when an error occurs, or when not in the PC(PLC) link 0 mode.
Turns on when Unit No. 12 is communicating properly in
Unit
R906B PC(PLC) link 0 mode. Turns off when operation is stopped,
No.12
when an error occurs, or when not in the PC(PLC) link 0 mode.
Turns on when Unit No. 13 is communicating properly in
Unit
R906C PC(PLC) link 0 mode. Turns off when operation is stopped,
No.13
when an error occurs, or when not in the PC(PLC) link 0 mode.
Turns on when Unit No. 14 is communicating properly in
Unit
R906D PC(PLC) link 0 mode. Turns off when operation is stopped,
No.14
when an error occurs, or when not in the PC(PLC) link 0 mode.
Turns on when Unit No. 15 is communicating properly in
Unit
R906E PC(PLC) link 0 mode. Turns off when operation is stopped,
No.15
when an error occurs, or when not in the PC(PLC) link 0 mode.
Turns on when Unit No. 16 is communicating properly in
Unit
R906F PC(PLC) link 0 mode. Turns off when operation is stopped,
No.16
when an error occurs, or when not in the PC(PLC) link 0 mode.
14-15
WR907
Relay No. Name Description
Unit Turns on when Unit No. 1 is in the RUN mode.
R9070
No.1 Turns off when Unit No. 1 is in the PROG. mode.
Unit Turns on when Unit No. 2 is in the RUN mode.
R9071
No.2 Turns off when Unit No. 2 is in the PROG. mode.
Unit Turns on when Unit No. 3 is in the RUN mode.
R9072
No.3 Turns off when Unit No. 3 is in the PROG. mode.
Unit Turns on when Unit No. 4 is in the RUN mode.
R9073
No.4 Turns off when Unit No. 4 is in the PROG. mode.
Unit Turns on when Unit No. 5 is in the RUN mode.
R9074
No.5 Turns off when Unit No. 5 is in the PROG. mode.
Unit Turns on when Unit No. 6 is in the RUN mode.
R9075
No.6 Turns off when Unit No. 6 is in the PROG. mode.
Unit Turns on when Unit No. 7 is in the RUN mode.
R9076
No.7 Turns off when Unit No. 7 is in the PROG. mode.
MEWNET-W0 Unit Turns on when Unit No. 8 is in the RUN mode.
R9077
PC(PLC) link 0 No.8 Turns off when Unit No. 8 is in the PROG. mode.
operation Unit Turns on when Unit No. 9 is in the RUN mode.
R9078
mode relay No.9 Turns off when Unit No. 9 is in the PROG. mode.
Unit Turns on when Unit No. 10 is in the RUN mode.
R9079
No.10 Turns off when Unit No. 10 is in the PROG. mode.
Unit Turns on when Unit No. 11 is in the RUN mode.
R907A
No.11 Turns off when Unit No. 11 is in the PROG. mode.
Unit Turns on when Unit No. 12 is in the RUN mode.
R907B
No.12 Turns off when Unit No. 12 is in the PROG. mode.
Unit Turns on when Unit No. 13 is in the RUN mode.
R907C
No.13 Turns off when Unit No. 13 is in the PROG. mode.
Unit Turns on when Unit No. 14 is in the RUN mode.
R907D
No.14 Turns off when Unit No. 14 is in the PROG. mode.
Unit Turns on when Unit No. 15 is in the RUN mode.
R907E
No.15 Turns off when Unit No. 15 is in the PROG. mode.
Unit Turns on when Unit No. 16 is in the RUN mode.
R907F
No.16 Turns off when Unit No. 16 is in the PROG. mode.
14-16
WR908
Relay No. Name Description
Turns on when Unit No. 1 is communicating properly in
Unit
R9080 PC(PLC) link 1 mode. Turns off when operation is stopped,
No.1
when an error occurs, or when not in the PC(PLC) link 1 mode.
Turns on when Unit No. 2 is communicating properly in
Unit
R9081 PC(PLC) link 1 mode. Turns off when operation is stopped,
No.2
when an error occurs, or when not in the PC(PLC) link 1 mode.
Turns on when Unit No. 3 is communicating properly in
Unit
R9082 PC(PLC) link 1 mode. Turns off when operation is stopped,
No.3
when an error occurs, or when not in the PC(PLC) link 1 mode.
Turns on when Unit No. 4 is communicating properly in
Unit
R9083 PC(PLC) link 1 mode. Turns off when operation is stopped,
No.4
when an error occurs, or when not in the PC(PLC) link 1 mode.
Turns on when Unit No. 5 is communicating properly in
Unit
R9084 PC(PLC) link 1 mode. Turns off when operation is stopped,
No.5
when an error occurs, or when not in the PC(PLC) link 1 mode.
Turns on when Unit No. 6 is communicating properly in
Unit
R9085 PC(PLC) link 1 mode. Turns off when operation is stopped,
No.6
when an error occurs, or when not in the PC(PLC) link 1 mode.
Turns on when Unit No. 7 is communicating properly in
Unit
R9086 PC(PLC) link 1 mode. Turns off when operation is stopped,
No.7
when an error occurs, or when not in the PC(PLC) link 1 mode.
MEWNET-W0
Turns on when Unit No. 8 is communicating properly in
PC(PLC) link Unit
R9087 PC(PLC) link 1 mode. Turns off when operation is stopped,
1 No.8
when an error occurs, or when not in the PC(PLC) link 1 mode.
transmission
Turns on when Unit No. 9 is communicating properly in
assurance Unit
R9088 PC(PLC) link mode. Turns off when operation is stopped,
relay No.9
when an error occurs, or when not in the PC(PLC) link mode.
(32k only)
Turns on when Unit No. 10 is communicating properly in
Unit
R9089 PC(PLC) link 1 mode. Turns off when operation is stopped,
No.10
when an error occurs, or when not in the PC(PLC) link 1 mode.
Turns on when Unit No. 11 is communicating properly in
Unit
R908A PC(PLC) link 1 mode. Turns off when operation is stopped,
No.11
when an error occurs, or when not in the PC(PLC) link 1 mode.
Turns on when Unit No. 12 is communicating properly in
Unit
R908B PC(PLC) link 1 mode. Turns off when operation is stopped,
No.12
when an error occurs, or when not in the PC(PLC) link 1 mode.
Turns on when Unit No. 13 is communicating properly in
Unit
R908C PC(PLC) link 1 mode. Turns off when operation is stopped,
No.13
when an error occurs, or when not in the PC(PLC) link 1 mode.
Turns on when Unit No. 14 is communicating properly in
Unit
R908D PC(PLC) link 1 mode. Turns off when operation is stopped,
No.14
when an error occurs, or when not in the PC(PLC) link 1 mode.
Turns on when Unit No. 15 is communicating properly in
Unit
R908E PC(PLC) link 1 mode. Turns off when operation is stopped,
No.15
when an error occurs, or when not in the PC(PLC) link 1 mode.
Turns on when Unit No. 16 is communicating properly in
Unit
R908F PC(PLC) link 1 mode. Turns off when operation is stopped,
No.16
when an error occurs, or when not in the PC(PLC) link 1 mode.
14-17
WR909
Relay No. Name Description
Unit Turns on when Unit No. 1 is in the RUN mode.
R9090
No.1 Turns off when Unit No. 1 is in the PROG. mode.
Unit Turns on when Unit No. 2 is in the RUN mode.
R9091
No.2 Turns off when Unit No. 2 is in the PROG. mode.
Unit Turns on when Unit No. 3 is in the RUN mode.
R9092
No.3 Turns off when Unit No. 3 is in the PROG. mode.
Unit Turns on when Unit No. 4 is in the RUN mode.
R9093
No.4 Turns off when Unit No. 4 is in the PROG. mode.
Unit Turns on when Unit No. 5 is in the RUN mode.
R9094
No.5 Turns off when Unit No. 5 is in the PROG. mode.
Unit Turns on when Unit No. 6 is in the RUN mode.
R9095
No.6 Turns off when Unit No. 6 is in the PROG. mode.
Unit Turns on when Unit No. 7 is in the RUN mode.
R9096
No.7 Turns off when Unit No. 7 is in the PROG. mode.
MEWNET-W0
Unit Turns on when Unit No. 8 is in the RUN mode.
R9097 PC(PLC) link 1
No.8 Turns off when Unit No. 8 is in the PROG. mode.
operation
Unit Turns on when Unit No. 9 is in the RUN mode.
R9098 mode relay
No.9 Turns off when Unit No. 9 is in the PROG. mode.
(32k only)
Unit Turns on when Unit No. 10 is in the RUN mode.
R9099
No.10 Turns off when Unit No. 10 is in the PROG. mode.
Unit Turns on when Unit No. 11 is in the RUN mode.
R909A
No.11 Turns off when Unit No. 11 is in the PROG. mode.
Unit Turns on when Unit No. 12 is in the RUN mode.
R909B
No.12 Turns off when Unit No. 12 is in the PROG. mode.
Unit Turns on when Unit No. 13 is in the RUN mode.
R909C
No.13 Turns off when Unit No. 13 is in the PROG. mode.
Unit Turns on when Unit No. 14 is in the RUN mode.
R909D
No.14 Turns off when Unit No. 14 is in the PROG. mode.
Unit Turns on when Unit No. 15 is in the RUN mode.
R909E
No.15 Turns off when Unit No. 15 is in the PROG. mode.
Unit Turns on when Unit No. 16 is in the RUN mode.
R909F
No.16 Turns off when Unit No. 16 is in the PROG. mode.
14-18
14.1.3 Table of Special Data Registers for FPΣ
The special data registers are one word (16-bit) memory areas which store specific information.
14-19
(A: Available, N/A: Not available)
Register Read Writ-
Name Descriptions
No. -ing ing
When the state of installation of an FPΣ
expansion I/O unit has changed since the
power was turned on, the bit corresponding to
Position of I/O verify the unit No. will turn on. Monitor using binary
DT90011 error unit for FPΣ left display. A N/A
side expansion
14-20
(A: Available, N/A: Not available)
Register Read Writ-
Name Descriptions
No. -ing ing
The current scan time is stored here. Scan
time is calculated using the formula:
Scan time (current
DT90022 Note) Scan time (ms) = stored data (decimal) x 0.1 A N/A
value)
ms
Example: K50 indicates 5 ms.
The minimum scan time is stored here. Scan
time is calculated using the formula:
Scan time (minimum
DT90023 Scan time (ms) = stored data (decimal) x 0.1 A N/A
value) Note)
ms
Example: K50 indicates 5 ms.
The maximum scan time is stored here. The
scan time is calculated using the formula:
Scan time (maximum
DT90024 Note) Scan time (ms) = stored data (decimal) x 0.1 A N/A
value)
ms
Example: K125 indicates 12.5 ms.
The mask conditions of interrupts using the
instruction can be stored here. Monitor using
Mask condition binary display.
monitoring register
DT90025 A N/A
for interrupts
(INT0 to 7)
14-21
(A: Available, N/A: Not available)
Register Read- Writ-
Name Descriptions
No. ing ing
Operation auxiliary The number of data that match the searched
DT90037 register for search data is stored here when F96 (SRC) A N/A
instruction F96(SRC) insturction is executed.
Operation auxiliary The position of the first matching data is
DT90038 register for search stored here when an F96 (SRC) instruction is A N/A
instruction F96(SRC) executed.
DT90039 Not used N/A N/A
Potentiometer The potentiometer value (K0 to K1000) is
DT90040
(volume) input V0 stored here. This value can be used in analog
tiemrs and other applications by using the
A N/A
Potentiometer program to read this value to a data register.
DT90041
(volume) input V1 V0→DT90040
V1→DT90041
DT90042 Used by the system. N/A N/A
DT90043 Used by the system. N/A N/A
The elapsed value (32-bit data) of the high-
DT90044 High-speed
For speed counter is stored here. The value can
counter A A
CH0 be read or written by executing F1 (DMV)
DT90045 elapsed value
instruction.
14-22
(A: Available, N/A: Not available)
Register Read Writ-
Name Descriptions
No. -ing ing
A value can be written with F0 (MV) instruction
to reset the high-speed counter, disable
counting, continue or clear high-speed counter
instruction.
Control code setting
High-speed counter
DT90052 and pulse output N/A A
control flag
A A
Real-Time Clock
(Clock/Calendar)
DT90057
setting (day-of-the-
week)
14-23
(A: Available, N/A: Not available)
Register Read- Writ-
Name Descriptions
No. ing ing
The Real-Time Clock(Clock/Calendar) is
adjusted as follows.
When setting the Real-Time
Clock(Clock/Calendar) by program
By setting the highest bit of DT90058 to 1, the
time becomes that written to DT90054 to
DT90057 by F0 (MV) instruction. After the
time is set, DT90058 is cleared to 0. (Cannot
be performed with any instruction other than
F0 (MV) instruction.)
<Example>
th
Real-Time Clock Set the time to 12:00:00 on the 5 day when
the X0 turns on.
DT90058 (Clock/Calendar) time A A
setting
14-24
(A: Available, N/A: Not available)
Register Read- Writ-
Name Descriptions
No. ing ing
Step ladder process
DT90060
(0 to 15)
Step ladder process
DT90061
(16 to 31)
Step ladder process
DT90062
(32 to 47)
Step ladder process
DT90063
(48 to 63)
Step ladder process
DT90064
(64 to 79)
Step ladder process
DT90065
(80 to 95)
Step ladder process
DT90066
(96 to 111)
Step ladder process Indicates the startup condition of the step
DT90067
(112 to 127) ladder process. When the process starts up,
Step ladder process the bit corresponding to the process number
DT90068
(128 to 143) turns on.
Step ladder process
DT90069
(144 to 159) Monitor using binary display.
Step ladder process
DT90070
(160 to 175)
A A
Step ladder process
DT90071
(176 to 191)
Step ladder process
DT90072
(192 to 207)
Step ladder process
DT90073
(208 to 223)
Step ladder process A programming tool software can be used to
DT90074 write data.
(224 to 239)
Step ladder process
DT90075
(240 to 255)
Step ladder process
DT90076
(256 to 271)
Step ladder process
DT90077
(272 to 287)
Step ladder process
DT90078
(288 to 303)
Step ladder process
DT90079
(304 to 319)
Step ladder process
DT90080
(320 to 335)
Step ladder process
DT90081
(336 to 351)
14-25
(A: Available, N/A: Not available)
Register Read- Writ-
Name Descriptions
No. ing ing
Step ladder process
DT90082
(352 to 367)
Step ladder process
DT90083
(368 to 383)
Step ladder process
DT90084
(384 to 399)
Step ladder process
DT90085
(400 to 415)
Step ladder process
DT90086 Indicates the startup condition of the step
(416 to 431)
ladder process. When the process starts up,
Step ladder process
DT90087 the bit corresponding to the process number
(432 to 447)
turns on .
Step ladder process
DT90088
(448 to 463) Monitor using binary display.
Step ladder process
DT90089
(464 to 479)
A A
Step ladder process
DT90090
(480 to 495)
Step ladder process
DT90091
(496 to 511)
Step ladder process
DT90092
(512 to 527)
A programming tool software can be used to
Step ladder process
DT90093 write data.
(528 to 543)
Step ladder process
DT90094
(544 to 559)
Step ladder process
DT90095
(560 to 575)
Step ladder process
DT90096
(576 to 591)
Step ladder process
DT90097
(592 to 607)
14-26
(A: Available, N/A: Not available)
Register Read- Writ-
Name Descriptions
No. ing ing
Step ladder process
DT90098
(608 to 623)
Step ladder process
DT90099
(624 to 639)
Step ladder process
DT90100
(640 to 655)
Step ladder process
DT90101
(656 to 671)
Step ladder process
DT90102
(672 to 687)
Step ladder process
DT90103
(688 to 703)
Step ladder process
DT90104
(704 to 719)
Step ladder process
DT90105
(720 to 735)
Step ladder process Indicates the startup condition of the step
DT90106
(736 to 751)
ladder process. When the process starts up,
Step ladder process
DT90107 the bit corresponding to the process number
(752 to 767)
Step ladder process turns on “1”.
DT90108
(768 to 783)
Step ladder process Monitor using binary display
DT90109
(784 to 799)
Step ladder process
DT90110
(800 to 815)
A A
Step ladder process
DT90111
(816 to 831)
Step ladder process
DT90112
(832 to 847)
Step ladder process
DT90113
(848 to 863)
Step ladder process
DT90114
(864 to 879)
Step ladder process A programming tool software can be used to
DT90115 write data.
(880 to 895)
Step ladder process
DT90116
(896 to 911)
Step ladder process
DT90117
(912 to 927)
Step ladder process
DT90118
(928 to 943)
Step ladder process
DT90119
(944 to 959)
Step ladder process
DT90120
(960 to 975)
Step ladder process
DT90121
(976 to 991)
Step ladder process
DT90122 (992 to 999)
(higher byte is not used.)
14-27
(A: Available, N/A: Not available)
Register Read- Writ-
Name Descriptions
No. ing ing
DT90123 Not used - N/A N/A
COM1 SEND/RECV For details, refer to Programming Manual
DT90124 N/A N/A
instruction end code (F145 and F146).
COM2 SEND/RECV For details, refer to Programming Manual
DT90125 N/A N/A
instruction end code (F145 and F146).
Forced Input/Outptu
DT90126 Used by the system N/A N/A
unit No.
DT90127
to Not used - N/A N/A
DT90139
The number of times the receiving operation is
DT90140
performed.
The current interval between two receiving
DT90141
operations: value in the register x 2.5ms
The minimum inerval between two receiving
DT90142
operations: value in the register x 2.5ms
The maximum interval between two receiving
DT90143
MEWNET-W0 operations: value in the register x 2.5ms
A N/A
PC(PLC) link 0 status The number of times the sending operation is
DT90144
performed.
The current interval between two sending
DT90145
operations: value in the register x 2.5ms
The minimum interval between two sending
DT90146
operations: value in the register x 2.5ms
The maximum interval between two sending
DT90147
operations: value in the register x 2.5ms
The number of times the receiving operation is
DT90148
performed.
The current interval between two receiving
DT90149
operations: value in the register x 2.5ms
The minimum inerval between two receiving
DT90150
operations: value in the register x 2.5ms
The maximum interval between two receiving
DT90151 MEWNET-W0
operations: value in the register x 2.5ms
PC(PLC) link 1 status A N/A
The number of times the sending operation is
DT90152 (32k type only)
performed.
The current interval between two sending
DT90153
operations: value in the register x 2.5ms
The minimum interval between two sending
DT90154
operations: value in the register x 2.5ms
The maximum interval between two sending
DT90155
operations: value in the register x 2.5ms
14-28
(A: Available, N/A: Not available)
Register Read- Writ-
Name Descriptions
No. ing ing
Area used for measurement of receiving
DT90156 MEWNET-W0
interval.
PC(PLC) link 0 A N/A
Area used for measurement of sending
DT90157 status
interval.
MEWNET-W0 Area used for measurement of receiving
DT90158
PC(PLC) link 1 interval.
A N/A
Status Area used for measurement of sending
DT90159
(32k type only) interval.
MEWNET-W0
DT90160 Stores the unit No. of PLC link A N/A
PLC link unit No.
MEWNET-W0
DT90161 Stores the error contents of PLC link A N/A
PLC link error flag
DT90162 to
Not used - N/A N/A
DT90169
Duplicated destination for PLC inter-link
DT90170
address
DT90171 Counts how many times a token is lost.
Counts how many times two or more tokens
DT90172
are detected.
DT90173 Counts how many times a signal is lost.
No. of times underfined commands have been
DT90174
received.
MEWNET-W0
No. of times sum check errors have occurred A N/A
DT90175 PLC link status
during reception.
No. of times format errors have occurred in
DT90176
received data.
No. of times transmission errors have
DT90177
occurred.
DT90178 No. of times procedural errors have occurred.
No. of times overlapping parent units have
DT90179
occurred.
DT90180 to
Not used - N/A N/A
DT90189
High-speed counter
This monitors the data specified in DT90052.
DT90190 control flag monitor
for CH0
High-speed counter
DT90191 control flag monitor
for CH1
A N/A
High-speed counter
DT90192 control flag monitor
for CH2
High-speed counter
DT90193 control flag monitor
for CH3
14-29
(A: Available, N/A: Not available)
Register Read- Writ-
Name Descriptions
No. ing ing
DT90194
to Not used - N/A N/A
DT90199
The elapsed value (32-bit data) for the high-
DT90200 High-speed
For speed counter is stored here. The value can
counter A A
CH2 be read and written by executing the F1 (DMV)
DT90201 elapsed value
instruction.
DT90208
to Not used N/A N/A
DT90218
14-30
(A: Available, N/A: Not available)
Register Read- Writ-
Name Descriptions
No. ing ing
Unit No. (Station No.)
0: Unit No. (Station No.) 1 to 8,
DT90219 selection for DT90220 to A N/A
1: Unit No. (Station No.) 9 to 16
DT90251
System regis-
DT90220
ter 40 and 41
PLC link System regis-
DT90221
Unit ter 42 and 43
(station) System regis-
DT90222
No. 1 or 9 ter 44 and 45
System regis-
DT90223
ter 46 and 47
System regis-
DT90224
ter 40 and 41
PLC link System regis-
DT90225
Unit ter 42 and 43
(station) System regis- The contents of the system register settings
DT90226
No. 2 or 10 ter 44 and 45 partaining to the PLC inter-link function for
System regis- the various unit numbers are stored as
DT90227
ter 46 and 47 shown below.
System regis-
DT90228
ter 40 and 41 <Example>
PLC link System regis- When DT90219 is 0
DT90229
Unit ter 42 and 43
A N/A
(station) System regis-
DT90230
No. 3 or 11 ter 44 and 45
System regis-
DT90231
ter 46 and 47
System regis-
DT90232
ter 40 and 41
PLC link System regis-
DT90233
Unit ter 42 and 43
(station) System regis-
DT90234
No. 4 or 12 ter 44 and 45
System regis-
DT90235
ter 46 and 47
System regis-
DT90236
ter 40 and 41
PLC link System regis-
DT90237
Unit ter 42 and 43
(station) System regis-
DT90238
No. 5 or 13 ter 44 and 45
System regis-
DT90239
ter 46 and 47
14-31
(A: Available, N/A: Not available)
Register Read- Writ-
Name Descriptions
No. ing ing
System regis-
DT90240
ter 40 and 41
PLC link System regis-
DT90241
Unit ter 42 and 43
(station) System regis-
DT90242
No. 6 or 14 ter 44 and 45
System regis- The contents of the system register
DT90243 settings partaining to the PLC inter-link
ter 46 and 47
System regis- function for the various unit numbers are
DT90244 stored as shown below.
ter 40 and 41
PLC link System regis-
DT90245 <Example> when DT90219 is 0.
Unit (sta- ter 42 and 43
A N/A
tion) No. 7 System regis-
DT90246
or 15 ter 44 and 45
System regis-
DT90247
ter 46 and 47
System regis-
DT90248
ter 40 and 41
PLC link System regis-
DT90249
Unit (sta- ter 42 and 43
tion) No. 8 System regis-
DT90250
or 16 ter 44 and 45
System regis-
DT90251
ter 46 and 47
DT90252 Not used
DT90253 Not used
N/A N/A
DT90254 Not used
D590255 Not used
Unit No. (Station No.)
DT90256 switch monitor for COM Used by the system N/A N/A
port
14-32
14.2 Table of Basic Instructions
FP2SH/FP10SH
Steps *3
FP0R
FP-X
FP-e
FPΣ
FP0
FP2
Name Boolean Symbol Description
FP0R
FP-X
FP-e
FPΣ
FP0
FP2
Name Boolean Symbol Description
14-34
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
FPΣ
FP0
FP2
Name Boolean Symbol Description
Control instructions
Master MC Starts the master control program.
control 2
relay
Master MCE Ends the master control program.
control 2
relay end
Jump JP The program jumps to the label 2
instruction and continues from there. (3)
*2
Label LBL
1
Auxiliary F19 The program jumps to the label
3
jump (SJP) instruction specified by “S” and
continues from there.
1
Label LBL
Loop LOOP The program jumps to the label 4
instruction and continues from there (the (5)
number of jumps is set in “S”). *3
Label LBL
1
Break BRK Stops program execution when the
predetermined trigger turns on in the 1
TEST/RUN mode only.
: Available, : Not available, : Not available partially
*1) In the FP2/FP2SH/FP10SH, when internal relay WR240 or higher is used, the number of steps is the number in
parentheses. Also, in the FP2/FP2SH/FP10SH, when the specified internal relay number (word address) has an index
modfier, the number of steps is the number in parentheses.
*2) In the FP2/FP2SH/FP10SH, when the number “n” in a jump instruction has an index modifier, the number of steps
isthenumber in parentheses.
*3) In the FP2/FP2SH/FP10SH, when the number “n” in a loop instruction has an index modifier, the number of steps is the
number in parentheses.
14-35
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
FPΣ
FP0
FP2
Name Boolean Symbol Description
Subroutine instructions
Subroutine CALL When the trigger is on: Executes the 2
call subroutine. (3)
When the trigger is off: Not execute the *1
subroutine. The output in the
subroutine is maintained.
Output off FCAL When the trigger is on: Executes the
type subroutine. 4
subroutine When the trigger is off: Not execute the (5)
call subroutine. But, the output in *1
the subroutine is cleared.
Subroutine SUB Indicates the start of the subroutine
1
entry program “n”.
Subroutine RET Ends the subroutine program.
1
return
Interrupt instructions
Interrupt INT Indicates the start of the interrupt program
1
“n”.
Interrupt IRET Ends the interrupt program.
1
return
Interrupt ICTL Select interrupt enable/disable or clear in
control “S1” and “S2” and execute. 5
14-36
FP0 (FP0R mode)
FP2SH/FP10SH
Steps
FP-X
FP-e
FPΣ
FP0
FP2
Name Boolean Symbol Description
14-37
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
FPΣ
FP0
FP2
Name Boolean Symbol Description
14-38
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
FPΣ
FP0
FP2
Name Boolean Symbol Description
14-39
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
FPΣ
FP0
FP2
Name Boolean Symbol Description
14-40
14.3 Table of High-level Instructions
The high-level instructions are expressed by the prefixes “F” or “P” with numbers. For most of the high-level
instructions, “F” and “P” types are available. The differences between the two types are explained as follows:
- Instructions with the prefix “F” are executed in every scan while its trigger is in the on.
- Instructions with the prefix “P” are executed only when the leading edge of its trigger is detected.
For the FP0/FP0R/FPΣ/FP-X, the P type high-level instructions are not available.
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
Num- Boo- Ope-
FPΣ
FP0
FP2
Name Description
ber lean rand
14-41
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
Num- Ope-
FPΣ
FP0
FP2
Name Boo-lean Description
ber rand
14-42
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
Num- Ope-
FPΣ
FP0
FP2
Name Boo-lean Description
ber rand
14-43
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
Num- Boo- Ope-
FPΣ
FP0
FP2
Name Description
ber lean rand
14-44
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
Num- Ope-
FPΣ
FP0
FP2
Name Boo-lean Description
ber rand
F76 ASCII code → ABIN S1, S2, Converts the ASCII code specified by
P76 16-bit binary PABIN D “S1” and “S2” to 16 bits of binary data
data and stores it in “D”. 7
Example: H 30 30 31 2D 20 20 → K-100
0 0 1 -
F77 32-bit binary DBIA S1, S2, Converts the 32 bits of binary data
P77 data → ASCII PDBIA D (S1+1,
11
code S1) to ASCII code and stores it in D
(area of “S2” bytes).
F78 ASCII code → DABI S1, S2, Converts the ASCII code specified by
P78 32-bit binary PDABI D “S1” and “S2” to 32 bits of binary data 11
data and stores it in (D+1, D).
F80 16-bit binary BCD S, D Converts the 16 bits of binary data
P80 data → 4-digit PBCD specified by “S” to four digits of BCD
5
BCD data data and stores it in “D”.
Example: K100 → H100
F81 4-digit BCD BIN S, D Converts the four digits of BCD data
P81 data → 16-bit PBIN specified by “S” to 16 bits of binary data
5
binary data and stores it in “D”.
Example: H100 → K100
F82 32-bit binary DBCD S, D Converts the 32 bits of binary data
P82 data → 8-digit PDBCD specified by (S+1, S) to eight digits of
7
BCD data BCD data and stores it in (D+1, D).
F83 8-digit BCD DBIN S, D Converts the eight digits of BCD data
P83 data → 32-bit PDBIN specified by (S+1, S) to 32 bits of binary 7
binary data data and stores it in (D+1, D).
F84 16-bit data INV D Inverts each bit of data of “D”.
P84 invert (com- PINV 3
plement of 1)
F85 16-bit data NEG D Inverts each bit of data of “D” and adds
P85 complement PNEG 1 (inverts the sign). 3
of 2
F86 32-bit data DNEG D Inverts each bit of data of (D+1, D) and
P86 complement PDNEG adds 1 (inverts the sign). 3
of 2
F87 16-bit data ABS D Gives the absolute value of the data of
3
P87 absolute PABS “D”.
F88 32-bit data DABS D Gives the absolute value of the data of
3
P88 absolute PDABS (D+1, D).
F89 16-bit data EXT D Extends the 16 bits of data in “D” to 32
P89 sign extension PEXT bits in (D+1, D). 3
14-45
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
Num- Boo- Ope-
FPΣ
FP0
FP2
Name Description
ber lean rand
F94 16-bit data distribute DIST S, n, Each of the digits of the data of “S”
P94 PDIST D are stored in (distriuted to) the least
7
significant digits of the areas
beginning at “D”.
F95 Character→ ASCII ASC S, D Twelve characters of the characer
P95 code PASC constants of “S” are converted to
15
ASCII code and stored in “D” to
“D+5”.
F96 16-bit table data SRC S1, The data of “S1” is searched for in
P96 search PSRC S2, the areas in the range “S2” to “S3”
7
S3 and the result is stored in DT9037
and DT9038
F97 32-bit table data DSRC S1, The data of (S1+1, S1) is searched
P97 search PDSRC S2, for in the 32-bit data designated by
S3 “S3”, beginning from “S2”, and the 11
result if stored in DT90037 and
DT90038.
Data shift instructions
F98 Data table shift-out CMPR D1, Transfer “D2” to “D3”. Any parts of
P98 and compress PCMPR D2, the data between “D1” and “D2” that
7
D3 are 0 are compressed, and shifted in
order toward “D2”.
F99 Data table shift-in CMPW S, D1, Transfer “S” to “D1”. Any parts of the
P99 and compress PCMP D2 data between “D1” and “D2” that are
7
W 0 are compressed, and shifted in
order toward “D2”.
F100 Right shift of SHR D, n Shifts the “n” bits of “D” to the right.
P100 multiple bits (n bits) PSHR 5
in a 16-bit data
F101 Left shift of multiple SHL D, n Shifts the “n” bits of “D” to the left.
P101 bits (n bits) in a 16- PSHL 5
bit data
F102 Right shift of n bits DSHR D, n Shifts the “n” bits of the 32-bit data
P102 in a 32-bit data PDSHR area specified by (D+1, D) to the 5
right.
F103 Left shift of n bits in DSHL D, n Shifts the “n” bits of the 32-bit data
5
P103 a 32-bit data PDSHL area specified by (D+1, D) to the left.
F105 Right shift of one BSR D Shifts the one digit of data of “D” to
P105 hexadecimal digit (4- PBSR the right. 3
bit)
F106 Left shift of one BSL D Shifts the one digit of data of “D” to
P106 hexade-cimal digit PBSL the left. 3
(4-bit)
F108 Right shift of BITR D1, Shifts the “n” bits of data range by
7
P108 multiple bits (n bits) PBITR D2, n “D1” and “D2” to the right.
F109 Left shift of multiple BITL D1, Shifts the “n” bits of data range by
7
P109 bits (n bits) PBITL D2, n “D1” and “D2” to the left.
F110 Right shift of one WSHR D1, Shifts the one word of the areas by
5
P110 word (16-bit) PWSHR D2 “D1” and “D2” to the right.
F111 Left shift of one WSHL D1, Shifts the one word of the areas by
5
P111 word (16-bit) PWSHL D2 “D1” and “D2” to the left.
F112 Right shift of one WBSR D1, Shifts the one digit of the areas by
P112 hexade-cimal digit PWBSR D2 “D1” and “D2” to the right. 5
(4-bit)
F113 Left shift of one WBSL D1, Shifts the one digit of the areas by
P113 hexade-cimal digit PWBSL D2 “D1” and “D2” to the left. 5
(4-bit)
: Available, : Not available, : Not available partially
14-46
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
Num- Ope-
FPΣ
FP0
FP2
Name Boo-lean Description
ber rand
FIFO instructions
F115 FIFO buffer define FIFT n, D The “n” words beginning from “D” are
5
P115 PFIFT defined in the buffer.
F116 Data read from FIFR S, D The oldest data beginning from “S”
P116 FIFO buffer PFIFR that was written to the buffer is read 5
and stored in “D”.
F117 Data write into FIFW S, D The data of “S” is written to the buffer
5
P117 FIFO buffer PFIFW starting from “D”.
Basic function instructions
F118 UP/DOWN counter UDC S, D Counts up or down from the value
preset in “S” and stores the elapsed 5
value in “D”.
F119 Left/right shift LRSR D1, Shifts one bit to the left or right with
register D2 the area between “D1” and “D2” as 5
the register.
Data rotate instructions
F120 16-bit data right ROR D, n Rotates the “n” bits in data of “D” to
5
P120 rotate PROR the right.
F121 16-bit data left ROL D, n Rotates the “n” bits in data of “D” to
5
P121 rotate PROL the left.
F122 16-bit data right RCR D, n Rotates the “n” bits in 17-bit area
P122 rotate with carry PRCR consisting of “D” plus the carry flag 5
flag (R9009) data (R9009) data to the right.
F123 16-bit data left RCL D, n Rotates the “n” bits in 17-bit area
P123 rotate with carry PRCL consisting of “D” plus the carry flag 5
flag (R9009) data (R9009) data to the left.
F125 32-bit data right DROR D, n Rotates the number of bits specified
P125 rotate PDROR by “n” of the double words data (32
5
bits) specified by (D+1, D) to the
right.
F126 32-bit data left DROL D, n Rotates the number of bits specified
P126 rotate PDROL by “n” of the double words data (32
5
bits) specified by (D+1, D) to the
left.
F127 32-bit data right DRCR D, n Rotates the number of bits specified
P127 rotate with carry PDRCR by “n” of the double words data (32
flag (R9009) data bits) specified by (D+1, D) to the 5
right together with carry flag
(R9009) data.
F128 32-bit data left DRCL D, n Rotates the number of bits specified
P128 rotate with carry PDRCL by “n” of the double words data (32
flag (R9009) data bits) specified by (D+1, D) to the left 5
together with carry flag (R9009)
data.
Bit manipulation instructions
F130 16-bit data bit set BTS D, n Sets the value of bit position “n” of
5
P130 PBTS the data of “D” to 1.
F131 16-bit data bit BTR D, n Sets the value of bit position “n” of
5
P131 reset PBTR the data of “D” to 0.
F132 16-bit data invert BTI D, n Inverts the value of bit position “n” of
5
P132 PBTI the data of “D”.
F133 16-bit data bit test BTT D, n Tests the value of bit position “n” of
P133 PBTT the data of “D” and outputs the
5
result
to R900B.
F135 Number of on (1) BCU S, D Stores the number of on bits in the
5
P135 bits in 16-bit data PBCU data of “S” in “D”.
: Available, : Not available, : Not available partially
14-47
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
Num Boo- Ope-
FPΣ
FP0
FP2
Name Description
-ber lean rand
14-48
FP2SH/FP10S
Steps
FP0R
FP-X
FP-e
Num- Ope-
FPΣ
FP0
FP2
H
Name Boolean Description
ber rand
F150 Data read from READ S1, S2, Reads the data from the
9
P150 intelli-gent unit PREAD n, D intelligent unit. *3
F151 Data write into WRT S1, S2, Writes the data into the intelligent
9
P151 intelli-gent unit PWRT n, D unit. *3
F152 Data read from RMRD S1, S2, Reads the data from the
P152 MEWNET-F PRMRD n, D intelligent unit at the MEWNET-F 9
slave station (remote I/O) slave station.
F153 Data write into RMWT S1, S2, Writes the data into the intelligent
P153 MEWNET-F PRMWT n, D unit at the MEWNET-F (remote 9
slave station I/O) slave station.
F155 Sampling SMPL - Starts sampling data.
1
P155 PSMPL *5 *4
F156 Sampling STRG - When the trigger of this
P156 trigger PSTRG instruction turns on, the sampling 1
*5 *4
trace stops.
F157 Time addition CADD S1, S2, The time after (S2+1, S2)
P157 PCADD D elapses from the time of (S1+2,
9
S1+1, S1) is stored in (D+2, D+1, *1
D).
F158 Time CSUB S1, S2, The time that results from
P158 substruction PCSUB D subtracting (S2+1, S2) from the
9
time (S1+2, S1+1, S1) is stored *1
in (D+2, D+1, D).
F159 Serial port MTRN S, n, D This is used to send data to an
P159 communication PMTRN external device through the
7
specified CPU COM port or MCU *2 *2
COM port.
F161 MCU serial port MRCV S, D1, Data is received from external
P161 reception PMRCV D2 equipment via the COM port of 7
*2 *2
the specified MCU.
BIN arithmetic instruction
F160 Double word DSQR S, D
P160 (32-bit) data PDSQR √(S)→(D) 7
square root
High speed counter/Pulse output instruction for FP0, FP-e
14-49
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
Num- Boo-
FPΣ
FP0
FP2
Name Operand Description
ber lean
14-50
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
Num-
FPΣ
FP0
FP2
Name Boo-lean Operand Description
ber
14-51
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
Num- Boo-
FPΣ
FP0
FP2
Name Operand Description
ber lean
14-52
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
Num Ope-
FPΣ
FP0
FP2
Name Boolean Description
-ber rand
14-53
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
Num- Ope-
FPΣ
FP0
FP2
Name Boolean Description
ber rand
14-54
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
Num- Ope-
FPΣ
FP0
FP2
Name Boolean Description
ber rand
14-55
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
Num- Ope-
FPΣ
FP0
FP2
Name Boolean Description
ber rand
F286 Upper and DLIMT S1, S2, When (S1+1, S1)>(S3+1, S3), (S1+1,
P286 lower limit PDLIMT S3, D S1)→(D+1, D)
control When (S2+1, S2)<(S3+1, S3), (S2+1,
16
(32-bit data) S2)→(D+1, D) *1
When (S1+1, S1)<or = (S3+1, S3)<or
= (S2+1, S2), (S3+1, S3)→(D+1, D)
F287 Deadband BAND S1, S2, When S1>S3, S3−S1→D
P287 control PBAND S3, D When S2<S3, S3−S2→D 10
*1
(16-bit data) When S1<or = S3<or = S2, 0→D
F288 Deadband DBAND S1, S2, When (S1+1, S1)>(S3+1, S3), (S3+1,
P288 control PDBAND S3, D S3)−(S1+1, S1)→(D+1, D)
(32-bit data) When (S2+1, S2)<(S3+1, S3), (S3+1,
16
S3)−(S2+1, S2)→(D+1, D) *1
When (S1+1, S1)<or = (S3+1, S3)<or
= (S2+1, S2),0→(D+1, D)
F289 Zone control ZONE S1, S2, When S3<0, S3+S1→D
P289 (16-bit data) PZONE S3, D When S3=0, 0→D 10
*1
When S3>0, S3+S2→D
F290 Zone control DZONE S1, S2, When (S3+1, S3)<0, (S3+1,
P290 (32-bit data) PDZONE S3, D S3)+(S1+1, S1)→(D+1, D)
When (S3+1, S3)=0, 0→(D+1, D) 16
*1
When (S3+1, S3)>0, (S3+1,
S3)+(S2+1, S2)→(D+1, D)
BCD type real number operation instructions
F300 BCD type sine BSIN S, D SIN(S1+1, S1)→(D+1, D)
6
P300 operation PBSIN
F301 BCD type BCOS S, D COS(S1+1, S1)→(D+1, D)
P301 cosine PBCOS 6
operation
F302 BCD type BTAN S, D TAN(S1+1, S1)→(D+1, D)
P302 tangent PBTAN 6
operation
F303 BCD type BASIN S, D SIN-1(S1+1, S1)→(D+1, D)
P303 arcsine PBASIN 6
operation
F304 BCD type BACOS S, D COS-1(S1+1, S1)→(D+1, D)
P304 arccosine PBACOS 6
operation
F305 BCD type BATAN S, D TAN-1(S1+1, S1)→(D+1, D)
P305 arctangent PBATAN 6
operation
Floating-point type real number operation instructions
F309 Floating-point FMV S, D (S+1, S)→(D+1, D)
8
P309 type data move PFMV *2 *2
F310 Floating-point F+ S1, S2, (S1+1, S1)+(S2+1, S2)→(D+1, D)
P310 type data PF+ D 14
*2 *2
addition
F311 Floating-point F- S1, S2, (S1+1, S1)−(S2+1, S2)→(D+1, D)
P311 type data PF- D 14
*2 *2
subtraction
F312 Floating-point F* S1, S2, (S1+1, S1)×(S2+1, S2)→(D+1, D)
P312 type data PF* D 14
*2 *2
multiplication
F313 Floating-point F% S1, S2, (S1+1, S1)÷(S2+1, S2)→(D+1, D)
P313 type data PF% D 14
*2 *2
division
: Available, : Not available, : Not available partially
*1) This instruction is available for FP-e Ver.1.2 or later.
*2) This instruction is available for FP-e Ver.1.21 or later, FP0 V2.1 or later.
14-56
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
Num- Boo- Ope-
FPΣ
FP0
FP2
Name Description
ber lean rand
14-57
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
Num- Ope-
FPΣ
FP0
FP2
Name Boolean Description
ber rand
14-58
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
Num- Ope-
FPΣ
FP0
FP2
Name Boolean Description
ber rand
14-59
FP2SH/FP10SH
Steps
FP0R
FP-X
FP-e
Num- Ope-
FPΣ
FP0
FP2
Name Boolean Description
ber rand
14-60
14.4 Table of Error codes
Difference in ERROR display
There are differences in the way errors are displayed depending on the model.
Model Display Display method
FP1,FP-M,FP2,FP3,FP10SH LED ERROR. Continually lit
FPΣ,FP0, FP0R, FP-X LED ERROR/ALARM Flashes/contunually lit
FP-e Screen display ERR. Continually lit
When the “ERROR” on the control unit (CPU unit) turns on or flashes, a self-diagnostic error or syntax
check error has occurred. Confirm the contents of the error and take the appopriate steps.
14-61
-Self-diagnostic Error
This error occurs when the control unit (CPU unit) self-diagnostic function detects the occurrence of an
abnormality in the system. The self-diagnostic function monitors the memory abnormal detection, I/O
abnomal detection, and other devices.
14-62
Table of Syntax Check Error
Opera-
Error
FP10SH
Name
FP2SH
tion Description and steps to take
FP0R
code
FPΣ
FP-X
FP-e
FP0
FP2
status
14-63
Opera-
Error
FP10SH
Name
FP2SH
tion Description and steps to take
FP0R
code
FPΣ
FP-X
FP-e
FP0
FP2
status
14-64
Table of Self-Diagnostic Error
Opera-
Error
FP10SH
Name
FP2SH
tion Description and steps to take
FP0R
code
FPΣ
FP-X
FP-e
FP0
FP2
status
14-65
Opera-
Error
FP10SH
Name
FP2SH
tion Description and steps to take
FP0R
code
FPΣ
FP-X
FP-e
FP0
FP2
status
Configu-
A parameter error was detected in the
ration
E29 Stops MEWNET-W2 configuration area. Set a A A
parameter correct parameter.
error
Interrupt Probably a hardware abnormality.
E30 Stops ⇒ Please contact your dealer.
error 0
An interrupt occurred without an interrupt
request . A hardware problem or error due to
Interrupt
E31 Stops noise is possible. A A A A A A A A
error 1 ⇒ Turn off the power and check the noise
conditions.
There is no interrupt program for an interrupt
which occurred.
Interrupt
E32 Stops ⇒ Check the number of the interrupt program A A A A A A A A
error 2 and change it to agree with the interrrupt
request..
Multi-CPU
This error occurs when a FP3/FP10SH is
data CPU2
E33 used as CPU2 for a multi-CPU system. A A
unmatch Stops ⇒Refer to “Multi-CPU system Manual”.
error
An abnormal unit is installed.
-FPΣ, FP0R(FP0R mode),FP-X, FP2,FP2SH
and FP10SH:
Check the contents of special data register
DT90036 and locate the abnormal unit.Then
I/O status turn off the power and replace the unit with a
E34 Stops new one.
A A A A A
error
-FP3:
Check the contents of special data register
DT9036 and locate the abnormal unit. Then
turn off the power and replace the unit with a
new one.
MEWNET-F A unit, which cannot be installed on the slave
station of the MEWNET-F link system,is
slave
E35 Stops installed on the slave station. A A A
illegal unit ⇒Remove the illegal unit from the slave
error station.
MEWNET-F The number of slots or I/O points used for
(remore MEWNET-F(remote I/O) system exceeds the
limitation.
E36 I/O) Stops ⇒Re-configure the system so that the
A A A
limitation number of slots and I/O points is within the
error specified range.
MEWNET-F I/O overlap or I/O setting that is over the
I/O range is detected in the allocated I/O and
E37 Stops MEWNET-F I/O map.
A A A
mapping
error ⇒Re-configure the I/O map correctly
A:Available
14-66
Opera-
Error
FP10SH
Name
FP2SH
tion Description and steps to take
FP0R
code
FPΣ
FP-X
FP-e
FP0
FP2
status
14-67
Opera-
Error
FP10SH
Name
FP2SH
tion Description and steps to take
FP0R
code
FPΣ
FP-X
FP-e
FP0
FP2
status
14-68
Opera-
Error
FP10SH
Name
FP2SH
tion Description and steps to take
FP0R
code
FPΣ
FP-X
FP-e
FP0
FP2
status
14-69
Opera-
Error
FP10SH
Name
FP2SH
tion Description and steps to take
FP0R
code
FPΣ
FP-X
FP-e
FP0
FP2
status
14-70
Opera-
Error
FP10SH
Name
FP2SH
tion Description and steps to take
FP0R
code
FPΣ
FP-X
FP-e
FP0
FP2
status
14-71
Table of MEWTOCOL-COM Communication Error
Error
Name Description
code
14-72
Error
Name Description
code
14-73
14.5 MEWTOCOL-COM Communication Commands
Table of MEWTOCOL-COM commands
Command name Code Description
RC Reads the on and off status of contact.
(RCS) - Specifies only one point.
Read contact area
(RCP) - Specifies multiple contacts.
(RCC) - Specifies a range in word units.
WC Turns contacts on and off.
(WCS) - Specifies only one point.
Write contact area
(WCP) - Specifies multiple contacts.
(WCC) - Specifies a range in word units.
Read data area RD Reads the contents of a data area.
Write data area WD Writes data to a data area.
Read timer/counter set value area RS Reads the value set for a timer/counter.
Write timer/counter set value area WS Writes a timer/counter setting value.
Read timer/counter ellapsed value area RK Reads the timer/counter elapsed value.
Write timer/counter elapsed value area WK Writes the timer/counter elapsed value.
Register or Reset contacts monitored MC Registers the contact to be monitored.
Register or Reset data monitored MD Registers the data to be monitored.
Monitors a registered contact or data using the
Monitoring start MG
code “MC or MD”.
Embeds the areaof a specified range in a 16-
Preset contact area (fill command) SC
point on and off pattern.
Writes the same contents to the data area of a
Preset data area (fill command) SD
specified range.
Read system register RR Reads the contents of a system register.
Write system register WR Specifies the contents of a system register.
Reads the specifications of the programmable
Read the status of PLC RT
controller and error codes if an error occurs.
Switches the operation mode of the
Remote control RM
programmable controller.
Abort AB Aborts communication.
14-74
14.6 Hexadecimal/Binary/BCD
BCD data
Decimal Hexadecimal Binary data
(Binary Coded Decimal)
0 0000 00000000 00000000 0000 0000 0000 0000
1 0001 00000000 00000001 0000 0000 0000 0001
2 0002 00000000 00000010 0000 0000 0000 0010
3 0003 00000000 00000011 0000 0000 0000 0011
4 0004 00000000 00000100 0000 0000 0000 0100
5 0005 00000000 00000101 0000 0000 0000 0101
6 0006 00000000 00000110 0000 0000 0000 0110
7 0007 00000000 00000111 0000 0000 0000 0111
8 0008 00000000 00001000 0000 0000 0000 1000
9 0009 00000000 00001001 0000 0000 0000 1001
10 000A 00000000 00001010 0000 0000 0001 0000
11 000B 00000000 00001011 0000 0000 0001 0001
12 000C 00000000 00001100 0000 0000 0001 0010
13 000D 00000000 00001101 0000 0000 0001 0011
14 000E 00000000 00001110 0000 0000 0001 0100
15 000F 00000000 00001111 0000 0000 0001 0101
16 0010 00000000 00010000 0000 0000 0001 0110
17 0011 00000000 00010001 0000 0000 0001 0111
18 0012 00000000 00010010 0000 0000 0001 1000
19 0013 00000000 00010011 0000 0000 0001 1001
20 0014 00000000 00010100 0000 0000 0010 0000
21 0015 00000000 00010101 0000 0000 0010 0001
22 0016 00000000 00010110 0000 0000 0010 0010
23 0017 00000000 00010111 0000 0000 0010 0011
24 0018 00000000 00011000 0000 0000 0010 0100
25 0019 00000000 00011001 0000 0000 0010 0101
26 001A 00000000 00011010 0000 0000 0010 0110
27 001B 00000000 00011011 0000 0000 0010 0111
28 001C 00000000 00011100 0000 0000 0010 1000
29 001D 00000000 00011101 0000 0000 0010 1001
30 001E 00000000 00011110 0000 0000 0011 0000
31 001F 00000000 00011111 0000 0000 0011 0001
. . . .
. . . .
. . . .
63 003F 00000000 00111111 0000 0000 0110 0011
. . . .
. . . .
. . . .
255 00FF 00000000 11111111 0000 0010 0101 0101
. . . .
. . . .
. . . .
9999 270F 00100111 00001111 1001 1001 1001 1001
14-75
14.7 ASCII Codes
14-76
Record of changes
Manual No. Date Description of changes
ARCT1F333E-6 Jun.2007 7th edition Function addition only of FP 32k Type
Ver.3.10 or more