Control NAIS
Control NAIS
Control NAIS
FP1
Hardware
Matsushita Electric Works, Ltd. pursues a policy of continuous improvement of the design and performance of its
products, therefore, we reserve the right to change the manual/product without notice. In no event will Matsushita
Electric Works, Ltd. be liable for direct, special, incidental, or consequential damage resulting from any defect in the
product or its documentation, even if advised of the possibility of such damages.
LIMITED WARRANTY
All implied warranties on the product, including merchantability and fitness, are limited to one year from the date of
purchase.
If physical defects caused by distribution are found, Matsushita Electric Works, Ltd., will replace/repair the product
free of charge. Exceptions include:
• When physical defects are due to different usage/treatment of the product other than
described in the manual.
• When physical defects are due to defective equipment other than the distributed product.
• When physical defects are due to modifications/repairs by someone other than Matsushita
Electric Works, Ltd.
• When physical defects are due to natural disasters.
CONTENTS
CONTENTS
CHAPTER 1: FEATURES
1-1. Features ................................................................................................................ 2
1. Advanced Control Functions .......................................................................... 2
2. Communication Functions .............................................................................. 5
1-2. Table of FP1 Units ............................................................................................... 8
1. Control Units .................................................................................................. 8
2. Expansion Units ............................................................................................ 10
3. Intelligent Units ............................................................................................ 11
4. Link Units ..................................................................................................... 11
1-3. Expansion and Configurations ........................................................................... 12
1. Expansion of Units ....................................................................................... 12
1) Expansion Units ..................................................................................... 12
2) Intelligent Units and Link Unit .............................................................. 13
2. Combination of Units ................................................................................... 13
1-4. Programming Tools ............................................................................................ 16
1. Programming Tools ...................................................................................... 16
1) NPST-GR Software ................................................................................ 16
2) FP Programmer II ................................................................................... 17
2. How to Program ROM ................................................................................. 17
CHAPTER 2: SPECIFICATIONS
2-1. Parts Terminology and Functions ....................................................................... 22
1. Control Unit................................................................................................... 22
1) C14 and C16 Series................................................................................. 22
2) C24, C40, C56, and C72 Series .............................................................. 23
2. Expansion Unit .............................................................................................. 24
1) E8 and E16 Series .................................................................................. 24
2) E24 and E40 Series ................................................................................. 24
3. Intelligent Unit............................................................................................... 25
1) FP1 A/D Converter Unit ......................................................................... 25
2) FP1 D/A Converter Unit ......................................................................... 25
4. Link Unit........................................................................................................ 26
1) FP1 Transmitter Master Unit .................................................................. 26
2) FP1 I/O Link Unit ................................................................................... 27
3) C-NET Adapter S1 Type......................................................................... 28
2-2. Specifications ...................................................................................................... 29
1. General Specifications ....................................................................................29
2. Performance Specifications of Control Unit and Expansion Unit................. 31
1) Control Specifications............................................................................. 31
2) Input Specifications of Control Unit and Expansion Unit ...................... 32
3) Output Specifications of Control Unit and Expansion Unit ................... 33
3. Performance Specifications of Intelligent Unit ............................................. 35
1) FP1 A/D Converter Unit ......................................................................... 35
2) FP1 D/A Converter Unit ......................................................................... 35
4. Performance Specifications of Link Unit ...................................................... 36
1) FP1 Transmitter Master Unit .................................................................. 36
CONTENTS
NOP No operation....................................................................114
TMR 0.01s units timer ..............................................................115
TMX 0.1s units timer ................................................................115
TMY 1s units timer ...................................................................115
CT Counter............................................................................119
SR Shift register ....................................................................122
MC Master control relay ........................................................124
MCE Master control relay end..................................................124
ED End ..................................................................................126
ST= Word compare: Start equal..............................................127
ST<> Word compare: Start equal not .......................................127
ST> Word compare: Start larger.............................................127
ST>= Word compare: Start equal or larger...............................127
ST< Word compare: Start smaller ..........................................127
ST<= Word compare: Start equal or smaller ............................127
AN= Word compare: AND equal ............................................129
AN<> Word compare: AND equal not ......................................129
AN> Word compare: AND larger............................................129
AN>= Word compare: AND equal or larger..............................129
AN< Word compare: AND smaller .........................................129
AN<= Word compare: AND equal or smaller ...........................129
OR= Word compare: OR equal................................................131
OR<> Word compare: OR equal not .........................................131
OR> Word compare: OR larger...............................................131
OR>= Word compare: OR equal or larger.................................131
OR< Word compare: OR smaller ............................................131
OR<= Word compare: OR equal or smaller ..............................131
STD= Double word compare: Start equal..................................133
STD<> Double word compare: Start equal not............................133
STD> Double word compare: Start larger .................................133
STD>= Double word compare: Start equal or larger ...................133
STD< Double word compare: Start smaller...............................133
STD<= Double word compare: Start equal or smaller.................133
AND= Double word compare: AND equal.................................135
AND<> Double word compare: AND equal not ..........................135
AND> Double word compare: AND larger................................135
AND>= Double word compare: AND equal or larger..................135
AND< Double word compare: AND smaller .............................135
AND<= Double word compare: AND equal or smaller ............ 135
ORD= Double word compare: OR equal....................................137
ORD<> Double word compare: OR equal not..............................137
ORD> Double word compare: OR larger ...................................137
ORD>= Double word compare: OR equal or larger .....................137
ORD< Double word compare: OR smaller.................................137
ORD<= Double word compare: OR equal or smaller.................. 137
5-4. Hints for Programming Basic Instructions.........................................................139
1. Basic Circuit with Basic Instructions ...........................................................139
2. Basic Instructions not Displayed on the Keys of FP Programmer II............140
1) When You do not Know the Basic Instruction
Codes for the FP Programmer II.............................................................140
2) When You Know the Basic Instruction Codes
for the FP Programmer II........................................................................140
3) Table of Instruction Codes for the FP Programmer II............................140
3. Duplicated Use of Outputs ...........................................................................141
1) Duplicated Output ..................................................................................141
2) How to Check for Duplicated Use .........................................................141
CONTENTS
CHAPTER 7: TROUBLESHOOTING
7-1. Self-diagnostic Function ....................................................................................202
1. Operation Monitor LEDs When an Error Occurs.........................................202
2. Operation Status When an Error Occurs ......................................................203
1) Duplicated Output Error (Total-check Error) ........................................203
2) Battery Error (Self-diagnostic Error) .....................................................203
3) Operation Error (Self-diagnostic Error).................................................203
7-2. Troubleshooting .................................................................................................204
1. Points to be Checked When an Error Occurs ...............................................204
■ When an ERR. LED is ON.....................................................................205
■ When an ALARM LED is ON ...............................................................209
■ When all LEDs are OFF.........................................................................210
■ Diagnosing output malfunction ..............................................................211
■ When “PLC=COMM. ERR” is displayed on the NPST-GR screen ......214
■ When “PROTECT ERROR” is displayed..............................................215
7-3. Maintenance .......................................................................................................216
1. Preventive Maintenance ...............................................................................216
2. Replacement of Backup Battery ...................................................................216
1) Battery Life ............................................................................................216
2) How to Replace Backup Battery............................................................217
3. Removable Terminal ...................................................................................217
CHAPTER 8: APPENDIX
8-1. FP1 I/O Allocation Table ...................................................................................220
8-2. Table of Memory Areas .....................................................................................221
8-3. Table of Special Internal Relays ........................................................................223
8-4. Table of Special Data Registers .........................................................................226
8-5. System Registers ................................................................................................230
1. What are System Registers ...........................................................................230
2. Table of System Registers ............................................................................232
8-6. Versions of Programming Tools ........................................................................241
1. Differences Between NPST-GR Ver. 2.4 and 3.1 ........................................241
2. Differences Between the FP Programmer and FP Programmer II ................243
8-7. FP1 CPU Version 2.7 .........................................................................................245
8-8. FP1 Modem Communication .............................................................................246
1. Using the Programming Tool Port (RS422) .................................................246
2. Using the RS232C Port.................................................................................248
3. System Configuration: One Computer and Two or More Programmable
Controllers ....................................................................................................251
4. NPST-GR Settings........................................................................................252
8-9. Terminology .......................................................................................................254
8-10. Product Types.....................................................................................................260
1. Control Units ................................................................................................260
2. Expansion Units............................................................................................262
3. Intelligent Units ............................................................................................263
4. Link Units .....................................................................................................263
5. Programming Tools ......................................................................................263
6. Maintenance Parts.........................................................................................265
INDEX....................................................................................................................................266
RECORD OF CHANGES ....................................................................................................271
CHAPTER 1
FEATURES
1-1. Features
1. Advanced Control Functions
■ High-speed counter function (all series)
The built-in high-speed counter function supports four modes: two-phase input, UP, DOWN, and UP/DOWN.
The FP1 can read the input regardless of the scan time.
Roller
Cutter Wire
Motor
Max. counting speed 1-phase: 10 k Hz
Variable
Encoder motor
(when duty cycle ratio 50 %)
drive
2-phase: 5 k Hz Start/Stop Control
signal signal
Counting range –8,388,608 to 8,388,607
• Position control:
C14, C16, C24, and C40 series C56 and C72 series
These support drives with one pulse input and one These also support drives with two pulse inputs. In
direction switching input. When using a drive with addition, it is not necessary to connect the pulse
two pulse inputs, a switching circuit based on an output to the high-speed counter (Y7 to X0).
external relay is necessary.
CW/CCW ON/OFF
Y0
Y6
CW
Motor Motor
FP1 Pulse FP1
Y7 drive drive
Control Control CCW
Unit Uit Y7
X0
High-speed counter Motor Motor
2
1-1. Features
Interrupt input
24V DC 0 1 2 3 4 5 6 7
F.G.
RUN RUN
signal Sensor 2
V0 V1
PC
FP1-C24
Motor
RUN
24V DC
F.G.
-
RUN
0
COM
1
COM
2
COM
3
COM
4
COM
5
COM
6
COM
7
COM
PROG. REMOTE
V0 V1
PC
FP1-C24
speed.
Sensor
RUN
PROG.
+
24V DC
F.G.
-
RUN
REMOTE
0
COM
1
COM
2
COM
3
COM
4
COM
5
COM
6
COM
7
COM
FP1
time is fixed as 2 ms.
PROG.
ERR.
Control
ALRAM
min. max.min. max.
V0 V1
PC
FP1-C24
Unit
- COM 8 A C E COM 0 2 4 6
24V DC (+) (+)
+ - 9 B D F - 1 3 5 7
Response time
Motor
Pulse
3
1-1. Features
RUN
24V DC
F.G.
-
0
COM
1
COM
2
COM
3
COM
4
COM
5
COM
6
COM
7
COM
RUN
PROG. REMOTE
PROG.
ERR.
ALRAM
min. max.min. max.
V0 V1
PC
FP1-C24
- COM 8 A C E COM 0 2 4 6
24V DC (+) (+)
+ - 9 B D F - 1 3 5 7
4
1-1. Features
2. Communication Functions
■ Computer link function (MEWTOCOL)
This function allows the reading and writing of FP1 contact information and data register content from a host
computer. It can be used for such applications as data collection and the monitoring of operating conditions.
RUN RUN
PROG. REMOTE
PROG.
ERR.
ALRAM
min. max.min. max.
V0 V1
PC
FP1-C24
24V DC
- COM 8
(+) 9
A
B
C
D
E
F
COM 0
(+) 1
2
3
4
5
6
7
Personal computer
+ - -
RS232C port
When connected to an I.O.P. using the computer link I.O.P. FP1 Control Unit
function, the I.O.P.’s data can be read as the FP1’s abcd
abcd abcd
BATTERY
RUN
24V DC
F.G.
-
RUN
0
COM
1
COM
2
COM
3
COM
4
COM
5
COM
6
COM
7
COM
REMOTE
V0 V1
RS232C port
• Using programming tools connector (RS422 port) (all series)
The RS422 port can also be used for a 1:1 computer link by
connecting it through an RS422/232C Adapter.
RS422/232C Adapter
min.
RUN
PROG.
ERR.
ALRAM
max.min.
RUN
REMOTE
PROG.
max.
Personal computer
V0 V1
+
24V DC
F.G.
-
0
COM
1
COM
2
COM
3
COM
4
COM
5
COM
6
COM
7
COM can be connected.
C-NET
RUN RUN RUN
RUN
ABCDEF ABCDEF PROG. REMOTE ABCDEF PROG. REMOTE
PROG.
PROG.
ERR. ERR.
ON ON ALRAM
ON ALRAM
PC PC V0 V1 PC V0 V1
Adapter
ABCDEFGHI ABCDEFGHI ABCDEFGHI
ADAPTER ON ADAPTER ON
ADAPTER ON
OFF OFF 24V DC
- COM 8 A C E COM 0 2 4 6 OFF 24V DC
- COM 8
(+)
A C E COM 0
(+)
2 4 6
(+) 9 B D F (+) 1 3 5 7 + - 9 B D F - 1 3 5 7
+ - -
Personal
computer ABC
DEF
GHI
AB ABC
CD DEF
EF GHI
GH
I AB
ABC
DE
FG
HI
• Refer to C-NET LINK UNIT Technical Manual for details about computer link function.
5
1-1. Features
Personal computer
NPST-GR Software
RS422/232C FP1 Control Unit
Adapter BATTERY
+
24V DC
F.G.
-
0
COM
1
COM
2
COM
3
COM
4
COM
5
COM
6
COM
7
COM
RUN RUN
PROG. REMOTE
PROG.
Modem Modem
ERR.
ALARM
min. max.min. max.
V0 V1
PC
FP1-C24
- COM 8 A C E COM 0 2 4 6
24V DC (+) (+)
+ - 9 B D F - 1 3 5 7
+ - F.G. + - F.G.
+ - COM COM COM COM COM COM COM COM 24V DC RS485
When shipped,
24V DC 0 1 2 3 4 5 6 7
F.G.
RUN RUN
REMOTE
TRNET
Master
PROG.
PROG.
0 1 2 3 4 5 6 7
ERR. POWER
32 inputs
ALRAM
COM.
min. max.min. max.
ALARM
V0 V1 8 9 A B C D E F
station
MONITOR SW. MODE SW.
ON
PC INPUT UNIT
32 output
OFF
FP1-C24 OUTPUT UNIT 1 2 3 4 5 6
- COM 8 A C E COM 0 2 4 6
24V DC (+) 9 B D F (+) 1 3 5 7 Matsushita Electric Works, Ltd.
+ - -
NAIS FP I/O TRANSMITTER UNIT NAIS FP I/O TRANSMITTER UNIT 8-INPUT (24 V DC) AFP87521
4-OUTPUT (T1 O.5 A NPN) AFP87527 NAIS FP I/O TRANSMITTER UNIT 16-OUTPUT (T1 O.5 A NPN) AFP87524
ab ab ab ab
Matsushita
Electronic Works, Ltd
POWER COM. ALARM
TRNET ab ab ab ab ab ab ab
Matsushita Electronic Works, Ltd
ab TRNET ab ab ab ab ab ab ab
POWER COM.
ab ab
ALARM
ab ab ab ab ab ab
Matsushita Electronic Works, Ltd
ab
• Master-master communication
Twisted pair cable or 2-conductor cable
RUN
PROG.
RUN
REMOTE
TRNET RUN
PROG.
RUN
REMOTE
TRNET
PROG. PROG.
0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
ERR. POWER ERR. POWER
ALRAM ALRAM
COM. COM.
min. max.min. max. min. max.min. max.
ALARM ALARM
V0 V1 8 9 A B C D E F V0 V1 8 9 A B C D E F
MONITOR SW. MODE SW. MONITOR SW. MODE SW.
ON ON
PC INPUT UNIT OFF PC INPUT UNIT OFF
FP1-C24 OUTPUT UNIT 1 2 3 4 5 6 FP1-C24 OUTPUT UNIT 1 2 3 4 5 6
- COM 8 A C E COM 0 2 4 6 - COM 8 A C E COM 0 2 4 6
24V DC (+) 9 B D F (+) 1 3 5 7 Matsushita Electric Works, Ltd. 24V DC (+) 9 B D F (+) 1 3 5 7 Matsushita Electric Works, Ltd.
+ - - + - -
6
1-1. Features
Master
National
station
FP3
FP3 or FP5
Slave Unit
POWER National
ab ab ab
ab
+ - COM COM COM COM COM COM COM COM
24V DC 0 1 2 3 4 5 6 7 abcdefg abcdefg
F.G.
National FP I/O TERMINAL BOARD ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab ab
RUN RUN
REMOTE ABCDE ABCDE ABCDEFGHIJ ABCDEFGHIJ ABCDEFGHIJ
PROG.
PROG.
AB ABCDEFGHIJ ABCDEFGHIJ
ERR. AB
Slave stations
ALRAM
min. max.min. max.
PC ABC
V0 V1 FP! ABC AB
AB
I/O LINK
AB
PC
FP1-C24
FP I/O
- COM 8 A C E COM 0 2 4 6
24V DC (+) (+)
+ - 9 B D F - 1 3 5 7
■ General communication using RS232C port (C24C, C40C, C56C, and C72C types)
This function allows data input and output
when connected to a device having an RS232C Bar-code reader
port. Data reading from a bar code reader, data
output to a printer, and bilateral data exchange
abc
abc
nal abc
Natio
abc
with the image checker are all possible. FP1 Control Unit
BATTERY
RUN RUN
PROG. REMOTE
PROG.
ERR.
ALRAM
min. max.min. max.
V0 V1
PC
FP1-C24
- COM 8 A C E COM 0 2 4 6
24V DC (+) (+)
+ - 9 B D F - 1 3 5 7
Image checker
7
1-2. Table of FP1 Units
8
1-2. Table of FP1 Units
Series Description
Built-in I/O point Operating Input type Output type Part number
memory voltage
C40 Standard RAM 40 24 V DC Sink/source Relay AFP12413B
types Input: 24 Transistor (NPN open collector) AFP12443B
Output: 16 Transistor (PNP open collector) AFP12453B
Source Relay AFP12412B
Transistor (NPN open collector) AFP12442B
100 V to Sink/source Relay AFP12417B
240 V AC Transistor (NPN open collector) AFP12447B
Transistor (PNP open collector) AFP12457B
Source Relay AFP12416B
Transistor (NPN open collector) AFP12446B
C40C types RAM 40 24 V DC Sink/source Relay AFP12413CB
(with Input: 24 Transistor (NPN open collector) AFP12443CB
RS232C Output: 16 Transistor (PNP open collector) AFP12453CB
port and Source Relay AFP12412CB
Clock/ Transistor (NPN open collector) AFP12442CB
Calender 100 V to Sink/source Relay AFP12417CB
function) 240 V AC Transistor (NPN open collector) AFP12447CB
Transistor (PNP open collector) AFP12457CB
Source Relay AFP12416CB
Transistor (NPN open collector) AFP12446CB
C56 Standard RAM 56 24 V DC Sink/source Relay AFP12513B
types Input: 32 Transistor (NPN open collector) AFP12543B
Output: 24 Transistor (PNP open collector) AFP12553B
100 V to Sink/source Relay AFP12517B
240 V AC Transistor (NPN open collector) AFP12547B
Transistor (PNP open collector) AFP12557B
C56C types RAM 56 24 V DC Sink/source Relay AFP12513CB
(with RS232C Input: 32 Transistor (NPN open collector) AFP12543CB
port and Output: 24 Transistor (PNP open collector) AFP12553CB
Clock/ 100 V to Sink/source Relay AFP12517CB
Calender 240 V AC Transistor (NPN open collector) AFP12547CB
function) Transistor (PNP open collector) AFP12557CB
C72 Standard RAM 72 24 V DC Sink/source Relay AFP12713B
types Input: 40 Transistor (NPN open collector) AFP12743B
Output: 32 Transistor (PNP open collector) AFP12753B
100 V to Sink/source Relay AFP12717B
240 V AC Transistor (NPN open collector) AFP12747B
Transistor (PNP open collector) AFP12757B
C72C types RAM 72 24 V DC Sink/source Relay AFP12713CB
(with RS232C Input: 40 Transistor (NPN open collector) AFP12743CB
port and Output: 32 Transistor (PNP open collector) AFP12753CB
Clock/ 100 V to Sink/source Relay AFP12717CB
Calender 240 V AC Transistor (NPN open collector) AFP12747CB
function) Transistor (PNP open collector) AFP12757CB
9
1-2. Table of FP1 Units
2. Expansion Units
Series Description
I/O point Operating Input type Output type Part number
voltage
E8 8 Source AFP13802
Input: 8 Sink/source AFP13803
8 Source Relay AFP13812
Input: 4 Transistor (NPN open collector) AFP13842
Output: 4 Sink/source Relay AFP13813
Transistor (NPN open collector) AFP13843
Transistor (PNP open collector) AFP13853
8 Relay AFP13810
Output: 8 Transistor (NPN open collector) AFP13840
Transistor (PNP open collector) AFP13850
Triac AFP13870
E16 16 Sink/source AFP13103
Input: 16
16 Source Relay AFP13112
Input: 8 Transistor (NPN open collector) AFP13142
Output: 8 Sink/source Relay AFP13113
Transistor (NPN open collector) AFP13143
Transistor (PNP open collector) AFP13153
16 Relay AFP13110
Output: 16 Transistor (NPN open collector) AFP13140
E24 24 24 V DC Source Relay AFP13212
Input: 16 Transistor (NPN open collector) AFP13242
Output: 8 Sink/source Relay AFP13213
Transistor (NPN open collector) AFP13243
Transistor (PNP open collector) AFP13253
100 V to Source Relay AFP13216
240 V AC Transistor (NPN open collector) AFP13246
Sink/source Relay AFP13217
Transistor (NPN open collector) AFP13247
Transistor (PNP open collector) AFP13257
E40 40 24 V DC Source Relay AFP13412
Input: 24 Transistor (NPN open collector) AFP13442
Output: 16 Sink/source Relay AFP13413
Transistor (NPN open collector) AFP13443
Transistor (PNP open collector) AFP13453
100 V to Source Relay AFP13416
240 V AC Transistor (NPN open collector) AFP13446
Sink/source Relay AFP13417
Transistor (NPN open collector) AFP13447
Transistor (PNP open collector) AFP13457
10
1-2. Table of FP1 Units
3. Intelligent Units
Type Specification Operating voltage Part number
FP1 A/D Converter Unit • Analog input points: 4 channels/unit 24 V DC AFP1402
• Analog input range: 0 to 5 V, 0 to 10 V,
0 to 20 mA 100 V to AFP1406
• Digital output range: K0 to K1000 240 V AC
FP1 D/A Converter Unit • Analog output points: 2 channels/unit 24 V DC AFP1412
• Analog output range: 0 to 5 V, 0 to 10 V,
0 to 20 mA 100 V to AFP1416
• Digital input range: K0 to K1000 240 V AC
4. Link Units
Type Specification Operating voltage Part number
FP1 Transmitter FP1 Transmitter Master Unit enables the FP1 to 24 V DC AFP1752
Master Unit exchange I/O information with slave stations at a
remote site using a twisted pair cable. By connecting
with another FP1 Transmitter Master Unit or with an
FP3 Transmitter Master Unit, you can exchange I/O 100 V to AFP1756
information with another FP1. Communication 240 V AC
medium (RS485 port): Twisted pair cable up to 32
inputs and 32 outputs can be controlled per unit.
FP1 I/O Link Unit The FP1 I/O Link Unit is the interface unit for 24 V DC AFP1732
exchanging I/O information between an FP3/FP5
and an FP1.
When the FP1 is connected to the FP3/FP5 Remote 100 V to AFP1736
I/O System via the FP1 I/O Link Unit, you can 240 V AC
exchange I/O information serially, using a
2-conductor cable.
C-NET Adapter RS485 ↔ RS422/RS232C signal converter 24 V DC AFP8532
Used for communication between the Programmable
Controller and your computer.
Communication medium (RS485 port): 2-conductor 100 V to AFP8536
cable or twisted pair cable 240 V AC
C-NET Adapter S1 type RS485 ↔ RS422 signal converter for FP1 Control
(for FP1 Control Unit only) Unit. AFP15401
Used for communication between the C-NET
Adapter and FP1 Control Unit.
11
1-3. Expansion and Configurations
Intelligent Unit
Expansion Unit
Control Unit
Primary Secondary
Control Unit Expansion Unit Expansion Unit Intelligent Unit and Link Unit
E16 series
E24 series
E40 series
E40 series
FP1 Transmitter Master Unit FP1 A/D FP1 D/A FP1 D/A
or Converter Converter Converter
E24 series E8 series Unit Unit Unit
E16 series One unit
E24 series
E40 series
FP1 I/O
FP1 Transmitter Master Unit Link Unit
E40 series E8 series One unit
E16 series
E24 series
E40 series
FP1 Transmitter Master Unit
FP1 Transmitter Master Unit
Be sure to check that the units are expanded according to the following restrictions:
1) Expansion Units
■ Control Units (C14 and C16 series) ■ Control Units (C24, C40, C56 or C72 series)
• Number of expandable units: 1 unit • Number of expandable units: Max. 2 units
• Total number of I/O points: • Total number of I/O points:
C14 series: Max. 54 points C24 series: Max. 104 points
C16 series: Max. 56 points C40 series: Max. 120 points
C56 series: Max. 136 points
C72 series: Max. 152 points
Note:
• Expansion units (E8 and E16 series) which do not require power supply cannot be connected in
succession. For this reason, when an E8 series or an E16 series is used as a primary expansion unit, it
can only be combined with E24 or E40 series as secondary expansion unit.
12
1-3. Expansion and Configurations
2. Combination of Units
Requested I/O point Control Unit Primary Expansion Unit Secondary Expansion Unit
Total Input Output Series Input Output Series Input Output Series Input Output
14 8 6 C14 8 6
16 8 8 C16 8 8
22 8 14 C14 8 6 E8 0 8
12 10 8 6 4 4
16 6 8 6 8 0
24 16 8 C24 16 8
8 16 C16 8 8 E8 0 8
12 12 8 8 4 4
16 8 8 8 8 0
30 8 22 C14 8 6 E16 0 16
16 14 8 6 8 8
24 6 8 6 16 0
32 8 24 C16 8 8 E16 0 16
16 16 8 8 8 8
24 8 8 8 16 0
16 16 C24 16 8 E8 0 8
20 12 16 8 4 4
24 8 16 8 8 0
38 24 14 C14 8 6 E24 16 8
40 24 16 C40 24 16
24 16 C16 8 8 E24 16 8
16 24 C24 16 8 E16 0 16
24 16 16 8 8 8
32 8 16 8 16 0
48 32 16 C24 16 8 E24 16 8
24 24 C40 24 16 E8 0 8
28 20 24 16 4 4
32 16 24 16 8 0
54 32 22 C14 8 6 E40 24 16
56 32 24 C56 32 24
32 24 C16 8 8 E40 24 16
32 24 C24 16 8 E24 16 8 E8 0 8
36 20 16 8 16 8 4 4
40 16 16 8 16 8 8 0
24 32 C40 24 16 E16 0 16
32 24 24 16 8 8
40 16 24 16 16 0
13
1-3. Expansion and Configurations
Requested I/O point Control Unit Primary Expansion Unit Secondary Expansion Unit
Total Input Output Series Input Output Series Input Output Series Input Output
64 40 24 C24 16 8 E40 24 16
32 32 16 8 E24 16 8 E16 0 16
40 24 16 8 16 8 8 8
48 16 16 8 16 8 16 0
40 24 C40 24 16 E24 16 8
32 32 C56 32 24 E8 0 8
36 28 32 24 4 4
40 24 32 24 8 0
72 40 32 C72 40 32
48 24 C24 16 8 E24 16 8 E24 16 8
40 32 16 8 E40 24 16 E8 0 8
44 28 16 8 24 16 4 4
48 24 16 8 24 16 8 0
40 32 C40 24 16 E24 16 8 E8 0 8
44 28 24 16 16 8 4 4
48 24 24 16 16 8 8 0
32 40 C56 32 24 E16 0 16
40 32 32 24 8 8
48 24 32 24 16 0
80 40 40 C24 16 8 E40 24 16 E16 0 16
48 32 16 8 24 16 8 8
56 24 16 8 24 16 16 0
48 32 C40 24 16 E40 24 16
40 40 24 16 E24 16 8 E16 0 16
48 32 24 16 16 8 8 8
56 24 24 16 16 8 16 0
48 32 C56 32 24 E24 16 8
40 40 C72 40 32 E8 0 8
44 36 40 32 4 4
48 32 40 32 8 0
88 56 32 C24 16 8 E40 24 16 E24 16 8
56 32 C40 24 16 E24 16 8 E24 16 8
48 40 24 16 E40 24 16 E8 0 8
52 36 24 16 24 16 4 4
56 32 24 16 24 16 8 0
48 40 C56 32 24 E24 16 8 E8 0 8
52 36 32 24 16 8 4 4
56 32 32 24 16 8 8 0
40 48 C72 40 32 E16 0 16
48 40 40 32 8 8
56 32 40 32 16 0
14
1-3. Expansion and Configurations
Requested I/O point Control Unit Primary Expansion Unit Secondary Expansion Unit
Total Input Output Series Input Output Series Input Output Series Input Output
96 48 48 C40 24 16 E40 24 16 E16 0 16
56 40 24 16 24 16 8 8
64 32 24 16 24 16 16 0
56 40 C56 32 24 E40 24 16
48 48 32 24 E24 16 8 E16 0 16
56 40 32 24 16 8 8 8
64 32 32 24 16 8 16 0
56 40 C72 40 32 E24 16 8
104 64 40 C24 16 8 E40 24 16 E40 24 16
64 40 C40 24 16 E40 24 16 E24 16 8
64 40 C56 32 24 E24 16 8 E24 16 8
56 48 32 24 E40 24 16 E8 0 8
60 44 32 24 24 16 4 4
64 40 32 24 24 16 8 0
56 48 C72 40 32 E24 16 8 E8 0 8
60 44 40 32 16 8 4 4
64 40 40 32 16 8 8 0
112 56 56 C56 32 24 E40 24 16 E16 0 16
64 48 32 24 24 16 8 8
72 40 32 24 24 16 16 0
64 48 C72 40 32 E40 24 16
56 56 40 32 E24 16 8 E16 0 16
64 48 40 32 16 8 8 8
72 40 40 32 16 8 16 0
120 72 48 C40 24 16 E40 24 16 E40 24 16
72 48 C56 32 24 E40 24 16 E24 16 8
72 48 C72 40 32 E24 16 8 E24 16 8
64 56 40 32 E40 24 16 E8 0 8
68 52 40 32 24 16 4 4
72 48 40 32 24 16 8 0
128 64 64 C72 40 32 E40 24 16 E16 0 16
72 56 40 32 24 16 8 8
80 48 40 32 24 16 16 0
136 80 56 C56 32 24 E40 24 16 E40 24 16
80 56 C72 40 32 E40 24 16 E24 16 8
152 88 64 C72 40 32 E40 24 16 E40 24 16
15
1-4. Programming Tools
Adapter MATU
MATUSITA
ELECTRIC WORKS. LTD
V0 V1
ELECTRIC SITA
MADE WORKS. LTD
MADE IN JAPAN
PC
IN JAPA
N FP1-C24
- COM 8 A C E COM 0 2 4 6
24V DC (+) (+)
+ 9 B D F 1 3 5 7
Ma RS4
- -
RS
tsu 22/2
23
sh
it 32 P
Ma a Ele C ADC
2C
de c A
in tric PTE
Ja Wo R
pa
•P n rks,
• T OWE Ltd
• R XD(– R .
XD )
2
42
(–)
RS
abcdefg
abcdefg
FP PROGRAMMER
ST AN OR OT FN/P
X•WX Y•WY R•WR L•WL FL
8 9 A B (-)
OP
4 5 6 7 SRC
0 1 2 3 READ
FP1
MEMO
RY UN
IT
MATU
ELECTRIC SITA
MADE WORKS. LTD
IN JAPA
N
1. Programming Tools
Program editing can be done with a commercially available personal computer and FP Programmer II.
1) NPST-GR Software
Using the NPST-GR program editing software, programs can be easily created with any personal computer on hand.
Necessary tools
• Computer: Commercially available personal computer (IBM PC-AT or 100% compatible machine)
System required:
- Main memory: 550 KB or more free
- EMS: 800 KB or more free
- Hard disk space: 2 MB or more
- Operating System: MS-DOS Ver. 3.30 or later
- Video mode (Display mode): EGA or VGA
• NPST-GR Software Ver. 3: AFP266538
Note:
• The .EXE files in NPST-GR Software are compressed in the system disks. When installing
NPST-GR, you will have to expand them.
• RS232C cable (3 m / 9.843 ft.): AFB85833/AFB85853
• RS422/232C Adapter: AFP8550
• FP1 Peripheral Cable:
0.5 m / 1.640 ft.: AFP15205
3 m / 9.843 ft.: AFP1523
16
1-4. Programming Tools
RUN
PROG.
ERR.
ALRAM
24V DC
F.G.
-
RUN
REMOTE
PROG.
0
COM
1
COM
2
COM
3
COM
4
COM
5
COM
6
COM
7
COM
V0 V1
- COM 8 A C E COM 0 2 4 6
24V DC (+) (+)
+ - 9 B D F - 1 3 5 7
RS232C
RS422
MATUSITA ELECTRIC WORKS. LTD
MADE IN JAPAN
POWER
TXD(-)
RXD(-)
Cable
RS422/232C Adapter
2) FP Programmer II
With the hand-held FP Programmer II, such operations as writing, reading,
FP1 Control Unit
and retrieval of programs can be performed. BATTERY
RUN RUN
PROG. REMOTE
Necessary tools
PROG.
ERR.
ALRAM
min. max.min. max.
V0 V1
(-)
4 5 6 7 SRC
(HELP)
CLR
1
ACLR
2
(DELT)
INST
3
ENT
READ
WRT
FP Programmer II
details about writing programs using the FP Programmer II.
Necessary tools +
RUN
PROG.
ERR.
ALRAM
24V DC
F.G.
-
RUN
REMOTE
PROG.
0
COM
1
COM
2
COM
3
COM
4
COM
5
COM
6
COM
7
COM
- COM 8
(+)
-
V1
9
A
B
C
D
E
F
COM 0
(+)
- 1
2
3
4
5
6
7
Note: abcdefg
17
1-4. Programming Tools
■ Writing a program to the memory (EPROM) via the master memory (EEPROM) with a
commercially available ROM programmer
[Program in FP1’s internal RAM → Master memory (EEPROM) → commercially available ROM programmer’s
internal memory → memory (EPROM)]
Commercially available
Procedure: personal computer
NPST-GR Software
1 Attach master memory (EEPROM) (IBM PC-AT or 100% compatible)
to FP1 Control Unit. Transfer to
master memory (EEPROM) using
FP Programmer in FP1’s internal
RS232C interface
FP1 Control Unit
RAM. BATTERY
MATUSITA
ELECTRIC WORKS. LTD
MADE IN JAPAN
- COM 8 A C E COM 0 2 4 6
24V DC (+) (+)
+ - 9 B D F - 1 3 5 7
RS232C
RS422
MATUSITA ELECTRIC WORKS. LTD
MADE IN JAPAN
POWER
TXD(-)
NOT
DT/Ld
AN
Y•WY
STK
IX/IY
OR
R•WR
TM
T•SV
OT
L•WL
CT
C•EV
FN/P
FL
(BIN)
K/H
8 9 A B (-)
OP
4 5 6 7 SRC
FP1
MEMO
RY UNIT
MATUSIT
ELECTR A
IC WORKS.
MADE
IN JAPAN LTD
ROM programmer
MEMORY UNIT
18
1-4. Programming Tools
■ Writing a program to the memory (EPROM) with NPST-GR Software and a commercially
available ROM programmer
[Program with NPST-GR Software → Commercially available ROM programmer’s internal memory → memory
(EPROM)]
Necessary tools
• Computer: Commercially available personal computer
(IBM PC-AT or 100% compatible machine)
Rear view
System required:
- Main memory: 550 KB or more free RS232C cable
- EMS: 800 KB or more free
- Hard disk space: 2 MB or more
- Operating System: MS-DOS Ver. 3.30 or later
- Video mode (Display mode): EGA or VGA
• NPST-GR Software Ver. 3: AFP266538 Memory
(EPROM)
Note: FP1
MEMORY UNIT
Commercially available
ROM programmer
• The .EXE files are compressed in the MATUSITA
ELECTRIC WORKS. LTD
MADE IN JAPAN
19
20
CHAPTER 2
SPECIFICATIONS
2-1. Parts Terminology and Functions..........................................22
1. Control Unit......................................................................22
1) C14 and C16 Series ...............................................22
2) C24, C40, C56, and C72 Series .............................23
2. Expansion Unit .................................................................24
1) E8 and E16 Series .................................................24
2) E24 and E40 Series................................................24
3. Intelligent Unit..................................................................25
1) FP1 A/D Converter Unit........................................25
2) FP1 D/A Converter Unit........................................25
4. Link Unit ..........................................................................26
1) FP1 Transmitter Master Unit .................................26
2) FP1 I/O Link Unit..................................................27
3) C-NET Adapter S1 Type .......................................28
2-2. Specifications ........................................................................29
1. General Specifications......................................................29
2. Performance Specifications of Control Unit
and Expansion Unit ..........................................................31
1) Control Specifications ...........................................31
2) Input Specifications of Control Unit
and Expansion Unit................................................32
3) Output Specifications of Control Unit
and Expansion Unit................................................33
3. Performance Specifications of Intelligent Unit ................35
1) FP1 A/D Converter Unit........................................35
2) FP1 D/A Converter Unit........................................35
4. Performance Specifications of Link Unit .........................36
1) FP1 Transmitter Master Unit .................................36
2) FP1 I/O Link Unit..................................................36
3) C-NET Adapter S1 Type .......................................36
5. Dimensions .......................................................................37
1) Control Unit ...........................................................37
2) Expansion Unit ......................................................37
3) Intelligent Unit.......................................................38
4) Link Unit................................................................38
2-1. Parts Terminology and Functions
Output Terminals:
C14 series: 6 points, C16 series: 8 points
REMOTE
(Relay)
PROG. PROG.
ERR.
0 1 2 3 4 5 6 7
Indicates the input and output ON/OFF states.
ALARM
min. max.
Expansion Connector:
V0
0 1 2 3 4 5 6 7
INPUT X
(24V DC)
Input Terminals:
C14 and C16 series: 8 points
Input voltage range: 12 V DC to 24 V DC
22
2-1. Parts Terminology and Functions
2) C24, C40, C56, and C72 Series (Illustration: C72 series, AC type)
RS232C Port (C24C, C40C, C56C, and C72C types only):
Use this connector to connect a peripheral device. [e.g., I.O.P.
(Intelligent Operating Panel), Bar-code reader and Serial printer, etc.]
Operation Monitor LEDs:
RUN LED ON: when program is executed
Flashes: when forcing input/output is executed in RUN mode
PROG. LED ON: when the Control Unit halts program execution
ERR. LED ON: when a self-diagnostic error occurs
ALARM LED ON: when an abnormality is detected or watchdog timer error occurs
Backup Battery Holder:
Refer to page 216, “7-3. Maintenance”, for details about backup battery replacement.
Power Supply Terminals:
• AC type Control Unit: power supply terminals for 100 V AC to 240 V AC
• DC type Control Unit: power supply terminals for 24 V DC
Connector for Memory (EPROM) and Master Memory (EEPROM):
Use this connector to connect the Memory (EPROM) and the Master Memory (EEPROM).
Mode Selector:
RUN mode: The Control Unit executes programs.
REMOTE mode: The mode (RUN mode or PROG. mode) can be changed using programming
tools (e.g., FP Programmer II and personal computer with NPST-GR Software).
PROG. mode: You can edit a program.
Output Terminals:
C24 series: 8 points, C40 series: 16 points, C56 series: 24 points,
C72 series: 32 points
This terminal block is removable with screws at both ends.
Terminals marked with “•” cannot be used as output terminals.
min. max.
RUN RUN
(Relay)
PROG. REMOTE V0
ERR.
PROG.
min. max.
0 1 2 3 4 5 6 7 8 9 A B C D E F 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 1 2 3
ON/OFF states.
ALARM V1
min. max.
V2 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 1 2 3 Expansion Connector:
(12-24V DC)
INPUT X
min. max.
2. Expansion Unit
1) E8 and E16 Series (Illustration: E16 series, I/O type)
I/O Terminals:
• Input only type and I/O type:
E8 series (Input 4 points)/E16 series (Input 8 points)
• Output only type:
E8 series (Output 4 points)/E16 series (Output 8 points)
0 1 2 3 4 5 6 7
Indicates the input and output ON/OFF states.
FP1-E16
INPUTX
0 1 2 3 4 5 6 7
(24V DC)
I/O Terminals:
DIN Rail • Input only type and I/O type:
Attachment Lever E8 series (Input 4 points)/E16 series (Input 8 points)
• Output only type:
Expansion Connector (left side): E8 series (Output 4 points)/E16 series (Output 8 points)
Connects to the FP1 Control Unit or FP1 Expansion Unit.
See page 12 and 42.
0 1 2 3 4 5 6 7 8 9 A B C D E F 0 1 2 3
Indicates the input and output ON/OFF states.
FP1-E40
0 1 2 3 4 5 6 7 8 9 A B C D E F 0 1 2 3
(24V DC)
3. Intelligent Unit
1) FP1 A/D Converter Unit (Illustration: DC type)
LED NAIS
FP1-4A/D
Expansion Connector (right side)
Connects to the FP1 D/A Converter
Matsushita
Erectric Works, Ltd. Unit or FP1 I/O Link Unit.
CH. 0 CH. 1 CH. 2
V0 I0 C0 F.G. V1 I1 C1 F.G. V2 I2 C2
FP1-003-93-B.a
FP1-003-93-B.b
Channel 0 Channel 1
DIN Rail Attachment Lever
Expansion Connector (left side)
Connects to the FP1 Control Unit or FP1 Expansion Unit.
Note:
• Terminals marked with “•” cannot be used as output terminals.
25
2-1. Parts Terminology and Functions
4. Link Unit
1) FP1 Transmitter Master Unit
AC type DC type
L N F.G. + - F.G.
100V - 240 VAC 240 V DC Frame ground Terminal
Power supply terminal RS485 Interface
Interface for MEWNET-TR communication using twisted pair cable
(AC type/DC type)
+ - F.G. + - F.G.
Station monitor LEDs
24V DC RS485 ON: Connected to the slave station
Flashing: Cased by a communication error
TRNET
" 0 1 2 3 4 5 6 7 at this slave station number
POWER
"
COM. OFF: Not connected to the slave station
"
ALARM
8 9 A B C D E F
Expansion MONITOR SW. MODE SW.
Expansion Connector
Connector INPUT UNIT
ON
OFF
Connects to the FP1 MEWNET-TR master unit
Connected to the
OUTPUT UNIT 1 2 3 4 5 6 using expansion cable
Matsushita Electric Works, Ltd.
FP1 Control Unit
using expansion
cable
Selector for
station monitor LEDs DIN Rail Attachment Lever
(MONITOR SW.)
Selects the unit type (input or output)
ON
of station monitor LEDs
OFF
Operation mode selector setting 1 2 3 4 5 6
Notes:
• The operation mode selectors are set to all OFF position when shipped.
• Operation mode selector upper state is “OFF( )” and the lower state is “ON ( )”.
• Be sure to power is OFF when changing the switch position.
26
2-1. Parts Terminology and Functions
+
24V DC
- F.G. + -
RS485
F.G.
Expansion Connector (right side)
Connects to the FP1 Intelligent Unit
"
POWER STATION NO. (FP1 A/D Converter Unit or FP1 D/A
"
PC " COM. 789
456 Converter Unit).
ALARM 23 01
FP1
I/O LINK MODE SW.
ON 789
456
01
OFF 23
1 2 3 4
LED Descriptions
27
2-1. Parts Terminology and Functions
"
"
"
POWER LED (green)
+ - Flashes: when receiving power
RS485 F. G OFF: when not receiving power
POWER
SD Send Data Monitor LED
NAIS RD
(green)
C-NET
TERMINATE
Flashes: when sending
ADAPTER
S1-TYPE
ON OFF: when not sending
OFF
TERMINATE Switch
Turn this switch ON when the adapter is installed
at terminal station.
RS422 port
DIN Rail Attachment Lever
Cable
Connects the cable to the programming tools
connector (RS422 port) of FP1 Control Unit.
28
2-2. Specifications
2-2. Specifications
1. General Specifications
Item Description
Ambient temperature 0˚C to +55˚C/32˚F to +131˚F
Ambient humidity 30 % to 85 % RH (non-condensing)
Storage temperature –20˚C to +70˚C/–4˚F to +158˚F
Storage humidity 30 % to 85 % RH (non-condensing)
Breakdown voltage AC type: 1,500 Vrms for 1 min
Between AC terminal and Frame ground terminal
DC type: 500 Vrms for 1 min
Between DC terminal and Frame ground terminal
Insulation resistance Min. 100 MΩ (measured with a 500 V DC megger)
Between AC terminal and Frame ground terminal
Between DC terminal and Frame ground terminal
Vibration resistance 10 Hz to 55 Hz, 1 cycle/min: double amplitude of 0.75 mm/0.030 in., 10 min on 3 axes
Shock resistance Shock of 98 m/s2 or more, 4 times on 3 axes
Noise immunity 1,000 Vp-p with pulse widths 50 ns and 1 µs (based on in-house measurements)
Operating condition Free from corrosive gases and excessive dust
Rated Control Unit AC type: 100 V to 240 V AC
operating (all series) DC type: 24 V DC
voltage Expansion Unit
(E24 and E40
series only)
FP1 A/D
Converter Unit
FP1 D/A
Converter Unit
FP1 Transmitter
Master Unit
FP1 I/O
Link Unit
Operating Control Unit AC type: 85 V to 264 V AC
voltage range (all series) DC type: 20.4 V to 26.4 V DC
Expansion Unit
(E24 and E40
series only)
FP1 A/D
Converter Unit
FP1 D/A
Converter Unit
FP1 Transmitter
Master Unit
FP1 I/O
Link Unit
29
2-2. Specifications
Item Description
Current Control Unit AC type
consumption (all series) C14, C16 series: 0.3 A or less (at 100 V AC)
0.2 A or less (at 200 V AC)
C24, C40 series: 0.5 A or less (at 100 V AC)
0.3 A or less (at 200 V AC)
C56, C72 series: 0.6 A or less (at 100 V AC)
0.4 A or less (at 200 V AC)
DC type
C14, C16 series: 0.3 A or less (at 24 V DC)(See note.)
C24 series: 0.4 A or less (at 24 V DC)
C40 series: 0.5 A or less (at 24 V DC)
C56, C72 series: 0.6 A or less (at 24 V DC)
Expansion Unit AC type
(E24 and E40 E24, E40 series: 0.5 A or less (at 100 V AC)
series only) 0.3 A or less (at 200 V AC)
DC type
E24 series: 0.4 A or less (at 24 V DC)
E40 series: 0.5 A or less (at 24 V DC)
FP1 A/D AC type
Converter Unit 0.2 A or less (at 100 V AC)
FP1 D/A 0.2 A or less (at 200 V AC)
Converter Unit DC type
0.3 A or less (at 24 V DC)
FP1 AC type
Transmitter 0.7 A or less (at 100 V AC)
Master Unit 0.5 A or less (at 200 V AC)
DC type
0.7 A or less (at 24 V DC)
FP1 I/O AC type
Link Unit 0.12 A or less (at 100 V AC)
0.08 A or less (at 200 V AC)
DC type
0.2 A or less (at 24 V DC)
Built-in Control Unit C14, C16 series: 110 mA
DC Power (AC type only) C24, C40 series: 230 mA
Output for inputs C56, C72 series: 400 mA
Expansion Unit E24, E40 series: 230 mA
(AC type only)
No-influence time by Min.10 ms
momentary power drop
Note:
• When the Expansion Unit E16 output type (Part number: AFP13110) is connected, the rated current
consumption is 0.4 A or less.
30
2-2. Specifications
Item C14 Series C16 Series C24 Series C40 Series C56 Series C72 Series
Adjustable input 1 to 128 ms
time filtering
Self-diagnosis function Such as watchdog timer, battery detection, program check
Memory backup (at 25°C) Note 3 Approx. 27,000 h (C24C, C40C, C56C, and C72C types)
Approx. 53,000 h (except C24C, C40C, C56C, and C72C types)
Notes:
1. The actual number of points that can be used is the total number of I/O points of the Control Unit and
the Expansion Unit.
2. The two pulse outputs, Y6 and Y7, are not available at the same time.
3. For C14 and C16 series, the hold type data are backed up by the internal capacitor. Back-up time for
them is 10 days at 25°C.
Internal
+ +
circuit
circuit
12 V to – 12 V to – 3 kΩ"
24 V DC 3 kΩ" 24 V DC
" Input " Input
" terminals " terminals
" "
Note:
• C14, C56, C72 and E16 (Input type only) series do not have (+) common input version.
32
2-2. Specifications
~
COM
Internal
circuit
circuit
COM COM
33
2-2. Specifications
~
COM
34
2-2. Specifications
35
2-2. Specifications
5.0 10 20
2.5 5 10
Item Description
Interface RS485
Data Transmission velocity 0.5 M bps
Number of controllable 64 points (Input: 32, Output: 32, setting when shipped)
I/O points When 2 transmitter master units are connected, the I/O points are as follows,
104 points (Input: 56, Output: 48, C14, C16 series)
144 points (Input: 80, Output: 64, C24, C40, C56 and C72 series)
Transmission distance Max. 700 m (with twisted pair cable)
Item Description
Number of controllable 64 points (Input: 32 points and Output: 32 points)
Input/Output points
Slot occupation 1 slot
per FP1 I/O Link Unit
36
2-2. Specifications
5. Dimensions
1) Control Unit
C14 and C16 Series
AC type DC type
100-240V F.G. COM 0 1 2 3 4 5 6 7
AC
RUN
81/3.189
RUN
OUTPUTY
REMOTE
(Relay)
PROG. PROG.
ERR.
ALRAM
min. max.
V0
INPUTX
(24V DC)
PC
FP1-C16
24V DC
+ - COM 0 1 2 3 4 5 6 7
(+)
FP1-016-93-B
RUN
PROG.
ERR.
RUN
REMOTE
PROG.
C40 Series 260/10.236
H
ALRAM
min. max.min.
V0
max.
(unit: mm/in.)
W 74/2.913 45/1.772
FP1-017-93-B
2) Expansion Unit
E8 Series (except E8 Triac Output type) E8 Triac Output type and
E16 Series
E8 Triac
COM
(+)
4 5 6 7
Output type E16 Series
81/3.189
OUTPUTY
24V DC
COM 0 1 2 3 4 5 6 7
81/3.189
OUTPUTY
(Relay)
INPUTX
PC
24V DC
FP1-E8
COM 0 1 2 3
(+)
INPUTX
(24V DC)
COM 0 1 2 3 4 5 6 7
(+)
80/3.150 45/1.772
FP1-018-93-B
120/4.724 74/2.913 45/1.772
PC
FP1-E24
E40 Series 260/10.236
24V DC
+
-
COM 8
(+)
- 9
A
B
C
D
E
F
COM 0
(+)
- 1
2
3
4
5
6
7
(unit: mm/in.)
W 74/2.913 45/1.772
FP1-019-93-B
37
2-2. Specifications
3) Intelligent Unit
FP1 A/D Converter Unit, FP1 D/A Converter Unit
AC type DC type
81/3.189
120/4.724 74/2.913 45/1.772
FP1-016-93-B
4) Link Unit
FP1 Transmitter Master Unit
AC type DC type
+ - F.G. + - F.G.
24V DC RS485
81/3.189
TRNET
0 1 2 3 4 5 6 7
POWER
COM.
ALARM
8 9 A B C D E F
MONITOR SW. MODE SW.
ON
INPUT UNIT OFF
OUTPUT UNIT 1 2 3 4 5 6
ALARM 234
FP1
I/O LINK MODE SW.
ON 789
456
01
OFF 23
1 2 3 4
50/1.969 45/1.772
+ -
81/3.189
RS485 F. G
POWER
SD
NAIS RD
C-NET
ADAPTER TERMINATE
ON
S1-TYPE
OFF
20/0.787
300/11.811
(unit: mm/in.)
38
CHAPTER 3
3-1. Installation
1. Panel Mounting
Mount the Control Unit, Expansion Unit, FP1 A/D Converter Unit, FP1 D/A Converter Unit, and FP1 I/O Link Unit
on the mounting panel with M4 size screws.
Mounting Hole Dimensions
Control Units (C14 and C16 series) Control Units (C24, C40, C56, and C72 series) C-NET Adapter S1 type
Expansion Units (E8 and E16 series) Expansion Units (E24 and E40 series)
FP1 A/D Converter Units
FP1 D/A Converter Units
FP1 I/O Link Units
W W W
H H H
DIN rail
DIN rail
attachment lever DIN rail attachment lever
40
3-1. Installation
3. Cautions
• Install and remove the Control Unit, Expansion Unit, FP1 A/D Converter Unit, FP1 D/A Converter Unit, and FP1 I/O
Link Unit when all power is turned OFF.
• Do not drop the unit or apply excessive force to it.
• Do not allow pieces of wire or other objects to fall into the unit when wiring.
• Do not use the unit where it will be exposed to the following:
- Ambient temperatures of 0˚C to 55˚C (32˚F to 131˚F).
- Ambient humidity of 35 % to 85 % RH.
- Sudden temperature changes causing condensation.
- Inflammable or corrosive gas.
- Excessive airborne dust or metal particles.
- Benzine, paint thinner, alcohol or other organic solvents or strong alkaline solutions such as ammonia or caustic
soda.
- Excessive vibration or shock.
- Influence from power transmission lines, high voltage equipment, power cables, power equipment, radio
transmitters, or any other equipment that would generate high switching surges.
- Water in any form including spray or mist.
- Direct sunlight.
• Do not install the unit above devices which generate heat such as heaters, transformers or large scale resistors.
• Install as shown below, for heat radiating units. • Do not install the unit as shown below.
(Illustration: FP1 Control Unit) (Illustration: FP1 Control Unit)
Front panel up
COM
Upward
7
6
7
COM
5
CT
4
6
COM
3
2
5
RE
COM
1
BATTERY
COM 0
4
COM
(+)
-
INCOR
3
COM
+ -
F
COM COM COM COM COM COM COM COM 7 5 3 1 -
(+) F D B 9 -
(+) +
24V DC
0 1 2 3 4 5 6 7
6 4 2 COM 0 E C A - COM 8
24V DC
E
2
F.G.
COM
FP1-C24
D
C
RUN PC
1
RUN
COM
B
PROG. REMOTE
A
PROG.
REMOTE
V1
max.
PROG.
ERR. V1 V0
9
RUN
- COM 8
max. max.min. min.
FP1-C24
ALRAM
(+)
-
-
max.min.
ALRAM
24V DC
PC
F.G.
V0
min. max.min. max. ERR.
ALRAM
PROG.
PROG.
ERR.
+
RUN
+
24V DC
PROG.
V0 V1 REMOTE
RUN RUN
min.
F.G.
7 6 5 4 3 2 1 0 24V DC
COM COM COM COM COM COM COM COM - +
PC
BATTERY
FP1-C24 BATTERY
- COM 8 A C E COM 0 2 4 6
24V DC (+) (+)
+ - 9 B D F - 1 3 5 7
Up side down
• When mounting a wiring duct, maintain a clearance between the unit and duct as shown in the figure.
(Illustration: FP1 Control Unit)
Wiring duct
50 mm/1.969 in.
BATTERY
or more
+ - COM COM COM COM COM COM COM COM
24V DC 0 1 2 3 4 5 6 7
F.G.
RUN RUN
PROG. REMOTE
PROG.
ERR.
ALRAM
min. max.min. max.
V0 V1
PC
FP1-C24
- COM 8 A C E COM 0 2 4 6
24V DC (+) (+)
+ - 9 B D F - 1 3 5 7
50 mm/1.969 in.
or more
Wiring duct
FP1-022-93-B
• The FP1 unit is wrapped in a protective sheet to prevent scraps and wire debris from getting inside. Please remove this
sheet when installation and wiring is finished.
41
3-2. Expansion
3-2. Expansion
1. Expansion Cable
Cable length
2. Unit Expansion
• Connect the Control Unit to the Expansion Unit, Intelligent unit (FP1 A/D Converter Unit, FP1 D/A Converter Unit)
or FP1 I/O Link Unit using Expansion Cable that folds out of sight and out of the way. In addition, concealing the
Expansion Cable helps avoid the potentially adverse effects of electrical noise.
Example: • The Expansion Cable can be concealed in
the between the units.
Expansion Unit
Control Unit
Notes:
• A maximum of two Expansion Units, one FP1 A/D Converter Unit, two FP1 D/A Converter Units, and one
FP1 I/O Link Unit can be simultaneously connected to one Control Unit.
• There are no restrictions on the order in which units are connected.
• An E8 series and E16 series Expansion Unit cannot be connected in succession.
Refer to page 11, “1-3. Expansion and Configurations”, for details about combination of units.
• Units must be connected left to Example: Example:
right of each unit, therefore,
Right Right
please use the Expansion Cable Control Unit Control Unit
Expansion
(30 cm/0.984 ft.: AFP15103, 50 Cable Expansion
cm/1.640 ft.: AFP15105) when the Cable
units are aligned as shown in the Right Left
Expansion Unit Expansion Unit
right illustration. Left Expansion Right
Cable
CORRECT INCORRECT
42
3-3. Wiring
3-3. Wiring
1. Crimp Terminal
• M3.5 screws are used for the I/O terminal block.
• Use of crimp terminals is recommended for wiring to the terminals.
• Be sure to connect the cables and the interface terminals correctly using crimp terminals.
• Suitable crimp terminals are ring terminals, insulated ring terminals and fork terminals.
FP1-023-93-B
(unit: mm/in.)
+ -
100-240 V
AC F.G. 24 V DC F.G.
L N + -
100-240 V AC 24 V DC
F.G. F.G.
FP1-024-93-B
• Operating power is not required for E8 and E16 series Expansion Units.
■ Operating Voltage
Item AC type DC type
Rated operating voltage 100 V to 240 V AC 24 V DC
Operating voltage range 85 V to 264 V AC 20.4 V to 26.4 V DC
■ Grounding
• The FP1 has sufficient noise resistance under low noise level conditions. However, ground the FP1 unit for safety.
• When grounding, an earth-ground resistance of 100 Ω or less is recommended to limit the effect of noise due to
electromagnetic interference.
• Do not use a grounding wire that is shared with other devices.
Correct Incorrect
43
3-3. Wiring
I/O device
Circuit
breaker
4) Safety
• In certain applications, malfunction may occur for the following reasons.
Power on timing differences between the FP1 Control Unit and I/O or motorized devices.
An operation time lag when a momentary power drop occurs.
Abnormality in the FP1, power supply circuit, or other devices.
• In order to prevent malfunction from resulting in system shutdown, the following special attention is required.
Start up sequence:
The FP1 should be operated after all of the outside devices are energized. To keep this sequence, the following
measures are recommended.
Set the Mode selector from PROG. mode to RUN mode after power is supplied to all of the outside devices.
Program the FP1 so as to disregard the inputs and outputs until the outside devices are energized.
Interlock circuit:
When two motions that are opposed to each other are controlled, add an interlock circuit between the
programmable controller's outputs and the control device.
Example:
When a motor clockwise/counter-clockwise operation is controlled, provide an interlock circuit that prevents
clockwise and counter-clockwise signals from inputting into the motor at the same time.
44
3-3. Wiring
V0 V1
0 1 2 3 4 5 6 7 8 9 A B
X
(24V DC)
INPUT
PC
FP1-C24
Unit 24V DC – COM 0 2 4 6 COM 8 A C E
+ (±) 1 3 5 7 (±) 9 B D F
FP1-026-93-B
Input
terminals
Push button Push button
Built-in DC power output switches switches
for inputs
Input devices
Note:
• Do not connect input devices to the input terminals indicated with a “•” symbol.
2) Description
• Keep the input lines as far away from output lines as possible.
• Keep the input lines at least 100 mm/3.937 in. away from the motor and high voltage line.
• With the AC type, the built-in DC power output for • If the capacity of the DC type or the power output for
inputs can be used. inputs are insufficient, use an exterior power supply.
Using the built-in DC power output for inputs Using the external input supply
0 2 4 6 8 A C E 0 2 4 6 8 A C E
24 V DC - COM COM 24 V DC - COM COM
+ (±) 1 3 5 7 (±) 9 B D F + (±) 1 3 5 7 (±) 9 B D F
FP1-027-93-B FP1-028-93-B
+V Internal +V Internal
circuit External
Output Output circuit
power supply:
0V 12 V to 24 V DC 0V
Switch Sensor Switch Sensor
• Refer to page 29, “1. General Specifications”, for details about built-in DC power output for inputs.
• Do not supply power from an exterior source to the built-in DC power output terminal (the part indicated as 24 V
DC+-) of AC type unit.
• Do not connect power supplies for inputs together in parallel, and do not connect to another power supply in
parallel.
• Refer to page 31, “2. Performance Specifications of Control Unit and Expansion Unit”.
45
3-3. Wiring
Vcc +
Sensor COM FP1 Sensor FP1
0V – COM
Internal Internal
circuit – + circuit – +
Sensor Power supply
FP1-029-93-B FP1-031-93-B
Power supply
power supply for input
for input
Vcc +
Sensor FP1 Sensor FP1
0V – COM COM
Internal Internal
circuit – + FP1-030-93-B
circuit – +
FP1-032-93-B
Power supply Power supply
for input for input
Sensor FP1
COM
Internal
circuit – +
FP1-033-93-B
Power supply
for input
■ Wiring the Two-wire Type Sensor ■ Wiring the LED-equipped Limit Switch
• If the input of the FP1 is not turned OFF because of • If the input of the FP1 is not turned OFF or if the
leakage current from the sensor, the use of a bleeder LED of the limit switch is kept ON because of
resistor is recommended, as shown below. the leakage current, the use of a bleeder resistor
is recommended, as shown below.
Input terminal
Input
terminal
LED-equipped
Bleeder limit switch Bleeder FP1
Sensor R FP1 r R
resistor resistor
COM COM
Internal
circuit – + FP1-034-93-B
– + FP1-035-93-B
46
3-3. Wiring
– + FP1-036-93-B
DC type • •
COM
(±) 0 1 2 3 4 5 6 7
DC type • •
COM
(±) 0 1 2 3 4 5 6 7
24V
• C24, E24 series: AC type (–) 0 2 4 6 • 8 A C E
24V COM COM
(+) (±) 1 3 5 7 (±) 9 B D F
DC type • 0 2 4 6 • 8 A C E
COM COM
• (±) 1 3 5 7 (±) 9 B D F
Notes:
• Do not connect input devices to the input terminals indicated with a “•” symbol.
• The + common input type is also available for C16, C24 and E24 series.
47
3-3. Wiring
24V
0 2 4 6 • 8 A C E • 0 2 4 6
• C40, E40 series: AC type (–)
24V COM COM COM
(+) (±) 1 3 5 7 (±) 9 B D F (±) 1 3 5 7
• 0 2 4 6 • 8 A C E • 0 2 4 6
DC type COM
1 3 5 7 COM
9 B D F COM
1 3 5 7
• (±) (±) (±)
24V
(–) 0 2 4 6 • 8 A C E 0 2 4 6 • 8 A C E •
• C56 series: AC type 24V COM
1 3 5 7 COM
9 B D F COM
1 3 5 7 COM
9 B D F
(+) (±) (±) (±) (±) •
• 0 2 4 6 • 8 A C E 0 2 4 6 • 8 A C E •
DC type COM
1 3 5 7 COM
9 B D F COM
1 3 5 7 COM
9 B D F
• (±) (±) (±) (±) •
24V
(–) 0 2 4 6 • 8 A C E • 0 2 4 6 8 A C E • 0 2 4 6 •
• C72 series: AC type 24V COM COM COM COM COM
(+) (±) 1 3 5 7 (±) 9 B D F (±) 1 3 5 7 (±) 9 B D F (±) 1 3 5 7 •
• 0 2 4 6 • 8 A C E • 0 2 4 6 8 A C E • 0 2 4 6 •
DC type COM COM COM COM COM
• (±) 1 3 5 7 (±) 9 B D F (±) 1 3 5 7 (±) 9 B D F (±) 1 3 5 7 •
COM
4 5 6 7
• E8 series: Input (±)
only type
(I: 8-point)
COM
(±) 0 1 2 3
I/O type
(I: 4-point) COM
(±) 0 1 2 3
COM
• • (±) 8 9 A B C D E F
• E16 series: Input
only type
(I: 16-point)
COM
• • (±) 0 1 2 3 4 5 6 7
I/O type
COM
(I: 8-point) • • (±) 0 1 2 3 4 5 6 7
Notes:
• Do not connect input devices to the input terminals indicated with a “•” symbol.
• The + common input type is also available for C40, E40, E8 series and E16 series I/O type.
48
3-3. Wiring
Output devices L M
AC AC
Output terminals
BATTERY
RUN
OUTPUT Y
RUN
(24V DC)
PROG. REMOTE
PROG.
ERR.
0 1 2 3 4 5 6 7 C D E F
ALARM
min. max.min. max.
FP1-038-93-B
Note:
• Do not connect output devices to the output terminals indicated with a “•” symbol.
2) Description
• A different voltage can be used with each independent common.
L L
FP1-039-93-B
• When more than one loade is connected to the same power supply, short the COM terminal with the short-circuit
bar (Part number AFP1803).
L L L L
Short-circuit bar
FP1-040-93-B
• Refer to page 33, “3) Output Specifications of Control Unit and Expansion Unit”, for details about output
specifications.
49
3-3. Wiring
Varister FP1-041-93-B
Output
terminal
FP1
Inductive load
COM
• When there is a low current load with the triac output type, the load may not go off because of the leakage current.
If this type of trouble should arise, connect a resistor in parallel with the load, as shown in the diagram below.
Resistor
Output
terminal
FP1
Load
COM FP1-042-93-B
• There is no fuse in the output circuit. Please provide a fuse externally in order to protect the output circuit from
load shorts.
• Mounting the Protective Device
In the actual circuit, it is necessary to locate the protective device (diode, resistor, capacitor, varistor, etc.) in the
immediate vicinity of the load or contact. If located too far away, the effectiveness of the protective device may
diminish. As a guide, the distance should be within 50 cm (19.685 in.)
• Type of Load and Inrush Current Type of load Inrush current
The type of load and its inrush current Resistive load Steady state current
characteristics, together with the 10 to 20 times the
switching frequency are important Solenoid load steady state current
factors which cause contact welding. 5 to 10 times the
Particularly for loads with inrush Motor load
steady state current
currents, measure the steady state
10 to 15 times the
current and inrush current and use a Incandescent lamp load
steady state current
relay or magnet switch which provides
Approx. 3 times the
an ample margin of safety. The table on Mercury lamp load
steady state current
the right shows the relationship between
typical loads and their inrush currents. 1 to 3 times the
Sodium vapor lamp load
steady state current
20 to 40 times the
Capacitive load
steady state current
5 to 15 times the
Transformer load
steady state current
50
3-3. Wiring
24V 24V
DC type (+) (–) F.G. COM 0 1 2 3 COM 4 COM 7
24V 24V
DC type (+) (–) F.G. COM 0 1 2 3 4 5 6 7
• C24, E24 series: AC type AC AC • COM COM COM COM COM COM COM COM
F.G. • 0 1 2 3 4 5 6 7
24V 24V
DC type (+) (–) • COM COM COM COM COM COM COM COM
F.G. • 0 1 2 3 4 5 6 7
• C40, E40 series: AC type AC AC • COM 1 3 5 7 COM COM COM COM COM COM COM COM
F.G. • • 0 2 4 6 8 9 A B C D E F
24V 24V
(+) (–) • COM 1 3 5 7 COM COM COM COM COM COM COM COM
DC type
F.G. • • 0 2 4 6 8 9 A B C D E F
AC AC • COM COM COM COM COM COM COM COM COM 9 B COM D F COM 1 3 5 7
• C56 series: AC type F.G. • 0 1 2 3 4 5 6 7 8 A • C E • 0 2 4 6
24V 24V
(+) (–) • COM COM COM COM COM COM COM COM COM 9 B COM D F COM 1 3 5 7
DC type F.G. • 0 1 2 3 4 5 6 7 8 A • C E • 0 2 4 6
AC AC • COM COM COM COM COM COM COM COM COM 9 B D F COM 1 3 COM 5 7 COM 9 B D F
• C72 series: AC type F.G. • 0 1 2 3 4 5 6 7 • 8 A C E 0 2 • 4 6 • 8 A C E
24V 24V
(+) (–) • COM COM COM COM COM COM COM COM COM 9 B D F COM 1 3 COM 5 7 COM 9 B D F
DC type F.G. • 0 1 2 3 4 5 6 7 • 8 A C E 0 2 • 4 6 • 8 A C E
Notes:
• Do not connect output devices to the output terminals indicated with a “•” symbol.
• There are differing output types such as relay, NPN open collector, PNP open collector, and triac output,
therefore, take care when selecting the type of load to be connected.
51
3-3. Wiring
COM 4 5 6 7
• E8 series: Output
only type
(O: 8-point)
COM 0 1 2 3
Notes:
• Do not connect output devices to the output terminals indicated with a “•” symbol.
• There are differing output types such as relay, NPN open collector, PNP open collector, and triac output,
therefore, take care when selecting the type of load to be connected.
52
3-3. Wiring
Power
0 to 10 V Between terminals: Short-circuit
NAIS
FP1-4A/D
Matsushita
Erectric Works, Ltd.
FP1-318-93H
Shielded wire
Input device
Power
NAIS
FP1-4A/D
Matsushita
Erectric Works, Ltd.
FP1-319-93H
Shielded wire
Input device
Notes:
• To prevent the influence of induction and noise in the input signal line, use 2-conductor twisted pair
shielded cable.
• It is recommended that the shield cable be grounded to a frame ground terminal (F.G.). However,
depending on the noise situation, you may get better results by grounding it externally.
• If the voltage range selection terminal (RANGE) shorts, be sure to short it at the terminal block. Also, do
not pull on its lead wire.
• Keep the main circuit wiring away from high voltage lines .
• Make sure that the power is supplied to the Control Unit and the A/D Converter Unit from the same power
supply line.
53
3-3. Wiring
Power
■ Analog voltage output range NAIS
0 to 5 V range: The voltage range selection FP1-2D/A
terminal (RANGE) is not Matsushita
Erectric Works, Ltd.
connected.
0 to 10 V range: After connecting the analog voltage V0+
CH. 0
V0– RANGE I0+ I0– V1+
CH. 1
V1– RANGE I1+ I1–
+ – E + – E
Load Load
device device
0 to 5 V range 0 to 10 V range
FP1-2D/A
Matsushita
Erectric Works, Ltd.
CH. 0 CH. 1
V0+ V0– RANGE I0+ I0– V1+ V1– RANGE I1+ I1–
FP1-321-93H
Shielded
wire + – E
Load device
Notes:
• To prevent the influence of induction and noise in the output signal line, use 2-conductor twisted pair
shielded cable.
• Simultaneous use of voltage output and current output is not possible on the same channel. Also, keep
unused output terminals open.
• Keep the main circuit wiring away from high voltage line.
• Make sure that the power is supplied to the Control Unit and the D/A Converter Unit from the same power
supply line.
• It is recommended that the shielded cable is grounded at the load device side. However, depending on
the external noise situation, you may get better results by leaving the shield open or grounding it to the
minus input terminal of the FP1 D/A Converter Unit.
54
3-3. Wiring
Communication cable +
F.G.
Conductors • Conductor
Size: Min. 1.25mm2 (AWG16 or lager)
Insulation
Resistance: Max. 16.8 Ω/km (at 20 ˚C/68 ˚F)
• Cable
Insulation material: Polyethylene
Insulation thickness: Max. 0.5 mm/0.020 in.
Jacket
Jacket thickness: Approx. 8.5 mm/0.335 in.
Communication cable +
F.G.
1) Cable Specifications
Vinyl Cabtyre Cable (VCTF): 2-conductor
• Conductor Conductors
Size: Min. 0.75 mm2 (AWG18 or lager)
Resistance: Max. 25.1 Ω/km (at 20˚C/68˚F) Insulation
• Cable
Insulation thickness: Max. 0.6 mm/0.24 in.
Molding jacket diameter: Approx. 6.6 mm/2.60 in.
Molding
jacket
55
3-3. Wiring
Notes:
1. Three or more parts of cable should not be connected to one RS485 port.
2. Grounding example
• When the control box is grounded: • When the control box is not grounded:
Communication Communication Communication Communication Communication Communication
cable cable cable cable cable cable
Frame Frame
Frame ground ground Frame ground ground
56
CHAPTER 4
BEFORE PROGRAMMING
4-1. Operating Principles of the Programmable Controller..........58
1. Basic Configuration..........................................................58
2. Basic Operation ................................................................60
4-2. How to Program the Programmable Controller ....................62
1. Making a Ladder Diagram................................................62
2. Relays and Timer/Counter Contacts in the FP1 ...............63
3. I/O Allocation in the FP1 .................................................65
4-3. Programming with NPST-GR Software ................................67
1. System Configuration .......................................................67
2. Features of NPST-GR Software Ver. 3 .............................68
3. NPST-GR Configuration ..................................................69
1) Overview of the Programming Screen...................69
2) Overview of the Menu Window.............................71
4. NPST-GR Installation and Configuration.........................72
1) Preparing for Installation .......................................72
2) NPST-GR Installation ............................................73
3) How to Use NPST-GR Effectively ........................75
4) NPST-GR Startup...................................................75
5) Configuring NPST-GR ..........................................76
5. Exiting NPST-GR .............................................................78
6. Basic Key Operation for Programs...................................79
7. Downloading a Program
to the Programmable Controller .......................................80
8. Saving a Program to Disk.................................................81
9. Printing .............................................................................82
4-4. Programming with the FP Programmer II..............................83
1. System Configuration .......................................................83
2. Downloading a Program
to the Programmable Controller .......................................84
4-5. Memory Unit Creation and ROM Operation ........................86
1. Memory Unit ....................................................................86
2. How to Program ROM .....................................................87
3. Operation with Installed
Memory Unit (ROM Operation).......................................89
4-1. Operating Principles of the Programmable Controller
Programmable Controller
Encoders Indicators
2-b 2-c
System Memory for
Digital switches register program Buzzers
Personal computer FP
Programmer II
FP PROGRAMMER
ST AN OR OT FN/P
X•WX Y•WY R•WR L•WL FL
8 9 A B (-)
OP
4 5 6 7 SRC
0 1 2 3 READ
NPST-GR Software
Programming tools
58
4-1. Operating Principles of the Programmable Controller
59
4-1. Operating Principles of the Programmable Controller
2. Basic Operation
The basic operation of the programmable controller is:
- To read data from all the input field devices
- To execute the program according to the logic programmed
- To turn the output field devices ON or OFF
The process of reading inputs, executing the program, and updating the outputs is cyclicly repeated in the same
manner.
.........
.........
60
4-1. Operating Principles of the Programmable Controller
Program Program
execution execution
61
4-2. How to Program the Programmable Controller
■ I/O Allocation
The input and output addresses of the programmable controller are allocated according to the condition in the
sequence diagram.
Item Name of device I/O assignment
Push-button switch A X0
External input
Push-button switch B X1
Lamp Y0
External output
Motor Y1
Internal relay Supplemental relay R0
Timer Timer T0
• All relays and timers used in the sequence circuit are replaced with internal relays and timers in the programmable
controller.
62
4-2. How to Program the Programmable Controller
Output terminals
63
4-2. How to Program the Programmable Controller
■ Memory area
Numbering
Item
C14 and C24, C40, C56,
C16 series and C72 series
208 points
External input relay (X)
(X0 to X12F)
208 points
External output relay (Y)
(Y0 to Y12F)
Relay
256 points 1,008 points
Internal relay (R)
(R0 to R15F) (R0 to R62F)
64 points
Special internal relay (R)
(R900 to R903F)
100 points
Timer/ Timer contact (T)
(T0 to T99)
Counter
contact Counter contact (C) 28 points 44 points
(C100 to C127) (C100 to C143)
0, 1, 2, 3 ........ 9, A, B, ........ F
64
4-2. How to Program the Programmable Controller
Notes:
• X50 to X67 and Y50 to Y5F are allocated for the FP1 Transmitter Master Unit when it is used instead of
an expansion unit for FP1 C24, C40, C52 and C72 series, which have expansion units.
• The maximum number of expansion units that can be connected to the control unit is as follows:
- FP1 C14 and C16 series: 1 expansion unit (including FP1 Transmitter Master Unit)
- FP1 C24, C40, C56 and C72 series: 2 expansion units (including FP1 Transmitter Master Unit)
• Number of expandable units together:
- FP1 Transmitter Master Unit/FP1 I/O Link Unit: Max. 1 unit
65
4-2. How to Program the Programmable Controller
Example:
When an E24 series Expansion Unit is connected to a C40 series Control Unit, inputs and outputs are allocated as
follows:
Output allocation
+ - COM COM COM COM COM COM COM COM + - COM COM COM COM COM COM COM COM
24V DC 0 1 2 3 4 5 6 7 24V DC 0 1 2 3 4 5 6 7
F.G. F.G.
RUN RUN
PROG. REMOTE
PROG.
ERR.
ALRAM
min. max.min. max.
V0 V1 PC
FP1-E24
PC
FP1-C24
- COM 8 -
A C E COM 0 2 4 6 24V DC COM 8 A C E COM 0 2 4 6
24V DC (+) (+)
+ (+)
- 9 B D F (+)
- 1 3 5 7 + - 9 B D F - 1 3 5 7
66
4-3. Programming with NPST-GR Software
1. System Configuration
FP1 Programmable Controller
BATTERY
RUN
24V DC
F.G.
-
0
COM
1
COM
2
COM
3
COM
4
COM
5
COM
6
COM
7
COM
RUN
PROG. REMOTE
PROG.
V0 V1
- COM 8 A C E COM 0 2 4 6
9600 bps
24V DC (+) (+)
+ - 9 B D F - 1 3 5 7
RS232C
RS422
MATUSITA ELECTRIC WORKS. LTD
MADE IN JAPAN
NPST-GR
Software Ver. 3.1
■ Setting of FP1
• Set the baud rate selector of the FP1 to 19200 or 9600.
Note:
• If the microprocessor of your computer works at 8 M Hz or 16 M Hz, set the baud rate selector of the FP1
to 9600 bps.
67
4-3. Programming with NPST-GR Software
68
4-3. Programming with NPST-GR Software
3. NPST-GR Configuration
The NPST-GR Software is configured as follows.
Menu window
Using the Esc key you
Programming screen can open/close the
menu window.
• Programming screen
The screen where a program is created or edited. Just after the software is activated, the programming screen is
displayed in the ladder symbol mode. Next, the menu window appears over it.
• Menu window
The window to select an option. The various functions of the NPST-GR Software can be selected from this
window. Functions selected from the menu window are called menu functions.
When you start the software, the menu screen automatically overlaps the programming screen.
• Function window
When you select a menu function from the menu window, the corresponding window will be displayed.
1
2
3
4
Programming 5
area
6
7
8
10
Function SIZE 0 :
key label 1 2 3 4-[OUT]5-[TM]- 6-[CT]-7 8NOT(/)9 Fun 10 INST
• Menu bar
The uppermost line on the screen is called the “menu bar”.
The menu bar indicates which mode, what function and which programming mode you are currently in.
69
4-3. Programming with NPST-GR Software
When you are in the ONLINE mode, it indicates whether you are monitoring the program or not, and which mode
the programmable controller is currently in.
1 Indicates which mode you are in: the OFFLINE mode or the ONLINE mode.
In the OFFLINE mode, the software cannot communicate with the programmable controller, and in the ONLINE
mode, it can communicate with the programmable controller. Depending on the function you use or how you use
the function, you must be in the OFFLINE mode or ONLINE mode. For example, you should be in the OFFLINE
mode when you enter comments, and in the ONLINE mode when you monitor the program. When creating a
program, if you are in the ONLINE mode, the program will be transferred to the programmable controller
simultaneously with entry of the program.
Note:
• When you use NPST-GR in the ONLINE mode, you must connect the computer on which the
NPST-GR is activated with the programmable controller.
When you are in the ladder symbol mode, “LD SYMBOL” is displayed.
In the Boolean ladder mode or Boolean non-ladder mode, “BOOLEAN” is displayed. The difference can be
recognized by the display in the programming area.
70
4-3. Programming with NPST-GR Software
[ NPST MENU ]
Indicates the submenu name.
EDIT A PROGRAM
COMMENTS
SEARCH [ EDIT A PROGRAM ]
MONITOR
RELAYS/REGISTERS 1.PROGRAMMING STYLE (A)
NPST CHECK A PROGRAM 2.EDIT A PROGRAM BY BLOCK (@) Submenu
menu NPST CONFIGURATION 3.DISPLAY 1 BLOCK (B) Submenu will
PLC CONFIGURATION **USEFUL EDIT vary depending
PROGRAM MANAGER 5.BOOLEAN WINDOW (W)
IC CARD PROGRAM MANAGER 6.DELETE ALL NOPS on the option
EXIT NPST-GR 7.TOGGLE a/b CONTACTS (Q) selected in the
8.CHANGE RELAYS (U) NPST menu.
PLC TYPE [ FP1/FP-M 5k ] 9.CLEAR A PROGRAM (^)
PLC MODE [ OFFLINE ]
PROGRAM NAME [ ]
Programmable USE/MAX (STEP) [ 0/ 7679]
controller **= NOT AVAILABLE
information
area Indicates the function which cannot Indicates the short-cut key that will operate the function.
be operated under the current mode To use, press the key while holding down the key.
or programming style (mode).
• NPST menu
On the NPST menu, the submenu names are listed.
From the NPST menu, select a submenu that the menu function you want to use belongs to.
• Submenu
In the submenu, the menu functions are listed.
71
4-3. Programming with NPST-GR Software
72
4-3. Programming with NPST-GR Software
2) NPST-GR Installation
This section describes how to install NPST-GR. Make a backup disk of the software and use it for installation.
Procedure
1. If the current drive is other than drive A, change to drive A by typing “A:” at the DOS prompt.
2. Insert the backup disk of the NPST-GR system disk into drive A.
3. Type the following at the DOS prompt (A:) to start the installation program:
INSI (Enter)
The installation program will start. The following screen will appear.
NPST-GR Installation Program Ver.3.1
To install the NPST-GR, type INSI and specify the source drive
and the target drive. The "source drive" is the drive where you
place the NPST-GR System Disk. The "target drive" is the drive
on which you want to install the NPST-GR.
[Format]
INST [source drive]: [target drive]:
[Example]
When the NPST-GR System Disk is now in the drive A and you want
to install the NPST-GR on the drive C, type:
INSI A: C:(Enter)
A:\>
This shows that the backup disk of the NPST-GR system disk is in drive A and that you are going to install
NPST-GR onto drive C. The following screen will appear.
NPST-GR Installation Program Ver.3.1
OK? Y E S N O
73
4-3. Programming with NPST-GR Software
5. Make sure that the source drive and the target drive are specified correctly. The “source drive” shows the
drive which the NPST-GR system disk is in. The “target drive” shows the drive onto which you want to
install NPST-GR.
When the source drive and the target drive are specified correctly, select “YES” and press Enter .
If not, select “NO” and press Enter . You will return to the previous screen.
OK? Y E S N O
***************************************************
* Select YES, and the installation will start. *
***************************************************
6. Check the message. To install, select “YES” and press Enter . The installation will start.
If you do not want to install, select “NO” and press Enter . You will return to the previous screen.
Note:
• When NPST-GR is installed successfully, the following files are stored in the NPST3 directory:
NPST.EXE Contains a program which starts NPST-GR.
NPSTE.EXE Contains the system program for NPST-GR.
NPST.HLP Contains help messages.
NPSTP000.CIG Contains information for printer control.
74
4-3. Programming with NPST-GR Software
With the program check, monitor, search, and test run functions, etc.,
Debugging the program you can debug the program you created or edited.
You can preset the register values.
NO
No change ?
YES
NO
Specification change?
YES
4) NPST-GR Startup
To start NPST-GR, follow the procedure below.
Procedure
1. If the personal computer is OFF, turn it ON.
You will see the DOS prompt C:\.
2. Change to the NPST3 directory by typing the following at the DOS prompt:
CD NPST3(Enter)
3. Type the following to start the NPST-GR Software:
NPST(Enter)
NPST-GR will start.
75
4-3. Programming with NPST-GR Software
5) Configuring NPST-GR
■ Selecting [NPST CONFIGURATION] from the Menu Window
Before you create a program, you must first configure the settings and change the default settings if necessary.
If the programming screen is displayed, press Esc to display the “NPST MENU” window.
Procedure
1. Move the cursor to an option on the NPST menu with the up and down arrow keys.
The submenu which belongs to the option you select will be displayed.
[ NPST MENU ]
EDIT A PROGRAM
COMMENTS
SEARCH [ NPST CONFIGURATION ]
MONITOR
RELAYS/REGISTERS 1.NPST CONFIGURATION
CHECK A PROGRAM
NPST CONFIGURATION
PLC CONFIGURATION
PROGRAM MANAGER
IC CARD PROGRAM MANAGER
EXIT NPST-GR
EDIT A PROGRAM
COMMENTS
SEARCH [ NPST CONFIGURATION ]
MONITOR
RELAYS/REGISTERS 1.NPST CONFIGURATION
CHECK A PROGRAM
NPST CONFIGURATION
PLC CONFIGURATION
PROGRAM MANAGER
IC CARD PROGRAM MANAGER
EXIT NPST-GR
3. Press Enter .
4. Move the cursor to the item you want to select with the up and down arrow keys.
Select an option with the right and left arrow keys.
[ NPST CONFIGURATION ]
NOTE : SPECIFY TRANS RATE TO 9600 or 19200bps TO CONNECT WITH PLC DIRECTLY
76
4-3. Programming with NPST-GR Software
• SCREEN MODE
You can select the NPST-GR screen mode between color and black/white.
MONO: Displays the screen in black and white.
COLOR: Displays the screen in color.
(Black/Cyan/Red/Magenta/Green/Bright Blue/Yellow or Brown/White)
• PLC TYPE
Before setting the configuration of the programmable controller and creating a program, you must specify the type of
programmable controller for which you create a program.
You can select from;
FP1 0.9 k: FP1 C14/C16 series
FP1/FP-M 2.7 k: FP1 C24/C40 series and FP-M (2.7 k)
FP1/FP-M 5 k: FP1 C56/C72 series and FP-M (5 k)
FP3 10 k: FP3 (10 k)
FP3/FP-C 16 k: FP3 (16 k) and the FP-C (16 k)
FP5 16 k: FP5 (16 k)
FP10/FP10S 30 k: FP10 (30 k) and FP10S (30 k)
FP10 60 k: FP10 (60 k)
COM PORT
Specify the serial port which is connected to the programmable controller.
1: Use COM PORT 1
2: Use COM PORT 2
3: Use COM PORT 3
TRANS RATE (bps)
Specify the transmission rate for communication with the programmable controller or modem.
Select between 19200, 9600, 4800, 2400, 1200, 600 or 300.
For communication with the programmable controller, specify either 19200 or 9600.
If the clock frequency is a multiple of five, you must select 19200. If you do not select 19200,
NPST-GR will not communicate with the programmable controller.
DATA LENGTH
Specify the data length for communication with the programmable controller.
Select either 8-bit or 7-bit.
• LOGGED DRIVE/DIRECTORY
Specify the logged drive when you manage files.
DRIVE/DIRECTORY
Specify the logged directory when you manage files. Include a \ at the beginning and at the end of the directory,
eg., \npst\program\.
If you omit this, the root directory will be specified.
NOTE DISPLAY
Specify whether file notes, which are the notes entered for a file (such as filename and date), are to be
displayed when the disk file list is displayed.
ON: Displays the file notes.
OFF: Omits displaying the file notes.
• PROGRAMMING MODE
Select the programming mode for creating or editing a program.
Select from;
LADDER: The ladder symbol mode
B.LADDER: The Boolean ladder mode
BOOLN: The Boolean non-ladder mode
77
4-3. Programming with NPST-GR Software
5. Exiting NPST-GR
The [1.EXIT NPST-GR] option allows you to exit NPST-GR and to return to the MS-DOS screen.
Procedure
1. Select the [EXIT NPST-GR] option from the NPST menu.
2. Select the [1.EXIT NPST-GR] option from the [EXIT NPST-GR] menu.
The [EXIT NPST-GR] window will open.
[[ EXIT NPST-GR ]]
3. Select “SAVE CONFIG & EXIT” to save the parameters set with the [NPST CONFIGURATION] menu
and exit NPST-GR . Select “EXIT” to exit NPST-GR without saving them.
4. Press Enter . You will exit NPST-GR and the DOS prompt will appear on the screen. When you turn OFF
the computer, make sure that the DOS prompt is displayed on the screen.
78
4-3. Programming with NPST-GR Software
R0 Y0
4
TMX 30
0
T0 Y1
9
11 ( ED )
Boolean Non-ladder
Key operation
Address Instruction
0 ST X 0 F1 F1 0 Enter
1 OR R 0 F2 F3 0 Enter
2 AN/ X 1 F3 F8 F1 1 Enter
3 OT R 0 F4 F3 0 Enter
4 ST R 0 F1 F3 0 Enter
5 OT Y 0 F4 F2 0 Enter
6 TM X 0 F5 F1 0
K 30 F1 F1
3 0 Enter
9 ST T 0 F1 F4 0 Enter
10 OT Y 1 F4 F2 1 Enter
11 ED F10 Ctrl + F3 Enter
When you first start NPST-GR, you will be in the ladder symbol mode.
The [1.PROGRAMMING STYLE] option changes the programming style to the Boolean non-ladder mode.
Procedure
1. Select the [EDIT A PROGRAM] option from the NPST menu.
2. Select the [1.PROGRAMMING STYLE] option from the [EDIT A PROGRAM] menu.
3. Select “BOOLEAN NONLADDER” from the [PROGRAMMING STYLE] window.
4. Press Enter .
■ Program Input
Input the program using the function keys. The command language input will be displayed in the input field at the
bottom of the screen. It will be interpreted and displayed as an element on the ladder diagram when you press the
Enter key.
[Input Deletions]
When deleting from the input field...................................Press BS .
When deleting from the ladder diagram display area.......Move the cursor to the location containing the mistake and
press Del .
Refer to the “NPST-GR Software” manual for details.
79
4-3. Programming with NPST-GR Software
Notes:
• The downloaded program will be executed when you set the mode of programmable controller to
RUN.
• Before you start operation, make sure that NPST-GR is in the ONLINE mode.
Procedure
1. Select the [PROGRAM MANAGER] option from the NPST menu.
2. Select the [4.LOAD A PROGRAM TO PLC] option from the [PROGRAM MANAGER] menu.
The [LOAD TO PLC] window will appear on the screen.
[TO PLC] NO.=[ 0 ] RT =[ 1 ] HOME
VERIFY [ YES NO ]
80
4-3. Programming with NPST-GR Software
FILE NAME [ ]
FILE NOTE [ ]
DESIGNER [ ]
DATE [93-12-01]
SAVE [ PROGRAM I/O CMT PROG & I/O CMT ]
STYLE [ Ver.3 Ver.2 ]
VERIFY [ YES N O ] NOTE: [VERIFY] IS INVALID SELECT [VER.2]
Select whether the saved program is verified with the original one on the screen after saving.
Select whether to save the program in the version 3 style or in the version 2 style.
Select whether to save the program, the I/O comments or both.
Shows the date which is controlled by the system.
Enter the name of the person who design the program.
Enter notes about the file.
Enter a filename.
81
4-3. Programming with NPST-GR Software
9. Printing
The [A.PRINT OUT] option prints out:
■ the program displayed on the screen, as a ladder diagram or in Boolean.
■ the list of the relays, registers or control instructions used in the program.
■ the parameters set with the [NPST CONFIGURATION] menu
■ the parameters set for system registers 0 to 418, the I/O map, and the remote I/O map
When you select the [A.PRINT OUT] option, the [PRINT OUT] window will open. First, select what you want to
print out by selecting the “STYLE” option, and start printing by selecting the “PRINT” option. With the default
settings, only the program will be printed in the ladder diagram style.
Procedure
1. Select the [PROGRAM MANAGER] option from the NPST menu.
2. Select the [A.PRINT OUT] option from the [PROGRAM MANAGER] menu.
The [PRINT OUT] window will open. [PRINT OUT]
PRINT
STYLE
PRINTER
[ENTER] : EXECUTE.
** LADDER DIAGRAM Y / N
** BOOLEAN Y / N
** RELAY LIST Y / N
NPST CONFIGURATION Y / N
SYSTEM REGISTER Y / N
REMOTE I/O Y / N
[ENTER] : EXECUTE.
8. When you want to change the settings in the windows, select the desired options. To select an option, use the
right or left arrow key. To go to the next item, press the down arrow key.
9. Press Enter to start printing.
82
4-4. Programming with the FP Programmer II
1. System Configuration
Baud rate selector Mode selector
9600 bps
BATTERY
RUN RUN
PROG. REMOTE
PROG.
ERR.
ALRAM
min. max.min. max.
V0 V1
FP1 Programmable Controller
- COM 8 A C E COM 0 2 4 6
24V DC (+) (+)
+ - 9 B D F - 1 3 5 7
ST AN OR OT FN/P
X•WX Y•WY R•WR L•WL FL
=
C
D
D
<
E
>
F
SHIFT
SC
FP Programmer II
8 9 A B (-)
OP (AFP1114)
4 5 6 7 SRC
0 1 2 3 READ
■ Setting of FP1
• Set the baud rate selector of the FP1 to 19200.
83
4-4. Programming with the FP Programmer II
R0 Y0 1 OR R 0
OR OR
0 WRT
R-WR R-WR
4
AN ST
2 AN X 1 Y-WY X-WX
1 WRT
TMX 30
0 3 OT R 0
OT
L-WL
OR
R-WR
0 WRT
ST OR
T0 Y1 4 ST R 0 X-WX R-WR
0 WRT
9 OT AN
5 OT Y 0 L-WL Y-WY
0 WRT
TM ST
11 ( ED ) 6 TM X 0 T-SV X-WX
0 ENT
(BIN)
K 30 K/H
3 0 WRT
ST TM
9 ST T 0 X-WX T-SV
0 WRT
OT AN
10 OT Y 1 L-WL Y-WY
1 WRT
SHIFT SHIFT
11 ED SC
1 0
SC
WRT
Procedure
1. Connect FP Programmer II and the FP1 programmable controller using the FP1 Peripheral Cable.
2. Set the mode selector of the FP1 to PROG.
3. Press the keys on the FP Programmer II, as shown on the right, to clear all ACLR
(–)
0 ENT
SHIFT (DELT)
OP SC INST
the data stored in the FP1 programmable controller.
READ
ACLR 0
4. Enter the address from where you want to enter instructions. Use the ▼
Notes:
• An alarm will sound if you try to download a program while in RUN mode or if you press the wrong keys.
If an alarm sounds, press the ACLR key and redo the download operation from the beginning.
• The first time you input a program, be sure to execute the program clear procedure (step 3, above) before
starting input.
84
4-4. Programming with the FP Programmer II
(HELP)
2. Clear the display for address 3. CLR
• Adding/inserting instructions
Procedure example
READ
1. Read the contents of address 3. ACLR 3
▼
OT OR (DELT)
2. Insert the new instruction. L-WL R-WR
0
INST
• Deleting instructions
Procedure example
READ
1. Read the contents of address 3. ACLR 3
▼
SHIFT (DELT)
2. Delete. SC INST
85
4-5. Memory Unit Creation and ROM Operation
BATTERY
RUN RUN
PROG. REMOTE
PROG.
ERR.
ALRAM
min. max.min.
V0
max.
FP FP
MEMO 1 MEMO 1
RY UN RY UN
IT IT
86
4-5. Memory Unit Creation and ROM Operation
RUN RUN
PROG. REMOTE
PROG.
ERR.
ALRAM
min. max.min. max.
V0 V1
ROM programmer
We recommend Aval Data Corporation’s
MATUSITA
ELECTRIC WORKS. LTD
MADE IN JAPAN
87
4-5. Memory Unit Creation and ROM Operation
■ Writing a program to the memory (EPROM) via the master memory (EEPROM) with a
commercially available ROM programmer
[FP1’s internal RAM → master memory unit (EEPROM) → ROM programmer memory → memory (EPROM)]
Procedure:
1 Attach master memory unit
FP1 Control Unit
(EEPROM) to the FP1 Control BATTERY
- COM 8
V1
A C E COM 0 2 4 6
24V DC (+) (+)
9 B D F 1 3 5 7
NOT
AN
Y•WY
STK
OR
R•WR
TM
T•SV
OT
L•WL
CT
FN/P
FL
(BIN)
selector
DT/Ld IX/IY C•EV K/H
0
9
1
A
2
B
3
(-)
OP
SRC
READ
ROM programmer
MEMORY UNIT
MATUSITA
ELECTRIC WORKS. LTD
MADE IN JAPAN
88
4-5. Memory Unit Creation and ROM Operation
+
24V DC
F.G.
-
0
COM
1
COM
2
COM
3
COM
4
COM
5
COM
6
COM
7
COM
RUN RUN
V0 V1
ST AN OR OT FN/P
X•WX Y•WY R•WR L•WL FL
8 9 A B (-)
OP
0
5
1
6
2
7
3
SRC
READ
FP Programmer II
Procedure (HELP)
CLR
ACLR (DELT)
INST
ENT WRT
• Using FP Programmer II
(–)
1. Press the keys in the sequence shown on the right. ACLR
OP
9 0 ENT WRT
89
90
CHAPTER 5
BASIC INSTRUCTIONS
Address
X0 X1 R0 ST ST
0 X-WX X-WX
0 WRT
OR OR
0 WRT
R-WR R-WR
AN NOT ST
1 WRT
R0 Y-WY DT/Ld X-WX
1
External OT OR
0 WRT
Internal output coil L-WL R-WR
contact ST OR
0 WRT
X-WX R-WR
R0 Y0 OT AN
0 WRT
4 L-WL Y-WY
• Relay types are given on the following page. Note that the relays that can be specified depend upon the instruction.
Refer to each instruction for details.
92
5-1. Configuration of Basic Instructions
Number of points
Item Function
C14 and C24, C40, C56,
C16 series and C72 series
External input This relay feeds signals to the Programmable 208 points
relay (X) Controller from an external device such as a (X0 to X12F)
limit switch or photoelectric sensor.
External output This relay outputs the program execution result 208 points
relay (Y) of the Programmable Controller and activates an (Y0 to Y12F)
external device such as a solenoid or motor.
Relay Internal This relay does not provide an external output 256 points 1,008 points
relay (R) and can be used only within the Programmable (R0 to R15F) (R0 to R62F)
Controller.
Special internal This relay is a special internal relay which has 64 points
relay (R) specific applications. This relay cannot be used (R900 to R903F)
for output. Use it only as contact. Refer to page
223, “8-3. Table of Special Internal Relays”.
0, 1, 2, 3 ........ 9, A, B, ........ F
Notes:
• Refer to page 65, “3. I/O Allocation in the FP1”, for details about relay numbers.
• Any external output relay (Y) which is not used as an external output can be assigned as an internal relay
(R).
93
5-1. Configuration of Basic Instructions
Notes:
• When the number of timers or counters is insufficient, the number can be changed by setting the system
register.
• Refer to page 230, “8-5. System Registers”, for details about system register setting.
• In C56 and C72 series, the timer functions can be increased beyond this using the auxiliary timer
instruction. Refer to “FP-M/FP1 Programming Manual” for details about the auxiliary timer instruction.
■ Hold type and non-hold type of the internal relay (R), timer contact (T), and counter
contact (C)
• Setting is possible so that the state of the internal relay (R), timer (T) and counter (C), immediately after turning the
power OFF or switching from RUN to PROG. mode, is either held (hold type) or reset (non-hold type).
• Selection of hold type and non-hold type is performed in the system register.
Refer to page 230, “8-5. System Registers”, for details about selection of hold and non-hold types.
• The default value of hold and non-hold areas is organized as follows.
Internal relay (R) ...............................................R0 to R9F: Non-hold area
After R100: Hold area
Timer contact (T) and counter contact (C) .......0 to 99: Non-hold area
After 100: Hold area
94
5-2. Table of Basic Instructions
* Read stack RDS Reads the operated result stored by the 1 A A A 107
PSHS instruction.
* Pop stack POPS Reads and clears the operated result stored by 1 A A A 107
the PSHS instruction.
* Leading edge DF Turns ON the contact for only one scan when 1 A A A 109
differential the leading edge of the trigger is detected.
* Trailing edge DF/ Turns ON the contact for only one scan when 1 A A A 109
differential the trailing edge of the trigger is detected.
* Set SET Holds the contact (in bit) ON. 3 A A A 111
95
5-2. Table of Basic Instructions
3. Control Instructions
Name Boolean Description Step Availability Page
C14/ C24/ C56/
C16 C40 C72
* Master control MC Executes the instructions from MC to MCE 2 A A A 124
relay when the predetermined trigger (I/O) turns ON.
* Master control MCE 2 A A A 124
relay end
Jump JP Skips to the LBL instruction that has the same 2 A A A —
number as the JP instruction when the
predetermined trigger turns ON.
Label LBL Label used for execution of JP and LOOP 1 A A A —
instructions.
Loop LOOP Skips to the LBL instruction that has the same 4 A A A —
number as the LOOP instruction and executes
what follows it repeatedly until the data of a
specified operand becomes “0”.
* End ED Indicates the end of a main program. 1 A A A 126
Conditional CNDE Ends one scan when the predetermined trigger 1 A A A —
end turns ON.
96
5-2. Table of Basic Instructions
Next step NSTP Opens the process of the step ladder and resets 3 A A A —
(pulse the process including the instruction itself. NSTP
execution type) is executed when the leading edge of its trigger
is detected.
Next step NSTL Opens the process of the step ladder and resets 3 A A A —
(scan the process including the instruction itself. NSTL
execution type) is executed every scan if its trigger is ON.
Clear step CSTP Resets the specified process. 3 A A A —
Step end STPE Closes the step ladder operations and returns to 1 A A A —
normal ladder operation.
Subroutine CALL Executes the specified subroutine. 2 A A A —
call
Subroutine SUB Indicates the start of the subroutine program. 1 A A A —
entry
Subroutine RET Ends the subroutine program and returns to the 1 A A A —
return main program.
Interrupt ICTL Specifies the condition of the interrupt. 5 N/A A A —
control
Interrupt INT Starts an interrupt program. 1 N/A A A —
4. Compare Instructions
Name Boolean Operand Description Step Availability Page
C14/ C24/ C56/
C16 C40 C72
* Word compare: ST = S1, S2 Performs Start, AND or OR operation 5 N/A A A 127
Start equal by comparing two word data in the
* Word compare: AN = S1, S2 following conditions. 5 N/A A A 129
AND equal ON: when S1 = S2
* Word compare: OR = S1, S2 OFF: when S1 ≠ S2 5 N/A A A 131
OR equal
97
5-2. Table of Basic Instructions
98
5-2. Table of Basic Instructions
99
5-3. Description of Basic Instructions
Boolean (non-ladder)
with NPST-GR Software
ST Start 1
OT Out 1
Outline ST: Begins a logic operation with a Form A (normally open) contact.
ST/: Begins a logic operation with a Form B (normally closed) contact.
OT: Outputs the operated result to the specified output.
Program example
Boolean Non-ladder
Ladder Diagram FP Programmer II key operations
Ladder diagram on Address Instruction Key operation of
the screen using X0 Y0 0 ST X 0
ST
X-WX
ST
X-WX
0 WRT
FP Programmer II
0 1 OT Y 0
OT AN
NPST-GR Software X1
Start Out
Y1
L-WL
ST
Y-WY
NOT
0
ST
WRT
Explanation of Description
program example and
• The ST instruction starts logic operations and regards the input contact specified at the start as
Form A (normally open) contact.
• The ST/ instruction starts logic operations and regards the input contact specified at the start as
description of Form B (normally closed) contact.
instructions • The OT instruction outputs the operation result to a specified coil.
Notes:
• The ST and ST/ instructions start from the bus line.
• Some input devices such as emergency stop switch usually have the Form B (normally closed) contact.
When an emergency stop switch with the Form B contact is programmed as input to the FP1, use the ST
instruction instead of the ST/ instruction. X0 Y0
• The OT instruction cannot start directly from the bus line.
• The OT instruction can be used consecutively. Y1
Bus line Y2
• Refer to page 141, “3. Duplicated Use of Outputs”, for details about duplicate output of the OT instruction.
101
100
5-3. Description of Basic Instructions
Step Availability
ST Start 1
OT Out 1
Outline ST: Begins a logic operation with a Form A (normally open) contact.
ST/: Begins a logic operation with a Form B (normally closed) contact.
OT: Outputs the operated result to the specified output.
Program example
Boolean Non-ladder
Ladder Diagram FP Programmer II key operations
Address Instruction
ST ST
X0 Y0 0 ST X 0 X-WX X-WX
0 WRT
0 1 OT Y 0
OT
L-WL
AN
Y-WY
0 WRT
Start Out
X1 Y1 2 ST/ X 1 ST
X-WX
NOT
DT/Ld
ST
X-WX
1 WRT
2
Start Not Out 3 OT Y 1 OT
L-WL
AN
Y-WY
1 WRT
■ Explanation of example
• Y0 goes ON when X0 turns ON.
• Y1 goes ON when X1 turns OFF.
Description
• The ST instruction starts logic operations and regards the input contact specified at the start as
Form A (normally open) contact.
• The ST/ instruction starts logic operations and regards the input contact specified at the start as
Form B (normally closed) contact.
• The OT instruction outputs the operation result to a specified coil.
Notes:
• The ST and ST/ instructions start from the bus line.
• Some input devices such as emergency stop switch usually have the Form B (normally closed) contact.
When an emergency stop switch with the Form B contact is programmed as input to the FP1, use the ST
instruction instead of the ST/ instruction. X0 Y0
• The OT instruction cannot start directly from the bus line.
• The OT instruction can be used consecutively. Y1
Bus line Y2
• Refer to page 141, “3. Duplicated Use of Outputs”, for details about duplicate output of the OT instruction.
101
5-3. Description of Basic Instructions
Step Availability
AN ST
1 AN X 1 Y-WY X-WX
1 WRT
X0 X1 Y0 OT AN
0 2 OT Y 0 L-WL Y-WY
0 WRT
NOT
Y1 3 / DT/Ld
WRT
OT AN
Not 4 OT Y 1 L-WL Y-WY
1 WRT
ON
Y0 OFF
ON
Y1 OFF
Description
• The / instruction inverts the operated result up to this instruction.
102
5-3. Description of Basic Instructions
Step Availability
AN AND 1
All series
AN ST
1 AN X 1 Y-WY X-WX
1 WRT
AN NOT ST
X0 X1 X2 Y0 2 AN/ X 2 Y-WY DT/Ld X-WX
2 WRT
0 OT AN
3 OT Y 0 L-WL Y-WY
0 WRT
■ Explanation of example
• Y0 goes ON when both X0 and X1 turn ON and also X2 turns OFF.
Description
• Performs a logical AND operation with the results of the immediately preceding serially
connected operation.
Notes:
• Use the AN instruction when the normally open contact (Form A contact) is serially connected. Use the
AN/ instruction when the normally closed contact (Form B contact) is serially connected.
X0 X1 Y0
X2 X3 Y1
103
5-3. Description of Basic Instructions
Step Availability
OR OR 1
All series
OR/ OR Not 1
X0 Y0 1 OR X 1
OR ST
1 WRT
R-WR X-WX
0
OR NOT ST
X1
2 OR/ X 2 R-WR DT/Ld X-WX
2 WRT
1 3 OT Y 0 OT
L-WL
AN
Y-WY
0 WRT
OR
X2
2
OR Not
■ Explanation of example
• Y0 goes ON when either X0 or X1 turns ON or X2 turns OFF.
Description
• Performs a logical OR operation with the results of the immediately preceding operation
connected in parallel.
Notes:
• Use the OR instruction when the normally open contact (Form A contact) is connected in parallel. Use the
OR/ instruction when the normally closed contact (Form B contact) is connected in parallel.
• The OR instruction starts from the bus line.
• The OR and OR/ instructions can be used consecutively.
104
5-3. Description of Basic Instructions
Step Availability
X0 X2 Y0 1 OR X 1
OR
R-WR
ST
X-WX
1 WRT
0 ST ST
2 ST X 2 X-WX X-WX
2 WRT
X1 X3
OR ST
3 OR X 3 R-WR X-WX
3 WRT
AN STK
Instruction blocks 4 ANS Y-WY IX/IY
WRT
OT AN
5 OT Y 0 L-WL Y-WY
0 WRT
ON
(X0 OR X1) AND (X2 OR X3) → Y0 X1 OFF
block 1 block 2 ON
X2 OFF
ON
X3 OFF
ON
Y0 OFF
Description
• The ANS instruction is used to connect blocks in series.
block 5 X0 1 X2 2 X4 Y0 block ST X 0
block 1 OR X 1
block 4 X1 X3 X5 4 block ST X 2
block
5 2 OR X 3
ANS ............ 1
block ST X 4
block 1 block 2 block 3 3
OR X 5
ANS ............ 2
OUT Y 0
105
5-3. Description of Basic Instructions
Step Availability
X0 X1 Instruction blocks Y0 1 AN X 1
AN
Y-WY
ST
X-WX
1 WRT
0 ST ST
2 ST X 2 X-WX X-WX
2 WRT
X2 X3
AN ST
3 AN X 3 Y-WY X-WX
3 WRT
OR STK
4 ORS R-WR IX/IY
WRT
OT AN
5 OT Y 0 L-WL Y-WY
0 WRT
ON
block 1 block 2 X2 OFF
ON
X3 OFF
ON
Y0 OFF
Description
• The ORS instruction is used to connect blocks in parallel.
#
+ #
#
block 4
X0 X1 Y0 block ST X 0
block 1 block 1 AN X 1
X2 X3 1 4 block ST X 2
block 2 block
5 2 AN X 3
X4 X5 2 ORS ............ 1
block 3 block ST X 4
3
AN X 5
block 5 ORS ............ 2
OUT Y 0
106
5-3. Description of Basic Instructions
Step Availability
SHIFT SHIFT
1 PSHS SC
9
SC
WRT
AN ST
2 AN X 1 Y-WY X-WX
1 WRT
X0 X1 Y0 OT AN
0 3 OT Y 0 L-WL Y-WY
0 WRT
AN ST
Read Stack 5 AN X 2 Y-WY X-WX
2 WRT
X3 Y2 OT AN
6 OT Y 1 L-WL Y-WY
1 WRT
AN NOT ST
8 AN/ X 3 Y-WY DT/Ld X-WX
3 WRT
OT AN
9 OT Y 2 L-WL Y-WY
2 WRT
ON
X3 OFF
ON
Y2 OFF
107
5-3. Description of Basic Instructions
Description
• PSHS: Stores the operated result up to • You can continue to use the same operation
this instruction and executes operation from result several times by successively using
the next step. the RDS instruction. When you are
• RDS: Reads the operated result stored by finished, be sure to issue the POPS
the PSHS instruction and, using its contents, instruction.
continues operation from the next step. X0 Y0
• POPS: Reads the operated result stored
by the PSHS instruction and, using its Push
X1 Y1
contents, continues operation from the next Stack
step. Also clears the operated result stored X2 X3 Y2
Read
by the PSHS instruction. Stack
X4 X5 Y3
Pop X6 X7 Y4
Stack
Note:
• Refer to page 139, “5-4. Hints for Programming Basic Instructions”, for details about basic instructions,
such as the PSHS, RDS, POPS instructions, which are not displayed on the FP Programmer II key.
108
5-3. Description of Basic Instructions
Step Availability
Outline DF: Turns ON the contact for only one scan when the leading edge of the
trigger is detected.
DF/: Turns ON the contact for only one scan when the trailing edge of the
trigger is detected.
Program example
Boolean Non-ladder
Ladder Diagram FP Programmer II key operations
Address Instruction
ST ST
0 ST X 0 X-WX X-WX
0 WRT
SHIFT SHIFT
1 DF SC
0
SC
WRT
X0 Y0
0 ( DF )! 2 OT Y 0 OT
L-WL
AN
Y-WY
0 WRT
ST ST
X1 Y1 3 ST X 1 X-WX X-WX
1 WRT
3 ( DF/ )!
4 DF/ SHIFT
SC
0
SHIFT
SC
NOT
DT/Ld
WRT
5 OT Y 1 OT
L-WL
AN
Y-WY
1 WRT
ON 1 scan
Y1 OFF
1 scan
Description
• The DF instruction executes and turns ON output for only one scan duration when the trigger
changes from an OFF to an ON state.
• The DF/ instruction executes and turns ON output for only one scan duration when the trigger
changes from an ON to an OFF state.
• There is no limit on the number of times the DF instruction and DF/ instruction can be used.
Notes:
• The DF and DF/ instructions detect only the changes in the ON/OFF state of the contact comparing the
state in the scan before. Therefore, if its trigger is already set to ON at the first scan of the FP1’s operation,
there will be no execution of the DF instruction. And if its trigger is set to OFF, there will be no execution of
the DF/ instruction. X0 Y0 X0
( DF )!
X1 X1
( DF/ )!
Y0
DF, DF/ not executed.
• With a circuit such as the one in the figure below, operation will be as follows.
X0
1 When X1 is OFF, even if X0 rises, Y0 remains OFF.
X0 X1 Y0
( DF )! 2 Even if X1 rises when X0 is ON, Y0 remains OFF.
X1
3 If X0 rises when X1 is ON, then Y0 will go ON for one scan.
Y0
1 2 3
109
5-3. Description of Basic Instructions
Notes:
• Trigger to the DF instructions between the MC • If the same trigger is set for the MC and for the
and MCE instruction set are ignored while the DF instruction, there will be no output. Place the
MC execution condition is OFF. DF instruction outside the MC and MCE
X0 instruction set when output is required.
( MC 0 )!
X1 Y0
( DF )!
X0
( MCE 0 )!
T
EC
( MC 0 )! Y0 never
A
X0
R R
( DF )!
Y0 turns ON.
X0
O
X1
Y0
INC ( MCE 0 )!
( MCE 0 )!
R0 Y0
( DF )!
■ Application examples
• Self-hold circuits when the output is controlled by • Alternating circuit using a single signal to hold and
a long input signal. release a circuit.
A program with a DF instruction X0 R3 R0
( DF )!
X0 R0 Y0 X0
( DF )! R0
Y0 X1
R0 X0 R0 R3 R1
X1 R0 ( DF/ )!
( DF )! Y0
R1
X0
R0
R1
R2
R3
Y0
110
5-3. Description of Basic Instructions
Step Availability
SET Set 3
All series
RST Reset 3
SHIFT SHIFT AN
X0 Y0 1 SET Y 0 SC
1 9
SC Y-WY
0 WRT
0 〈 S 〉! ST ST
4 ST X 1 X-WX X-WX
1 WRT
X1 Y0
4 〈 R 〉! 5 RST Y 0 SHIFT
SC
1 A
SHIFT
SC
AN
Y-WY
0 WRT
Output number
of relay
■ Explanation of example
• When X0 turns ON, Y0 goes ON and holds the contact (in bit) ON.
• When X1 turns ON, Y0 goes OFF and holds the contact (in bit) OFF.
Description
• The SET instruction executes when the trigger is turned ON. Output turns ON and holds the
contact (in bit) ON regardless of the trigger’s state changes.
• The RST instruction executes when trigger is turned ON. Output turns OFF and holds the
contact (in bit) OFF regardless of the trigger’s state changes.
• You can use the same number for relays (Y and R) with the SET and RST instructions as
many times as you like.
X0 Y0
〈 S 〉!
X1 Y0
〈 R 〉!
X2 Y0
〈 S 〉!
X3 Y0
〈 R 〉!
111
5-3. Description of Basic Instructions
• When the SET and RST instructions are used, the contents of the output changes with each step
during the processing of the operation.
X1 Y0
〈 R 〉!
This portion is processed as if Y0 were
OFF.
X2 Y0
〈 S 〉!
The external output at the I/O update depends on the final results of the operation.
• Place a DF instruction before the SET and RST instructions to make program development
and refinement easier.
Note:
• Refer to page 139, “5-4. Hints for Programming Basic Instructions”, for details about basic instructions,
such as the SET, RST instructions, which are not displayed on the FP Programmer II keys.
112
5-3. Description of Basic Instructions
Step Availability
ST ST
Set trigger 1 ST X 1 X-WX X-WX
1 WRT
X0 KP Y 0 SHIFT SHIFT AN
0 2 KP Y 0 SC
2
SC Y-WY
0 WRT
X1 Reset trigger
Output address
■ Explanation of example
• When X0 turns ON, output relay Y0 goes ON and maintains its condition.
• Y0 goes OFF when X1 turns ON.
Description
• When the set trigger turns ON, output of the specified relay goes ON and maintains its
condition.
• Output relay goes OFF when the reset trigger turns ON.
• The output relay’s ON state is maintained until a reset trigger turns ON regardless of the ON or
OFF states of the set trigger.
• If the set trigger and reset trigger turns ON simultaneously, the reset trigger has priority.
Notes:
• The output relay maintains its condition even during operation of the MC instruction.
• The state of the KP instruction is not maintained when the mode of the programmable controller is
switched from RUN to PROG. or when the power is turned OFF.
(Use the hold-type internal relay if you want to also maintain the output state when the mode of the
programmable controller is switched from RUN to PROG. or when turning OFF the power.)
• Refer to page 139, “5-4. Hints for Programming Basic Instructions”, for details about basic instructions,
such as the KP instruction, which are not displayed on the FP Programmer II keys.
• Refer to page 141, “3. Duplicated Use of Outputs”, for details about duplicate output of the KP instruction.
113
5-3. Description of Basic Instructions
Step Availability
Outline No operation
Program example
Boolean Non-ladder FP1-Programmer II key
Ladder Diagram
Address Instruction operations
ST ST
0 ST X 1 X-WX X-WX
1 WRT
■ Explanation of example
• Y0 outputs when X1 turns ON.
Description
• The NOP instruction can be used to make the program easier to read when checking or
correcting.
• When the NOP instruction is inserted, the size of the program will increase slightly, however,
there will be no effect on the results of the arithmetic operations.
Example:
• To move the starting point of a program block from address 39 to address 40, insert a NOP
instruction to address 39.
This moves the starting point to address 40.
Address Address
36 ST X0 36 ST X0
• OR X1 • OR X1
• OT Y1 • OT Y1
39 ST X2 39 NOP Insert a NOP instruction.
40 AN X3 40 ST X2
• OT R20 41 AN X3
• ST R2 • OT R20
• DF • ST R2
44 ST X3 • DF
45 ST X3
Notes:
• To delete the NOP instruction after editing in the PROG. mode, use the programming tools (NPST-GR:
DELETE ALL NOPS, FP Programmer II: OP1).
Operation procedure of FP Programmer II ACLR OP (–)
1 ENT
SHIFT (DELT)
SC INST
• Refer to page 139, “5-4. Hints for Programming Basic Instructions”, for details about basic instructions,
such as the NOP instruction, which are not displayed on the FP Programmer II keys.
114
5-3. Description of Basic Instructions
Step Availability
Outline TMR: Sets the ON-delay timer for 0.01 s units (0 to 327.67 s)
TMX: Sets the ON-delay timer for 0.1 s units (0 to 3276.7 s)
TMY: Sets the ON-delay timer for 1 s units (0 to 32767 s)
Program example
Boolean Non-ladder
Ladder Diagram FP Programmer II key operations
Address Instruction
ST ST
Set value 0 ST X 0 X-WX X-WX
0 WRT
TM ST
X0 TM X 30 1 TM X 5 T-SV X-WX
5 ENT
0 5 (BIN)
Timer instruction K 30 K/H
3 0 WRT
T5 number Y0 ST TM
4 4 ST T 5 X-WX T-SV
5 WRT
OT AN
5 OT Y 0 L-WL Y-WY
0 WRT
■ Operands
ON
Y0 OFF
3s 3s
115
5-3. Description of Basic Instructions
Description
• The TM instruction is a down type preset timer.
• If there are not enough TM instruction numbers, you can increase the number by changing the
setting of system register 5. Refer to page 230, “8-5. System Registers”, for details on how to
change the number of timer instructions.
■ Timer set time
The formula of the timer set time is [the time unit] × [set value]
Example: TMX5 K30 (0.1 s × 30 = 3 s)
■ Timer operation
• When the decimal constant “K” is specified as a set value:
Procedure:
1 When the mode of the programmable controller is set to Set value SV5 EV5
1 2
RUN, K30 (decimal) is transferred to set value area SV5. TM X 30 30 30
X0
2 When the leading edge of trigger X0 is detected (OFF → 29
5 0
ON), set value K30 is transferred from the SV5 to the 28
4 Elapsed value 27 3
elapsed value area EV5. •
•
T5 Y0 •
3 The passed time is subtracted from the EV5 every scan •
•
•
while trigger X0 is in the ON state. •
4 When the data in the elapsed value area EV5 becomes 0, EV5
0
timer contact T5 turns ON and then the Y0 goes ON.
• When the “SVn” is specified as a set value: R9010
Procedure: F0 MV, DT9040, SV5
1 When the leading edge of trigger X0 is detected (OFF →
Set value EV5
ON), the value in set value area SV5 is transferred to the 1
TM X SV5 30
elapsed value area EV5. X0
29
5 0
2 The passed time is subtracted from the EV5 every scan 28
while trigger X0 is in the ON state. 3 Elapsed value 27 2
•
3 When the data in elapsed value area EV5 becomes 0, timer T5 Y0 •
•
•
contact T5 turns ON and then Y0 goes ON. •
•
•
EV5
0
Notes:
• If you turn OFF timer operation trigger X0 in the middle of an operation, the operation will be interrupted
and the elapsed time will be reset to 0.
• Timer set value area SV is a memory area for the timer’s time setting.
• The timer contact goes ON when the value in timer elapsed value area EV becomes 0. However, the
value in timer elapsed value area EV will also become 0 in a reset condition.
• For each TM instruction, one SV and EV set and one contact T are supported as follows:
Timer instruction Set value Elapsed value Timer
number area SV area EV contact T
TM0 SV0 EV0 T0
• • • •
• • • •
• • • •
TM99 SV99 EV99 T99
• The timer is reset whenever the power is turned OFF, or the mode is changed from RUN to PROG. Set
system register 6 to retain the run status.
Refer to page 232, “2. Table of System Registers”, for details about system registers.
• Since the timing operation is executed during the scan of the timer instruction, program timer instructions
so that the TM instruction is executed once per scan.
Be sure that the TM instruction is executed once per scan when the INT, JP, LOOP instructions and
others are programmed.
116
5-3. Description of Basic Instructions
• FP Programmer II:
Example: Change the value of SV0 from K50 to K20.
Steps:
Key operations
1) Monitor the status of the word data. (–)
8 ENT
2) Search for SV0. OP
• NPST-GR Software:
Select [MONITOR LIST RELAYS] in the on-line menu, read the relevant SV, and rewrite.
Refer to the NPST-GR Software Ver. 3 Manual for details.
Notes:
• Even if the SV value is changed, the setting in the program will not be rewritten. The setting from the
program is sent to the SV and changed only when the mode is changed back to RUN mode, or the
next time the power is turned ON.
• When the SV value is rewritten, the currently operating timer will continue operating as-is. The EV
value will not be changed until the next input ON condition.
• The value in elapsed value area EV can be changed in the same way.
• Example:
When fine-tuning the timing during trial operation, you R9010
can change the values of the special data registers F0 MV, DT9040, SV0
DT9040 to DT9043, in the 0 to 255 range, using the X0 TMX SV0
potentiometers on the front of the main unit. 0
R9010: Always ON relay T0 Y0
DT9040: Manual dial-set register for V0.
Note:
• Note that the timers are non-retentive. They will all be reset (set to 0) if the power is turned OFF, or the
mode is changed from RUN to PROG. Set system register 6 to retain the run status.
117
5-3. Description of Basic Instructions
■ Application example
When using two timer instructions
Program example 1
ST X 0 ON
TM X 0 X0 OFF
X0 TMX 30 TMX 20 K 30 ON
0 1 TM X 1 T0 OFF
T0 Y0 K 20 3s
ON
ST T 0 T1 OFF
T1 Y1 OT Y 0 2s
ON
ST T 1 Y0 OFF
OT Y 1 ON
Y1 OFF
Program example 2
ST X 0 ON
PSHS X0 OFF
X0 TMX 30 TM X 0 ON
0 K 30 T0 OFF
TMX 20 POPS 3s
ON
1 TM X 1 T1 OFF
T0 Y0 K 20 2s
ON
ST T 0 Y0 OFF
T1 Y1 OT Y 0 ON
ST T 1 Y1 OFF
OT Y 1
118
5-3. Description of Basic Instructions
Step Availability
Program example
Boolean Non-ladder
Ladder Diagram FP Programmer II key operations
Address Instruction
ST ST
Set value 0 ST X 0 X-WX X-WX
0 WRT
X0 Count trigger CT 10 ST ST
1 ST X 1 X-WX X-WX
1 WRT
0
CT
1 100 K 10 (BIN)
K/H
1 0 WRT
5
6 OT Y 0 OT
L-WL
AN
Y-WY
0 WRT
■ Operands
119
5-3. Description of Basic Instructions
Description
• The CT instruction is a down type preset counter.
• If there are not enough CT instruction numbers, you can increase the number by changing the
setting of system register 5. Refer to page 230, “8-5. System Registers”, for details on how to
change the number of contact numbers.
• When programming the CT instruction, be sure to program the count and reset triggers.
Count trigger: subtract one count from elapsed value area EV each time its leading edge is
detected.
(trigger X0 in the example)
Reset trigger: reset the counter when this is ON.
(trigger X1 in the example)
■ Counter operation
• When the decimal constant “K” is specified as a set value:
Procedure:
1 When the mode of the programmable controller is set to SV100 EV100
Set value 1 2
RUN, K10 (decimal) is transferred to the set value area X0 10 10
CT 10
SV100. 9
2 When reset trigger X1 turns ON, elapsed value area Elapsed 8
X1
EV100 is reset. The value in the SV100 is transferred to value 7 3
•
the EV100 when the trailing edge of X1 is detected 100 0 •
•
C100 4 Y0 •
(ON → OFF). •
•
3 Each time the leading edge of count trigger X0 is EV100
detected, one count is subtracted from the value in the 0
elapsed value area EV100.
4 When the elapsed value area EV100 becomes 0,
counter contact C100 turns ON and then Y0 goes ON.
• When the “SVn” is specified as a preset value:
Procedure: R9010
1 When reset trigger X1 turns ON, elapsed value area F0 MV, DT9040, SV100
EV100 is reset. The value in SV100 is transferred to the
Set value EV100
EV100 when the trailing edge of X1 is detected (ON → 1
10
X0 CT SV100
OFF). 9
2 Each time the leading edge of count trigger X0 is Elapsed 8
X1
detected, one count is subtracted from the value in the value 7 2
•
elapsed value area EV100. 100 0 •
•
C100 3 Y0 •
3 When the elapsed value area EV100 becomes 0, counter •
•
contact C100 turns ON and then Y0 goes ON. EV100
0
Notes:
• Even if the mode of the programmable controller is changed from PROG. to RUN, the set value is not set
to the elapsed value area. If you need to preset the counter elapsed value area, be sure to turn the reset
trigger ON and then OFF once before use.
• Counter set value area SV is a memory area for the counter setting.
• The counter contact goes ON when the value in the counter elapsed value area (EV) becomes 0.
However, the value in the elapsed value area for the counter will also become 0 in a reset condition.
Continued
120
5-3. Description of Basic Instructions
Notes:
• For each CT instruction, one SV and EV set and one contact C are supported as follows:
Counter Set value Elapsed value Counter
instruction number area SV area EV contact C
CT100 SV100 EV100 C100
• • • •
• • • •
• • • •
• The counter is not reset even if the power is turned OFF, or the mode is changed from RUN to PROG.
Set system register 6 if you need to set the counter non-hold type. Refer to page 232, “2. Table of System
Registers”, for details about system registers.
• When the count trigger and the reset trigger are detected simultaneously, the reset trigger has priority.
• FP Programmer II:
Example: Change the value of SV100 from K50 to K20. Key operations
Steps: (–)
8 ENT
OP
1) Monitor the status of the word data. TM READ
1 0 0
2) Search for SV100. T-SV ▼
• NPST-GR Software:
Select “MONITOR LIST RELAYS” in the on-line menu, read the relevant SV, and rewrite.
Refer to the NPST-GR Software Ver. 3 Manual for details.
Notes:
• Even if the SV value is changed, the setting in the program will not be rewritten. The setting from the
program is sent to the SV and changed only when the mode is changed back to RUN, or the next time the
power is turned ON.
• When the SV value is rewritten, the currently operating counter will continue operating as-is. The EV
value will not be changed until the next time the reset trigger goes from ON to OFF.
• If the power is turned OFF, or the mode is switched from RUN to PROG., the counter status will be
retained.
• The value in the elapsed value area (EV) can be changed in the same way.
121
5-3. Description of Basic Instructions
Step Availability
Outline Shifts one bit of 16-bit [word internal relay (WR)] data to the left.
Program example
Boolean Non-ladder
Ladder Diagram FP Programmer II key operations
Address Instruction
ST ST
Data area 0 ST X 0 X-WX X-WX
0 WRT
ST ST
X0 Data input SR WR 3 1 ST X 1 X-WX X-WX
1 WRT
0 ST ST
2 ST X 2 X-WX X-WX
2 WRT
X2 Reset trigger
Data area 16-bit data area (WR) whose one bit is shifted to the left
■ Operands
ON
R32 OFF
ON
R33 OFF
ON
R34 OFF
122
5-3. Description of Basic Instructions
Data 0 0 0 1 0 0 0 1 0 0 0 1 1 0 0 1
Data input (X0) ON: 1 is shifted into the LSB (Least Significant Bit).
When reset trigger (X2) is turned ON:
Data 0 0 0 1 0 0 0 1 0 0 0 1 1 0 0 1
Data 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Notes:
• Refer to page 6, “1-2. Explanation of Memory Areas”, for details about word internal relay (WR).
• Refer to page 146, “3. Operands for High-level Instructions”, for details about word internal relay (WR).
• Refer to page 139, “5-4. Hints for Programming Basic Instructions”, for details about basic instruction,
such as the SR instruction, which are not displayed on the FP Programmer II key.
Description
• Shifts one bit of the specified data area (WR) to the left (to the higher bit position).
• When programming the SR instruction, be sure to program the data input, shift and reset
triggers.
Data input: specifies the state of new shift-in data
new shift-in data 1: when the input is ON
0: when the input is OFF
Shift trigger: shifts one bit to the left when the leading edge of the trigger is detected
Reset trigger: turns all the bits of the data area to 0 when the trigger turns ON
• The area available for this instruction is only the word internal relay (WR).
Word internal relay (WR) number range:
C14 and C16 series: WR0 to WR15
C24, C40, C56, and C72 series: WR0 to WR62
Notes:
• The SR instruction needs data input, shift trigger, and reset trigger.
• When the reset trigger and the shift trigger are detected simultaneously, the reset trigger has priority.
• If the area is specified as the hold type, the data in the area is not reset (become “0”) when the mode is
set to the RUN mode. If you need to reset the data, turn ON the reset trigger before use or change the
settings of the system register 7.
• Refer to page 232, “2. Table of System Registers”, for details about system registers.
• F119 (LRSR), F100 (SHR), F101 (SHL), F120 (ROR), F121 (ROL), F122 (RCR) and F123 (RCL)
can also be used as shift register instructions.
123
5-3. Description of Basic Instructions
Step Availability
Outline Executes the instructions from MC to MCE when the predetermined trigger
(I/O) turns ON.
Program example
Boolean Non-ladder
Ladder Diagram FP Programmer II key operations
Address Instruction
ST ST
Predetermined trigger 0 ST X 0 X-WX X-WX
0 WRT
0 ( MC 0 )! ST ST
3 ST X 1 X-WX X-WX
1 WRT
X1 Y0 OT AN
3 4 OT Y 0 L-WL Y-WY
0 WRT
X2 Y1 5 ST/ X 2 ST
X-WX
NOT
DT/Ld
ST
X-WX
2 WRT
5 OT AN
6 OT Y 1 L-WL Y-WY
1 WRT
ON
X0 X1 Y0 X2 OFF
ON
X2 Y1 Y1 OFF
Description
• Executes programs from MC to MCE when the predetermined trigger turns ON.
• When the predetermined trigger is in the OFF state, the instructions between the MC and MCE
instruction set operate as follows.
Instruction I/O Condition
OT All OFF
KP Holds the state at the time just before the trigger turns OFF.
SET
RST
TM and F137 (STMR) Reset
CT and F118 (UDC) Holds the elapsed value at the time just before the trigger
SR and F119 (LRSR) turns OFF.
Other instructions Not executed
124
5-3. Description of Basic Instructions
( MCE 1 )!
( MCE 0 )!
Notes:
1. When programming DF and DF/ instructions in the master control instruction set:
The DF and DF/ instructions remember their trigger state (ON or OFF) just before the trigger of the MC
instruction turns OFF while the master control instruction set is in the OFF state.
Be sure to pay attention to the following when the DF and DF/ instructions are programmed.
• Trigger to the DF or DF/ instruction between the • If the same trigger is set for the MC and for the
MC and MCE instruction set is ignored while DF or DF/ instruction, there will be no output.
the MC trigger is OFF. Place the DF or DF/ instruction outside the MC
X0 and MCE instruction set when output is
( MC 0 )!
X1 Y0 required.
( DF )!
X0
( MCE 0 )!
C ( MC 0 )! T Y0 never
A X0
R RE
( DF )!
Y0 turns ON.
X0
X1 IN CO ( MCE 0 )!
Y0
X0
Changes in X1 are ignored ( MC 0 )!
during this interval.
X0 R0
• If, in the example above, output is required at
point A , place the DF or DF/ instruction outside ( MCE 0 )!
the MC and MCE instruction set. R0 Y0
( DF )!
X0
( MC 0 )!
X1 R0
( MCE 0 )!
R0 Y0
( DF )!
2. The MC instruction cannot be started directly from the bus line. Be sure to include a contact input before
the MC instruction in your program. X0
( MC 0 )!
3. The program cannot be executed in the following X1 Y0
MCE 0 is missing.
conditions: X2
- The trigger of the MC instruction is missing.
E C( MCTY11 )! Duplicated use of
- There are two or more master control instruction
X3
R R
X4 O
sets with the same number. C
INX5 ( MCE 1 )!
same MC instruction
number.
- The order of the MC and MCE instructions are Y2
(MC1) and (MCE1)
reversed. are reversed order.
( MC 1 )!
( MCE 1 )!
125
5-3. Description of Basic Instructions
Step Availability
50 ( ED )!
■ Explanation of example
• Step 50 is the end of the main program area.
Description Address
• Indicates the end of a main program.
0
Main program
(ED)
Subroutine program
Interrupt program
Notes:
• Place any subroutine programs and interrupt programs after the ED instruction.
• Use the CNDE instruction if end processing is necessary within the main program.
Refer to FP-M/FP1 Programming Manual, for details about the CNDE instruction.
• Refer to page 139, “5-4. Hints for Programming Basic Instructions”, for details about basic instructions,
such as the ED instruction, which are not displayed on the FP Programmer II keys.
126
5-3. Description of Basic Instructions
Step Availability
Outline Performs Start operation by comparing two word data in the comparative
conditions. The contact goes ON/OFF depending on the result of the
comparison.
Program example
Boolean Non-ladder
Ladder Diagram FP Programmer II key operations
Address Instruction
ST =
0 ST = X-WX C ENT
S1 S2 OT AN
5 OT Y 0 L-WL Y-WY
0 WRT
■ Operands
■ Explanation of example
• Compares the contents of data register DT0 with the constant K50. If DT0 = K50, the external output relay Y0
goes ON.
127
5-3. Description of Basic Instructions
Description
• Compares the word data specified by S1 with the word data specified by S2 according to the
comparative conditions.
The contact goes ON/OFF depending on the result of the comparison.
• The result of the comparison operation is as follows:
Comparative Comparative Contact
instruction condition operation Condition S1 < S2 S1 = S2 S1 > S2
ST = S1 = S2 ON ON
ST =
S1 S2 OFF OFF
ST <> S1 S2 ON ON
ST <> OFF
S1 = S2 OFF
ST > S1 > S2 ON ON
ST > OFF
S1 S2 OFF
ON
ST >= S1 S2 ON ST >= OFF
S1 < S2 OFF
ON
ST < S1 < S2 ON ST < OFF
S1 S2 OFF ON
ST <=
ST <= S1 S2 ON OFF
S1 > S2 OFF
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state when the area specified using the
index modifier exceeds the limit. The error address is transferred to
DT9017 and held. (See notes below.)
• Error flag (R9008): Turns ON for an instant when the area specified using the index
modifier exceeds the limit. The error address is transferred to DT9018.
(See notes below.)
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relay R9008 as the flag for this instruction, be sure to
program the flag at the address immediately after the instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error flags.
Notes:
• The Start comparison instructions ST =, ST <>, ST >, ST >=, ST <, and ST <= are programmed from
the bus line.
• This instruction can be input only with FP Programmer II or NPST-GR version 3.1 or later.
128
5-3. Description of Basic Instructions
Step Availability
Outline Performs AND operation by comparing two word data in the comparative
conditions. The contact goes ON/OFF depending on the result of the
comparison. The contacts are connected serially.
Program example
Boolean Non-ladder
Ladder Diagram FP Programmer II key operations
Address Instruction
ST <
0 ST < X-WX
E ENT
NOT
DT 0 DT/Ld
0 ENT
(BIN)
<, DT0, K70 < >, DT1, K50 Y0 K 70 K/H
7 0 WRT
0 AN < >
5 AN <> ENT
"
"
"
"
"
"
"
Y-WY E F
(BIN)
K 50 K/H
5 0 WRT
OT AN
10 OT Y 0 L-WL Y-WY
0 WRT
■ Operands
■ Explanation of example
• Compares the contents of data register DT0 with the constant K70 and compares the contents of data register DT1
with the constant K50. If DT0 < K70 and DT1K50, the external output relay Y0 goes ON.
129
5-3. Description of Basic Instructions
(DT1 K50)
AN <> ON
OFF (DT1 = K50)
ON
Y0 OFF
Description
• Compares the word data specified by S1 with the word data specified by S2 according to the
comparative conditions.
The contact goes ON/OFF depending on the result of the comparison.
The contacts are connected serially.
• The result of the comparison operation is as follows:
Comparative Comparative Contact
instruction condition operation Condition S1 < S2 S1 = S2 S1 > S2
AN = S1 = S2 ON ON
AN =
S1 S2 OFF OFF
AN <> S1 S2 ON
AN <> ON
OFF
S1 = S2 OFF
AN > S1 > S2 ON ON
AN > OFF
S1 S2 OFF
ON
AN >= S1 S2 ON AN >= OFF
S1 < S2 OFF
ON
AN < S1 < S2 ON AN < OFF
S1 S2 OFF ON
AN <=
AN <= S1 S2 ON OFF
S1 > S2 OFF
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state when the area specified using the
index modifier exceeds the limit. The error address is transferred to
DT9017 and held. (See notes below.)
• Error flag (R9008): Turns ON for an instant when the area specified using the index
modifier exceeds the limit. The error address is transferred to DT9018.
(See notes below.)
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relay R9008 as the flag for this instruction, be sure to
program the flag at the address immediately after the instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error flags.
Notes:
• Multiple AND comparison instructions AN =, AN <>, AN >, AN >=, AN <, and AN <= can be used
consecutively.
• This instruction can be input only with FP Programmer II or NPST-GR version 3.1 or later.
130
5-3. Description of Basic Instructions
Step Availability
NOT
DT 0 DT/Ld
0 ENT
Refer to page 127.
(BIN)
"
"
"
"
"
Y0 K 50 K/H
5 0 WRT
=, DT0, K50
0 5 OR > OR >
F ENT
R-WR
>, DT1, K40 NOT
5 DT 1 DT/Ld
1 ENT
(BIN)
S1 S2 K 40 K/H
4 0 WRT
OT AN
10 OT Y 0 L-WL Y-WY
0 WRT
■ Operands
■ Explanation of example
• Compares the contents of data register DT0 with the constant K50 and compares the contents of data register DT1
with the constant K40. If either DT0 = K50 or DT1 > K40, the external output relay Y0 goes ON.
131
5-3. Description of Basic Instructions
ST = ON (DT0 = K50)
OFF (DT0 K50) DT0 = K50 DT0 K50
ON
Y0 OFF
Description
• The contact goes ON/OFF depending on the result of the comparison.
The contacts are connected in parallel.
• The result of the comparison operation is as follows:
Comparative Comparative Contact
instruction condition operation Condition S1 < S2 S1 = S2 S1 > S2
OR = S1 = S2 ON ON
OR =
S1 S2 OFF OFF
OR <> S1 S2 ON ON
OR <> OFF
S1 = S2 OFF
OR > S1 > S2 ON ON
OR > OFF
S1 S2 OFF
ON
OR >= S1 S2 ON OR >= OFF
S1 < S2 OFF
ON
OR < S1 < S2 ON OR < OFF
S1 S2 OFF ON
OR <=
OR <= S1 S2 ON OFF
S1 > S2 OFF
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state when the area specified using the
index modifier exceeds the limit. The error address is transferred to
DT9017 and held. (See notes below.)
• Error flag (R9008): Turns ON for an instant when the area specified using the index
modifier exceeds the limit. The error address is transferred to DT9018.
(See notes below.)
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relay R9008 as the flag for this instruction, be sure to
program the flag at the address immediately after the instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error flags.
Notes:
• The OR comparison instructions OR =, OR <>, OR >, OR >=, OR <, and OR <= are programmed
from the bus line.
• Multiple OR comparison instructions OR =, OR <>, OR >, OR >=, OR <, OR <= can be used
consecutively.
• This instruction can be input only with FP Programmer II or NPST-GR version 3.1 or later.
132
5-3. Description of Basic Instructions
Step Availability
Double word compare:
STD = Start equal 9
Outline Performs Start operation by comparing two double word data in the
comparative conditions. The contact goes ON/OFF depending on the result
of the comparison.
Program example
Boolean Non-ladder
Ladder Diagram FP Programmer II key operations
Address Instruction
ST D =
0 STD = X-WX D C ENT
(BIN)
K 50 K/H
5 0 WRT
S1 S2
OT AN
9 OT Y 0 L-WL Y-WY
0 WRT
■ Operands
■ Explanation of example
• Compares the contents of data registers (DT1, DT0) with the constant K50. If (DT1, DT0) = K50, the external
output relay Y0 goes ON.
133
5-3. Description of Basic Instructions
ON
Y0 OFF
Description
• Compares the double word data specified by S1 and S1+1, with the double word data specified
by S2 and S2+1, according to the comparative conditions.
The contact goes ON/OFF depending on the result of the comparison.
• The result of the comparison operation is as follows:
Comparative Comparative Contact
instruction condition operation Condition (S1+1, S1) < (S2+1, S2) (S1+1, S1) = (S2+1, S2) (S1+1, S1) > (S2+1, S2)
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state when the area specified using the
index modifier exceeds the limit. The error address is transferred to
DT9017 and held. (See notes below.)
• Error flag (R9008): Turns ON for an instant when the area specified using the index
modifier exceeds the limit. The error address is transferred to DT9018.
(See notes below.)
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relay R9008 as the flag for this instruction, be sure to
program the flag at the address immediately after the instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error flags.
Notes:
• The Start comparison instructions STD =, STD <>, STD >, STD >=, STD <, and STD <= are
programmed from the bus line.
• This instruction can be input only with FP Programmer II or NPST-GR version 3.1 or later.
• When processing 32-bit data, the higher 16-bit areas (S1+1, S2+1) are automatically decided if the lower
16-bit areas (S1, S2) are specified.
134
5-3. Description of Basic Instructions
Step Availability
Double word compare:
AND = AND equal 9
Outline Performs AND operation by comparing two double word data in the
comparative conditions. The contact goes ON/OFF depending on the result
of the comparison. The contacts are connected serially.
Program example
Boolean Non-ladder
Ladder Diagram FP Programmer II key operations
Address Instruction
ST D <
0 STD < X-WX D E ENT
NOT
DT 0 DT/Ld
0 ENT
(BIN)
Y0 K 70 K/H
7 0 WRT
D <, DT0, K70 D < >, DT10, K50
0 AN D < >
9 AND <>
"
"
"
"
"
"
"
D E F ENT
Y-WY
Refer to page 133.
S1 S2 DT 10 NOT
DT/Ld
1 0 ENT
(BIN)
K 50 K/H
5 0 WRT
OT AN
18 OT Y 0 L-WL Y-WY
0 WRT
■ Operands
■ Explanation of example
• Compares the contents of data registers (DT1, DT0) with the constant K70 and compares the contents of data
registers (DT11, DT10) with the constant K50. If (DT1, DT0) < K70 and (DT11, DT10) K50, the external
output relay Y0 goes ON.
135
5-3. Description of Basic Instructions
ON
Y0 OFF
Description
• Compares the double word data specified by S1 and S1+1, with the double word data specified
by S2 and S2+1, according to the comparative conditions. The contact goes ON/OFF depending
on the result of the comparison. The contacts are connected serially.
• The result of the comparison operation is as follows:
Comparative Comparative Contact
instruction condition operation Condition (S1+1, S1) < (S2+1, S2) (S1+1, S1) = (S2+1, S2) (S1+1, S1) > (S2+1, S2)
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state when the area specified using the
index modifier exceeds the limit. The error address is transferred to
DT9017 and held. (See notes below.)
• Error flag (R9008): Turns ON for an instant when the area specified using the index
modifier exceeds the limit. The error address is transferred to DT9018.
(See notes below.)
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relay R9008 as the flag for this instruction, be sure to
program the flag at the address immediately after the instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error flags.
Notes:
• Multiple AND comparison instructions AND =, AND <>, AND >, AND >=, AND <, and AND <= can
be used consecutively.
• This instruction can be input only with FP Programmer ΙΙ or NPST-GR version 3.1 or later.
• When processing 32-bit data, the higher 16-bit areas (S1+1, S2+1) are automatically decided if the lower
16-bit areas (S1, S2) are specified.
136
5-3. Description of Basic Instructions
Step Availability
Double word compare:
ORD = OR equal 9
NOT
(BIN)
Y0 K 50 K/H
5 0 WRT
D =, DT0, K50
0 OR D >
9 ORD > R-WR D F ENT
S1 S2 K 40
(BIN)
K/H
4 0 WRT
OT AN
18 OT Y 0 L-WL Y-WY
0 WRT
■ Operands
■ Explanation of example
• Compares the contents of data registers (DT1, DT0) with the constant K50 and compares the contents of data
registers (DT11, DT10) with the constant K40. If either (DT1, DT0) = K50 or (DT11, DT10) > K40, the external
output relay Y0 goes ON.
137
5-3. Description of Basic Instructions
ON
Y0 OFF
Description
• Compares the double word data specified by S1 and S1+1, with the double word data specified
by S2 and S2+1, according to the comparative conditions. The contact is connected in parallel
depending on the results of the comparative conditions.
• The result of the comparison operation is as follows:
Comparative Comparative Contact
instruction condition operation Condition (S1+1, S1) < (S2+1, S2) (S1+1, S1) = (S2+1, S2) (S1+1, S1) > (S2+1, S2)
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state when the area specified using the
index modifier exceeds the limit. The error address is transferred to
DT9017 and held. (See notes below.)
• Error flag (R9008): Turns ON for an instant when the area specified using the index
modifier exceeds the limit. The error address is transferred to DT9018.
(See notes below.)
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relay R9008 as the flag for this instruction, be sure to
program the flag at the address immediately after the instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error flags.
Notes:
• The OR comparison instructions ORD =, ORD <>, ORD >, ORD >=, ORD <, and ORD <= are
programmed from the bus line.
• Multiple OR comparison instructions ORD =, ORD <>, ORD >, ORD >=, ORD <, ORD <= can be
used consecutively.
• This instruction can be input only with FP Programmer II or NPST-GR version 3.1 or later.
• When processing 32-bit data, the higher 16-bit areas (S1+1, S2+1) are automatically decided if the lower
16-bit areas (S1, S2) are specified.
138
5-4. Hints for Programming Basic Instructions
ON
X0 OFF
AND & X0 X1 Y0
X1
ON
OFF
AND Not ON
operation Y0 OFF
X0 Y0 ON
X0 OFF
OR & OR Not ON
X1 OFF
operation X1 ON
Y0 OFF
ON
X0 X1 R0 X0 OFF
Self-hold ON
X1 OFF
circuit R0 ON
R0 OFF
ON
X0 R1 R0 X0 OFF
ON
Interlock X1 OFF
ON
circuit X1 R0 R1 R0 OFF
ON
R1 OFF
X0 ON
TMX 30 X0 OFF
ON-delay timer 0 ON
T0 OFF
circuit T0 Y0 ON
Y0 OFF
3s 1s
X0 T0 R0 ON
X0 OFF
One shot ON
R0 OFF
circuit R0
TMX 50 ON
0 T0 OFF
5s 5s
139
5-4. Hints for Programming Basic Instructions
0 = DF 1 = NOP
2 = KP 3 = SR
READ
2. Press the ▼ or SRC ▲ to find desired instruction code. READ READ
▼ ▼
READ
▼
3. Press the desired instruction code (For example, press “9” 9 WRT
2) When You Know the Basic Instruction Codes for the FP Programmer II
• Press the desired instruction code (For example, press “9” as SHIFT
SC
9
SHIFT
SC
WRT
Reset RST 1A
Next step
level type NSTL 1B
140
5-4. Hints for Programming Basic Instructions
X0 Y0
〈 S 〉#
Y0
This section of the
program is processed
as if Y0 were ON.
X1 Y0
〈 R 〉#
This section of the
program is processed
as if Y0 were OFF.
X2 Y0
HIGH-LEVEL INSTRUCTIONS
6-1. Configuration of High-level Instructions ............................144
1. Types of High-level Instructions ...................................144
2. Configuration of High-level Instructions ......................144
3. Operands for High-level Instructions............................146
6-2. Table of High-level Instructions..........................................150
1. Data Transfer Instructions .............................................150
2. BIN Arithmetic Instructions..........................................150
3. BCD Arithmetic Instructions ........................................151
4. Data Comparison Instructions.......................................152
5. Logic Operation Instructions.........................................153
6. Data Conversion Instructions ........................................153
7. Data Shift Instructions...................................................154
8. UP/DOWN Counter and LEFT/RIGHT Shift Register
Instructions ....................................................................155
9. Data Rotate Instructions ................................................155
10. Bit Manipulation Instructions........................................155
11. Auxiliary Timer Instruction...........................................155
12. Special Instructions .......................................................156
13. High-speed Counter Special Instructions......................156
6-3. Description of High-level Instructions ................................157
6-4. Hints for Programming High-level Instructions..................191
1. How to Use BCD Data ..................................................191
1) BCD Data.............................................................191
2) Processing BCD Data
in the Programmable Controllers .........................192
2. How to Use Index Registers (IX, IY)............................193
1) Index Registers (IX, IY) ......................................193
2) Application Examples of Index Registers
(IX, IY).................................................................194
3. Operation Errors............................................................196
1) Operation Errors...................................................196
2) Types of Operation Error .....................................196
3) Status of Programmable Controller
When an Operation Error Occurs.........................196
4) Steps to Take When an Operation Error Occurs ..197
4. Overflow and Underflow ..............................................198
1) Overflow and Underflow .....................................198
2) Overflow and Underflow
in Binary Operations (16-bit or 32-bit) ................198
3) Overflow and Underflow
in BCD Operations (4-digit or 8-digit) ................199
6-1. Configuration of High-level Instructions
144
6-1. Configuration of High-level Instructions
Trigger Operand
Address
ST ST
0 WRT
X-WX X-WX
X0 FN/P
1 ENT
0 F1 DMV, WR0 , DT0 FL
OR
0 ENT
R-WR
S D NOT
0 WRT
DT/Ld
Notes:
• There is no need to program the same triggers
many times when two or more high-level X0
instructions are programmed consecutively with F0 MV, DT0, DT1
the same trigger. X0
In the program example shown right, the X0 for F1 DMV, DT2, DT4
second and third instructions can be omitted. X0
F0 MV, DT6, DT7
145
6-1. Configuration of High-level Instructions
0 0 0 0 0 1 0 1 1 0 1 1 0 1 0 1
• The word addresses are expressed in decimals.
146
6-1. Configuration of High-level Instructions
0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 K 32767 H7FFF
• • •
• • •
• • •
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 K 1 H0001
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 K 0 H0000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 K –1 HFFFF
• • •
• • •
• • •
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 K – 32768 H8000
<32-bit data>
higher 16-bit area lower 16-bit area
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0
1,073,741,824
536,870,912
268,435,456
134,217,728
67,108,864
33,554,432
16,777,216
8,388,608
4,194,304
2,097,152
1,048,576
524,288
262,144
131,072
65,536
32,768
16,384
8,192
4,096
2,048
1,024
512
256
128
64
32
16
8
4
2
1
0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 K 2147483647 H7FFFFFFF
• • •
• • •
• • •
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 K 1 H00000001
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 K 0 H00000000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 K –1 HFFFFFFFF
• • •
• • •
• • •
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 K – 2147483648 H80000000
147
6-1. Configuration of High-level Instructions
■ Word external input relay (WX), Word external output relay (WY)
and Word internal relay (WR)
• “WX”, “WY” and “WR” express the relays (X, Y and R). This word format treats the 16-bit relay groupings as one
word.
• The word relay addresses (WX, WY and WR) can also be expressed by bit addresses using X, Y, and R, as
follows.
Example: Word external input relay (WX)
XF XE XD XC XB XA X9 X8 X7 X6 X5 X4 X3 X2 X1 X0
WX0
WX1
• •
• •
• •
• X12F X12E X12D • X122 X121 X120
• •
WX12
• The contents of the word relay correspond to the state of its relays (components).
When the data of WR0 is K0 (decimal), if R0 WR0
and R1 are turned ON, its data becomes K3
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 K0
(decimal). In the same way, if the data of WR0
is changed from K0 to K3, this means that R0
and R1 are turned ON. R0 and R1
turned ON.
WR0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 K3
148
6-1. Configuration of High-level Instructions
• The data processed in the programmable controllers can be monitored as binary (B), decimals (K), hexadecimals
(H), or ASCII (A) using the FP Programmer II or NPST-GR Software.
• Refer to the programming tool manual of the FP Programmer II or NPST-GR Software, for details about the data
monitoring method.
149
6-2. Table of High-level Instructions
150
6-2. Table of High-level Instructions
151
6-2. Table of High-level Instructions
152
6-2. Table of High-level Instructions
153
6-2. Table of High-level Instructions
154
6-2. Table of High-level Instructions
155
6-2. Table of High-level Instructions
156
6-3. Description of High-level Instructions
S D
■ Operands
Available operands
Relay Timer/Counter Register Index Constant
for instruction Operand register
Index
modifier
WX WY WR SV EV DT IX IY K H
S A A A A A A A A A A A
A: Available
D N/A A A A A A A A N/A N/A A N/A: Not Available
■ Explanation of example
• The contents of word external input relay WX0 are copied to word internal relay WR0 when trigger X0 turns ON.
Explanation of Source [S]: HACAE
Description
• The 16-bit data or 16-bit equivalent constant specified by S is copied to the area specified by D
when the trigger turns ON.
Source Destination
[S]
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0 Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
WX0
WX1
1 0 1 0
0 0 0 0
1 1 0 0
0 0 0 0
1 0 1 0
0 0 0 0
1 1 1 0
0 0 1 0
WR0
WR1
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
1 1 1 1 [D]
1 1 1 0
WX2
WX3
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 1 1
0 1 0 0
WR2
WR3
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
1 1 0 1
1 1 0 0
WX4 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 WR4 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1
Trigger X0: ON
Source Destination
[S]
Bit position 15
WX0
• • 12 11 • • 8
1 0 1 0 1 1 0 0
7 • • 4
1 0 1 0
3 • • 0
1 1 1 0
Bit position 15
WR0
• • 12 11 • • 8
1 0 1 0 1 1 0 0
7 • • 4
1 0 1 0
3 • • 0
1 1 1 0 [D]
WX1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 WR1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0
WX2
WX3
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 1 1
0 1 0 0
WR2
WR3
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
1 1 0 1
1 1 0 0
WX4 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 WR4 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1
157
6-3. Description of High-level Instructions
Step Availability
S D
■ Operands
■ Explanation of example
• The contents of word external input relay WX0 are copied to word internal relay WR0 when trigger X0 turns ON.
Source [S]: HACAE
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
WX0 1 0 1 0 1 1 0 0 1 0 1 0 1 1 1 0
X0: ON
Destination [D]: HACAE
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
WR0 1 0 1 0 1 1 0 0 1 0 1 0 1 1 1 0
158
6-3. Description of High-level Instructions
Description
• The 16-bit data or 16-bit equivalent constant specified by S is copied to the area specified by D
when the trigger turns ON.
Source Destination
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0 Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
[S] WX0 1 0 1 0 1 1 0 0 1 0 1 0 1 1 1 0 WR0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 [D]
WX1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 WR1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0
WX2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 WR2 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1
WX3 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 WR3 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0
WX4 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 WR4 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1
Trigger X0: ON
Source Destination
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0 Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
[S] WX0 1 0 1 0 1 1 0 0 1 0 1 0 1 1 1 0 WR0 1 0 1 0 1 1 0 0 1 0 1 0 1 1 1 0 [D]
WX1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 WR1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0
WX2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 WR2 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1
WX3 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 WR3 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0
WX4 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 WR4 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state when the area specified using the index
modifier exceeds the limit. The error address is transferred to DT9017
and held. (See notes below.)
• Error flag (R9008): Turns ON for an instant when the area specified using the index modifier
exceeds the limit. The error address is transferred to DT9018. (See notes
below.)
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relay R9008 as the flag for this instruction, be sure to
program the flag at the address immediately after the instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error
flags.
■ Application example
Example 1: Put the value of the dial set register in the timer set value area.
Example 2: Transfer the timer elapsed value EV0 to the data register DT0 when X2 turns ON.
X2
0 F0 MV, EV0, DT0
159
6-3. Description of High-level Instructions
Step Availability
S D
■ Operands
■ Explanation of example
• The contents of word internal input relays WR1 and WR0 are copied to data registers DT1 and DT0 when trigger
X0 turns ON.
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
higher 16-bit area lower 16-bit area
X0: ON
Destination [D+1, D]: HACAEE486
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0 Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
DT1 1 0 1 0 1 1 0 0 1 0 1 0 1 1 1 0 DT0 1 1 1 0 0 1 0 0 1 0 0 0 0 1 1 0
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
Note:
• When processing 32-bit data, the higher 16-bit areas (S+1, D+1) are automatically decided if the lower
16-bit areas (S, D) are specified.
e.g., S+1 (higher) = WR1, S (lower) = WR0
D+1 (higher) = DT1, D (lower) = DT0
160
6-3. Description of High-level Instructions
Description
• The 32-bit data or the 32-bit equivalent constant specified by S is copied to the 32-bit area
specified by D when the trigger turns ON.
Source Destination
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0 Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
[S] WR0 1 1 1 0 0 1 0 0 1 0 0 0 0 1 1 0 DT0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 [D]
[S+1] WR1 1 0 1 0 1 1 0 0 1 0 1 0 1 1 1 0 DT1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 [D+1]
WR2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 DT2 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1
WR3 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 DT3 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0
WR4 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 DT4 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1
Trigger X0: ON
Source Destination
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0 Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
[S] WR0 1 1 1 0 0 1 0 0 1 0 0 0 0 1 1 0 DT0 1 1 1 0 0 1 0 0 1 0 0 0 0 1 1 0 [D]
[S+1] WR1 1 0 1 0 1 1 0 0 1 0 1 0 1 1 1 0 DT1 1 0 1 0 1 1 0 0 1 0 1 0 1 1 1 0 [D+1]
WR2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 DT2 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1
WR3 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 DT3 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0
WR4 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 DT4 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state when the area specified using the index
modifier exceeds the limit. The error address is transferred to DT9017
and held. (See notes below.)
• Error flag (R9008): Turns ON for an instant when the area specified using the index modifier
exceeds the limit. The error address is transferred to DT9018. (See notes
below.)
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relay R9008 as the flag for this instruction, be sure to
program the flag at the address immediately after the instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error
flags.
161
6-3. Description of High-level Instructions
Step Availability
Outline Copies the hexadecimal digits in one 16-bit area to the specified digit in
another 16-bit area.
Program example
Boolean Non-ladder
Ladder Diagram
Address Instruction
10 ST X 0
Trigger
11 F 6 (DGT)
DT 100
X0 H 0
10 F6 DGT , DT100 , H0 , WY0 WY 0
S n D
■ Operands
■ Explanation of example
• The hexadecimal digit 0 of the data register DT100 is copied to hexadecimal digit 0 of word external output relay
WY0 when trigger X0 turns ON.
n: H0
X0: ON
Destination [D]: H8A9
Hexadecimal
3 2 1 0
digit position
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
WY0 0 0 0 0 1 0 0 0 1 0 1 0 1 0 0 1
"
"
"
"
"
162
6-3. Description of High-level Instructions
Description
• The hexadecimal digits in the 16-bit data or in the 16-bit equivalent constant specified by S are
copied to the 16-bit area specified by D according to content specified by n when the trigger
turns ON.
■ How to specify the n 16-bit data
• The hexadecimal digit position of 16-bit data 15 • • 12 11 • • 8 7 • • 4 3 • • 0
is specified as shown on the right. 0 0 0 0 0 0 0 1 0 1 0 0 1 0 0 1
• The n specifies source and destination hexadecimal digit positions and number of digits to be
copied using hexadecimal data as follows:
n:H 0
Note:
• If the value for 1, 2, and 3 is 0, such as “H0000” in the example program on the
previous page, use the short form, “H0”.
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state when the area specified using the index
modifier exceeds the limit. The error address is transferred to DT9017
and held. (See notes below.)
• Error flag (R9008): Turns ON for an instant when the area specified using the index modifier
exceeds the limit. The error address is transferred to DT9018. (See notes
below.)
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relay R9008 as the flag for this instruction, be sure to
program the flag at the address immediately after the instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error
flags.
163
6-3. Description of High-level Instructions
164
6-3. Description of High-level Instructions
Step Availability
Outline Adds two 16-bit data and stores the result in the specified area.
Program example
Boolean Non-ladder
Ladder Diagram
Address Instruction
10 ST X 0
Trigger
11 F 22 (+ )
DT 0
X0 DT 1
10 F22+ DT0 , DT1 , WY0 WY 0
S1 S2 D
■ Operands
■ Explanation of example
• The contents of data registers DT0 and DT1 are added when trigger X0 turns ON. The added result is stored in
word external output relay WY0.
Augend [S1]: K123
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
DT0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 1 1
X0: ON
Result [D]: K168
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
WY0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 0 0
165
6-3. Description of High-level Instructions
Description
• The 16-bit data or 16-bit equivalent constant specified by S1 and S2 are added together when
the trigger turns ON. The added result is stored in D.
Augend data Addend data Trigger turns ON Result
S1 + S2 D
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state when the area specified using the index
modifier exceeds the limit. The error address is transferred to DT9017
and held. (See notes below.)
• Error flag (R9008): Turns ON for an instant when the area specified using the index modifier
exceeds the limit. The error address is transferred to DT9018. (See notes
below.)
• = flag (R900B): Turns ON for an instant when the calculated result is recognized as “0”.
• Carry flag (R9009): Turns ON for an instant when the calculated result exceeds the range of
16-bit data (overflows or underflows).
*Range of 16-bit data: K-32768 to K32767 (H8000 to H7FFF)
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relays R9008, R9009, and R900B as the flags for this
instruction, be sure to program the flags at the address immediately after the
instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error
flags, = flag, and carry flag.
• If the calculated result accidently overflows or underflows (if special internal relay
R9009 turns ON), use of the F23 (D+) instruction (32-bit data addition) is
recommended. When you use the F23 (D+) instruction instead of F22 (+), be sure
to convert the 16-bit addend and augend into 32-bit data using the F89 (EXT)
instruction.
166
6-3. Description of High-level Instructions
Step Availability
32-bit data
F23 (D+) [(S1+1, S1) + (S2+1, S2) → (D+1, D)]
11 All series
Outline Adds two 32-bit data and stores the result in the specified area.
Program example
Boolean Non-ladder
Ladder Diagram
Address Instruction
20 ST X 0
Trigger 21 F 23 (D+ )
DT 0
X0 DT 100
20 F23 D+ , DT0 , DT100 , DT200 DT 200
S1 S2 D
S1 32-bit equivalent constant or lower 16-bit area of 32-bit data (for augend)
S2 32-bit equivalent constant or lower 16-bit area of 32-bit data (for addend)
D Lower 16-bit area of 32-bit data (for result)
■ Operands
■ Explanation of example
• The contents of data registers DT1 and DT0 and the contents of data registers DT101 and DT100 are added when
trigger X0 turns ON. The added result is stored in data registers DT201 and DT200.
Augend [S1+1, S1]: K1312896
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0 Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
DT1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 DT0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
167
6-3. Description of High-level Instructions
Note:
• When processing 32-bit data, the higher 16-bit areas (S1+1, S2+1, D+1) are automatically decided if the
lower 16-bit areas (S1, S2, D) are specified.
e.g., S1+1 (higher) = DT1, S1 (lower) = DT0
S2+1 (higher) = DT101, S2 (lower) = DT100
D+1 (higher) = DT201, D (lower) = DT200
Description
• The 32-bit data or 32-bit equivalent constant specified by S1 and S2 are added together when
the trigger turns ON. The added result is stored in D+1 and D.
Augend data Addend data Trigger turns ON Result
S1 : lower 16-bit S2 : lower 16-bit D : lower 16-bit
+
S1+1 : higher 16-bit S2+1 : higher 16-bit D+1 : higher 16-bit
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state when the area specified using the index
modifier exceeds the limit. The error address is transferred to DT9017
and held. (See notes below.)
• Error flag (R9008): Turns ON for an instant when the area specified using the index modifier
exceeds the limit. The error address is transferred to DT9018. (See notes
below.)
• = flag (R900B): Turns ON for an instant when the calculated result is recognized as “0”.
• Carry flag (R9009): Turns ON for an instant when the calculated result exceeds the range of
32-bit data (overflows or underflows).
*Range of 32-bit data: K-2147483648 to K2147483647 (H80000000 to
H7FFFFFFF)
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relays R9008, R9009, and R900B as the flags for this
instruction, be sure to program the flags at the address immediately after the
instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error
flags, = flag, and carry flag.
168
6-3. Description of High-level Instructions
Step Availability
Outline Subtracts the 16-bit data from the minuend and stores the result in the
specified area.
Program example
Boolean Non-ladder
Ladder Diagram
Address Instruction
10 ST X 0
Trigger
11 F 27 (– )
DT 0
X0 DT 2
10 F27 – , DT 0 , DT 2 , WY1 WY 1
S1 S2 D
■ Operands
■ Explanation of example
• Subtracts the contents of data register DT2 from the contents of data register DT0 when trigger X0 turns ON. The
subtracted result is stored in word external output relay WY1.
Minuend [S1]: K893
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
DT0 0 0 0 0 0 0 1 1 0 1 1 1 1 1 0 1
X0: ON
Result [D]: K441
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
WY1 0 0 0 0 0 0 0 1 1 0 1 1 1 0 0 1
169
6-3. Description of High-level Instructions
Description
• Subtracts the 16-bit data or 16-bit equivalent constant specified by S2 from the 16-bit data or
16-bit equivalent constant specified by S1 when the trigger turns ON. The subtracted result is
stored in D.
Minuend data Subtrahend data Trigger turns ON Result
S1 – S2 D
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state when the area specified using the index
modifier exceeds the limit. The error address is transferred to DT9017
and held. (See notes below.)
• Error flag (R9008): Turns ON for an instant when the area specified using the index modifier
exceeds the limit. The error address is transferred to DT9018. (See notes
below.)
• = flag (R900B): Turns ON for an instant when the calculated result is recognized as “0”.
• Carry flag (R9009): Turns ON for an instant when the calculated result exceeds the range of
16-bit data (overflows or underflows).
*Range of 16-bit data: K-32768 to K32767 (H8000 to H7FFF)
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relays R9008, R9009, and R900B as the flags for this
instruction, be sure to program the flags at the address immediately after the
instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error
flags, = flag, and carry flag.
• If the calculated result accidently overflows or underflows (if special internal relay
R9009 turns ON), use of the F28 (D-) instruction (32-bit data subtraction) is
recommended. When you use the F28 (D-) instruction instead of F27 (-), be sure to
convert the 16-bit subtrahend and minuend into 32-bit data using the F89 (EXT)
instruction.
170
6-3. Description of High-level Instructions
Step Availability
32-bit data
F28 (D–) [(S1+1, S1) – (S2+1, S2) → (D+1, D)]
11 All series
Outline Subtracts the 32-bit data from the minuend and stores the result in the
specified area.
Program example
Boolean Non-ladder
Ladder Diagram
Address Instruction
20 ST X 0
Trigger
21 F 28 (D– )
DT 100
X0 DT 200
20 F28 D– , DT100 DT200 , DT 0 DT 0
S1 S2 D
S1 32-bit equivalent constant or lower 16-bit area of 32-bit data (for minuend)
S2 32-bit equivalent constant or lower 16-bit area of 32-bit data (for subtrahend)
D Lower 16-bit area of 32-bit data (for result)
■ Operands
■ Explanation of example
• Subtracts the contents of data registers DT201 and DT200 from the contents of data registers DT101 and DT100
when trigger X0 turns ON. The subtracted result is stored in data registers DT1 and DT0.
Minuend [S1+1, S1]: K16809984
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0 Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
DT101 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 DT100 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
171
6-3. Description of High-level Instructions
Note:
• When processing 32-bit data, the higher 16-bit areas (S1+1, S2+1, D+1) are automatically decided if the
lower 16-bit areas (S1, S2, D) are specified.
e.g., S1+1 (higher) = DT101, S1 (lower) = DT100
S2+1 (higher) = DT201, S2 (lower) = DT200
D+1 (higher) = DT1, D (lower) = DT0
Description
• Subtracts the 32-bit data or 32-bit equivalent constant specified by S2 from the 32-bit data or
32-bit equivalent constant specified by S1 when the trigger turns ON.
The subtracted result is stored in D+1 and D.
Minuend data Subtrahend data Trigger turns ON Result
S1 : lower 16-bit S2 : lower 16-bit D : lower 16-bit
–
S1+1 : higher 16-bit S2+1 : higher 16-bit D+1 : higher 16-bit
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state when the area specified using the index
modifier exceeds the limit. The error address is transferred to DT9017
and held. (See notes below.)
• Error flag (R9008): Turns ON for an instant when the area specified using the index modifier
exceeds the limit. The error address is transferred to DT9018. (See notes
below.)
• = flag (R900B): Turns ON for an instant when the calculated result is recognized as “0”.
• Carry flag (R9009): Turns ON for an instant when the calculated result exceeds the range of
32-bit data (overflows or underflows).
*Range of 32-bit data: K-2147483648 to K2147483647 (H80000000 to
H7FFFFFFF)
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relays R9008, R9009, and R900B as the flags for this
instruction, be sure to program the flags at the address immediately after the
instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error
flags, = flag, and carry flag.
172
6-3. Description of High-level Instructions
Step Availability
16-bit data
F30 (✽) [S1 × S2 → (D+1, D)]
7 All series
Outline Multiplies two 16-bit data and stores the result in the specified 32-bit area.
Program example
Boolean Non-ladder
Ladder Diagram
Address Instruction
10 ST X 0
Trigger
11 F 30 (✽ )
WX 0
X0 K 100
10 F30 ✽, WX0 , K 100 , DT 0 DT 0
S1 S2 D
■ Operands
■ Explanation of example
• Multiplies the contents of word external input relay WX0 and decimal constant K100 when trigger X0 turns ON.
The multiplied result is stored in data registers DT1 and DT0.
Multiplicand [S1]: K25
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
WX0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1
+
X0: ON
Result [D+1, D]: K2500
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0 Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
DT1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DT0 0 0 0 0 1 0 0 1 1 1 0 0 0 1 0 0
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
"
173
6-3. Description of High-level Instructions
Note:
• The multiplied result is stored in the 32-bit area.
The higher 16-bit area (D+1) is automatically decided when the lower 16-bit area (D) is specified.
e.g., D+1 (higher) = DT1, D (lower) = DT0
Description
• Multiplies the 16-bit data or 16-bit equivalent constant specified by S1 and the 16-bit data or
16-bit equivalent constant specified by S2 when the trigger turns ON.
The multiplied result is stored in D+1 and D (32-bit area).
Multiplicand data Multiplier data Trigger turns ON Result
S1 × S2 D : lower 16-bit
D+1 : higher 16-bit
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state when the area specified using the index
modifier exceeds the limit. The error address is transferred to DT9017
and held. (See notes below.)
• Error flag (R9008): Turns ON for an instant when the area specified using the index modifier
exceeds the limit. The error address is transferred to DT9018. (See notes
below.)
• = flag (R900B): Turns ON for an instant when the calculated result is recognized as “0”.
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relays R9008, and R900B as the flags for this
instruction, be sure to program the flags at the address immediately after the
instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error
flags and = flag.
174
6-3. Description of High-level Instructions
Step Availability
32-bit data [(S1+1, S1) × (S2+1, S2) C24, C40, C56,
F31 (D✽) → (D+3, D+2, D+1, D)]
11 and C72 series
Outline Multiplies two 32-bit data and stores the result in the specified 64-bit area.
Program example
Boolean Non-ladder
Ladder Diagram
Address Instruction
10 ST X 0
Trigger
11 F 31 (D✽ )
DT 0
X0 DT 100
10 F31 D✽ , DT 0 , DT 100 , DT 200 DT 200
S1 S2 D
S1 32-bit equivalent constant or lower 16-bit area of 32-bit data (for multiplicand)
S2 32-bit equivalent constant or lower 16-bit area of 32-bit data (for multiplier)
D Lowest 16-bit area of 64-bit data (for result)
■ Operands
■ Explanation of example
• Multiplies the contents of data registers DT1 and DT0 and the contents of data registers DT101 and DT100 when
trigger X0 turns ON. The multiplied result is stored in data registers DT203, DT202, DT201, and DT200.
Multiplicand [S1+1, S1]: K1638411
DT1 DT0
"
"
"
"
"
"
"
"
"
"
X0: ON
Result [D+3, D+2, D+1, D]: K751639068771
DT203 DT202 DT201 DT200
175
6-3. Description of High-level Instructions
Notes:
• When processing 32-bit data, the higher 16-bit areas (S1+1, S2+1) are automatically decided if the lower
16-bit areas (S1, S2) are specified.
e.g., S1+1 (higher) = DT1, S1 (lower) = DT0
S2+1 (higher) = DT101, S2 (lower) = DT100
• The multiplied result is stored in the 64-bit area.
The areas (D+3, D+2, D+1) other than the lowest 16-bit area (D) are automatically decided when the
lowest 16-bit area is specified.
e.g., D = DT200
D+1 = DT201
D+2 = DT202
D+3 = DT203
Description
• Multiplies the 32-bit data or 32-bit equivalent constant specified by S1 and the one specified by
S2 when the trigger turns ON.
The multiplied result is stored in D+3, D+2, D+1, and D (64-bit area).
Multiplicand data Multiplier data Trigger turns ON Result (64-bit)
S1 : lower 16-bit S2 : lower 16-bit D
×
S1+1 : higher 16-bit S2+1 : higher 16-bit D+1
D+2
D+3
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state when the area specified using the index
modifier exceeds the limit. The error address is transferred to DT9017
and held. (See notes below.)
• Error flag (R9008): Turns ON for an instant when the area specified using the index modifier
exceeds the limit. The error address is transferred to DT9018. (See notes
below.)
• = flag (R900B): Turns ON for an instant when the calculated result is recognized as “0”.
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relays R9008, and R900B as the flags for this
instruction, be sure to program the flags at the address immediately after the
instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error
flags and = flag.
176
6-3. Description of High-level Instructions
Step Availability
16-bit data
F32 (%) [S1/S2 → D... (DT9015)]
7 All series
Outline Divides the 16-bit data by the divisor and stores the result in the specified
area and the remainder in special data register DT9015.
Program example
Boolean Non-ladder
Ladder Diagram
Address Instruction
Trigger 20 ST X 0
21 F 32 (% )
DT 100
X0
K 10
20 F32 % , DT 100 , K10 , DT 0
DT 0
S1 S2 D
■ Operands
■ Explanation of example
• Divides the contents of data register DT100 by decimal constant K10 when trigger X0 turns ON. The quotient is
stored in data register DT0 and the remainder is stored in special data register DT9015.
Dividend [S1]: K183
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
DT100 0 0 0 0 0 0 0 0 1 0 1 1 0 1 1 1
X0: ON
Quotient [D]: K18
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
DT0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0
Remainder: K3
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
DT9015 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1
177
6-3. Description of High-level Instructions
Description
• The 16-bit data or 16-bit equivalent constant specified by S1 is divided by the 16-bit data or 16-
bit equivalent constant specified by S2 when the trigger turns ON.
The quotient is stored in D and the remainder is stored in the special data register DT9015.
Dividend data Divisor Trigger turns ON Quotient Remainder
S1 ÷ S2 D .... DT9015
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state,
- when the area specified using the index modifier exceeds the limit.
- when the 16-bit equivalent constant or 16-bit data for the divisor
specified by S2 is 0.
The error address is transferred to DT9017 and held. (See notes below.)
• Error flag (R9008): Turns ON for an instant,
- when the area specified using the index modifier exceeds the limit.
- when the 16-bit equivalent constant or 16-bit data for the divisor
specified by S2 is 0.
The error address is transferred to DT9018. (See notes below.)
• = flag (R900B): Turns ON for an instant when the calculated result is recognized as “0”.
• Carry flag (R9009): Turns ON for an instant when negative minimum value K-32768
(H8000) is divided by K-1 (HFFFF).
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relays R9008, R9009, and R900B as the flags for this
instruction, be sure to program the flags at the address immediately after the
instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error
flags, = flag, and carry flag.
• If the calculated result accidently overflows (if special internal relay R9009 turns
ON), use of the F33 (D%) instruction (32-bit data division) is recommended. When
you use the F33 (D%) instruction instead of F32 (%), be sure to convert the 16-bit
dividend and divisor into 32-bit data using the F89 (EXT) instruction.
178
6-3. Description of High-level Instructions
Step Availability
32-bit data [(S1+1, S1)/(S2+1, S2) C24, C40, C56,
F33 (D%) → (D+1, D) ... (DT9016, DT9015)]
11 and C72 series
Outline Divides the 32-bit data by the divisor and stores the result in the specified
area and the remainder in special data registers DT9016 and DT9015.
Program example
Boolean Non-ladder
Ladder Diagram
Address Instruction
Trigger 20 ST X 0
21 F 33 (D% )
DT 200
X0
20 F33 D% , DT 200 , DT 100 , DT 0 DT 100
DT 0
S1 S2 D
S1 32-bit equivalent constant or lower 16-bit area of 32-bit data (for dividend)
S2 32-bit equivalent constant or lower 16-bit area of 32-bit data (for divisor)
D Lower 16-bit area of 32-bit data (for quotient)
(remainder is stored in special data registers DT9016 and DT9015)
■ Operands
■ Explanation of example
• Divides the contents of data registers DT201 and DT200 by the contents of data registers DT101 and DT100 when
trigger X0 turns ON. The quotient is stored in data registers DT1 and DT0 and the remainder is stored in special
data registers DT9016 and DT9015.
Dividend [S1+1, S1]: K16908416
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0 Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
DT201 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 DT200 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
179
6-3. Description of High-level Instructions
Note:
• When processing 32-bit data, the higher 16-bit areas S1+1, S2+1, D+1 are automatically decided if the
lower 16-bit areas S1, S2, D are specified.
e.g., S1+1 (higher) = DT201, S1 (lower) = DT200
S2+1 (higher) = DT101, S2 (lower) = DT100
D+1 (higher) = DT1, D (lower) = DT0
Description
• The 32-bit data or 32-bit equivalent constant specified by S1 is divided by the 32-bit data or 32-
bit equivalent constant specified by S2 when the trigger turns ON. The quotient is stored in D+1
and D and the remainder is stored in the special data registers DT9016 and DT9015.
Dividend data Divisor Trigger turns ON Quotient Remainder
S1 : lower 16-bit S2 : lower 16-bit D : lower 16-bit DT9015
÷
S1+1 : higher 16-bit S2+1: higher 16-bit D+1 : higher 16-bit DT9016
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state,
- when the area specified using the index modifier exceeds the limit.
- when the 32-bit equivalent constant or 32-bit data for the divisor
specified by S2 is 0.
The error address is transfeered to DT9017 and held. (See notes below.)
• Error flag (R9008): Turns ON for an instant,
- when the area specified using the index modifier exceeds the limit.
- when the 32-bit equivalent constant or 32-bit data for the divisor
specified by S2 is 0.
The error address is transferred to DT9018. (See notes below.)
• = flag (R900B): Turns ON for an instant when the calculated result is recognized as “0”.
• Carry flag (R9009): Turns ON for an instant when negative minimum value K-2147483648
(H80000000) is divided by K-1 (HFFFFFFFF).
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relays R9008, R9009, and R900B as the flags for this
instruction, be sure to program the flags at the address immediately after the
instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error
flags, = flag, and carry flag.
180
6-3. Description of High-level Instructions
Step Availability
S1 S2 DT 0
X0 K 100
20 F60 CMP , DT 0 , K100 26 ST X 0
X0 R900A R0 27 AN R 900A
26
29 OT R 0
X0 R900B R1
30 30 ST X 0
X0 R900C R2 31 AN R 900B
34 33 OT R 1
34 ST X 0
Be sure to use the same trigger
as the trigger used to execute F60 (CMP). 35 AN R 900C
37 OT R 2
■ Operands
■ Explanation of example
• Compares decimal constant K100 with the contents of data register DT0 when trigger X0 turns ON.
The compared result is stored in special internal relays R900A, R900B, and R900C.
When DT0 > K100, R900A turns ON and internal relay R0 turns ON.
When DT0 = K100, R900B turns ON and internal relay R1 turns ON.
When DT0 < K100, R900C turns ON and internal relay R2 turns ON.
In this program example, the comparison will be performed only when X0 turns ON.
181
6-3. Description of High-level Instructions
Description
• Compares the 16-bit data specified by S1 with one specified by S2 when the trigger turns ON.
The compared result is stored in special internal relays R9009, and R900A to R900C.
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state when the area specified using the index
modifier exceeds the limit. The error address is transferred to DT9017
and held. (See notes below.)
• Error flag (R9008): Turns ON for an instant when the area specified using the index modifier
exceeds the limit. The error address is transferred to DT9018. (See notes
below.)
• The following table lists the conditions of carry flag (R9009), > flag (R900A), = flag (R900B),
and < flag (R900C), depending on the relative sizes of S1 and S2.
Flag
Comparison between
R900A R900B R900C R9009
S1 and S2 (> flag) (= flag) (< flag) (carry flag)
S1 < S2 OFF OFF ON ↕
S1 = S2 OFF ON OFF OFF
S1 > S2 ON OFF OFF ↕
“ ↕ ”: turns ON or OFF according to the conditions
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relays R9008, R9009, R900A, R900B and R900C as
the flags for this instruction, be sure to program the flags at the address immediately
after the instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error
flags.
Notes:
• Do not forget to program the same trigger as the Trigger
instruction to get the accurate comparison result.
Even if special relays are also programmed in X0
other parts of the program, the trigger prevents the F60 CMP, DT0, K100
result of the other instruction from affecting them. X0 R900A R0
X0 R900B R1
X0 R900C R2
182
6-3. Description of High-level Instructions
Notes:
• If you program the F60 (CMP) instruction using R9010
special internal relay R9010 (ON all the time), the F60 CMP, DT0, K100
same trigger as the instruction need not be R9010 R900A R0
programmed.
R9010 R900B R1
R9010 R900C R2
Program example:
• The comparison instruction flags R900A to R900C Compares DT0 with K100 when X0 turns
are updated with each execution of the comparison ON, and DT1 with K200 when X1 turns
instruction. If you use two or more comparison ON
instructions in your program, be sure to use the X0
flags immediately after each comparison 1 F60 CMP, DT0, K100
instruction using the output relays or the internal X0 R900A Y0
relays. "
"
The compared result of 1 is stored in the output " X0 R900B Y1
2
relays (Y0, Y1, and Y2) of program 2. "
The compared result of 3 is stored in the output
" X0 R900C Y2
relays (Y3, Y4, and Y5) of program 4.
X1
3 F60 CMP, DT1, K200
X1 R900A Y3
"
"
" X1 R900B Y4
4 "
" X1 R900C Y5
• When comparing special data, such as BCD or binary without signs, flags R9009, R900A, R900B, and
R900C move as shown in the table below. In this case, construct your program as shown in the program
example below, using special internal relays R900B and R9009.
Flag
Comparison between
R900A R900B R900C R9009
S1 and S2 (> flag) (= flag) (< flag) (carry flag)
S1 < S2 ↕ OFF ↕ ON
S1 = S2 OFF ON OFF OFF
S1 > S2 ↕ OFF ↕ OFF
“ ↕ ”: turns ON or OFF according to the conditions
Program example:
Compares two BCD data in DT0 and DT1. X1
F60 CMP, DT0, DT1
X1 R900B R9009 R0
1 ...When DT0 < DT1, internal relay R0 turns ON 1
2 ...When DT0 = DT1, internal relay R1 turns ON X1 R900B R9009 R1
2
3 ...When DT0 > DT1, internal relay R2 turns ON
X1 R900B R9009 R2
3
183
6-3. Description of High-level Instructions
Step Availability
■ Operands
■ Explanation of example
• Compares the content of data registers DT101 and DT100 with the content of data registers DT1 and DT0 when
trigger X0 turns ON.
The compared result is stored in special internal relays R900A, R900B, and R900C.
When (DT1 and DT0) > (DT101 and DT100), R900A turns ON and external output relay Y0 turns ON.
When (DT1 and DT0) = (DT101 and DT100), R900B turns ON and external output relay Y1 turns ON.
When (DT1 and DT0) < (DT101 and DT100), R900C turns ON and external output relay Y2 turns ON.
In this program example, the comparison will be performed only when X0 turns ON.
Note:
• When processing 32-bit data, the higher 16-bit areas (S1+1, S2+1) are automatically decided if the lower
16-bit areas (S1, S2) are specified.
e.g., S1+1 (higher) = DT1, S1 (lower) = DT0
S2+1 (higher) = DT101, S2 (lower) = DT100
184
6-3. Description of High-level Instructions
Description
• Compares the 32-bit data or 32-bit equivalent constant specified by S1 with one specified by S2
when the trigger turns ON. The compared result is stored in special internal relays R9009, and
R900A to R900C.
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state when the area specified using the index
modifier exceeds the limit. The error address is transferred to DT9017
and held. (See note below.)
• Error flag (R9008): Turns ON for an instant when the area specified using the index modifier
exceeds the limit. The error address is transferred to DT9018. (See note
below.)
• The following table lists the conditions of carry flag (R9009), > flag (R900A), = flag (R900B),
and < flag (R900C), depending on the relative sizes of (S1+1, S1) and (S2+1, S2).
Flag
Comparison between
R900A R900B R900C R9009
(S1+1, S1) and (S2+1, S2) (> flag) (= flag) (< flag) (carry flag)
(S1+1, S1) < (S2+1, S2) OFF OFF ON ↕
(S1+1, S1) = (S2+1, S2) OFF ON OFF OFF
(S1+1, S1) > (S2+1, S2) ON OFF OFF ↕
“ ↕ ”: turns ON or OFF according to the conditions
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relays R9008, R9009, R900A, R900B, and R900C as
the flags for this instruction, be sure to program the flags at the address immediately
after the instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error
flags.
Notes:
• Do not forget to program the same trigger as the Trigger
instruction to get the accurate comparison result.
X0
Even if special relays are also programmed in F61 DCMP, DT0, DT100
other parts of the program, the trigger prevents the X0 R900A Y0
result of the other instruction from affecting them.
X0 R900B Y1
X0 R900C Y2
• You can also program the above using the PSHS, [Ladder diagram] [Boolean Non-ladder]
ST X 0
RDS, and POPS instructions. Trigger PSHS
F61 DCMP
PSHS DT 0
X0
F61 DCMP, DT0, DT100 DT 100
RDS
R900A Y0 AN R 900A
OT Y 0
RDS
RDS R900B Y1 AN R 900B
OT Y 1
POPS POPS
R900C Y2 AN R 900C
OT Y 2
Continued
185
6-3. Description of High-level Instructions
Notes:
• If you program the F61 (DCMP) instruction using
R9010
special internal relay R9010 (ON all the time), the F61 DCMP, DT0, DT100
same trigger as the instruction need not be R9010 R900A Y0
programmed.
R9010 R900B Y1
R9010 R900C Y2
• When comparing special data, such as BCD or binary without signs, flags R9009, R900A, R900B, and
R900C move as shown in the table below. In this case, construct your program as shown in the program
example below, using special internal relays R900B and R9009.
Flag
Comparison between
R900A R900B R900C R9009
(S1+1, S1) and (S2+1, S2) (> flag) (= flag) (< flag) (carry flag)
(S1+1, S1) < (S2+1, S2) ↕ OFF ↕ ON
(S1+1, S1) = (S2+1, S2) OFF ON OFF OFF
(S1+1, S1) > (S2+1, S2) ↕ OFF ↕ OFF
“ ↕ ”: turns ON or OFF according to the conditions
Program example:
Compares two BCD data in (DT1, DT0) and (DT3, DT2). X1
F61 DCMP, DT0, DT2
X1 R900B R9009 R0
1 ...When (DT1, DT0) < (DT3, DT2), 1
internal relay R0 turns ON
X1 R900B R9009 R1
2 ...When (DT1, DT0) = (DT3, DT2), 2
internal relay R1 turns ON. X1 R900B R9009 R2
3 ...When (DT1, DT0) > (DT3, DT2), 3
internal relay R2 turns ON
186
6-3. Description of High-level Instructions
Step Availability
Outline Converts 16-bit binary data to BCD code that expresses 4-digit decimals.
Program example
Boolean Non-ladder
Ladder Diagram
Address Instruction
10 ST X 0
Trigger 11 F 80 (BCD)
EV 0
X0 WY 0
10 F80 BCD , EV0 , WY0
S D
S 16-bit equivalent constant or 16-bit area for storing binary data (source)
Available range: K0 to K9999
D 16-bit area for 4-digit BCD code (destination)
■ Operands
■ Explanation of example
• Converts the contents of timer/counter elapsed value area EV0 to BCD code that expresses 4-digit decimals when
trigger X0 turns ON. The converted data is stored in word external output relay WY0.
X0: ON
Destination [D]: H16 (BCD)
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
WY0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 0
BCD H code 0 0 1 6
187
6-3. Description of High-level Instructions
Description
• Converts the 16-bit binary data specified by S to the BCD code that expresses 4-digit decimal
when the trigger turns ON.
The converted data is stored in D.
• The binary data that can be converted to BCD code are in the range of K0 (H0) to K9,999
(H270F).
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state,
- when the area specified using the index modifier exceeds the limit.
- when the 16-bit binary data outside the range of K0 (H0) to K9,999
(H270F) is converted.
The error address is transferred to DT9017 and held. (See notes below.)
• Error flag (R9008): Turns ON for an instant,
- when the area specified using the index modifier exceeds the limit.
- when the 16-bit binary data outside the range of K0 (H0) to K9,999
(H270F) is converted.
The error address is transferred to DT9018. (See notes below.)
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relay R9008 as the flag for this instruction, be sure to
program the flag at the address immediately after the instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error
flags.
188
6-3. Description of High-level Instructions
Step Availability
Outline Converts BCD code that expresses 4-digit decimals to 16-bit binary data.
Program example
Boolean Non-ladder
Ladder Diagram
Address Instruction
10 ST X 0
Trigger 11 F 81 (BIN)
WX 0
X0 DT 0
10 F81 BIN , WX0 , DT 0
S D
S 4-digit BCD equivalent constant or 16-bit area for 4-digit BCD data (source)
D 16-bit area for storing 16-bit binary data (destination)
■ Operands
■ Explanation of example
• Converts word external input relay WX0 to 16-bit binary data when trigger X0 turns ON.
The converted data is stored in data register DT0.
X0: ON
Destination [D]: K15
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
DT0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1
Decimal K15
189
6-3. Description of High-level Instructions
Description
• Converts the BCD code that expresses 4-digit decimals specified by S to 16-bit binary data
when the trigger turns ON. The converted data is stored in D.
■ Flag condition
• Error flag (R9007): Turns ON and keeps the ON state,
- when the area specified using the index modifier exceeds the limit.
- when the data specified by S is not BCD data.
The error address is transferred to DT9017 and held. (See notes below.)
• Error flag (R9008): Turns ON for an instant,
- when the area specified using the index modifier exceeds the limit.
- when the data specified by S is not BCD data.
The error address is transferred to DT9018. (See notes below.)
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU
version 2.7 or later. (All FP1s with a suffix “B” on the part number have this function.)
• When using special internal relay R9008 as the flag for this instruction, be sure to
program the flag at the address immediately after the instruction.
• Refer to page 223, “8-3. Table of Special Internal Relays”, for details about error
flags.
190
6-4. Hints for Programming High-level Instructions
Decimal K1 9 9 3
BCD code 0 0 0 1 1 0 0 1 1 0 0 1 0 0 1 1
Notes:
• In decimal, we have the numbers 0 through 9, whereas in BCD, each of these numbers is represented by
a 4-bit binary number and cannot have numbers over 1001 [K9 (decimal)].
• Compared to standard binary, BCD data expresses a smaller range of numbers when the same number
of bits are used, as shown in the example.
Example:
Standard binary data BCD data
Single word K-32,768 to K32,767 K0 to K9,999
Double word K-2,147,483,648 to K2,147,483,647 K0 to K99,999,999
BCD
Decimal
(Binary Coded Decimal)
191
6-4. Hints for Programming High-level Instructions
■ Application Example:
• When data of a digitalDigital switches Decimal 1 9 9 3
switch is input to the BCD data 0 0 0 1 1 0 0 1 1 0 0 1 0 0 1 1
1
programmable controller, 9 9 3
use the F81 (BIN) or F83 High-level instruction
(DBIN) instruction. F81 (4-digit BCD data
16-bit data)
FP1 BCD BIN
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
Programmable
Binary data 0 0 0 0 0 1 1 1 1 1 0 0 1 0 0 1
Controller
BIN BCD
High-level instruction
F80 (16-bit data
• When data is output to the 4-digit BCD data)
7-segment digital indicator,
use the F80 (BCD) or F82 Decimal 1 9 9 3
(DBCD) instruction.7-segment indicator BCD data 0 0 0 1 1 0 0 1 1 0 0 1 0 0 1 1
192
6-4. Hints for Programming High-level Instructions
Example: When the data in the DT0 is transferred to a data register (DT) specified by the DT100 and the IX.
When IX = K10, X0
the data in DT0 is transferred to DT110. F0 MV, DT0, IXDT100
When IX = K20,
the data in DT0 is transferred to DT120. Original memory area
Example: The added result of K100 and the data in IY and IX is written to DT0.
When IY, IX = K10, X0
K110 is written to DT1 and DT0. F1 DMV, IXK100, DT0
When IY, IX = K1,000,000,
K1,000,100 is written to DT1 and DT0. Original constant
Notes:
• The index register cannot be modified with an index register.
• When the index register is used as an address modifier, be sure to check that the shifted address does
not exceed its last address. If the shifted address is beyond its last address, an operation error occurs
and the ERR. LED turns ON. For details about operation errors, refer to page 196, “3. Operation Errors”.
• When the index register is used as a constant modifier, the modified data may overflow or underflow.
193
6-4. Hints for Programming High-level Instructions
X1
( DF ) F0 MV, WX1, IXDT0 Each time X1 is turned ON, the data in WX1 is transferred
to the data register specified by the DT0 and IX.
The contents of IX and the destination register address are changed as shown in the following table.
Input times of X1 Contents of IX Destination data register
1st 0→1 DT0
2nd 1→2 DT1
3rd 2→3 DT2
• • •
• • •
• • •
Example 2: When outputting the data in the same order in which it is stored.
• The data is output to WY0 starting from DT0 in the same order in which it is stored.
X0
F0 MV, K0, IY When X0 is ON, K0 is written to IY.
X1
( DF ) F0 MV, IYDT0, WY0 When X1 is turned ON, the data is output to WY1
from the data register specified by DT0 and IY.
The contents of IY and the source data register address are changed as shown in the following table.
Input times of X1 Contents of IY Source data register address
1st 0→1 DT0
2nd 1→2 DT1
3rd 2→3 DT2
• • •
• • •
• • •
194
6-4. Hints for Programming High-level Instructions
FP1 Programmable
Controller
Digital switch
R0
( DF ) F81 BIN, WX1, IX Each time R0 turns ON, the settings of the digital switches
[WX0 (BCD data)] are converted to binary data and stored in
the timer preset (set) value area specified by SV0 and IX.
The timer instruction number input from WX1 (BCD) is
converted to binary and stored in IX.
F81 BIN, WX0, IXSV0 The timer preset (set) value input from WX0 (BCD) is converted
to binary and stored in the address specified by IX and SV0.
FP1 Programmable
Controller
WX1
R1
( DF ) F81 BIN, WX1, IX The timer instruction number input from WX1 (BCD) is
converted to binary and stored in IX.
F80 BCD, IXEV0, WY0 The timer elapsed (count) value at the address specified
by IX and EV0 is converted to BCD and output to WY0.
195
6-4. Hints for Programming High-level Instructions
3. Operation Errors
1) Operation Errors
• An operation error is one of the errors in the programmable controllers. These errors occur when an instcruction
[one of high-level/some basic (e.g., ST =) instructions] is executed abnormally.
• When an operation error occurs, operation of the programmable controller stops. At the same time, operation error
flags R9007 and R9008 turn ON, the error address is stored in DT9017 and DT9018, the error code [K45 (H2D)] is
set at DT9000, and the ERR. LED lights.
Note:
• FP1s with the error address storage function (the DT9017 and the DT9018 are available) have CPU
version 2.7 or later (all FP1s with the suffix “B” on the part number have this function).
Parameter error This error occurs when the control data is wrongly specified in the instruciton.
This error occurs when a block of registers specified as a source exceeds the last
Over area error
address of the operands specified as a destination in the high-level instructions.
196
6-4. Hints for Programming High-level Instructions
Example 2: Check if data not in BCD is stored in the data area when executing the BCD instruction.
Notes:
• FP1s with the error address storage function (the DT9017 and the DT9018 are available) have CPU
version 2.7 or later (all FP1s with the suffix “B” on the part number have this function). If your FP1’s CPU
version is eariler than 2.7, use the following procedure.
- First, confirm that K45 (H2D) is stored in special data register DT9000 by using the NPST-GR Software
or FP Programmer II. This means that an operation error occurred.
- Then, check the instructions, instruction by instruction, referring to the examples above. If it is not easy
to find the error, reexamine the program dividing it with ED instructions.
197
6-4. Hints for Programming High-level Instructions
Example:
• Overflow
When DT0 = K32767 and DT1 = K1,
X0 K-32768 is stored in DT100 and R9009 turns ON.
F22+, DT0, DT1, DT100
• Underflow
When DT0 = K-32768 and DT1 = K-1,
K32767 is stored in DT100 and R9009 turns ON.
198
6-4. Hints for Programming High-level Instructions
Example:
• Overflow
When DT0 = H9999 and DT1 = H1 (BCD),
X0 H0 (BCD) is stored in DT100 and R9009 turns ON.
F42 B+, DT0, DT1, DT100
• Underflow
When DT0 = H0 and DT1 = H-1,
H9999 is stored in DT100 and R9009 turns ON.
199
200
CHAPTER 7
TROUBLESHOOTING
• Self-diagnostic error
This type of error is detected when the following occurs:
- Hardware problem in CPU or ROM, and backup battery problem. (ROM, system, interrupt, or battery abnormality)
- An instruction is incorrectly executed in RUN mode (operation error).
• Total-check error
This type of error is detected by a total-check operation when the following occurs. The total-check operation is
performed when the mode selector is changed from PROG. to RUN.
- Program abnormalities such as syntax errors, duplicated use of output, and instruction combination errors.
(syntax error, duplicated output error, not paired error, mismatch error, program area error, operand error)
The total-check operation can also be performed by using the FP Programmer II (OP9 function) or the NPST-GR
Software [“1.TOTALLY CHECK A PROGRAM” (menu 1) or “V.TOTALLY CHECK” (menu 2)].
COM COM
100 240 V AC 0 1 2
F.G.
RUN
OUTPUT Y
RUN
(24V DC)
PROG. REMOTE
Operation Monitor LEDs ERR.
PROG.
0 1
ALARM
Mode Selector
202
7-1. Self-diagnostic Function
203
7-2. Troubleshooting
7-2. Troubleshooting
1. Points to be Checked When an Error Occurs
When an abnormality is detected, check the following points.
• If the ERR. LED is turned ON,
refer to page 205, ■ When an ERR. LED is ON.
• If the ALARM LED is turned ON,
refer to page 209, ■ When an ALARM LED is ON.
• If the all LEDs are turned OFF,
refer to page 210, ■ When all LEDs are OFF.
• If the output do not work,
refer to page 211, ■ Diagnosing output malfunction.
• If the communication error is detected by the NPST-GR Software,
refer to page 214, ■ When “PLC = COMM. ERR” is displayed on the NPST-GR screen.
• If the protect error is detected by the programming tool,
refer to page 215, ■ When “PROTECT ERROR” is displayed.
Note:
• Check the entire system including peripheral devices, referring the following:
- Observe what is happening.
- Check for error repetition.
- Check the status of indicators.
- Check that power is properly supplied to the programmable controller.
- Check whether the trouble detected is in the programmable controller or in other devices.
- Check whether the trouble detected is in the I/O section or other parts.
- Check whether there is problem with the program or not.
204
7-2. Troubleshooting
• Using FP Programmer II
(–) READ
Press the keys on the FP Programmer II ACLR
OP
9 ENT
▼
(Next page)
205
7-2. Troubleshooting
206
7-2. Troubleshooting
• Using FP Programmer II
Press the keys on the FP Programmer II ACLR
(–)
OP
1 1 0 ENT
READ
▼
(Next page)
207
7-2. Troubleshooting
Notes:
• The error cancellation function of the programming tool is available for FP1s
with CPU Ver. 2.7 or later. (All FP1s with the suffix “B” on the part number
have this function.)
• To perform this function, use “OP 112” of the FP Programmer II or [STATUS
DISPLAY] of NPST-GR Software Ver. 3.1. (This function is not available with
a conventional FP Programmer or with NPST-GR Software Ver. 3.0 or
earlier.)
208
7-2. Troubleshooting
209
7-2. Troubleshooting
• If the LEDs on the programmable controller turn ON at this moment, the capacity of
the power supply is not enough to control other devices as well.
• Prepare another power supply for other devices or increase the capacity of the power
supply.
210
7-2. Troubleshooting
(Next page)
211
7-2. Troubleshooting
• Using FP Programmer II
Press the keys on the FP Programmer II ACLR
(–)
1 0 ENT
AN
0 ENT 1
OP Y-WY
as shown on the right.
If the input monitored is OFF, there is probably an abnormality with the FP1’s input.
Please contact your dealer.
If the input monitored is ON, check the program again.
Also, check for the duplicated use of output or the program flow when a control
instruction such as MC or JP is used.
Refer to page 141, for details about the duplicated output error.
(Next page)
212
7-2. Troubleshooting
213
7-2. Troubleshooting
In this window, you can find the baud rate as shown below:
TRNS RATE (bps) [19200 / 9600 / 4800 / 2400 / 1200 / 600 / 300 ]
Select a baud rate (19200 or 9600), press the F1 key and select “SAVE DISK ? YES”
to register this change onto the disk.
• FP1 baud rate setting
Set the baud rate using the baud rate 19200bps 19200
Note:
• Even when both the NPST-GR and FP1 are set to 19200 bps, sometimes a computer
cannot communicate with the FP1 properly at 19200 bps. If this happens, change
both of their settings to 9,600 bps and try again.
In the [SET PLC PASSWORD] window, select ENAB and press the Enter key to set
the mode of the password setting to enable saving and loading of the program.
• Using FP Programmer II
Press the keys on the FP Programmer II ACLR
(–)
7 2 ENT 1
OP
as shown on the right.
(HELP)
1 2 3 4 WRT
CLR
7-3. Maintenance
Although programmable controllers have been designed in such a way to minimize maintenance and offer trouble-
free operation, several maintenance aspects should be taken into consideration. If preventive maintenance is
performed periodically, you will minimize the possibility of system malfunctions.
1. Preventive Maintenance
Item Check point Criteria for judgement
Power supply voltage • Check the power supply condition by AC type:
measuring it at the power supply 85 V AC to 264 V AC
terminals of the programmable controller. DC type:
20.4 V DC to 26.4 V DC
Environment • Ambient temperature Ambient temperature:
(e.g., temperature in the control box) 0˚C to 55˚C/32˚F to 131˚F
• Ambient humidity Ambient humidity:
(e.g., humidity in the control box) 30 % to 85 % RH
• Is dirt and dust present? (no condensation)
I/O power supply voltage • Measure the operating voltage Refer to page 43.
at the input/output terminals.
Mounting condition • Are all of the units firmly fixed in place?
• Are all the terminal screws securely
tightened?
• Are wiring and terminals being properly kept?
Backup battery • Is the backup battery being periodically Refer to the following.
replaced? (Part number: AFP1801)
• When the voltage of the backup battery lowers, special internal relays R9005 and R9006 turn ON and the ERR.
LED turns ON. Replace the backup battery within a month after this battery error is detected.
Caution:
• Never throw batteries into a fire. Do not dispose of them in trash that will be incinerated.
216
7-3. Maintenance
Procedure
1 Turn OFF the power of the programmable Terminal block
controller. Screw Screw
2 Remove the memory unit cover. BATTERY
RUN RUN
PROG. REMOTE
PROG.
ERR.
ALRAM
V0
max.
V1
PC
removed, as shown in the figure on the right. FP1-C24
24V DC
+
- COM 8
(+)
- 9
A
B
C
D
E
F
COM 0
(+)
- 1
2
3
4
5
6
7
Backup
battery
3. Removable Terminal
• Removable terminal construction is used for C24, C40, C56, and C72 series Control Units. This makes wiring of
the I/O terminal easier.
If the Control Units are replaced for some reason, there will be no need to disconnect and re-connect all the cables
to the terminals again by changing the terminal blocks.
217
218
CHAPTER 8
APPENDIX
Notes:
• Timer/Counter contacts are represented in decimal.
• Word addresses are represented in decimal.
• The addresses for relay bits (X, Y, and R) are represented by a combination of word addresses (decimal)
and hexadecimals. The least significant digit is hexadecimal and the rest of the digits are decimal.
221
8-2. Table of Memory Areas
Numbering
Item Name and Function Symbol
C14/C16 C24/C40 C56/C72
Data area Data register 256 1,660 6,144
The data register is a memory area for data processed words words words
DT (word) DT0 DT0 DT0
within the programmable controllers and each data to to to
register consists of 1 word (1 word = 16 bits). DT255 DT1659 DT6143
Special data register
The special data register is a memory area that has 70 words
special applications. Refer to page 226, “8-4. Table of DT (word) (DT9000 to DT9069)
Special Data Registers” for details about the special data
register.
Index Index register
modifier The index register can be used as an address and IX (word) One word each
constants modifier. Refer to page 193, “2. How to Use IY (word) (No numbering system)
Index Registers (IX, IY)”.
Constant Decimal constants K 16-bit constant (word):
K-32,768 to K32,767
32-bit constant (double word):
K-2,147,483,648 to
K2,147,483,647
Hexadecimal constants H 16-bit constant (word):
H0 to HFFFF
32-bit constant (double word):
H0 to HFFFFFFFF
222
8-3. Table of Special Internal Relays
Notes:
• Special data registers DT9017 and DT9018 are available only for FP1s with CPU version 2.7 or later.
(All FP1s with a suffix “B”on the part number have this function.)
• The F137 (STMR) is available for FP1 C56 and C72 series with CPU version 2.7 or later. (All FP1 C56
and C72 series with a suffix “B” on the part number have this function.)
223
8-3. Table of Special Internal Relays
Name Availability
Address Description
C14/ C24/ C56/
C16 C40 C72
R9012 Scan pulse relay Turns ON and OFF alternately at each scan.
R9013 Initial ON relay Turns ON only at the first scan in the operation.
Turns OFF from the second scan and maintains the
OFF state.
R9014 Initial OFF relay Turns OFF only at the first scan in the operation.
Turns ON from the second scan and maintains the
ON state.
R9015 Step ladder initial Turns ON for an instant only in the first scan of the
ON relay process the moment step ladder process is opened.
R9018 0.01 s clock pulse Repeats ON/OFF operations in 0.01 s cycles.
relay (ON : OFF = 0.005 s : 0.005 s) A
R9019 0.02 s clock pulse Repeats ON/OFF operations in 0.02 s cycles.
relay (ON : OFF = 0.01 s : 0.01 s)
R901A 0.1 s clock pulse Repeats ON/OFF operations in 0.1 s cycles.
relay (ON : OFF = 0.05 s : 0.05 s)
R901B 0.2 s clock pulse Repeats ON/OFF operations in 0.2 s. cycles
relay (ON : OFF = 0.1 s : 0.1 s)
R901C 1 s clock pulse Repeats ON/OFF operations in 1 s cycles.
relay (ON : OFF = 0.5 s : 0.5 s)
R901D 2 s clock pulse Repeats ON/OFF operations in 2 s cycles.
relay (ON : OFF = 1 s : 1 s)
R901E 1 min clock pulse Repeats ON/OFF operations in 1 min cycles.
relay (ON : OFF = 30 s : 30 s)
R9020 RUN mode flag ON while mode of the programmable controller is set
to RUN.
R9026 Message flag ON while the F149 (MSG) instruction is executed.
N/A A
R9027 Remote mode flag ON while mode selector switch is set to REMOTE.
A
R9029 Forced flag ON during forced ON/OFF operation.
R9032 RS232C port ON while the RS232C port is set to GENERAL (K2) A
selection flag in the system register 412. (See note.)
A: Available, N/A: Not available
Note:
• C24C, C40C, C56C, and C72C types only.
224
8-3. Table of Special Internal Relays
Availability
Address Name Description
C14/ C24/ C56/
C16 C40 C72
R9033 Print-out flag ON while a F147 (PR) instruction is executed.
N/A A
Refer to the description for the F147 (PR) instruction.
R9036 I/O Link error flag Turns ON when an I/O Link error occurs.
A
R9037 RS232C error flag Turns ON when an RS232C error occurs.
Note:
• C24C, C40C, C56C, and C72C types only.
225
8-4. Table of Special Data Registers
Note:
• * Special data registers DT9017 and DT9018 are available only for FP1s with CPU version 2.7 or later.
(All FP1s with a suffix “B” on the part number have this function.)
226
8-4. Table of Special Data Registers
Availability
Address Name Description
C14/ C24/ C56/
C16 C40 C72
DT9025 Interrupt enabled • The mask conditions of interrupts are stored in
status register DT9025. This register is available for monitoring
the interrupt condition.
• The mask conditions are judged by the status of
each bit:
Interrupt disabled: 0 Interrupt enabled: 1
Each bit position of DT9025 (bit positions 0 to 7)
falls on an interrupt instruction number.
• Refer to the description for the ICTL instruction.
DT9027 Time interrupt • The time interrupt interval is stored in DT9027.
interval register This register is available for monitoring the time
interrupt interval. N/A A
The interval is calculated using the formula:
Interval (ms) = data × 10 (ms)
• Refer to the description for the ICTL instruction.
DT9030 Message 0 register • The contents of the specified message are stored
in DT9030, DT9031, DT9032, DT9033, DT9034,
DT9031 Message 1 register
and DT9035 when an F149 (MSG) instruction is
DT9032 Message 2 register executed.
• Refer to the description for the F149 (MSG)
DT9033 Message 3 register
instruction.
DT9034 Message 4 register
DT9035 Message 5 register
DT9037 Work register 1 • The number of found data is stored in DT9037
(for F96 instruction) when an F96 (SRC) instruction is executed.
• Refer to the description for the F96 (SRC) instruction.
DT9038 Work register 2 The position the data found in the first place counting
(for F96 instruction) from the first 16-bit area is stored in DT9038 A
when an F96 (SRC) instruction is executed.
The address stored is counted from the starting
address of the register specified by S2.
• Refer to the description for the F96 (SRC) instruction.
DT9040 Manual dial-set Values of the potentiometers (V0, V1, V2, and V3) A
register (V0) are stored as:
DT9041 Manual dial-set - FP1 C14 and C16 series: V0 → DT9040
- FP1 C24 series and FP-M: V0 → DT9040 N/A A
register (V1)
V1 → DT9041
DT9042 Manual dial-set - FP1 C40, C56, and C72 series: V0 → DT9040 A
register (V2) V1 → DT9041 (C40
N/A A
V2 → DT9042 series
DT9043 Manual dial-set
register (V3) V3 → DT9043 only)
227
8-4. Table of Special Data Registers
Availability
Address Name Description
C14/ C24/ C56/
C16 C40 C72
DT9044 High-speed counter • Lower 16-bit of high-speed counter elapsed value
elapsed value area is stored in DT9044.
(lower 16-bit)
DT9045 High-speed counter • Higher 16-bit of high-speed counter elapsed value
elapsed value area is stored in DT9045.
(higher 16-bit)
DT9046 High-speed counter • Lower 16-bit of high-speed counter set value is
set value area stored in DT9046.
A
(lower 16-bit)
DT9047 High-speed counter • Higher 16-bit of high-speed counter set value is
set value area stored in DT9047.
(higher 16-bit)
DT9052 High-speed counter • A register dedicated to control high-speed counter
control register operation.
• Refer to the description for the F0 (MV)
(high-speed counter control) instruction.
DT9053 Clock/calendar • Hour and minute data of the clock/calendar are
monitor register stored in DT9053.
This register is available only for monitoring the data.
• The hour and minute data is stored in BCD as:
Higher 8 bits Lower 8 bits
Note:
• C24C, C40C, C56C, and C72C types only.
228
8-4. Table of Special Data Registers
Availability
Address Name Description
C14/ C24/ C56/
C16 C40 C72
DT9058 Clock/calendar • The clock/calendar is adjusted as follows when the
adjustment register least significant bit of DT9058 is set to “1”.
- When second data is H00 to H29 (BCD),
the second data is cut off to H00 (BCD).
- When second data is H30 to H59 (BCD),
the second data is cut off to H00 (BCD) and one
is added to the minute data.
• The revised clock/calendar settings, which are A
N/A
performed using F0 (MV) instructions, become (See note.)
effective when the most significant bit of DT9058
is set to “1”.
DT9059 Communication • An RS232C port communication error code is
error code register stored in the higher 8-bit area of DT9059.
• A programming tools port communication error
code is stored in the lower 8-bit area of DT9059.
DT9060 Process • These registers monitor the condition of step
number: ladder programs.
0 to 15 Execution of the step ladder program is monitored
as follows:
DT9061 Process
- Executing: 1
number:
- Not executing: 0
16 to 31
<EXAMPLE>
DT9062 Process
Each bit in the registers corresponds to a step
number:
ladder process as shown in the following example:
32 to 47
When bit position 0 of DT9061 is “1”, step
DT9063 Process ladder process 16 is executing.
Step number: Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
ladder 48 to 63
process Process number 31 • • 28 27 • • 24 23 • • 20 19 • • 16 A
DT9064 monitor Process DT9061 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
registers number:
64 to 79
DT9065 Process
number:
80 to 95
DT9066 Process
number:
96 to 111
DT9067 Process
number:
112 to 127
A: Available, N/A: Not available
Note:
• C24C, C40C, C56C, and C72C types only.
229
8-5. System Registers
230
8-5. System Registers
Set the mode of the NPST-GR Software to ONLINE by pressing Ctrl + Esc together.
Open the window you want to set by pressing one of F6 through F10 or Shift + F6 through F10 , and
change the value in the system register.
3 After setting, press F1 and type “ Y ” to save the revised settings to the programmable controller.
• Using FP Programmer II
1 Set the mode of the programmable controller to PROG. (–)
ACLR 5 0 ENT
2 Press the keys on the FP Programmer II, as shown on the right. OP
3 Input the system register address referring to the example and read the current settings.
EXAMPLE: READ
4 0 0
When reading system register 400, press the keys as shown on the right. ▼
(BIN)
You can also input new settings in hexadecimals by pressing K/H
before
(BIN) (BIN)
inputting the setting value. (HELP)
CLR K/H K/H
1 WRT
Note:
• The revised settings of the system register become effective when the mode of the programmable
controller is set from PROG. to RUN or when the power is turned from OFF to ON.
231
8-5. System Registers
Note:
• * This function is available for C24, C40, C56, and C72 series with CPU version 2.7 or later. (All C24,
C40, C56, and C72 series with a suffix “B” on the part number have this function.)
232
8-5. System Registers
Default
Address Name of system register Description
value
7 Hold area starting K10 Hold area starting address for internal relays is specified in
address settings for word-units.
internal relays • Setting range
C14/C16 series: K0 to K16
C24/C40/C56/C72 series: K0 to K63
• If the maximum value of the setting range is input, all of
the areas are used as non-hold areas.
EXAMPLE:
If system register 7 of C14 series is set to K5:
- Non-hold area: R0 to R4F
- Hold area: R50 to R15F
8 Hold area starting K0 Hold area starting address for data registers is specified.
address settings for • Setting range
data registers C14/C16 series: K0 to K256
C24/C40 series: K0 to K1660
C56/C72 series: K0 to K6144
• If the maximum value of the setting range is input, all of
the areas are used as non-hold areas.
EXAMPLE:
If the system register 8 of C14 series is set to K10:
- Non-hold area: DT0 to DT9
- Hold area: DT10 to DT255
14 Hold/non-hold setting for K1 Hold/non-hold setting for step ladder operation is specified.
step ladder K0: Hold
K1: Non-hold
20 Operation settings for K0 This register specifies the operation of the FP1 when a
duplicated use of output duplicated use of output is programmed.
K0: a duplicated use of output is regarded as a
total-check error.
K1: a duplicated use of output is not regarded as an
error.
26 Operation settings when K0 This register specifies the operation of the FP1 when an
an operation error occurs operation error is detected.
K0: FP1 stops operation if an operation error occurs.
K1: FP1 continues operation even if an operation error
occurs.
31 Waiting time settings for K2600 This register specifies the maximum waiting time between
multi-frame communication (6500 ms) delimiters when multi-frame communication is performed
with the computer link.
• Setting range
K4 to K32760: 10 ms to 81.9 s
• The formula to calculate the waiting time is:
set value × 2.5 ms
Note:
- When you set this register using NPST-GR Software, set
a time that can be divided by 2.5.
233
8-5. System Registers
Default
Address Name of system register Description
value
34 Constant value settings K0 This register specifies the constant scan time.
for scan time • Setting range
K0: the constant scan function is not used
K1 to K64: 2.5 ms to 160 ms
• The formula to calculate the constant scan time is:
set value × 2.5 ms
Note:
- When you set this register using NPST-GR Software, set
a time that can be divided by 2.5.
400* High-speed counter H0 H0 0
mode settings
Setting
Set Input contact of FP1s
value X0 X1 X2
H0 High-speed counter function not used.
H1 2-phase input
H2 2-phase input Reset input
H3 Up input
H4 Up input Reset input
H5 Down input
H6 Down input Reset input
H7 Up/Down input
(X0: Up input, X1: Down input)
H8 Up/Down input Reset input
(X0: Up input, X1: Down input)
Setting
H0: Internally not connected
H1: Internally connected
• Output pulse internal connection setting:
Available for transistor output type C56 and C72 series.
• If you are using is the transistor output type C56 or C72
series, the pulses from Y6 and Y7 can be directly input to
X0 and X1 without external wiring.
However, if X0 and X1 are used as inputs for pulses from
Y6 and Y7, they cannot be used as other input terminals.
Set Operation mode
value
H107 Pulse output Y7 → Up input X0
Pulse output Y6 → Down input X1
X2 is not used for high-speed counter
H108 Pulse output Y7 → Up input X0
Pulse output Y6 → Down input X1
X2 is used as reset input
Note:
• * When system registers 400, 402, 403, and 404 are set at the same time, their priorities are:
-1st 400 (high-speed counter mode settings)
-2nd 402 (pulse catch input function settings)
-3rd 403 (interrupt trigger settings)
-last 404 (input time filtering settings)
234
8-5. System Registers
Default
Address Name of system register Description
value
402 Pulse catch input function H0 This register specifies the pulse catch inputting function
settings availabilities for X0 to X7.
• Settings
Pulse of 500 µs or
0: standard input mode
more duration
1: pulse catch input mode
Input the specific value in an order so that the bit
corresponding to each input becomes “1” when you use the
pulse catch function.
System register 402
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
Corresponding
X7 X6 X5 X4 X3 X2 X1 X0
input
• Setting range
C14/C16 series (4 inputs X0 to X3): H0 to HF
C24/C40/C56/C72 series (8 inputs X0 to X7): H0 to HFF
EXAMPLE:
If the pulse catch function is used for inputs X3, X4, and
X5 of the C24 series, input H38 as follows:
System register 402
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
Corresponding
X7 X6 X5 X4 X3 X2 X1 X0
input
Data input 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0
H 3 8
403 Interrupt trigger settings H0 This register specifies inputs of the FP1 as interrupt triggers.
• Settings
0: standard input mode
1: interrupt input mode
Input the specific value in an order so that the bit
corresponding to each input becomes “1” when you use
interrupt programs.
System register 403
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
Corresponding
X7 X6 X5 X4 X3 X2 X1 X0
input
• Setting range
C14/C16 series: Not available
C24/C40/C56/C72 series
(8 inputs X0 to X7): H0 to HFF
EXAMPLE:
If the interrupt input function is used for inputs X1 and X2
of the C24 series, input H6 as follows:
System register 403
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
Corresponding
X7 X6 X5 X4 X3 X2 X1 X0
input
Data input 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0
H 6
235
8-5. System Registers
Default
Address Name of system register Description
value
404 Input time filtering setting H1111 Sets the input filtering time in 8-input units.
(X0 to X1F) (all 2 ms) • Settings
Set value Input filtering time
H0 1 ms
H1 2 ms
H2 4 ms
H3 8 ms
H4 16 ms
H5 32 ms
H6 64 ms
H7 128 ms
EXAMPLE:
If you specify the input filtering time for X0 to X7 as 1 ms,
407 Input time filtering setting H0011 for X8 to XF as 8 ms, for X10 to X17 as 2 ms, and for X18
(X60 to X6F) (all 2 ms) to X1F as 2 ms, input H1130 to system register 404.
System register 404
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
Data input 0 0 0 1 0 0 0 1 0 0 1 1 0 0 0 0
H 1 1 3 0
X18 to X1F X10 to X17 X8 to XF X0 to X7
(2 ms) (2 ms) (8 ms) (1 ms)
236
8-5. System Registers
Default
Address Name of system register Description
value
410 Station number setting for K1 This register specifies the station number when the
programming tool port computer link communication is performed through the
(RS422 port) programming tool port (RS422 port).
• Setting range
K1 to K32
411 Communication format & H0 Communication format settings and the settings for modem
modem* setting for communication compatibility are performed when the
programming tool port programming tool port (RS422 port) is used.
(RS422 port) • Setting
MSB LSB
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
Modem communication
0: Disabled
1: Enabled
412 Communication mode K0 Selects the functions for the RS232C serial port.
settings for RS232C • Settings
serial port K0: when the RS232C serial port is not used.
K1: when the RS232C serial port is used for computer
link communication.
K2: when the RS232C serial port is used for general
purpose communication.
Note:
• * The modem communication settings (system register 411 MSB) are available only for C24, C40, C56,
and C72 series FP1s with CPU Ver. 2.7 or later. (All C24, C40, C56, and C72 series FP1s with a suffix
“B” on the part number have this function.)
237
8-5. System Registers
Default
Address Name of system register Description
value
413 Communication format H3 This register specifies the communication settings for the
setting for RS232C serial RS232C serial port.
port • Settings
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
EXAMPLE:
If you want to set the RS232C serial port as follows,
input H2 to system register 413.
- Header: without STX
- Terminator: CR
- Stop bit: 1 bit
- Parity: odd
- Character bits: 7 bits
System register 413
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
Data input 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
H 0 2
Note:
• * The settings for the header and the terminator in system register 413 become effective when system
register 412 is set to K2 (GENERAL). If you select K1 (COMPTR LNK) or K0 (UNUSED), the settings
are discarded.
238
8-5. System Registers
Default
Address Name of system register Description
value
414 Baud rate settings for K1 This register specifies the baud rate of the RS232C serial port.
RS232C serial port • Settings
Set value Baud rate
K0 19,200 bps
K1 9,600 bps
K2 4,800 bps
K3 2,400 bps
K4 1,200 bps
K5 600 bps
K6 300 bps
415 Station number settings K1 This register specifies the station number when the RS232C
for RS232C serial port serial port is used for computer link communication.
(Refer to system registers 412 and 413 on pages 237 and
238 for details about the computer link communication
settings.)
• Setting range
K1 to K32
416 Modem communication H0 The setting for modem communication compatibility is
settings for RS232C performed when the RS232C serial port is used.
serial port* • Settings
H0: modem communication disabled
H8000: modem communication enabled
When modem communication is enabled, set system
registers 412, 413, 415. Refer to page 246, “8-8. FP1
Modem Communication”.
417 Starting address setting K0 This register specifies the starting address of data registers
for data received used as the buffer for data received from the RS232C serial
from RS232C serial port port when general-purpose communication is performed.
(Refer to system registers 412 and 413 on pages 237 and
238 for details about general-purpose communication
settings.)
• Setting range
C24C/C40C types: K0 to K1660
C56C/C72C types: K0 to K6144
EXAMPLE:
If K0 is input to system register 417, the number of bytes
received from the RS232C serial port is stored in DT0
and the data received are stored starting from DT1.
Note:
• * The system register 416 setting is available only for C24C, C40C, C56C, and C72C type FP1s with
CPU Ver. 2.7 or later. (All C24C, C40C, C56C, and C72C type FP1s with a suffix “B” on the part
number have this function.) To specify system register 416, NPST-GR Software version 3.1 or later is
required.
239
8-5. System Registers
Default
Address Name of system register Description
value
418 Buffer capacity setting K1660 This register specifies the number of words to be used as
for data received a buffer. (Refer to system register 417 on page 239 for
from RS232C serial port details about the starting address settings.)
• Setting range
C24C/C40C types: K0 to K1660
C56C/C72C types: K0 to K6144
EXAMPLE:
If K0 is input to system register 417 and K100 to system
register 418, the number of data received is stored to DT0
and the data received are stored starting from DT1 to DT99.
240
8-6. Versions of Programming Tools
■ System Requirements
241
8-6. Versions of Programming Tools
■ Functions
Notes:
• * Since NPST-GR Ver. 2.4 does not support FP10 or FP10S, some instructions, that are supported only
by FP10 or FP10S, are not included in the table.
• ** The availability of the functions depends on the type of programmable controller and the CPU version.
For details about functions available for the FP1 CPU version 2.7, refer to page 245, “8-7. FP1 CPU
Version 2.7”.
242
8-6. Versions of Programming Tools
Note:
•* The availability of instructions and functions depends on the type of the programmable controller and
the CPU version. For details about functions available for FP1 CPU version 2.7, refer to page 245, “8-
7. FP1 CPU Version 2.7”.
243
8-6. Versions of Programming Tools
Notes:
•* The availability of instructions and functions depends on the type of the programmable controller and
the CPU version. For details about functions available for FP1 CPU version 2.7, refer to page 245, “8-
7. FP1 CPU Version 2.7”.
• ** The OP 21 function is not used by the FP1.
• *** If the OP 74 function is executed, the program stored in the programmable controller will be deleted.
244
8-7. FP1 CPU Version 2.7
Note:
• The CPU version is printed on the identification label of each FP1. The identification label is located on
the back of the Control Unit.
Notes:
• * An FP Programmer II or NPST-GR Software version 3.1 or later is required to perform these functions.
• ** NPST-GR Software Ver. 3.0 or earlier cannot perform this function.
245
8-8. FP1 Modem Communication
Open the [SYSTEM REGISTER]-[SET RS422 PORT] window by pressing Shift + F9 together.
The following is displayed:
410 UNIT NO. [ 1 ] (1- 32)...............Set K1.
411 RS422 FORMAT DATA LENGTH [ 8BIT/ 7BIT ]..........Select 8-bit or 7-bit.
RS422 MODEM CONNECTION [ ENAB / DISA ]......Select ENAB.
After setting, save the status of system registers by pressing F1 .
246
8-8. FP1 Modem Communication
RS232C RS422
BATTERY
Ma RS4
RS
tsu 22/2 + -
0
COM
1
COM
2
COM
3
COM
4
COM
5
COM
6
COM
7
COM
23
24V DC
sh
it 32
F.G.
P
Modem Modem Ma a Ele C ADC
RUN
2C
RUN
PROG. REMOTE
PROG.
de c A ERR.
in tric PTE
RS232C
ALRAM
• T WE Ltd
• R XD(– R . PC
2
- COM 8
42
(–) 24V DC
+ (+)
- 9
A
B
C
D
E
F
COM 0
(+)
- 1
2
3
4
5
6
7
RS
RS232C cable
(Refer to cables 3 or 4, below.)
FP1 peripheral cable
Cable 1: RS232C cable between a personal computer Cable 2: RS232C cable between a personal computer
(IBM PC-AT) and a modem and a modem
Connected to Connected to Connected to Connected to
IBM PC-AT modem personal computer modem
(9 pins female) (25 pins male) (25 pins female) (25 pins male)
Pin No. Abbreviation Pin No. Abbreviation Pin No. Abbreviation Pin No. Abbreviation
1 CD (DCD) 1 FG 1 FG 1 FG
2 RD (RXD) 2 SD (TXD) 2 SD (TXD) 2 SD (TXD)
3 SD (TXD) 3 RD (RXD) 3 RD (RXD) 3 RD (RXD)
4 ER (DTR) 4 RS (RTS) 4 RS (RTS) 4 RS (RTS)
5 SG 5 CS (CTS) 5 CS (CTS) 5 CS (CTS)
6 DR (DSR) 6 DR (DSR) 6 DR (DSR) 6 DR (DSR)
7 RS (RTS) 7 SG 7 SG 7 SG
8 CS (CTS) 8 CD (DCD) 8 CD (DCD) 8 CD (DCD)
9 RI (CI) 20 ER (DTR) 20 ER (DTR) 20 ER (DTR)
22 RI (CI) 22 RI (CI)
Cable 3: RS232C cable between a modem and Cable 4: RS232C cable between a modem and
RS422/232C adapter RS422/232C adapter
Connected to Connected to Connected to Connected to
modem RS422/232C adapter modem RS422/232C adapter
(25 pins male) (25 pins male) (25 pins male) (25 pins male)
Pin No. Abbreviation Pin No. Abbreviation Pin No. Abbreviation Pin No. Abbreviation
1 FG 1 FG 1 FG 1 FG
2 SD (TXD) 2 SD (TXD) 2 SD (TXD) 2 SD (TXD)
3 RD (RXD) 3 RD (RXD) 3 RD (RXD) 3 RD (RXD)
4 RS (RTS) 4 RS (RTS) 4 RS (RTS) 4 RS (RTS)
5 CS (CTS) 5 CS (CTS) 5 CS (CTS) 5 CS (CTS)
6 DR (DSR) 6 DR (DSR) 6 DR (DSR) 6 DR (DSR)
7 SG 7 SG 7 SG 7 SG
8 CD (DCD) 8 CD (DCD) 8 CD (DCD) 8 CD (DCD)
20 ER (DTR) 20 ER (DTR) 20 ER (DTR) 20 ER (DTR)
22 RI (CI) 22 RI (CI)
• Confirm the RS422/232C adapter pin settings, • Confirm the RS422/232C adapter pin settings,
referring to the following: referring to the following:
When shipped from the factory, the RS422/232C Adapter pins are set as shown in Cable 3.
247
8-8. FP1 Modem Communication
Notes:
• The modem communication function is available for C24C, C40C, C56C, and C72C types with CPU Ver.
2.7 or later. (All C24C, C40C, C56C, and C72C type FP1s with a suffix “B” on the part number have this
function.)
• With NPST-GR Software version 3.0 or earlier, you cannot set system register 416 to the modem enable
mode.
• The baud rate is fixed at 2,400 bps and the setting of system register 414 is ignored.
• The same station number (UNIT NO.) cannot be assigned to FP1s in the same network.
• Since initialization of the modem is performed only by an FP1 whose UNIT NO. (system register 415) is
set to K1, pay attention to the following when station numbers (UNIT NOs.) are assigned to FP1s:
- when one computer communicates with one FP1, system register 415 should be set to K1.
- when one computer communicates with two or more FP1s, no two FP1s can have same station number
(UNIT NO.) and one of the FP1s in the network must be assigned as station number 1 (UNIT NO. 1).
• Modem initialization is performed only when the mode of the programmable controller set to RUN from
PROG., or when the power is turned ON in the RUN mode by an FP1 whose UNIT NO. (system register
415) is set to K1. Therefore, be sure to apply power to the modem, before the FP1 is turned ON.
• Once the modem is initialized successfully, it will not re-initialize if the mode of the programmable
controller is set to RUN from PROG. again.
• When one computer communicates with two or more programmable controllers, set the modem to the
mode without character echo.
• Be sure to set the computer and C-NET Adapters to the same communication format.
248
8-8. FP1 Modem Communication
Open the [SYSTEM REGISTER]-[COMPUTER LIN] window by pressing Shift + F7 together and the
following is displayed:
415 UNIT NO. [ 1 ]...........................Select K1 though K32.
Note:
• * Set the character length, parity check, and stop bit so that the total number of bits used to send a
character add up to 10 bits.
EXAMPLES
Start bit Character bits Parity bit Stop bits Total
1 + 7 + 1 + 1 = 10 bits
1 + 7 + 0 + 2 = 10 bits
1 + 8 + 0 + 1 = 10 bits
249
8-8. FP1 Modem Communication
RS232C
ALRAM
min. max.min. max.
V0 V1
PC
RS232C cable
(Refer to cable 3, below.)
Cable 1: RS232C cable between a personal computer Cable 2: RS232C cable between a personal computer
(IBM PC-AT) and a modem and a modem
Connected to Connected to Connected to Connected to
IBM PC-AT modem personal computer modem
(9 pins female) (25 pins male) (25 pins female) (25 pins male)
Pin No. Abbreviation Pin No. Abbreviation Pin No. Abbreviation Pin No. Abbreviation
1 CD (DCD) 1 FG 1 FG 1 FG
2 RD (RXD) 2 SD (TXD) 2 SD (TXD) 2 SD (TXD)
3 SD (TXD) 3 RD (RXD) 3 RD (RXD) 3 RD (RXD)
4 ER (DTR) 4 RS (RTS) 4 RS (RTS) 4 RS (RTS)
5 SG 5 CS (CTS) 5 CS (CTS) 5 CS (CTS)
6 DR (DSR) 6 DR (DSR) 6 DR (DSR) 6 DR (DSR)
7 RS (RTS) 7 SG 7 SG 7 SG
8 CS (CTS) 8 CD (DCD) 8 CD (DCD) 8 CD (DCD)
9 RI (CI) 20 ER (DTR) 20 ER (DTR) 20 ER (DTR)
22 RI (CI) 22 RI (CI)
250
8-8. FP1 Modem Communication
AB ABCD AB +
24V DC
-
0
COM
1
COM
2
COM
3
COM
4
COM
5
COM
6
COM
7
COM
AB +
24V DC
-
0
COM
1
COM
2
COM
3
COM
4
COM
5
COM
6
COM
7
COM
F.G. F.G.
Modem Modem
PC V0 V1 V0 V1
Cable 1: RS232C cable between a personal computer Cable 2: RS232C cable between a personal computer
(IBM PC-AT) and a modem and a modem
Connected to Connected to Connected to Connected to
IBM PC-AT modem personal computer modem
(9 pins female) (25 pins male) (25 pins female) (25 pins male)
Pin No. Abbreviation Pin No. Abbreviation Pin No. Abbreviation Pin No. Abbreviation
1 CD (DCD) 1 FG 1 FG 1 FG
2 RD (RXD) 2 SD (TXD) 2 SD (TXD) 2 SD (TXD)
3 SD (TXD) 3 RD (RXD) 3 RD (RXD) 3 RD (RXD)
4 ER (DTR) 4 RS (RTS) 4 RS (RTS) 4 RS (RTS)
5 SG 5 CS (CTS) 5 CS (CTS) 5 CS (CTS)
6 DR (DSR) 6 DR (DSR) 6 DR (DSR) 6 DR (DSR)
7 RS (RTS) 7 SG 7 SG 7 SG
8 CS (CTS) 8 CD (DCD) 8 CD (DCD) 8 CD (DCD)
9 RI (CI) 20 ER (DTR) 20 ER (DTR) 20 ER (DTR)
22 RI (CI) 22 RI (CI)
251
8-8. FP1 Modem Communication
4. NPST-GR Settings
When modem communication is performed between an FP1 and a personal computer installed with NPST-GR
Software, you need to set the NPST-GR Software as follows.
1 Select “NPST CONFIGURATION” from the “NPST MENU” and then select “1. NPST CONFIGURATION” to
open the <SCREEN 1> window in the OFFLINE mode.
OFFLINE NPST MENU BOOLEAN
EDIT A PROGRAM
COMMENTS
SEARCH [ NPST CONFIGURATION ]
MONITOR
RELAYS/REGISTERS 1.NPST CONFIGURATION
CHECK A PROGRAM
NPST CONFIGURATION
PLC CONFIGURATION
PROGRAM MANAGER
IC CARD PROGRAM MANAGER
EXIT NPST-GR
[ NPST CONFIGURATION ]
SCREEN MODE [ MONO / COLOR ]
PLC TYPE [ FP3/FP-C 16k ]([ENTER]:OPENS SELECTION WINDOW)
COM PORT [ 1 2 ]
TRANS RATE(bps) [ 19200 / 9600 / 4800 / 2400 / 1200 / 600 / 300 ]
DATA LENGTH [ 8 / 7 ] bit
LOGGED DRICVE/DIRECTORY
DRIVE [ A B C D E ]
DIRECTORY
[ ]
NOTE DISPLAY [ ON / OFF ]
PROGRAMMING MODE [LADDER/ B.LADDER / BOOLN ]
NOTE : SPECIFY TRANS RATE TO 9600 or 19200bps TO CONNECT WITH PLC DIRECTLY
[ NPST CONFIGURATION ]
COMMENT LENGTH
I/O COMMENT [ 12 ] char ( 12-40 ) ENTER EVEN VALUE
REMARK [ 20 ] char ( 12-40 ) ENTER EVEN VALUE
NUMBER OF COMMENT I/O CMT 14034 CURRENT REG: 0
REGISTER[ 1001 ] word (50 word or more)
REMARK [ 700 ] (22 byte/remark)
REST : 33543 byte
MENU TYPE [ MENU 1 / MENU 2 ]
252
8-8. FP1 Modem Communication
[ NPST CONFIGURATION ]
DATA LENGTH [ 8 / 7 ]
PARITY CHECK [ NO / EV / OD ] (NO:0bit, OD/EV:1bit)
STOP BIT [ 1 / 2 ]
MODEM COMMAND [ HAYES / CCITT V. 25 bis ]
PULSE/TONE [PULSE10pps / PULSE20pps / TONE ]
5 Log all the parameters in 2, 3 and 4, by pressing the F1 (SAVE) key. If you want to save the settings as NPST-
GR start-up conditions, select YES for the save disk ? option.
OFFLINE NPST CONFG <SAVE>
[ NPST CONFIGURATION ]
AUTO DIAL [ YES / NO ]
REGISTRATION NO. [ 1 ] ( 1 - 5 ) < >
DATA LENGTH [ 8 / 7 ]
6 Open the line between your computer and modem by pressing the F8 key or F10 key while holding down the shift
key. After the modem has successfully connected, change the NPST-GR Software mode to ONLINE by pressing
the Esc key while holding down the Ctrl key.
OFFLINE NPST CONFG <SET MODEM>
[ NPST CONFIGURATION ]
AUTO DIAL [ YES / NO ]
STOP BIT [ 1 / 2 ]
MODEM COMMAND [ HAYES / CCITT V. 25 bis ]
253
8-9. Terminology
8-9. Terminology
address: An alphanumeric value that identifies where data is stored.
American Wire Gauge (AWG): A standard system used for designating the size of electrical conductors.
Larger gauge numbers have smaller diameter.
AND: A Boolean operation that produces a logic “1” output if all inputs are “1”,
and a logic “0” if any input is “0”.
asynchronous: Not synchronous. Repeated operations that take place in patterns unrelated
over time.
backplane: A printed circuit board located in the back of a chassis, that contains a data
bus, power bus, and mating connectors for units. For FP3, FP5, FP10S and
FP10 programmable controllers, two types of backplanes are available:
Master Backplane
Expansion Backplane
backup: A device that is kept available to replace something that may fail during
operation.
battery backup: A battery or set of batteries that will provide power to the processor memory
only when system power is lost. C24, C40, C56, and C72 series FP1
programmable controllers have a battery backup system.
battery low: A condition that exists when the backup battery voltage drops low enough to
require battery replacement. For FP1 C24, C40, C56, and C72 series, the
ERR. LED turns ON.
254
8-9. Terminology
binary: In general, programmable controllers work with binary numbers in one form
or another to represent various codes or quantities. The binary number
system uses the number 2 as the base and the only allowable symbols are “0”
and “1”. There are no 2s, 3s, etc. Each digit of a binary code is called as
“bit”. “Bit” means “binary digit”. A group of 8 bits is called a “byte” and a
group of 16 bits (two bytes) is called a “word”.
Most significant bit Least significant bit
(MSB) (LSB)
Bit position 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Binary data 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 1
byte byte
word
The binary number “0000000000101011” is expressed in decimal as follows:
1 × 20 + 1 × 21 + 0 × 22 + 1 × 23 + 0 × 24 + 1 × 25 + ..... + 0 × 215
= 1 + 2 + 0 + 8 + 0 + 32 + ..... + 0
= 43
Binary Coded Decimal (BCD): One of the codes expressed in binary. BCD is a binary code in which each
decimal digit from 0 to 9 is represented by four binary digits (bits). The four
positions have a weighted value of 1, 2, 4, and 8, respectively, starting with
the least significant bit. A thumbwheel switch is specified as a BCD device,
and when connected to a programmable controller, each decimal digit
requires four inputs.
[EXAMPLE]
Digit position 3 2 1 0
Decimal 9 7 1 0
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
BCD 1 0 0 1 0 1 1 1 0 0 0 1 0 0 0 0
binary number system: A number system that uses two symbols, “0” and “1”. Each digit position has
a weighted value of 1, 2, 4, 8, 16, 32, 64, and so on begining with the least
significant (right-most) digit.
Bit position n • • • • • 3 2 1 0 Base = 2
Zn • • • • • Z3 Z2 Z1 Z0
Z0 × 20 = N0
Z1 × 21 = N1
Z2 × 22 = N2
Z3 × 23 = N3
•
•
•
Zn × 2n = Nn
The sum of N0 through Nn is the decimal equivalent of the number in base
“2”.
255
8-9. Terminology
Block Check Code (BCC): This code is used to detect errors in message transmissions. It is created by
Exclusive ORing all of the codes from the header though the last text
character, then translating the result (8-bit) data into two ASCII characters.
buffer: A group of registers used for temporary data storage. This is used for data
transmission and works effectively when there are transmission rate
differences between sending and receiving devices.
Central Processing Unit: The Central Processing Unit is usually referred to as the CPU.
The CPU controls system activities of the programmable controller.
complement: A logical operation that inverts a signal or bit. The complement of “1” is “0”,
and the complement of “0” is “1”.
computer link: One of the communication methods between a computer and programmable
controllers. In a computer link, the computer is the host, and it can control
programmable controllers using a protocol. For FP series programmable
controllers, communication between a computer and programmable
controllers is performed using MEWTOCOL-COM, a half-duplex
communication protocol. From the computer, you can read, write, or monitor
data stored in the memory of a programmable controller.
decimal number system: The decimal number system uses the number 10 as the base and the
allowable symbols are “0”, “1”, “2”, “3”, “4”, “5”, “6”, “7”, “8”, and “9”.
Each digit position has a weighted value of 1, 10, 100, 1000, and so on,
begining with the least significant (right-most) digit.
First-In-First-Out: The order that data is written in, and read from registers.
flag: A relay used to detect and remember certain events in the programmable
controller. In FP series programmable controllers, some of the special
internal relays are used as flags.
256
8-9. Terminology
full-duplex: A communication link in which data can be transmitted and received at the
same time.
hexadecimal: The hexadecimal number system uses 16 as the base. The allowable symbols
are numbers 0 through 9 and letters A through F. The letters are substituted
for numbers 10 to 15, respectively, to represent all 16 numbers in one digit.
The binary number system can easily be represented in hexadecimal with 4
bit groups. In this manner, a very large binary number can be represented by
a hexadecimal number with significantly fewer digits.
Most significant Least significant
digit digit
Digit position 3 2 1 0
Hexadecimal 9 F 1 A
Bit position 15 • • 12 11 • • 8 7 • • 4 3 • • 0
Binary 1 0 0 1 1 1 1 1 0 0 0 1 1 0 1 0
hold: The memory area whose contents will not be lost or modified if operating
power is lost or if the mode of the programmable controller is changed from
RUN to PROG.
interrupt: The act of performing a more urgent task by putting off the presently
executing task. FP series programmable controllers have three types of
interrupts, as follows:
- input initiated interrupt
- high-speed counter initiated interrupt
- time initiated interrupt
I/O update: Taking the input data at the input interface into the memory for program
execution and outputting the result of program execution to the output
interface.
leading edge differential: A programming technique to operate a bit only for one scan at the moment
its input condition turns ON from the OFF state.
Least Significant Bit (LSB): The bit which represents the smallest value in a byte, word, or double-word.
Least Significant Digit (LSD): The digit which represents the smallest value in a number.
Master Control Relay: A relay which controls any series of programs with its operation. If the
master control relay is de-energized, all of the contacts and devices
controlled by the master control relay are de-energized.
Most Significant Bit (MSB): The bit which represents the greatest value in a byte, word, or double-word.
Most Significant Digit (MSD): The digit which represents the greatest value in a number.
multidrop link: A communication link in which one host can communicate with two or more
stations.
noise: Random, unexpected electrical signals, that are caused by radio waves or by
electrical or magnetic fields.
non-hold: The memory area whose contents will be lost or modified if operating power
is lost or if the mode of the programmable controller is changed from RUN
to PROG.
normally-closed contact: A contact which is closed when the coil of the relay is not activated.
normally-open contact: A contact which is open when the coil of the relay is not activated.
parity check: A check method for the number of 1s in a character when data
communication is performed. The parity check is performed by calculating
the number of ones in a character.
potentiometer: A simple transducer which works based on resistance change. The FP1
manual-set registers work according to the potentiometers named “V0”,
“V1”, “V2”, or “V3”.
programmable controller: A control device which can be programmed to control process or machine
operations. A programmable controller is often referred to as a PLC when
abbreviated.
RAM: Random Access Memory. RAM provides an excellent means for easily
creating and altering a program. Many of the FP series programmable
controllers use RAM with battery backup for the application memory.
258
8-9. Terminology
register: A unit of memory for various types of data. A register is usually 16 bits wide.
RS232C: An EIA communication standard for data transmission media that is less than
15 m. Most common serial communication standard.
rung: Term for a ladder program. A rung refers to the programmed instructions that
drive one output.
scan: Time required to read all inputs, execute the program, and update local and
remote information.
self-diagnostic function: A function within the programmable controller which monitors operation and
indicates any fault that is detected.
serial communication: A communication style in which data is transmitted bit by bit serially.
system register: The registers used only for system settings of the programmable controller.
trailing edge differential: A programming technique to operate a bit only for one scan at the moment
its input condition turns OFF from the ON state.
two's complement: A number system used to express positive and negative numbers in binary. In
this system, the number becomes negative if the most significant bit of the
data is “1”. In FP series programmable controllers, numbers are expressed
using the two’s complement.
underflow: The act of going below the minimum limit in a register’s capacity.
watchdog timer: A timer that monitors processing time of the programmable controller. If the
program does not time out, the processor is assumed to be faulty.
word: A unit of bits which is usually executed at the same time. A word is
composed of 16 bits.
259
8-10. Product Types
260
8-10. Product Types
261
8-10. Product Types
2. Expansion Units
Operating Input
Series I/O point Output type Part number
voltage type
8 Source AFP13802
Input: 8 Sink/source AFP13803
Relay AFP13812
Source
8 Transistor (NPN open collector) AFP13842
Input: 4
Relay AFP13813
E8 Output: 4
Sink/source Transistor (NPN open collector) AFP13843
Transistor (PNP open collector) AFP13853
Relay AFP13810
8
Transistor (NPN open collector) AFP13840
Output: 8
Transistor (PNP open collector) AFP13850
Triac AFP13870
16
Sink/source AFP13103
Input: 16
Relay AFP13112
Source
16 Transistor (NPN open collector) AFP13142
E16 Input: 8
Relay AFP13113
Output: 8
Sink/source Transistor (NPN open collector) AFP13143
Transistor (PNP open collector) AFP13153
16 Relay AFP13110
Output: 16 Transistor (NPN open collector) AFP13140
Relay AFP13212
Source
Transistor (NPN open collector) AFP13242
24 V DC
Relay AFP13213
Sink/source Transistor (NPN open collector) AFP13243
24
Transistor (PNP open collector) AFP13253
E24 Input: 16
Output: 8 Relay AFP13216
Source
Transistor (NPN open collector) AFP13246
100 V to
240 V AC Relay AFP13217
Sink/source Transistor (NPN open collector) AFP13247
Transistor (PNP open collector) AFP13257
Relay AFP13412
Source
Transistor (NPN open collector) AFP13442
24 V DC
Relay AFP13413
Sink/source Transistor (NPN open collector) AFP13443
40
Transistor (PNP open collector) AFP13453
E40 Input: 24
Output: 16 Relay AFP13416
Source
Transistor (NPN open collector) AFP13446
100 V to
240 V AC Relay AFP13417
Sink/source Transistor (NPN open collector) AFP13447
Transistor (PNP open collector) AFP13457
262
8-10. Product Types
3. Intelligent Units
Type Specification Operating voltage Part number
• Analog input points: 4 channels/unit 24 V DC AFP1402
FP1 A/D
• Analog input range: 0 to 5 V, 0 to 10 V, 0 to 20 mA
Converter Unit
• Digital output range: K0 to K1000 100 V to 240 V AC AFP1406
• Analog input points: 2 channels/unit 24 V DC AFP1412
FP1 D/A
• Analog input range: 0 to 5 V, 0 to 10 V, 0 to 20 mA
Converter Unit
• Digital output range: K0 to K1000 100 V to 240 V AC AFP1416
4. Link Units
Type Specification Operating voltage Part number
FP1 Transmitter FP1 Transmitter Master Unit enables the FP1
Master Unit to exchange I/O information with slave stations
24 V DC AFP1752
at a remote site using a twisted pair cable. By
connecting with another FP1 Transmitter
Master Unit or with an FP3 Transmitter Master
Unit, you can exchange I/O information with
another FP1. Communication medium (RS485
100 V to 240 V AC AFP1756
port): Twisted pair cable up to 32 inputs and
32 outputs can be controlled per unit.
FP1 I/O Link Unit The FP1 I/O Link Unit is the interface unit for
exchanging I/O information between an 24 V DC AFP1732
FP3/FP5 and an FP1.
When the FP1 is connected to the FP3/FP5
Remote I/O System via the FP1 I/O Link Unit,
100 V to 240 V AC AFP1736
you can exchange I/O information,
using a 2-conductor cable.
C-NET Adapter RS485 ↔ RS422/RS232C signal converter.
24 V DC AFP8532
Used for communication between the
programmable controller and your computer.
Communication medium (RS485 port):
100 V to 240 V AC AFP8536
2-conductor cable or twisted pair cable
C-NET Adapter RS485 ↔ RS422 signal converter for FP1
S1 type Control Unit.
AFP15401
(for FP1 Control Used for communication between the C-NET
Unit only) Adapter and FP1 Control Unit.
5. Programming Tools
FP Programmer II
263
8-10. Product Types
0.5 m/1.640 ft. AFP15205 Cable needed for connection between the
FP1 Peripheral Cable Control Unit’s RS422 port and the RS422/232C
3 m/9.843 ft. AFP1523 Adapter’s RS422 port.
RS422/RS232C Adapter AFP8550 RS422 ↔ RS232C signal converter.
Used for connection between the computer’s
RS232C port and the FP1 Control Unit’s RS422
port when programming with NPST-GR.
RS232C Cable Needs to be Cable needed for connection between the
made to match RS422/232C Adapter’s RS232C port and your
your computer computer.
Refer to the wiring example below.
13 25
264
8-10. Product Types
FP ROM Writer
6. Maintenance Parts
Type Part number Description
For FP1 Control Unit
Lithium Battery AFP1801
(C24, C40, C56, and C72 series)
Used to short the COM terminals when loads
FP1 Short-Circuit Bar AFP1803 of the same voltage are connected to the FP1’s
outputs.
7 cm/0.230 ft. AFP15101
Cable needed for connection between the
FP1 Expansion Cable 30 cm/0.984 ft. AFP15103
Control Unit and Expansion Unit.
50 cm/1.640 ft. AFP15105
265
INDEX
INDEX
A C14 series 8, 22, 37, 47, 51
adjustable input time filtering function 3 C16 series 8, 22, 37, 47, 51
advanced control functions 2 to 4 C24 series 8, 23, 37, 47, 51
ambient temperature 29 C40 series 9, 23, 37, 48, 51
AND (AN) 103 C56 series 9, 23, 37, 48, 51
AND & AND not operation 139 C72 series 9, 23, 37, 48, 51
AND equal (AN =) (AND =) 129, 135 cautions for installation 41
AND equal not (AN < >) (AND < >) 129, 135 Central Processing Unit (CPU) 58
AND equal or larger channel 25
(AN > =) (AND > =) 129, 135 clock/calendar control function 4
AND equal or smaller combination of units 13
(AN < =) (AND < =) 129, 135
communication functions 5 to 7
AND larger (AN >) (AND >) 129, 135
compare instructions 92, 97
AND not (AN/) 103
COM PORT 77
AND smaller (AN <) (AND <) 129, 135
computer link function 5
AND stack (ANS) 105
configuring NPST-GR Software 76
auxiliary timer instructions 144, 155
connector for memory and master
memory unit 23
B constant 148
backup battery holder 23 constant length scan setting function 4
basic configuration of the control instructions 92, 96
programmable controller 58
control specifications 31
basic function instructions 92, 96
Control Unit 22, 23, 37
basic instructions 92
counter (CT) 119
basic sequence instructions 92, 95
current consumption 30
battery error (self-diagnostic error) 203
cyclic execution method 60
baud rate selector 22, 23
BCD arithmetic instructions 144, 151
D
BCD data 191
data comparison instructions 144, 152
BIN arithmetic instructions 144, 150
data conversion instructions 144, 153
Bit manipulation instructions 144, 155
data handled in the FP1
Boolean ladder mode 70 programmable controller 147
Boolean non-ladder mode 70 DATA LENGTH 77
built-in DC power output for inputs 30 data rotate instructions 144, 155
built-in DC power output data shift instructions 144, 154
terminals for input 22 to 24
data transfer instructions 144, 150
decimal constant (K constant) 148
C
diagnosing output malfunction 211
C-NET Adapter 11
differences between NPST-GR
C-NET Adapter S1 type 11, 28, 36, 38 Ver. 2.4 and 3.1 241
266
INDEX
master control relay (MC) 124 OR larger (OR >) (ORD >) 131, 137
memory for operand 58, 59 OR smaller (OR <) (ORD <) 131, 137
268
INDEX
relays and timer/counter contacts 63 table of special data registers 226, to 229
V
versions of programming tools 241
voltage range selection terminal 25
W
When an ALARM LED is ON 209
When all LEDs are OFF 210
When an ERR. LED is ON 205
When “PLC=COMM. ERR” is
displayed on the NPST-GR screen 214
When “PROTECT ERROR” is displayed 215
wiring 43 to 56
wiring power supply 43
word external input relay (WX) 148
word external output relay (WY) 148
word internal relay (WR) 148
Z
0.1s units timer (TMX) 115
0.01s units timer (TMR) 115
270
RECORD OF CHANGES
RECORD OF CHANGES
ACG No. Date Description of Changes
ACG-M0051-1 DEC.1993 First edition
ACG-M0051-2 FEB. 1995 2nd edition
The descriptions of MEWNET-TR are added.
271
272