Professional Documents
Culture Documents
Manual
Sequence CPU Instruction
Manual - Functions
(for F3SP21, F3SP25 and
F3SP35)
IM 34M6P12-02E
IM 34M6P12-02E
3rd Edition
Yokogawa Electric Corporation
Blank Page
i
Applicable Product:
● Range-free Multi-controller FA-M3
• Model Name: F3SP21, F3SP25, F3SP35, F3SP05-0P, F3SP08-0P
• Name: Sequence CPU Modules
The document number and document code for this manual are as follows:
Refer to the document number in all communications; also refer to the document number or
the document model code when purchasing copies of this manual.
• Document No.: IM34M6P12-02E
• Document Code: DOCIM
CAUTION
The functions of the F3SP28, F3SP38, F3SP53 and F3SP58 sequence CPU modules
are not explained in this manual. For information on these functions, refer to Sequence
CPU Instruction Manual - Functions (for F3SP28, F3SP38, F3SP53 and F3SP58)
(IM34M6P13-01E).
Media No. IM 34M6P12-02E (CD) 3rd Edition : Oct 2001 (AR) IM 34M6P12-02E 3rd Edition : Oct 1, 2001-00
All Rights Reserved Copyright © 1998, Yokogawa Electric Corporation
ii
Important
■ About This Manual
- This Manual should be passed on to the end user.
- Before using the controller, read this manual thoroughly to have a clear understanding
of the controller.
- This manual explains the functions of this product, but there is no guarantee that they
will suit the particular purpose of the user.
- Under absolutely no circumstances may the contents of this manual be transcribed or
copied, in part or in whole, without permission.
- The contents of this manual are subject to change without prior notice.
- Every effort has been made to ensure accuracy in the preparation of this manual.
However, should any errors or omissions come to the attention of the user, please
contact the nearest Yokogawa Electric representative or sales office.
Danger. This symbol on the product indicates that the operator must follow the instruc-
tions laid out in this instruction manual to avoid the risk of personnel injuries, fatalities,
or damage to the instrument. The manual describes what special care the operator
must exercise to prevent electrical shock or other dangers that may result in injury or
the loss of life.
Protective Ground Terminal. Before using the instrument, be sure to ground this
terminal.
Function Ground Terminal. Before using the instrument, be sure to ground this
terminal.
WARNING
Indicates a “Warning”.
Draws attention to information essential to prevent hardware damage, software
damage or system failure.
CAUTION
Indicates a “Caution”
Draws attention to information essential to the understanding of operation and func-
tions.
TIP
Indicates a “TIP”
Gives information that complements the present topic.
SEE ALSO
Indicates a “SEE ALSO” reference.
Identifies a source to which to refer.
- For the protection and safe use of the product and the system controlled by it, be sure
to follow the instructions and precautions on safety stated in this manual whenever
handling the product. Take special note that if you handle the product in a manner
other than prescribed in these instructions, the protection feature of the product may
be damaged or impaired. In such cases, Yokogawa cannot guarantee the quality,
performance, function and safety of the product.
- When installing protection and/or safety circuits such as lightning protection devices
and equipment for the product and control system as well as designing or installing
separate protection and/or safety circuits for fool-proof design and fail-safe design of
processes and lines using the product and the system controlled by it, the user should
implement it using devices and equipment, additional to this product.
- If component parts or consumable are to be replaced, be sure to use parts specified
by the company.
- This product is not designed or manufactured to be used in critical applications which
directly affect or threaten human lives and safety - such as nuclear power
equipment, devices using radioactivity, railway facilities, aviation equipment, air
navigation facilities, aviation facilities or medical equipment. If so used, it is the user’s
responsibility to include in the system additional equipment and devices that ensure
personnel safety.
- Do not attempt to modify the product.
This product complies with the WEEE Directive (2002/96/EC) marking requirement.
The following marking indicates that you must not discard this electrical/electronic product
in domestic household waste.
Product Category
With reference to the equipment types in the WEEE directive Annex 1, this product is
classified as a “Monitoring and Control instrumentation” product.
Do not dispose in domestic household waste.
When disposing products in the EU, contact your local Yokogawa Europe B. V. office.
Introduction
■ Overview of the Manual
This manual describes the sequencing functions of the F3SP21, F3SP25 and F3SP35
sequence CPU modules designed for use with the FA-M3 Range-free Multi-controller
and the F3SP05-0P and F3SP08-0P sequence CPU module designed for use with
small-scale controllers.
Target machine
Design
Start
Start
Assignment of I/Os, registers and relays Input: Verification of I/Os with LED lamps
Basic design I/O verification Output: Forced SET and RESET instructions
Chapter A4, "Devices," and
Chapter A6, "Functions"
Chapter A5, "Programs"
Program downloading
Coding Configuration of a ladder diagram
? End of flow?
F3SP21
F3SP25 : Refers to a topic that applies to the F3SP21, F3SP25 and F3SP35.
F3SP35
F3SP25
F3SP35 : Refers to a topic that applies to the F3SP25 and F3SP35.
In the absence of any symbol mark, it should be assumed that the topic applies to the
F3SP21, F3SP25 and F3SP35.
CAUTION
The functions of the F3SP28, F3SP38, F3SP53 and F3SP58 sequence CPU modules are
not explained in this manual. For information on these functions, refer to the instruction
manual (IM34M6P13-01E), Sequence CPU Instruction Manual - Functions (for F3SP28,
F3SP38, F3SP53 and F3SP58).
● For information on the instructions used with sequence CPUs, refer to:
• Sequence CPU Instruction Manual - Instructions (IM34M6P12-03E).
■ Trademarks
The trade names and company names referred to in this manual are either trademarks
or registered trademarks of their respective companies.
CONTENTS
Applicable Product ............................................................................................... i
Important ...............................................................................................................ii
Introduction ........................................................................................................ viii
Copyrights and Trademarks ...............................................................................xii
CONTENTS
A1. Specification and Basic Configuration ................................................ A1-1
A1.1 Overview ........................................................................................................ A1-1
A1.1.1 CPU Modules ................................................................................. A1-1
A1.2 Specification ................................................................................................. A1-3
A1.2.1 Table of Performance Data .............................................................. A1-3
A1.2.2 Device List ...................................................................................... A1-5
A1.2.3 Configuration .................................................................................. A1-7
A1.2.4 Components and Their Functions ................................................. A1-12
A1.2.5 External Dimensions ..................................................................... A1-13
A1.3 Basic configuration .................................................................................... A1-14
A1.3.1 Unit ............................................................................................... A1-14
A1.3.2 Slot Number ................................................................................. A1-15
A1.3.3 I/O Relay Number ......................................................................... A1-17
A2. System Configuration .......................................................................... A2-1
A2.1 Basic System Configuration ........................................................................ A2-1
A2.2 Multi-CPU System Configuration ................................................................. A2-1
A2.2.1 Multi-CPU System Configuration .................................................... A2-1
A2.2.2 Handling I/O Modules in Multi-CPU System .................................... A2-2
A2.3 Extended System Configuration .................................................................. A2-3
A2.3.1 Remote I/O System ........................................................................ A2-3
A2.3.2 Personal Computer Link System ..................................................... A2-3
A2.3.3 FA Link System ............................................................................... A2-4
A2.4 Programming Tools ....................................................................................... A2-5
A2.4.1 WideField ....................................................................................... A2-5
A2.4.2 Ladder Diagram Support Program M3 ............................................ A2-7
A3. Basic CPU Operations .......................................................................... A3-1
A3.1 Operation Modes of CPU .............................................................................. A3-1
A3.2 Operation at Power-on/off ............................................................................ A3-2
A3.2.1 Operation at Power-on .................................................................... A3-2
A3.2.2 Operation at Power-off .................................................................... A3-2
■ Overview
Models F3SP21-0N, F3SP25-2N and F3SP35-5N are CPU modules with built-in memory
for use with the FA-M3.
In addition to high-speed operation and large memory capacity, these modules have many
more features that help increase your development and maintenance efficiency.
■ Features
• Has a compact body, allowing for space saving within the cabinet.
• Support for high-speed processes and responses of the module's maximum instruc-
tion processing speed.
• Operates large-capacity programs and has large device sizes, enabling it to cope with
advanced, complex control applications.
• Uses index modification and structured ladder language for easy program design and
maintenance.
• Allows the device size and operating method to be flexibly configured according to
your application needs.
• Provides various functions, e.g., a forced SET/RESET function and scan operation
independent of program computation results, for easy program debugging and main-
tenance.
• Has a carefully designed self-diagnosis function, in addition to a highly reliable design.
• Provides macro instruction functions to allow you to create and register new instruc-
tions (F3SP25 and F3SP35 only).
• Has a sampling trace function capable of acquiring and displaying the states of a
maximum of 1024 scans' worth of devices (F3SP25 and F3SP35 only).
• Can connect to a host computer or a monitor without the need for a personal computer
link module, as the programming tool connection port supports a personal computer
link function.
• Has a logging function capable of recording errors encountered in a program, as well
as messages created and registered in advance.
• Allows you to mount F3SP21, F3SP25 or F3SP35 modules in slots 2 to 4 of the main
unit, for use as add-on CPU modules for sequence processes added to the main CPU
module (F3SP21, F3SP25 and F3SP35).
• Allows you to attach a ROM pack so that you can perform ROM-based operation and
store programs.
• Has a program protection function to ensure security.
A1.2 Specification
A1.2.1 Table of Performance Data
Table A1.1 Performance Data
Specifications
Item
F3SP21 F3SP25 F3SP35
Control method Repetitive computation based on stored programs
I/O computation method Refreshing by direct I/O instructions
Programming language Structured ladder language and mnemonic language
Number of I/O points 2048 max. 4096 max. 8192 max.,
including remote I/O points
Number of internal relays (I) 4096 8192 16384
Number of shared relays (E) 2048
Number of extended shared relays (E) 0 2048
Number of link relays (L) 2048 8192 (*)
Number of special relays (M) 2048 9984
Number of timers (T) 256 1024 2048
Number of counters (C) 256 1024
Number of data registers (D) 5120 8192
Number of shared registers (R) 1024
Number of extended shared registers (R) 0 3072
Number of file registers (B) 0 32768
Number of link registers (W) 2048 8192(*)
Number of special registers (Z) 256 512
Number of labels 64 256
Number of interruption processing routines 4
Instruction Basic instruction 0.18 to 0.36 µs/instruction 0.12 to 0.24 µs/instruction 0.09 to 0.18 µs/instruction
execution time Application instruction 0.36µs min./instruction 0.24 µs min./instruction 0.18 µs min./instruction
Number of HRD/HWR instructions 64, respectively
Sampling trace function Not available Available
* : Application instructions, which contain any of the link relays L20001 to L21024 and L70001 to L71024 or any of the link registers
W20001 to W21024 and W70001 to W71024, are excluded from high-speed processing.
TA010201.EPS
See Also
"Section A1.7" "High-speed Processing of Application Instructions," in Sequence CPU Instruction Manual
- Instructions (IM34M6P12-03E), for more information on the high-speed processing of application
instructions.
1-ms
timer
512 2048 3072
Timer 10-ms
timer T in in in Correlative with counters
total total total (C) in terms of
T0001 to T0001 to T0001 to configuration limitations
100-ms T512 T2048 T3072 (Note).
timer
Con- 100-ms
tinuous timer
timer
C0001 to C0001 to C0001 to Correlative with timers (T)
Latching in terms of configuration
Counter type C C512 C2048 C3072 limitations (Note).
Correlative with shared
Data Latching D001 to D0001 to D00001 to and extended shared (R)
register type D D5120
5120 D8192
8192 D8192
8192 registers in terms of
configuration limitations
File Latching 0 B00001 to 32768 B00001 to 32768
register B –
type B32768 B32768
5120 Sum of data registers 8192 Sum of data registers 8192 Sum of data registers
Data register D and shared/extended and shared/extended and shared/extended
shared registers: 5120 shared registers: 8192 shared registers: 8192
points max. points max. points max.
Maximum number of Maximum number of Maximum number of
shared/extended shared/extended shared/extended
Shared register R 0 shared registers: 1024 0 shared registers: 1024 0 shared registers: 1024
points points points
Extended
R – – 0 3072 points max. 0 3072 points max.
shared register
TA010206.EPS
A1.2.3 Configuration
■ Configuration Function
The sequence CPU contains the predefined defaults of device sizes and operation
methods.You can use these defaults to run programs. In some applications, however, they
may not suit your specific purpose of use. In such a case, flexibility allows for defaults to be
changed to meet your needs. Changing the defaults is called “configuration” and can be
performed through a programming tool*.
*FA-M3 Programming Tool WideField or Ladder Diagram Support Program M3
TA010209.EPS
Non-latching Non-latching
type type
Range of Timer (T) (except for Configurable in 1 point (except for Configurable in
Extended devices to be continuous basis; continuous 1 point basis;
device latched in timers) continuous from the timers) continuous from the
configuration case of All latched starting number All latched starting number
power failure Counter (C) (C0001 to (C0001 to
C1024) C1024)
All latched All latched
Data register
(D00001 toConfigurable in 2 (D00001 to Configurable in
(D)
D16384) points basis; D32768) 2 points basis;
Shared and continuous from the continuous from the
Non-latching starting number (Note) Non-latching starting number (Note)
extended shared
type type
registers (R)
TA010210.EPS
Note: The configuration range of each of the shared and extended shared relays and shared and extended
shared registers to be latched in case of power failure is assigned numbers continuous from the starting
number. However, if the number of shared relays is smaller than 2048, the last of them is followed by the
first extended shared relay numbered E2049. Likewise, if the number of shared registers is smaller than
1024, the last of them is followed by the first extended shared register numbered R1025.
Example)
In a case where there are 1024 shared relays and 2048 extended shared relays:
f you define the starting number as 513 and the number of units as 1024 for the range of devices to be
latched in case of power failure, then the devices included in the latching are:
E513 to E1024 shared relays; and
E2049 to E2560 extended shared relays.
Note: The configuration range of each link relay and register to be latched in case of power failure is assigned
numbers continuous from the starting number.
However, the following exceptions apply.
The number following L/W01024 is L/W10001.
The number following L/W11024 is L/W20001.
The number following L/W21024 is L/W30001.
The number following L/W31024 is L/W40001.
The number following L/W41024 is L/W50001.
The number following L/W51024 is L/W60001.
The number following L/W61024 is L/W70001.
(The rules noted above are true when the number of link relays or registers to be used is defined as 1024.
If the number is 2048, the number following L/W02048 is L/W10001.)
Example)
When there are 1024 link relays each for link 1, link 2 and link 3:
If you define the starting number as 10513 and the number of units as 1024 for the range of devices to be
latched in case of power failure, then the devices included in the latching are:
L10513 to L11024 link relays for link 1; and
L20001 to L20512 link relays for link 2.
Instruction
processing Stop Stop Stop
failure Selectable from Selectable from Selectable from
Stop and Stop and Stop and
Scan timeout Stop Continue options. Stop Continue options. Stop Continue options.
Operation
control
Subroutine Stop Stop Stop
error
CAUTION
Use the R1.08 or later version of Ladder Diagram Support Program M3 to edit the configu-
ration item "Subunit Transmission Line Failure." This item is effective for the Rev.8 or later
version of the F3SP21, F3SP25 and F3SP35.
SEE ALSO
Instruction manual (IM34M6H45-01E), Fiber-optic FA-bus Module, Fiber-optic FA-bus Type 2 Module, for
more information on the subunit transmission line failure.
Protection No No No
function Yes/No Yes/No Yes/No
CAUTION
Use the FA link H module and/or fiber-optic FA link H module only in combination with the
R1.08 or later version of Ladder Diagram Support Program M3 and with the Rev.8 or later
version of the F3SP21, F3SP25 and F3SP35.
CAUTION
For each of the F3LP02 FA link H modules and F3LP12 fiber-optic FA link H modules, you
can use a maximum of 2048 points of link relays and link registers. The configuration
limitations described below apply, however, if either of the following cases is true.
1. A case where a single CPU uses a combination of FA link H module and fiber-optic FA
link H modules, each configured with 2048 points of link relays/registers.
2. A case where a single CPU uses a combination of FA link H or fiber-optic FA link H
modules configured with 1024 points of link relays/registers set for high-speed
processing and FA link H or fiber-optic FA link H modules configured with 2048 points
of link relays/registers set for normal-speed processing.
Configuration limitations:
For FA link 1, be sure to set the number of both link relays and link registers to 2048. If you
set the number to 1024, the CPU does not operate correctly. If the number of both link
relays and link registers is set to 0 for FA link 1, be sure to set the number to 2048 for FA
link 2.
Examples of Unallowable Configuration:
Link 1: [1024]; Link 2: [2048]; Link 3: . . .
Link 1: [ 0]; Link 2: [1024]; Link 3: [2048]; . . .
Link 1: [1024]; Link 2: [ 0]; Link 3: [2048]; . . .
Examples of Allowable Configuration:
Link 1: [2048]; Link 2: . . .
Link 1: [1024]; Link 2: [1024]; Link 3: . . .
Link 1: [ 0]; Link 2: [1024]; Link 3: [1024]; . . .
Link 1: [1024]; Link 2: [ 0]; Link 3: [1024]; . . .
Link 1: [ 0]; Link 2: [2048]; Link 3: . . .
83.2 28.9
2
100
F010202.EPS
Name Description
Base module Five types are available depending on the number of modules to be mounted.
Power supply module One power supply module must always be mounted on the base module.
At least one CPU module is required. Several types are available depending
CPU module on the functionality.
Various types are available depending on the type of I/O and the number of
I/O module I/O points.
Special module Various types are available, including analog I/O and communication modules.
TA010301.EPS
■ Main Unit
Install the power supply module in the leftmost slot of the base module and the CPU mod-
ule in the slot on the immediate right of the power supply module. Then, install required I/O
and special modules in the remaining slots. A system with this configuration is called a
main unit.
CPU module
Power
supply
module
■ Subunit
A subunit is an I/O expansion unit. It is connected to the main unit through a fiber-optic FA-
bus or fiber-optic FA-bus type 2. A maximum of seven subunits can be connected to the
main unit and are identified by their unit numbers. With fiber-optic FA-bus type 2, you can
separate any single subunit into a maximum of eight stations. For more information on the
method of separation, see the instruction manual (IM34M6H45-01E), Fiber-optic FA-bus
Module, Fiber-optic FA-bus Type 2 Module.
Slot number
Power
supply
module
CPU module
Subunit 1
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 Slot numbers 101 to 116
Power
supply
module
Subunit 2
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 Slot numbers 201 to 216
Power
supply
module
Subunit 3
301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 Slot numbers 301 to 316
Power
supply
module
Subunit 4
401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 Slot numbers 401 to 416
Power
supply
module
Subunit 5
501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 Slot numbers 501 to 516
Power
supply
module
Subunit 6
601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 Slot numbers 601 to 616
Power
supply
module
Subunit 7
701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 Slot numbers 701 to 716
Power
supply
module
F010303.EPS
Install fiber-optic FA-bus type 2 modules in both the main unit and a subunit and connect
these modules with a fiber-optic cable. You can attach a maximum of seven subunits to the
main unit. Subunit numbers are determined by setting the rotary switch on the front panel
of each fiber-optic FA-bus type 2 module.
Example) The output relay number for terminal 6 of an F3YC08-0N module installed
in slot 005 is defined as follows.
Y005 06
Terminal number
Slot number
001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 Slot numbers
Power
supply
module
Y 08- OUT
F3YC08-0N
F010304.EPS
The input and output terminal numbers of a mixed-I/O module or multifunctional module
with 32 input and output points each are assigned as 1 to 32 and as 33 to 64, respectively.
Power
supply
module
F020101.EPS
Figure A2.1 Example of Basic System Configuration (when a 13-slot base module is used)
Power
supply
module
001 002 003 004 005 006 007 008 009 010 011 012 013 Slot numbers
Power
supply
module
001 002 003 004 005 006 007 008 009 010 011 012 013 Slot numbers
CAUTION
Be careful not to install any CPU module in the 5th or later slot and turn on the power.
Otherwise, the memory is cleared and reverts to the factory settings.
See Also
Subsection 1.1.2, “Limitation on Module Installation,” of Hardware Manual (IM34M6C11-01E) , for
information about limitations on the combination of a main CPU module and add-on CPU modules.
■ Input Modules
With input modules, you can read input data through multiple sequence CPUs. To do this,
configure the sequence CPUs so that they share the same input sampling interval for the
input module in question. Be careful, as the sampling interval that you can set varies
depending on the type of sequence CPU.
CAUTION
In multi-CPU system configuration, it is not possible for two or more sequence CPUs to
share the same output relay of any single output module or multifunctional module with
output relays Y. Configure the sequence CPU that does not use the output
module so that the output relays of the output module is set to “Unused” on 16 points basis.
Note again that a CPU module installed in the Nth (N = 1 to 4) slot is called the Nth CPU
(module) or CPU N.
CAUTION
Be careful not to install any sequence CPU module in the 5th or later slot and turn on the
power. Otherwise, the memory is cleared and reverts to the factory settings.
Subunit
Fiber-optic cable, 100-m long
F020302.EPS
Main unit
Power
supply
module
FA link
A2.4.1 WideField
The table below presents an overview of WideField.
Personal computer
Power
supply
module
FA020401.EPS
Sequence CPU module
Figure A2.7 Overview of WideField
■ Object Ladder
WideField defines "blocks" and "macros" that compose a ladder program as "objects," a
term commonly used in the computing world. The object-oriented ladder language as-
sumes responsibility for a given function and features a high degree of independence.
Consequently, the language offers higher productivity and better maintainability than a
structured programming language. It is therefore effective for the reuse of ladder programs.
■ Features
● Treatment as Components
Blocks can be reused as components. Separately define devices that are used within a
block only. WideField eliminates the chance of using the same device twice and makes it
easy to recombine blocks. You can also break down macro functions into components.
F020402.EPS
MCN1
MCN1.SWICH MCN2.SWICH MCN3.SWICH
MCN1.POMP MCN2.POMP MCN3.POMP MCN2 Naming of a
MCN1.OUT MCN3.OUT MCN3.OUT set of data
MCN3
F040403.EPS
TA020402.EPS
Ladder Diagram Support Program M3, supports both ladder diagram input and mnemonic
input for higher programming efficiency. In addition, its wide choice of debugging functions
reduces the amount of time required for tuning work.
Power
supply
module
■ Run Mode
The Run mode is a state in which the CPU is running a program, and is used for practical
system operation. You can monitor the operating status of the CPU or devices. However,
you can use none of the debug functions available from the programming tool. In this
mode, the RDY and RUN LED indicators come on.
■ Debug Mode
The Debug mode is used to debug and tune programs.
You can execute programs in the same way as with the Run mode. In the Debug mode,
you can use debugging functions, such as forced SET/RESET instructions and online
editing, through the programming tool. These functions affect the scan time, however.
Disable the functions when debugging and tuning are complete, and set the CPU to the
Run mode. In this mode, the RDY and RUN LED indicators turn on.
The Debug mode includes a pause state in which the CPU suspends program execution
during such debugging operation as scan operation. In this state, the RUN LED indicator
turns off and all external outputs being generated by the program are latched.
■ Stop Mode
The Stop mode is a state in which the CPU stops program execution.
In the Stop mode, you can remove programs and clear devices, in addition to using forced
SET/RESET instructions, online editing and debug operation. In this mode, the RUN LED
indicator turns off.
The external outputs being generated by the program are set to ON (hold) or OFF (reset),
according to the setting of the option "External Output in Case of Sequence Stop" of the
configuration item "DIO Setting." All of the external outputs are set to OFF if the option has
not been set up during configuration.
Table A3.1 summarizes combinations of the LED indicators as classified by the operation mode.
Operation
Mode Run Debug Stop
LED Indicator
RDY On On On
RUN On On or Off Off
ALM Off Off Off
ERR Off Off Off
TA030101.EPS
Power-on
Self-diagnosis
NO
No error?
YES The RDY LED
indicator turns on.
YES ROM writer
mode?
NO
NO Equipped with
ROM pack?
YES
Read programs from
ROM pack
Program diagnosis
NO
No error?
Wait for command
YES
■ Standard Mode
If a momentary power failure occurs, the CPU records the date and time in its error log file.
The CPU suspends processing until it recovers from the power failure. This causes a delay
in the scan time and timer update process.
When the power has recovered, the CPU restarts at the point where it suspended
processing.
A program can cope with a momentary power failure since its occurrence is reflected on a
special relay (M195).
AC voltage
Program
execution
Interruption
F030301.EPS
CAUTION
If your system has multi-CPU configuration and you have selected the immediate detection
mode, set all of the CPU modules to this mode.
F3SP21 F3SP25
Item
Default Configuration Range Default Configuration Range
I0001 to Configurable on 32 I0001 to Configurable on 32
Internal relay (I) I1024 points basis; I1024 points basis;
continuous from the continuous from the
Shared and extended Non-latching (*1)
starting number Non-latching starting number
shared relays (E) type type
Configurable on 16 Configurable on 16
Link relay (L) Non-latching points basis Non-latching points basis (*2)
type (Discontinuous) type (Discontinuous)
Non-latching Non-latching
type type
Timer (T) (except for (except for
continuous Configurable on 1 point continuous Configurable on 1 point
timers) basis; timers) basis;
continuous from the continuous from the
All latched starting number All latched starting number
Counter (C) (C0001 to (C0001 to
C256) C1024)
For notes *1 and *2, see those shown below Table A3.3. TA030301.EPS
F3SP35
Item
Default Configuration Range
I0001 to Configurable on 32
Internal relay (I) I1024 points basis;
continuous from the
Shared relays (E) Non-latching starting number (*1)
type
Configurable on 16
Link relay (L) Non-latching points basis (*2)
type (Discontinuous)
Non-latching
type
Timer (T) (except for
continuous Configurable on 1 point
timers) basis;
continuous from the
All latched starting number
Counter (C) (C0001 to
C1024)
All latched
Data register (D) (D0001 to Configurable on
D8192) 2 points basis;
continuous from the
starting number
Shared registers (R) Non-latching
type
Configurable on 16
Link register (W) Non-latching points basis (*2)
type (Discontinuous)
TA030302.EPS
*1: If the upper limit of the range of shared relays to be used is smaller than E2049, the last of their numbers is followed by
the first of the extended shared relay numbers. Likewise, if the upper limit of shared registers to be used is smaller than
R1025, the last of their numbers is followed by the first of the extended shared register numbers.
*2: The configuration ranges of link relays and registers to be latched in case of power failure are assigned numbers
continuous from their starting numbers. However, the following exceptions apply.
Peripheral processes
Common processing
Shared
refreshing
Input refreshing
Output Peripheral
refreshing processes Link refreshing
One scan are performed
Instruction within this Command processing
execution time range. • Tool service
• Link service
• CPU service
Synchronization processing
If synchronization processing begins,
any peripheral process is interrupted
temporarily and resumes at the next scan.
Control-related process
Peripheral process
F030401.EPS
CAUTION
If the ratio of the instruction execution time to the scan time is too small, you may fail to
secure a time long enough to execute the system of peripheral processes. Consequently,
the responses of link refreshing, shared refreshing, tool service, link service and CPU
service will become extremely slow. If this happens, 1) use a constant scan with an interval
somewhat longer than the normal scan time, or 2) define the peripheral processing time to
secure a time long enough to execute the system of peripheral processes.
External input
instrument
Input refreshing
Execution of computations
X00502 Y00602
I0100
Computation
CPU's data memory results
External output
Output-relay (Y) area
instrument
Output refreshing
F030601.EPS
X00502 Y00602
"ON"
"ON"
Response delay of
two scans
Output
Power
supply
module
Slot numbers
Add-on CPU modules
(sequence CPU or BASIC CPU modules) F030603.EPS
Monitor display
X00503
Upload Download
Power
supply
module
Peripheral processes
Common processing
Shared refreshing
Input refreshing
Output
refreshing Link refreshing
Synchronization processing
F030701.EPS
Personal computer
or monitor
Power
supply
module
Peripheral processes
Common processing
Shared refreshing
Input refreshing
Output
refreshing Link refreshing
Synchronization processing
F030801.EPS
Sequence CPU
Common process
Output refresh
Link refresh
Instruction
Shared refresh execution
1 scan
Tool service
Link service
CPU service
Input refresh
Synchronization process
Figure A3.10 shows an example of how shared refreshing is performed between the
sequence CPU and add-on CPU. This example assumes that shared relays and registers
are assigned to each CPU as shown below.
• Sequence CPU (CPU 1): Shared relays: E0001 to E0512
Shared registers:R0001 to R0256
• Add-on CPU (CPU 2): Shared relays: E0513 to E1024
Shared registers:R0257 to R0512
X00502
MOV $100 R0001
X00501 E0513 E0001
CPU 1 CPU 2
Shared - relay area Shared - relay area
CPU 1 CPU 2
Shared - register area Shared - register area
CPU 1 CPU 2
CPU 2 Shared refresh Shared refresh
CPU 1 CPU 2
Shared - relay area Shared - relay area
CPU 1 CPU 2
Shared - register area Shared - register area
E0001 X00504
MOV R0001 D0001
X00501 T001 E0513
X00503
CAUTION
Shared relays/registers and extended shared relays/registers are refreshed asynchro-
nously with scans performed by each CPU. The simultaneity of data is therefore not guar-
anteed.
Sequence CPU
Common process
Output refresh
Link refresh
Instruction
Shared refresh execution
1 scan
Tool service
Link service
CPU service
Input refresh
Synchronization process
FA link
Sequence CPU
Common process
Output refresh
Link refresh
Instruction
Shared refresh execution
1 scan
Tool service
Link service
CPU service
Input refresh
Synchronization process
Station 1
X00502
MOV $100 W0001
X00501 L0033 L0001
Station-1 Station-n
Link relay area Link relay area
Station-1 Station-n
Link register area Link register area
Station-1 Station-n
Link relay area Link relay area
Station-1 Station-n
Link register area Link register area
L0003 X00504
MOV W0001 D0001
X00501 L0001 L0033
X00503
CAUTION
It is not possible for multiple CPUs to use the same FA link module. Allow only one
sequence CPU to have access to the link relays/registers of each FA link module.
Interrupt Factor 1
Interrupt Factor 2
Interrupt Program 1
Executed when Interrupt Program 1
has been executed.
Interrupt Program 2
FA031001.EPS
CAUTION
• Do not register any interrupt program intended for a particular input module with two or
more CPU modules. This is because the modules may fail to execute input interrupt
processing.
• Do not use a TIMER instruction in any interrupt program, because the instruction may
not work correctly.
INTP X00301
IRET
FA031002.EPS
A4. Devices
This chapter describes the types and functions of devices available with the
sequence CPU modules.
X00502 Y00602
Input from
external X00501 X00502 Y00601
devices
X00503 X00504 Y00603
F040101.EPS
X00502 Y00602
F040102.EPS
1 2 3 4 1 2 3 4
Empty Empty Empty
Empty slot slot slot slot
CPU X32 X32 Y32 32 32 32 32
64 relays 32 32
relays relays relays relays relays relays
1 2 3 4 5 1 2 3 4 5
Empty Empty
Empty slot slot Empty slot slot
CPU X64 X32 Empty Y32 64 32 32 32 32
slot 64 relays 64 relays
relays relays relays relays relays
CAUTION
If a single input module (or advanced module with X input relays) is to be used
with two or more CPUs in multi-CPU system configuration, configure the CPUs so that they
share the same sampling interval for that input module. (Also reconfigure any CPU whose
input relays were set to the option “Unused,” so that their settings become equal to those of
other CPUs.)
CAUTION
If a single output module (or advanced module with X output relays) is to be used
by two or more CPUs in multi-CPU system configuration, configure the CPUs so that all of
them share the same output mode, either the “Hold” or “Reset” option. (Also reconfigure
any CPU whose output relays were set to the option “Unused,” so that their settings be-
come equal to those of remote CPUs.)
I0001 Y00602
F040201.EPS
With the configuration function, you can configure a range of internal relays to determine
whether or not they retain computation results when the power is turned off. If you set the
internal relays so as not to retain computation results, they are cleared to “OFF (0)” when
you:
• turn off the power once and turn it on again;
• change the operation mode to Run or Debug with the programming tool; or
• send a device clearance command from the programming tool.
If you set the internal relays so as to retain computation results, the latest data is retained
after power-off. In this case, the relays are cleared to “OFF (0)” when you send a device
clearance command from the programming tool.
CAUTION
If you write data to a device area other than that of the local CPU, information held by
shared and extended shared relays of remote CPUs are overwritten. This results in a
failure for these shared relays to reflect the correct results of computation.
By default, no shared relays are assigned as devices. When using shared relays, set their
range by means of the configuration function. Assign the same range for all of the CPUs.
Otherwise, the shared relays are not correctly refreshed.
Note that advanced instructions that contain any extended shared relays are excluded from
high-speed processing.
SEE ALSO
CPU I
I0001 E0010
CPU 2
X00503 E0010 Y00603
With the configuration function, you can configure a range of shared relays to determine
whether or not they retain computation results when the power is turned off. By default, all
shared relays are set so as not to retain computation results. If you set the shared relays to
this option, they are cleared to “OFF (0)” when you:
• turn off the power and turn it on again;
• change the operation mode to Run or Debug with the programming tool; or
• send a device clearance command from the programming tool.
If you set the shared relays so as to retain computation results, the latest results are re-
tained after power-off. In this case, the relays are cleared to “OFF (0)” when you send a
device clearance command from the programming tool.
CAUTION
When using shared or extended shared relays, follow the precautions given below.
X00501 X00504
BMOV D0001 E0001 D0100
X00501 X00504
BMOV D0001 E0001 10
Configurable on 32 Configurable in on 32
Extended points basis for relay points basis for relay
shared relay (E) – – – numbers from E2049
– numbers from E2049
to E4096 to E4096
TA040201.EPS
CAUTION
The starting number of extended shared relays is always E2049, even if the range of
shared relays to be used is less than 2048.
CAUTION
Apply the same allocation of shared/extended shared relays to all CPUs. If the allocation
differs from CPU to CPU, shared refreshing is not performed correctly. This results in a
failure for these relays to reflect the correct results of computation.
Shared relays
CPU 1 CPU 2 CPU 4
E0001
256 points 256 points 256 points CPU-1
shared relays
E0257
1024 points 1024 units 1024 points
CPU-2
shared relays
E1281
512 points 512 points 512 points CPU-3
shared relays
E1793
256 points 256 points 256 points CPU-4
shared relays
F040205.EPS
Figure A4.8 Example of Allocating Shared/Extended Shared Relays when Four Sequence CPUs
Are Installed
Station 1
I0001 L0010
Station n
F040301.EPS
In the case of the F3SP21 sequence CPU, you can install a maximum of two units of FA link
H modules and fiber-optic FA link H modules combined.
The relay number is coded as Lmnnnn, where:
m : FA link module number –1 (0 or 1)
nnnn : Link relay number
( 1 to 1024 when 1024 points are set to “High Speed” option)
( 1 to 2048 when 2048 points are set to “Normal Speed” option)
(Total number of link relays is 2048.)
In the case of the F3SP25 and F3SP35 sequence CPUs, you can install a maximum of
eight units of FA link H modules and fiber-optic FA link H modules combined.
The relay number is coded as Lmnnnn, where:
m : FA link module number –1 (0 to 7)
nnnn : Link relay number
( 1 to 1024 when 1024 points are set to “High Speed” option)
( 1 to 2048 when 2048 points are set to “Normal Speed” option)
(Total number of link relays is 8192.)
CAUTION
• Use the FA link H module and/or fiber-optic FA link H module only in combination with
the R1.08 or later version of Ladder Diagram Support Program M3 and with the Rev.8
or later version of the F3SP21, F3SP25 and F3SP35.
• For each of the F3LP02 FA link H module and F3LP12 fiber-optic FA link H module,
you can use a maximum of 2048 units of link relays and link registers. The configura-
tion limitations described below apply, however, if a single CPU uses a combination of
fiber-optic FA link H modules configured with 1024 units of link relays/registers set for
high-speed processing and fiber-optic FA link H modules configured with 2048 units of
link relays/registers set for normal-speed processing.
Configuration limitations:
For FA link 1, be sure to set the number of both link relays and link registers to 2048. If you
set the number to 1024, the CPU does not operate correctly. If the number of both link
relays and link registers is set to 0 for FA link 1, be sure to set the number to 2048 for FA
link 2.
Examples of Unallowable Configuration:
Link 1: [1024]; Link 2: [2048]; Link 3: . . .
Link 1: [ 0]; Link 2: [1024]; Link 3: [2048]; . . .
Link 1: [1024]; Link 2: [ 0]; Link 3: [2048]; . . .
TIP
FA link module (line) numbers are in one-to-one relationship with the FA link modules
installed. The FA link modules are numbered 1, 2, and so on, in ascending order of the
numbers assigned to the slots where the modules are installed. Their link relays are num-
bered L00001 to L01024 (or L02048), L10001 to L11024 (or L12048), and so on.
With the configuration function, you can newly correlate a slot number with each FA link
module number for a slot where the FA link module is installed. The following illustration
shows an example of this configuration, as well as the relationship between the slot num-
bers and link relay numbers.
As shown in the example, this configuration allows you to use the same numbering format,
such as L1nnnn, to encode link relay numbers at each station within a given FA link. In
addition, you need not change the link relay numbers when you install an additional FA link
module.
Even if there are no FA link modules installed, you can specify a maximum of two FA link
module numbers for the F3SP21 sequence CPU module and a maximum of eight FA link
module numbers for the F3SP25/F3SP35 sequence CPU modules.
Slot numbers
1 2 3 4 5 6 7 8 9
F F F F F F F F F F Up to 32 F F F
3 3 3 3 3 3 3 3 3 3 stations 3 3 3
L S L L L L L L L L S L L
P P P P P P P P P P P P P
0 2 0 0 0 0 0 0 0 0 2 0 0
2 5 2 2 2 2 2 2 2 2 5 2 2
I0003
F040302.EPS
Figure A4.10 Link Relay Numbers When FA Link Module Numbers Are Correlated with Slot
Numbers Using the Configuration Function (for F3SP25 and F3SP35)
CAUTION
When using link relays, follow the precautions given below.
I0003
Do not apply index modification.
F040303.EPS
X00501 X00504
BMOV L0001 D0001 D0100
X00501 X00504
BMOV L0001 D0001 10
Station 1
X00502
MOV $100 W0001
X00501 X00502 Y00601
Station n
X00503 X00504
MOV W0001 D0001
X00501 T001 Y00602
X00503
F040305.EPS
In the case of the F3SP21 sequence CPU, you can install a maximum of two units of FA link
H modules and fiber-optic FA link H modules combined.
The register number is coded as Wmnnnn, where:
m : FA link module number –1 (0 or 1)
nnnn : Link register number
( 1 to 1024 when 1024 points are set to “High Speed” option)
( 1 to 2048 when 2048 points are set to “Normal Speed” option)
(Total number of link registers is 2048.)
In the case of the F3SP25 and F3SP35 sequence CPUs, you can install a maximum of
eight units of FA link H modules and fiber-optic FA link H modules combined.
The register number is coded as Wmnnnn, where:
m : FA link module number –1 (0 to 7)
nnnn : Link register number
( 1 to 1024 when 1024 points are set to “High Speed” option)
( 1 to 2048 when 2048 points are set to “Normal Speed” option)
(Total number of link registers is 8192.)
CAUTION
• Use the FA link H module and/or fiber-optic FA link H module only in combination with
the R1.08 or later version of Ladder Diagram Support Program M3 and with the Rev.8
or later version of the F3SP21, F3SP25 and F3SP35.
• For each of the F3LP02 FA link H module and F3LP12 fiber-optic FA link H module,
you can use a maximum of 2048 units of link relays and link registers. The configura-
tion limitations described below apply, however, if a single CPU uses a combination of
FA link H or fiber-optic FA link H modules configured with 1024 units of link relays/
registers set for high-speed processing and FA link H or fiber-optic FA link H modules
configured with 2048 units of link relays/registers set for normal-speed processing.
Configuration limitations:
For FA link 1, be sure to set the number of both link relays and link registers to 2048. If you
set the number to 1024, the CPU does not operate correctly. If the number of both link
relays and link registers is set to 0 for FA link 1, be sure to set the number to 2048 for FA
link 2.
Examples of Unallowable Configuration:
Link 1: [1024]; Link 2: [2048]; Link 3: . . .
Link 1: [ 0]; Link 2: [1024]; Link 3: [2048]; . . .
Link 1: [1024]; Link 2: [ 0]; Link 3: [2048]; . . .
Slot number
1 2 3 4 5 6 7 8 9
F F F F F F F F F F Up to 32 F F F
3 3 3 3 3 3 3 3 3 3 stations 3 3 3
L S L L L L L L L L S L L
P P P P P P P P P P P P P
0 5 0 0 0 0 0 0 0 0 5 0 0
2 8 2 2 2 2 2 2 2 2 8 2 2
Up to 32 Up to 32 Up to 32 Up to 32
stations stations stations stations
X00503 X00504
MOV W10001 D0001
X00501 T001 Y00602
X00503
F040306.EPS
Figure A4.14 Link Register Numbers When FA Link Module Numbers Are Correlated with Slot
Numbers Using the Configuration Function (for F3SP25 and F3SP35)
CAUTION
When using link registers, follow the precautions given below.
V1
X00501
MOV W0001 B0001
X00501 T001 Y00602
I0003
X00501 X00504
BMOV W0001 D0001 D0100
X00501 X00504
BMOV W0001 D0001 10
F3SP21 F3SP25,F3SP35
Item Configuration Configuration
Default Range Default Range
2048 max. on 16 8192 max. on 16
Link relays for each 1024 points points basis for 1024 points points basis for
FA link module all links all links
for each link combined for each link combined
number(L)
Device size
2048 max. on 16 8192 max. on 16
Link registers for points basis for points basis for
1024 points 1024 points
each FA link module for each link all links for each link
all links
number(W) combined combined
TA040301.EPS
F3SP21 F3SP25,F3SP35
Item Configuration Configuration
Default Range Default Range
TA040302.EPS
Note: The start status relays assigned to blocks 1 to 32 are M0001 to M0032 and M2001 to M2032, where the
values of M0001 to M0032 are the same as those of M2001 to M2032. Similarly, start status relays M2033 to
M3024 are assigned to blocks 33 to 1024.
TA040401.EPS
CAUTION
Do not write to a special relay, including those not listed in the table above (e.g., M067 to
M128), unless otherwise stated. This is because they are used by the CPU module for the
system. If you inadvertently write to these relays, a failure, such as a system shutdown,
may result. (It is also prohibited to use a forced set/reset instruction in debug mode.)
Always ON ON
M033
OFF Used for an initialization process or as a
dummy contact in a program.
Always OFF ON
M034
OFF
CAUTION
The special relay M066 (Normal Subunit Transmission Line) is only available with the Rev.8
or later version of the F3SP21, F3SP25 and F3SP35.
SEE ALSO
Fiber-optic FA-bus Module and Fiber-optic FA-bus Type 2 Module (IM34M6H45-01E), for
more information on the M066 utility relay (Normal Subunit Transmission Line).
Run mode flag ON: Run mode Indicates the status of CPU operation.
M129
OFF: Other modes
Stop mode flag ON: Stop mode Indicates the status of CPU operation.
M131
OFF: Other modes
M134 Remote/local ON: Remote The Local option prohibits access through
(write-enabled) mode flag OFF: Local FA links.
M136 Power-on ON: Power-on operation Indicates whether the system has been
(Note) OFF: Other modes of put in run mode at power-on or by
operation flag
operation resetting.
M172 Time setting ON: Time being set
(write-enabled) Requests to set clock data
(Note) OFF:
Devices reserved
M177 to M187 for extended functions
Devices reserved
M189 to M192 for extended functions
SEE ALSO
Specifications of Z49 to Z54 special registers for clock data for more information on time
setting.
ON: Abnormal
Failure in subunit transmission line.
M210
transmission line OFF: Unspecified or normal The slot number of the fiber-optic FA-bus
transmission line module in question is stored in special
registers Z89 to Z96 if a failure occurs in
ON: Abnormal
the module.
Switchover in subunit transmission line.
M211
transmission line OFF: Unspecified or normal
transmission line
M225 CPU-1 sequence ON: Executes the program. Indicates whether a sequence program
(Note) program execution OFF: Stops the program. for a CPU in slot 1 is running or at a stop.
M226 CPU-2 sequence ON: Executes the program. Indicates whether a sequence program
(Note) program execution OFF: Stops the program. for a CPU in slot 2 is running or at a stop.
M227 CPU-3 sequence ON: Executes the program. Indicates whether a sequence program
(Note) program execution OFF: Stops the program. for a CPU in slot 3 is running or at a stop.
M228 CPU-4 sequence ON: Executes the program. Indicates whether a sequence program
(Note) program execution OFF: Stops the program. for a CPU in slot 4 is running or at a stop.
CAUTION
The self-diagnosis relays M210 (Failure in Subunit Transmission Line) and M211
(Switchover in Subunit Transmission Line) are only available with the Rev.8 or later version
of the F3SP21, F3SP25 and F3SP35.
SEE ALSO
Fiber-optic FA-bus Module and Fiber-optic FA-bus Type 2 Module (IM34M6H45-01E), for
more information on the M210 (Failure in Subunit Transmission Line) and M211
(Changeover in Subunit Transmission Line) self-diagnosis relays.
SEE ALSO
TA040405.EPS
Timer input
X00502
TIM T001 1s
X00501 I0001 Y00601
I0002
ON
Timer input
X00502 OFF
Setpoint
Current value
T001 0
ON 1s
Time-out relay
T001 OFF
F040501.EPS
The 100-ms continuous timer retains its current value and the state of its time-out relay
even when the timer input is set to OFF. When the timer input is set to ON again, the timer
starts counting from the value it retains. When the timer input is set to OFF after the con-
tinuous timer expires, the timer is reset, the current value returns to the setpoint, and the
time-out relay is set to OFF.
If you want to reset the continuous timer before it expires, write “0” to the time using a MOV
instruction (MOV 0 Tnnn) when the timer input is in an OFF state.
Timer input
X00502
TIM T241 10s
X00501 I0001 Y00601
I0002
ON
Timer input
X00502 OFF
Setpoint
Current value
T241
0
ON
Time-out relay
T241 OFF
(1) (2)
(1) + (2) =10 s
F040502.EPS
With the configuration function, you can configure a range of timers to determine whether
or not they retain their current values when the power is turned off. By default, all timers are
set so as not to retain their current values. If you set the timers to this option, their current
values are reset to their setpoints when you:
• turn off the power and turn it on again;
• change the operation mode to Run or Debug with the programming tool; or
• send a device clearance command from the programming tool.
If you set the timers so as to retain their current values, the latest results are retained after
power-off. In this case, the timers are reset to their setpoints when you send a device
clearance command from the programming tool.
1-ms timer – – –
Configurable on 1 Configurable on 1 Configurable on 1
10-ms timer T001 to T128 point basis; T0001 to T0512 point basis; T0001 to T1024 point basis;
16 max. for 1-ms T0513 to T0960 16 max. for 1-ms T1025 to T1920 16 max. for 1-ms
100-ms timer T129 to T240
timers; timers; timers;
100-ms Timer numbers Timer numbers Timer numbers
continuous T241 to T256 are continuous. T0961 to T1024 are continuous. T1921 to T2048 are continuous.
timer
TA040501.EPS
Setpoint: 1 to 32767
Count input
X00502
CNT C001 100
X00501
Reset input
C001 X00504 Y00602
ON
Reset input
X00502 OFF
ON
Count input
X00502 OFF
100
99
98
Current value
C001
0 1
ON
Count-up relay
C001 OFF
F040601.EPS
With the configuration function, you can configure a range of counters to determine
whether or not they retain their current values when the power is turned off. By default, all
counters are set so as to retain their current values. If you set the counters otherwise, their
current values are reset to their setpoints when you:
• turn off the power and turn it on again;
• change the operation mode to Run or Debug with the programming tool; or
• send a device clearance command from the programming tool.
If you set the counters so as to retain their current values, the latest results are retained
after power-off. In this case, the counters are reset to their setpoints when you send a
device clearance command from the programming tool.
TA040601.EPS
X00502
MOV $100 D0001
X00501 X00502 Y00601
$1234
X00503 X00504
MOV $5678 D0002
X00501 T001 Y00602
X00503
D0001 $100
D0002 $5678
D0003 $1234
F040701.EPS
With the configuration function, you can configure a range of data registers to determine
whether or not they retain computation results when the power is turned off. By default, all
data registers are set so as to retain the results. If you set the registers otherwise, they are
set to OFF (0) when you:
• turn off the power and turn it on again;
• change the operation mode to Run or Debug with the programming tool; or
• send a device clearance command from the programming tool.
If you set the registers so as to retain the computation results, the latest results are retained
after power-off. In this case, the registers are set to OFF (0) when you send a device
clearance command from the programming tool.
SEE ALSO
SEE ALSO
Shared and extended shared registers are used to exchange data (data sharing) between
CPUs in multi-CPU system configuration where sequence CPU and BASIC CPU modules
are installed. For more information on the functions of BASIC CPU modules, refer to:
• BASIC CPU Modules and YM-BASIC/FA Programming Language Instruction Manual
(IM34M6Q22-01E).
CPU 1
X00502
MOV $100 R0001
X00501 X00502 Y00601
CPU 2
X00503 X00504
MOV R0001 D0001
X00501 T001 Y00702
X00503
F040702.EPS
With the configuration function, you can configure a range of shared registers to determine
whether or not they retain computation results when the power is turned off. By default, all
shared registers are set so as not to retain the results. If you set the registers otherwise,
they are cleared when you:
• turn off the power and turn it on again;
• change the operation mode to Run or Debug with the programming tool; or
• send a device clearance command from the programming tool.
If you set the registers so as to retain the computation results, the latest results are retained
after power-off. In this case, the registers are cleared when you send a device clearance
command from the programming tool.
CAUTION
When using shared or extended shared registers, follow the precautions given below.
V1
X00501
MOV R0001 B0001
X00501 T001 Y00602
I0003
Make sure the register number
does not exceed the range set
for the local CPU.
F040703.EPS
X00501 X00504
BMOV R0001 D0001 D0100
X00501 X00504
BMOV R0001 D0001 10
CAUTION
Apply the same allocation of shared/extended shared registers to all CPUs. If the allocation
differs from CPU to CPU, shared refreshing is not performed correctly. This results in a
failure for these registers to reflect the correct results of computation.
R0641
256 points 256 points 256 points CPU-3 shared
registers
R0897
128 points 128 points 128 points CPU-4 shared
registers
R2561
384 points 384 points 384 points CPU-2 extended
shared registers
R2945
768 points 768 points 768 points CPU-3 extended
shared registers
R3713
384 points 384 points 384 points CPU-4 extended
shared registers
F040705.EPS
Figure A4.24 Example of Allocating Shared/Extended Shared Registers when Four Sequence
CPUs Are Installed
CAUTION
Even if the specified range includes less than 1024 shared registers, the extended shared
registers always begin with the number R1025.
Quantity = 1024
D1024
D4096
F040706.EPS
Scan time Latest scan time Stores the latest scan time in 100-µs
Z001 (Run mode) increments.
CAUTION
Do not write to a special register, including those not listed in the table above (e.g., Z010 to
Z016), unless otherwise stated. This is because they are used by the CPU module for the
system. If you inadvertently write to these registers, a failure, such as a system shutdown,
may result.
Self-diagnosis
Z017 Store the results of self-diagnosis.*
error number
Self-diagnosis error
Z018 Self-diagnosis error block number
Self-diagnosis error
Z019 instruction number
Instruction processing
Z024 error instruction number
* For information on error numbers (codes) to be saved in these special registers, see Table A8.2,"Details of Self-
diagnosis."
TA040802.EPS
CAUTION
• The special registers Z041 to Z048 (Module Recognition) are only available with the
Rev.8 or later version of the F3SP21, F3SP25 and F3SP35.
• The special registers Z089 to Z096 (Abnormal Slot in Subunit Transmission Line) are
only available with the Rev.8 or later version of the F3SP21, F3SP25 and F3SP35.
SEE ALSO
Fiber-optic FA-bus Module and Fiber-optic FA-bus Type 2 Module (IM34M6H45-01E), for
more information on the Z089 to Z096 special registers (Abnormal Slot in Subunit
Transmission Line).
Z057 1 ms increments
Constant scan time Value of constant scan time Example: 10 ms as 10
Note that no change is made to the clock data and the data reverts to its original values if
the values being set are incorrect.
SEE ALSO
Cyclictransmission FA link 2
Z071 time 1 ms increments
0: Under initialization
Z257 (Note) Local station status 1: Offline FA link 3
2: Online
Cyclictransmission FA link 3
Z258 (Note) time 1 ms increments
0: Under initialization
Z262 (Note) Local station status 1: Offline FA link 4
2: Online
Cyclictransmission FA link 4
Z263 (Note) time 1 ms increments
0: Under initialization
Z267 (Note) Local station status 1: Offline FA link 5
2: Online
Cyclictransmission FA link 5
Z268 (Note) time 1 ms increments
0: Under initialization
Z272 (Note) Local station status 1: Offline FA link 6
2: Online
Cyclictransmission FA link 6
Z273 (Note) time 1 ms increments
0: Under initialization
Z277 (Note) Local station status 1: Offline FA link 7
2: Online
Cyclictransmission FA link 7
Z278 (Note) time 1 ms increments
0: Under initialization
Z282 (Note) Local station status 1: Offline FA link 8
2: Online
Cyclictransmission FA link 8
Z283 (Note) time 1 ms increments
SEE ALSO
X00502
MOV 100 V01
I0001 X00502 Y00601
V01
X00503 X00504 V01 V02
MOV D0001 D0100
X00501 T001 Y00602
X00503
I(0001+100)=I0101 D(0001+100)=D0101
F040901.EPS
CAUTION
Examination of whether or not the device number specified using an index register exceeds
the given configuration range, is not performed on the system side of the sequence CPU
module. The configuration range may be exceeded depending on the content of the index
register used, resulting in the selection of the wrong device. Be careful when specifying the
device number.
File registers are used as extensions of data registers. Each file register has 16 bits.
Like data registers, you can read from or write to file registers in 16-bit or 32-bit increments
in programs using advanced instructions. Note that advanced instructions that contain any
file register are excluded from high-speed processing.
TIP
It is recommended that the values of file registers be transferred to data registers first and
then advanced instructions containing these data registers be executed, rather than directly
executing advanced instructions containing the file registers. This is because this strategy
makes the instruction execution time shorter.
X00502
MOV B00001 D0001
MOV 1 B00002
X00503 X00504
MOV B00003 D0003
B00002 = B00002 + 1
F041001.EPS
Unlike data registers, all file registers retain computation results when the power is turned
off. The file registers are cleared to OFF (0) when you write the data value OFF (0) to the
file registers from the programming tool. Unlike data registers, the file registers are not
cleared to OFF (0) even if you:
• send a device clearance command from the programming tool; or
• send a memory clearance command from the programming tool.
A5. Programs
This chapter describes languages used for programming, program types, and program
memory.
➤
➤
X00501
I0001 T001
I0001
TIM T010 10ms
I0001 T001 I0002
Function n
➤
➤
X00502
CNT C001 100
X00501 I0016
X00503
F050101.EPS
Instruction section
LD I0001
OUT Y00602
LD X00501
AND X00502
■ Blocks
A block refers to a set of circuits entered through the programming tool.
Parts of each program written on a function-by-function basis using the structured ladder
language or mnemonic language are managed as blocks. Since the program can be
maintained or reused block by block, program development becomes extremely easy. A
single block can contain steps up to 10 K.
CAUTION
It is not possible for the CPU to execute a separate block.
Block 1 Circuit
X00503
Block n
I0001 Y00602
F050201.EPS
Block 1 Circuit
Executable
X00501 X00502 Y00601 program
X00503 Block 1
Block 2
Block 16
I0001 Y00602
F050202.EPS
Block 1
Subroutine program
Subroutine program
Executable
program
Block n
Subroutine program
Interrupt program
F050203.EPS
Program
execution
Block 1
SUB This subroutine
program is
excluded from
the execution.
RET
Block n-1
Block n
F050204.EPS
Program Program
execution execution
CALL
Block 1
Block n-1
SUB
Block n
RET
Subroutine program
F050205.EPS
INTP X00301
F050206.EPS
Program Program
execution execution
Interrupt
Block 1 processing
Block n-1
INTP
Block n
IRET
Interrupt program
F050207.EPS
An area for storing configuration information, Contains the defaults discussed in subsection
Configuration table*
such as device sizes and operation methods. A1.2.3, "Configuration."
An area for storing configuration information Contains the defaults discussed in subsection
I/O configuration table* such as output settings, in case the se- A1.2.3, "Configuration."
quence stops and for I/O module settings.
An area for storing timer and counter set- Contains "0," indicating there are neither timers
Timer/counter settings table points. nor counters.
CAUTION
No programs can be executed when the program memory is in its initial condition.
Programs
F3SP21: 10 K (10240) steps
Program F3SP25: 20 K (20480) steps
F3SP35: 100 K (102400) steps
Range of devices
Configuration table Error-mode operation
Range of devices latched at power failure
RAM
Setting as to whether or not data is retained
I/O configuration table Setting of sampling interval
Setting of data codes
Jump Interrupt definition
Program control instructions table Subroutine
Label
FA050301.EPS
A6. Functions
This chapter describes functions which can be executed by the CPU module, such
as the execution of specified blocks and debugging operation.
Macro instruction function (*1) Allows the user to create and register new, customized A6-48
instructions.
Device edit function Edits device information saved in a file in the programming tool*. A6-47
* Refers to either the FA-M3 Programming Tool WideField or Ladder Diagram Support Program M3.
TA060103.EPS
■ Run Mode
The CPU begins running a program from its first instruction, similar to when the power is
turned on. When the power is turned on or the mode is changed from “stop” to “run,” the
CPU sets all devices to 0, except for latching-type devices, before executing the program.
When the CPU enters the Run mode, functions available only in the Debug or Stop mode
are disabled.
■ Debug Mode
The CPU begins running a program from its first instruction, similar to when the power is
turned on. When the power is turned on or the mode is changed from “Stop” to “Debug,” the
CPU sets all devices to 0, except for latching-type devices, before executing the program.
Be sure to disable the Debug mode and enter the Run mode when you have completed
your debugging and tuning tasks.
■ Stop Mode
The CPU stops running the program. External output data is retained (ON) or not retained
(OFF), depending on the settings of the configuration item “external output to be retained in
case of sequence stop.” This mode does not work when the CPU has already stopped
running the program.
This function deletes a program or programs and sets all devices to 0. Stop running the
program before using this function.
This function sets all latching-type devices, excluding file registers for the F3SP25 and
F3SP35, to 0. Stop running the program before using this function. To clear file registers,
use the device edit function of the device management function to set all the file register
data to 0 and write the data to the CPU module using the device write function.
See Also
For details on the device management function, see Section A6.12, “Device Management
Function.”
CAUTION
The following are precautions you should follow when using the functions described in this
chapter:
• Some functions are not available in all the operation modes.
Note that the following marks are used when explaining each function, in order to
indicate that the function in question is available in the cited mode or modes.
Unless otherwise specified, the function can be used in any operation mode.
• The scan time may become longer for some functions.
When you finish using such a function, be sure to disable it before running the system.
Be especially careful when using any function that works in Debug mode. When your
debugging and tuning tasks are complete, always disable the function and enter Run
mode.
• Be sure to use the ROM writer functions when you operate the ROM pack.
Note that the following mark is used when explaining each ROM writer function to
indicate that the function is available in ROM Writer mode.
ROM writer
The constant scan function executes a program repeatedly at specified time intervals. You
can set the constant scan time, i.e., constant-scan time interval, to a value from 1 ms to 190
ms in 0.1 ms increments. To do this, use the configuration function.
FA060201.EPS
Figure A6.1 Operation Based on 10-ms Constant Scan
If the scan time of a sequence program is longer than the preset constant scan time, any
constant scan is ignored and the program is executed with its own scan time.
END
END instruction END
0 step instruction 0 step 0 step instruction 0 step
CAUTION
• The constant scan time must be shorter than the scan time monitoring time.
• If the constant scan time is longer than the scan time monitoring time, a scan timeout
error occurs.
Select the method of executing a program — executing either all blocks or specified blocks,
using the configuration item “operation control.”
Block 1
I0001 Y00602
Block n
X00503 I0002 Y00603
I0003
FA060301.EPS
Block m
ACTIVE state X00503 Y00603
Block m
Function m Special relay
M00m=1
X00501 X00502 I0004
Block n
Function n INACTIVE state I0003
Special relay
M00n=0
FA60302.EPS
nth scan
Block n
Function n Block 2 Special relay
Function 2 M2002=1
FA060303.EPS
Figure A6.5 Operation when Specified Blocks Are Enabled
Use a SET instruction for devices whose output values need to be retained when blocks
are enabled.
I0003
X00301 I0005
SET Y00601
I0004
nth scan
Block m
Function m
Block m Special relay
Function m M200m=1
Block n
Function n
Block 1 INACT
Function 1 Next scan
(n+1)th scan
Block 2
Function 2
Block 1 Special relay
Block m Function 1 M2001=1
Function m
INACT: Block m
Block n
Function n Block n Special relay
Function n M200m=1
Next scan
(n+2)th scan
F060403.EPS
Use a SET instruction for devices whose output values need to be retained when blocks
are disabled.
I0003
X00301 I0005
SET Y00601
I0004
Block 1
Condition
ACT BLOCK 2
INACT BLOCK 1
Block 1
Block 2
Condition Condition
ACT BLOCK m
Block 2
INACT BLOCK 2
Condition
Block m
Block m
Condition
ACT BLOCK 1
INACT BLOCK m
FA060307.EPS
Figure A6.9 Example Where Each Block Controls the Block to Be Enabled Next Time
INACT BLOCK n
Condition
Block 1
ACT BLOCK 3
INACT BLOCK 2
Condition
ACT BLOCK 1
ACT BLOCK m
INACT BLOCK 3
Condition
ACT BLOCK n
Condition
INACT BLOCK 1
INACT BLOCK m
Block 2
Condition
Block 3
Condition
Block 1 Block m
Condition Condition
Block n
Condition
F060408.EPS
Figure A6.10 Example Where Blocks to Be Enabled Are Controlled by Creating Scheduler
Step operation executes only one instruction at a time as dictated by a specified instruction
number. After completing the instruction, the CPU goes into a Pause state and stops
program execution. Use the programming tool to specify the instruction number.
I0001 Y00602
CAUTION
The clock data of both timers and special relays are updated only when the CPU is execut-
ing a program during step operation. That is, the CPU does not update the data when in a
Pause state.
Step operation is ignored if such a control instruction as JMP or CALL is executed. The
CPU resumes normal instruction execution from the instruction to which control has been
passed.
If the CPU is paused due to a control instruction, you can re-input the jump destination of
the control instruction as the start-of-step-operation instruction number, in order to continue
step operation.
X00501
JMP LBL 1
Suspended state
X00503 I0002 Y00603
● Specified Condition
For this condition, use one of the bit devices with the codes X, Y, I, E, L, T, C and M.
I0001 Y00602
I0003
FA060405.EPS
Figure A6.14 Scan Operation
CAUTION
The clock data of both timers and special relays are updated only when the CPU is execut-
ing a program during scan operation. That is, the CPU does not update the data when in a
Pause state.
CAUTION
Scan operation is only possible with Ladder Diagram Support Program M3, and is not
possible with WideField.
I0003
End instruction number
Only this part of a
program is executed. FA060406.EPS
CAUTION
Partial operation is only possible with Ladder Diagram Support Program M3, and is not
possible with WideField.
A forced SET/RESET instruction forcibly sets a specified bit device to ON/OFF, regardless
of program execution. You can use the instruction for a maximum of 32 bit devices of all
types combined. Only bit devices are supported, i.e., X, Y, I, E, L, T and C devices.
If a forced SET instruction is applied to a timer (T) or a counter (C), the timer expires or the
counter terminates.
A forced SET/RESET instruction remains valid until you:
• disable the instruction,
• change the operation mode to RUN, or
• turn off the power.
• Changing Setpoints
You can change the setpoints of timers and counters.
X00502 Y00602
X00503
Computation
results
Data memory in the CPU
CAUTION
Program protection is designed to prevent unauthorized references only. It is not effective
against deleting programs or changing CPU operations due to erroneous operations or
writing.
X00503
FA060501.EPS
Figure A6.17 Executable Program Protection
When executable program protection is selected, the following functions are disabled:
Downloading, uploading, monitoring (circuit diagram monitoring, debugging
operation, changing timer/counter setpoints, online editing), ROM writer functions,
and printing.
Block n
Block m
X00501 X00502 Y00601
X00503
FA060502.EPS
Figure A6.18 Block Protection
Online editing allows you to make modifications or additions to your program when the
program is being executed. This function is useful when you make minor changes to the
program during a debugging or tuning task. Modifications/changes made to the program
are reflected in the CPU program memory at the end of a given scan.
I0003
FA060801.EPS
WARNING
Do not perform online editing when the machinery under control is being operated.
CAUTION
• You are not allowed to modify the following instructions and circuits:
• SUB and RET instructions and circuits that contain any of these instructions.
• INTP and IRET instructions and circuits that contain any of these instructions.
• Be careful about CPU operation when your modifications/additions span
multiple circuits.
Modifications/additions are reflected in a program for only one circuit at a time during
each scan. This means you will need as many scans as the number of circuits being
updated to include the modifications/additions. Be careful with CPU operation until all
these scans are completed.
• Online editing affects the scan time.
Modifications/additions are reflected in a program in synchronization with program
execution. This means online editing lengthens the scan time.
The message “CPU being optimized” appears at the end of online editing performed
using the programming tool. The time interval during which the message is on display
is equivalent to one scan and is far longer than a normal scan time. For this reason it
is not possible to refresh data for exchange with external devices or communicate with
them.
*1 Can support a maximum of 400 lines of circuit comments and sub-comments combined.
*2 Can store a maximum of 2048 units of timers and counters combined.
*3 Can store a maximum of 128 program blocks.
*4 Can store a maximum of 80 K steps for each program when there are 33 or more program blocks
TA060901.EPS
TIP
Data retention in case of power failure is effective for devices not included in the configura-
tion discussed above.
Making the initial setpoints of data registers resident in ROM is only possible when Model
RK30-0N, RK33-0N, RK50-0N or RK53-0N is selected as the ROM pack. Similarly, making
the current values of data registers or file registers resident in ROM is only possible when
Model RK50-0N or RK53-0N is selected as the ROM pack.
If you perform both types of configuration mentioned above for the same data register, only
the current value set by the latter type of configuration is effective.
TIP
Data retention in case of power failure is effective for devices not included in the configura-
tion discussed above.
FA060901.EPS
Figure A6.20 Contents of Program to Be Made Resident in ROM
CAUTION
Be sure to debug and tune programs before making them resident in ROM. You cannot edit
or carry out partial modification of a program or data that has already been made resident
in ROM. Programs made resident in ROM can only be executed on a CPU module whose
“model name” has been transferred to the ROM pack.
Define initial values to be made resident in data registers (D) or file registers (B) when
program execution begins. This definition is effective only when Model RK50-0N or RK53-
0N is selected as the ROM pack.
The data items to be defined are the type of device, starting number, and quantity of de-
vices. This configuration enables the current values of the specified devices to be stored in
the ROM pack when the “file-to-ROM transfer” or “CPU-to-ROM transfer (ROM copy)”
function of the ROM writer functions is executed. You can determine whether or not to
update the device data to be made resident in ROM with the current values when executing
the “file-to-ROM transfer” or “CPU-to-ROM transfer” function. When program execution
begins, the device data in the ROM pack is read and stored in the specified devices. This
configuration is useful when you want to set a large volume of initial data or save initial data
for a program. You can set initial values in a maximum of 5120 data registers for the
F3SP21 sequence CPU or a maximum of 32768 file registers for the F3SP25/F3SP35
sequence CPUs.
A6.8.3 ROM Writer Functions and ROM Writer Mode ROM writer
The sequence CPU or an add-on sequence CPU can be operated by reading a program
stored in the ROM pack. In the FA-M3, you can achieve the same functions as those of a
commercially available ROM writer, such as writing a program to the ROM pack, by using
the sequence CPU or add-on sequence CPU. These functions are called the ROM writer
functions and include file-to-ROM transfer, CPU-to-ROM transfer, and file/ROM cross-
check. The ROM writer functions work in a dedicated mode different from the normal
operation mode of the sequence CPU. This dedicated mode is called the ROM Writer
mode. The ROM Writer mode is maintained even when you turn on or off the power. At
power-on, no programs are read from the ROM pack.
If you want to write any single program to multiple ROM packs, simply transfer the program
to the program memory only once. Then, change the ROM packs one by one.
CAUTION
In ROM Writer mode, a program in the program memory of the sequence CPU is retained.
It is also possible to write a debugged and/or tuned program directly to the ROM pack
without retaining it in the program memory.
Sequence CPU
Personal
computer Program memory
ROM pack
Transfer
Write
Read
CAUTION
• Change the CPU to ROM Writer mode before using the ROM writer functions. You
cannot use the ROM writer functions in other modes.
• Be sure to disable ROM Writer mode when you finish using the ROM writer functions.
The CPU does not execute any sequencing functions if ROM Writer mode remains
active.
● Acquisition
This mode acquires the exclusive access right.
● Release
This mode releases the exclusive access right.
● Forced Release
This mode permits you to forcibly release the exclusive access right from the CPU holding
the right through access from a tool or module having no access right.
Personal
computer
Once the exclusive access right is acquired, the system prohibits the following acts from
being performed by a tool or module having no access right:
CPU operation, CPU stop, debugging, downloading, debugging operation, use of
debugging functions, writing to devices, and change in timer/counter setpoints.
The sampling trace function sequentially stores the states and contents of devices selected
for sampling, in the sampling trace memory of the sequence CPU.
The sampling trace function has three sampling modes:
• TRC-instruction sampling
• End-of-scan sampling
• Fixed-interval sampling
As the condition for triggering sampling, you can define the rising or falling edge of a
selected relay signal or a match with the data of a selected word device. The CPU watches
the trigger condition when processing the END instruction of a program. If the trigger
condition becomes true, the CPU is allowed to perform 1024 rounds of sampling from a
point of time as much as the number of delays before (negative delay) or after (positive
delay) the condition becomes true.
Configure the sampling trace function using the programming tool. The results of sampling
trace operation can be viewed on the programming tool in timing-chart format, as shown on
the next page.
You can perform the sampling trace function in either the Run or Debug mode. The sam-
pling trace function, if performed once again, deletes previous data. If you define sampling
trace function settings using the configuration function, the CPU begins sampling at the
moment of power-on. If you define sampling trace function settings using the configuration
function and then permanently store them in ROM, the CPU reverts to the ROM data
during a power-on-and-off sequence even if you redefine the settings later using the pro-
gramming tool.
KEYIN:
Enlarge Time-series
Reduce chart Address Menu
FA061101.EPS
Start of sampling trace operation : Instructed from the programming tool
Trigger condition : Set from the programming tool
¥ Rising/falling edge of signal at selected relay
¥ Match between data values
Sampling mode :TRC-instruction sampling
End-of-scan sampling (every 1 to 1000 scans)
Fixed-interval sampling (10 to 2000 ms)
Sampling frequency : 1024 cycles
Number of delays : Selection of a positive or negative number from -1023 to +1023
Devices to be sampled :16 units of X, Y, I, E, L, T, C or M relays
4 or 16 units of D, B, R, W, V, Z, T or C word devices or X, Y, I, E, L, T, C
or M relays, beginning with the one with the specified first address
See Also
Ladder Diagram Support Program M3 Instruction Manual (IM34M6Q13-01E), or FA-M3
Programming Tool WideField Instruction Manual (IM34M6Q14-01E) for details on how to
define sampling trace function settings.
● TRC-instruction Sampling
By using a TRC instruction in a program, you can sample the states and data of specified
contacts at any point of a scan.
The CPU collects data when the input-condition relay of the TRC instruction is set to ON.
The CPU stores results of up to four cycles of sampling if it has executed multiple TRC
instructions during the same scan. The subsequent TRC instructions are ignored. It is at
the end of a given scan when the CPU actually stores the results.
● Fixed-interval Sampling
The CPU samples the states and data of specified contacts at fixed time intervals. It
collects and stores the data when the specified period expires and before the next scan
begins.
Sampling Sampling
FA061104.EPS
Figure A6.26 Fixed-interval Sampling
CAUTION
The sampling trace function monitors the trigger condition when an END instruction in a
program is being processed. The function therefore cannot judge the condition to be true if
it becomes true once during program execution but becomes false again by the time the
processing of the END instruction begins.
Start of a trace
Start of a trace
The programming tool connector on the front of the CPU module functions in the same way
as the RS-232-C communication port on the F3LC11-1N personal computer link module.
This means you can connect a host computer, such as a personal computer or FA com-
puter, or a monitor to the CPU module to perform one-to-one communication as with the
personal computer link module. This feature is called the personal computer link function.
You can monitor and configure devices and start, stop, load and save programs by entering
commands from the host computer.
Personal computer
on which "Ladder
Personal computer Diagram Support
or monitor with a Program M3" runs
PC interface
X00503
Personal
computer
Monitor
For conformance to CE Marking, fit a ferrite core to the cable for the programming tools for
equipment using the personal computer link functions.
■ Function Differences
The transmission rate and data format of the CPU’s personal computer link function differ
from those of the personal computer link module. For more information, see subsection
A6.11.4, “Setting Up the Personal Computer Link Function.”
Table A6.7 Transmission Rate and Data Format of CPU’s Personal Computer Link Function
Transmission Rate (bps) Data Length Parity No. of Stop Bits
9600 8 bits Even 1 bit
9600 8 bits None 1 bit
19200 8 bits Even 1 bit
TA061201.EPS
■ Protocol Differences
This paragraph briefly describes the communication protocol of the personal computer link
function.
STX
Station No.
CPU No.
OK
Command response
Checksum
ETX
CR
FA061203.EPS
In personal computer link communication, the maximum size of text that can be transferred
at the same time is 512 bytes.
Start bit : 1
Data length: Fixed at 8 bits
Data format
Parity bit : None/Even ✓
Stop bit : Fixed at 1 bit
Parity check
Error checking
Checksum : Yes/No ✓
RS-232-C control line Not used.
Xon/Xoff Not used.
Communication mode 0: Default. In this mode, you can use the hand-held programming
console.
Communication mode 1: Select this mode when using a modem. In this mode, you
cannot use the hand-held programming console.
Communication mode 2: Only select this mode when you are using a personal computer
that supports the transmission rate of 19200 bps. In this mode,
you cannot use the hand-held programming console.
Under normal conditions, use the personal computer link function in communication mode
0. When the CPU starts up, the function is placed in the communication mode you have set
using the configuration function. The personal computer link function is set to “communica-
tion mode 0” when the sequence CPU module is shipped from the factory. You can use the
ladder programming tool for all of the communication modes. Refer to the following
cautionary notes before using the tool, however.
CAUTION
• If you select communication mode 2 and use a personal computer that does not
support 19200 bps, you can no longer switch back to the original communication
mode. In that case, connect a personal computer that supports 19200 bps and then
change the communication mode.
• If you have selected communication mode 0, set the personal computer link function
of the CPU to the option “Used” when editing the configuration item “personal
computer link function.” Otherwise, the CPU will automatically performs
communication during its startup, in order to read the RUN/STOP switches of the
programming console.
CAUTION
• Be careful when setting the transmission rate.
The WideField supports all of the communication modes listed on the previous page.
However, first refer to the instruction manual of the personal computer that runs the
WideField to check available transmission rates and data formats. Then, temporarily
change the transmission rate of the personal computer link function using the
programming tool to make sure the CPU module can communicate with the personal
computer in the communication mode you want to use. Finally, configure the personal
computer link function according to that communication mode. Note that the personal
computer link function automatically reverts to the previous transmission rate if
communication is not established after a temporary change in the transmission rate.
If you select a communication mode in which the personal computer cannot
communicate, it is impossible to communicate with the CPU module through the
computer. If this happens, first install the sequence CPU module in the fifth or higher
numbered slot of the main unit. Next, turn on the power and make sure the RDY
indicator has come on. Then, turn off the power to clear the CPU memory completely
and allow the CPU module to revert to its factory-set defaults.
CAUTION
• To use the personal computer link function, set the configuration item “personal
computer link function” to the option “Used.” If you do not select this option, the CPU
performs communication at power-on in order to recognize the hand-held
programming console. Consequently, you may fail to successfully communicate with
higher-order equipment.
• If you set the configuration item “personal computer link function” to the option “Used,”
the settings of the RUN/STOP switches of the hand-held programming console are not
put into effect.
SEE ALSO
■ Communication Procedure
The following outlines the procedure of communication using a BASIC program on a
personal computer. For details on the statements and functions used in the program, refer
to the BASIC reference manual that came with your personal computer.
At first, the host computer (or monitor) has the transmission right. When the computer
sends out a command, the transmission right transfers to the CPU module. The CPU
module then sends a response to the host computer.
If the configuration item “personal computer link function” is set to the option “Used,” the
CPU module does not send a command to the host computer.
Personal computer
(when using BASIC)
PROGRAM
LINE INPUT#
or Response xxxxxx (ASCII string)
INPUT$
FA-M3
Power
supply CPU
FA061204.EPS
Figure A6.32 Interaction between Command and Response
Upper-level computer
Command STX code
Station number
CPU number
Response-wait time
Command To the FA-M3
Parameter
Checksum
(FA-M3)
ETX code Response STX code
Terminating character
Station number
CPU number
Response-wait time
To an upper-level computer Command response
(or monitor)
Checksum
ETX code
Terminating character
FA061205.EPS
Figure A6.33 Brief Description of Command and Response Formats
For commands and responses, use the upper-case alphabetic letters of A to Z, which are
the ASCII codes of $41 to $5A (hexadecimal numbers).
The individual elements are detailed below.
● Station Number
The station number is fixed at 01 when the CPU’s personal computer link function is used.
● CPU Number
Use a number from 01 to 04 to define which of the CPU modules to communicate with.
01: Main CPU module
02: Add-on CPU module 1
03: Add-on CPU module 2
04: Add-on CPU module 3
Character Response Wait Time (ms) Character Response Wait Time (ms)
0 0 (Note) 8 80
1 10 9 90
2 20 A 100
3 30 B 200
4 40 C 300
5 50 D 400
6 60 E 500
7 70 F 600
TA061204.EPS
Note: Even if the response wait time is set at 0, there is a delay of as much as the internal processing time*.
Host computer
Command Response wait time
or monitor
Internal processing time*
CPU module
Pre- Post- Response
processing processing
Processing
● Command
Using three letters, specify the type of access, such as reading or writing, from the host
computer or monitor to the CPU.
● Parameters
Set such data items as a device name, the number of devices and their data values.
Available parameter types vary depending on the command you use. A parameter is not
required for some commands.
STX 0 1 0 1 A B R D X 0 0 2 0 1 , 1 6 B 9 ETX CR
02 30 31 30 31 41 42 52 44 58 30 30 32 30 31 2C 31 36 42 39 03 0D
When communication ends successfully, the string “OK” is returned along with a command
response.
When communication results in an abnormal end, the string “ER” is returned along with the
codes EC1 and EC2, where:
EC1 : Error code
EC2 : Detailed error code
If the communication failure is due to an error in the CPU number, the received 2-byte CPU
number is returned. If the failure is due to an error in the station number, no response is
returned.
If an ETX code in a command is not received, no response may be returned. If this hap-
pens, be sure to perform a timeout process on the host computer or monitor.
05 Number of data items - The number of bits or words is outside the specified range.*
outside the range - The specified number of data items does not match the number
of parameters including device names.
- Attempted to execute monitoring without having specified a
06 Monitor error monitor command (BRS or WRS).
08 Parameter error - The parameter is incorrect for a reason other than noted above.*
41 Communication error - An error has occurred during communication.*
42 Checksum error - The check sum is wrong due to missing bits, garbled character,etc.
43 Internal buffer overflow - The amount of data received is larger than the specified.
b7 b6 b5 b4 b3 b2 b1 b0
MSB LSB
1 : Self-diagnostic error
2 : Program error (including parameter error)
4 : CPU-to-CPU communication error
8 : Device access error
52 CPU processing failure 9 : Protocol error
A : Parameter error
B : Operation mode error, or state of protection or exclusive access
C : Device/block specification error
F : System's internal error
* The EC2 error code has no meaning for any value of EC1 other than those listed above.
TA061206.EPS
S
T 0 1 0 1 A B R D X 0 0 2 0 1 , 0 0 5
X
FA061211.EPS
Command Parameters
CPU number
Station number, which is fixed at 01.
The F3SP25 and F3SP35 sequence CPU modules support user-created macro instruc-
tions.
■ Overview
A macro instruction enables you to perform a process requiring multiple instructions/steps
as a single-instruction/step process.
Figure 6.39 presents an overview of the macro instructions.
M033
MOV 1 A0001
MOV 2 U01
U01
P02 = P01 + A000
MRET
FA061402.EPS
In Figure A6.39, the “ABC” and “EFG123” instructions are macro instructions. When the
CPU encounters the “ABC” instruction, it executes a called-side “ABC” macro instruction
like a subroutine, using operands “D0001” and “D0002” as its parameters. Macro instruc-
tions are created by ladder-macro editing separately from regular instructions created in
ladder-diagram editing. The MRET instruction in Figure 6.34 represents the end of the
macro instruction.
For details on operands P01, P02, and U01 in the figure, see subsection A6.13.3, “Devices
Dedicated to Macro Instructions.”
SEE ALSO
Use existing No No
Macro instruction
subroutine? exists?
Yes Yes
Find Refer to Create new macro
subroutine Create new subroutine
specifications instruction
Copy subroutine
(Note)
Match inputs/outputs
with devices used in Note: 1. Copy a block containing subroutines under a different name.
subroutine 2. Delete components other than subroutines from a circuit diagram.
3. In ladder-diagram editing, read the copying-destination block.
End FA061403.EPS
● Accumulating Expertise
You can use your control expertise to create macro instructions to customize your FA-M3
controller.
F3SP25 F3SP35
FUNC Instruction Mnemonic
When When not When When not
No. executed executed executed
executed
(esec) (esec) (esec) (esec)
F3SP25, F3SP35
Device Code
Range Quantity
Pointer register P P01 to P16 16
Macro relay H H0001 to H0512 512
Macro register A A0001 to A0512 512
Macro index register U U01 to U16 16
TA061402.EPS
M
EFG123 D0001 I0001 Y00301
Operand3
Operand2
Operand1
FA061404.EPS
Table A6.16 Relationship between Pointer Registers and Macro Instruction Operands
1 P01
Parameters that can be directly passed using a macro
2 P02 instruction call
3 P03
4 P04
Parameters that can be passed using a parameter
instruction
16 P16
T061303.EPS
Using a basic or advanced instruction, you can read from and write to pointer registers in a
macro instruction just like devices passed as parameters. You can also apply a word/long
word process, index modification process, and automatic BIN-to-BCD or BCD-to-BIN
conversion process to these pointer registers. High speed processing of advanced instruc-
tions is not performed, however. More specifically, high speed processing does not apply to
a MOV, CAL, CMP, or logical operation instruction that uses pointer registers in a macro
instruction as its operands.
TIP
When executing two or more instructions that use pointer registers, it is recommended that
you first transfer the values of the pointer registers to macro relays/registers. Then, execute
two or more instructions that use these macro relays/registers. This strategy reduces the
instruction execution time.
MOV 2 U01
U01
P04 = P01 + A0001
Pointer register specified in a macro instruction (called side)
(Note)
U01
R0002 = D0001 + A0001
MRET
(Note) Pointer registers can be used for real macro instructions (called side).
FA061406.EPS
Figure A6.41 Example of Using Pointer Registers
CAUTION
• If you pass a device accompanied by an index modification device to a macro instruc-
tion as a parameter, the instruction receives an already index-modified device. In the
example of Figure A6.41, the parameter R0001;V01 equals the device R0002 be-
cause V01 = 1.
• Any index modification in a pointer register applies to a parameter that is passed. In
the example of Figure A6.41, the parameter P01;U01 equals the device D0003
because P01 = D0001 and U01 = 2.
■ Macro Relays (H), Macro Registers (A) and Macro Index Registers (U)
These devices are dedicated to macro instructions. Using a basic or advanced instruction,
you can read from and write to a macro relay, macro register and macro index register in a
called-side macro instruction just like an internal relay (I), data register (D) and index
register (V). These devices can be used for called-side macro instructions.
You can use these devices in your macro instruction without having to be aware which
devices are used in the instruction when applying the instruction. Needless to say, the
values of these devices are retained.
CAUTION
Parameters 1 to 3 to be passed to macro instructions are saved when the macro instruc-
tions are nested. However, parameters 4 to 16 passed by parameter instructions are not
saved. If a parameter instruction is executed in a called macro instruction, the relevant
parameters are overwritten.
SEE ALSO
X00501 M
NEST1 D0001 D0002
X00502
U01 = Z106 * 64
0 0
A01 = P1 + 1
U01 = Z106 * 64
MRET
64 0
U01
A01 = P1 + 1
U01 = Z106 * 64
MRET
FA061407.EPS
Figure A6.42 Example of Using Macro Devices Separately when Nesting Macro Instructions
CAUTION
An error, except a check-sum memory error, found by self-diagnosis in a called-side macro
instruction is also viewed by the user as an error that has occurred as the result of execut-
ing a calling-side macro instruction.
CAUTION
Executable program protection and block protection are effective for user-created ladder
programs that contain macro instructions. If, for example, executable program protection is
enabled, any act of working with executable programs, such as downloading, uploading,
monitoring or online-editing, becomes impracticable.
■ Forced-Set/Reset
You can also turn on and off bit devices forcibly in calling-side and called-side macro
instructions.
User log management is a function that logs, or keeps record of, errors in a user system,
information on the way they occurred, and the condition of system operation, by executing a
user log instruction. This function is useful for analyzing faults and understanding the
operating conditions of machinery. You can read saved user logs using instructions or the
programming tool.
Ladder diagram
Stored when an instruction is executed
ULOG D0001 D1000
FA061501.EPS
Figure A6.43 Handling User Logs
CAUTION
In some cases, the programming tool may show two identical logs. This happens when you
execute a user log instruction to store a new user log while reading a stored use log using
the programming tool. To prevent this from occurring, view user logs when you are not
executing a user log instruction.
SEE ALSO
Subsection 3.13.5, “Storing, Reading and Clearing User Logs,” in the 2nd or later edition of
Sequence CPU Instruction Manual -Instructions (IM34M6P12-03E) for details on
instructions related to user logs.
TA070101.EPS
F
3 F
P 3
U S
2 P
2
0 8
F
3 F
P 3
U S
2 P
5
0 8
X00502 Y00602
Input refreshing
Output refreshing
Output Y00602
F070401.EPS
X00502 Y00602
Input refreshing
Output refreshing
See Also
Table of instruction words in Appendix of Sequence CPU Instruction Manual - Instructions
(IM34M6P12-03E), for details on the execution time of each instruction.
■ Examples of Calculation
The following paragraphs give examples of calculating the instruction execution time. For
information on the execution time of an MOV instruction, see “Application Ladder-sequence
Instructions” in Appendix 2 of Sequence CPU Instruction Manual - Instructions
(IM34M6P12-03E).
● Index Modification
(1) Basic Instructions
I0001
Number of index-modified
relay devices: N3 = 1
0.18 + 2.031 = 2.18 µs (for F3SP21 sequence CPU)
0.12 + 1.331 = 1.42 µs (for F3SP25 sequence CPU)
0.09 + 1.031 = 1.09 µs (for F3SP35 sequence CPU)
V01 V02
MOV D0001 D0002 Number of index-modified
relay devices: N3 = 2
6.4 + 4.0 3 2 = 14.4 µs (for F3SP21 sequence CPU)
4.8 + 2.6 3 2 = 10.0 µs (for F3SP25 sequence CPU)
3.2 + 2.0 3 2 = 7.2 µs (for F3SP35 sequence CPU)
(2) Extended Shared Relays and Link Relays with Numbers M1025 and Greater
The execution time of “relays (BIN format)” is further added to the execution time of
devices discussed in item 1 above.
A8.1 Self-diagnosis
The sequence CPU performs self-diagnosis on its device memory, instruction codes, and
so on when the power is turned on or a program is being executed. The results of self-
diagnosis are reflected in predetermined special relays and registers. If any failure is found
during self-diagnosis, the CPU updates the statuses of LED indicators and stops executing
programs depending on the failure mode.
Table A8.1 shows how the severity of failure is classified by type and mode.
Table A8.1 Severity of Failure and Statuses of LED Indicators
FAIL Signal Action of Output
Contact Output Module
Between Between Output Output
FAIL1 FAIL2 modules modules
Severity of LED Indicator Failure
Failure and COM and COM with 32 or with 64
Status Condition Failure Mode less output output
points points points *2
Major The green RDY The key • CPU failure Shorted Open Default: Nullified
failure lamp goes out. hardware is • Memory crash RESET setpoint
disabled. • Power-off Can be set The status
in 16 point is always
increments. HOLD.
Moderate The red ERR The user • Program error Shorted Open Default: Default:
failure lamp comes on. program • I/O collation failure*1 RESET RESET
cannot be • I/O module failure*1 Can be set Can be set
• Memory failure
started or run in a group in a group
• CPU failure
any further. on a on a module
• Instruction error*1 module basis.
• Scan time-out*1 basis.
• Startup failure
• Detection of invalid
instruction
• Excess number of
I/O points
• ROM pack failure
• Subroutine error*1
• Interrupt error*1
• Failure in subunit
transmission line*1
• Sensor control scan
time-out error*1
Minor failure The yellow ALM The program is • Momentary power Open Shorted Continued Continued
lamp comes on. abnormal, failure operation operation
though it can • CPU-to-CPU
still be run. communication
* 1: Either the minor or moderate failure can be selected as the failure level for this item using the configuration function
* 2: Include the F3WD64 module and advanced modules that contain output relays. TA080101.EPS
For some of the failure modes, you can select the Stop or Continue option to determine
whether to stop or continue program execution if any of these failures occur. This
selection can be made using the configuration function. This configuration item defaults to
the Stop option for a moderate failure and to the Continue option for a minor failure.
Moderate failure modes set to the Continue option are treated as minor failure modes,
while minor failure modes set to the Stop option are treated as moderate failure modes.
CAUTION
• If you want the contacts of an output module to be reset in case of a major or
moderate failure in the sequence CPU module, use an output module with 32 or less
output points and set the “Output in case of CPU stop” option of the configuration
function to RESET.
• If you want the contacts of an output module to be held in case of a major or moderate
failure in the sequence CPU module, set the “Output in case of CPU stop” option of
the configuration function to HOLD. Note that there is no difference in the module
action due to a difference in the type of output module.
Minor Moment M195 - - The CPU indicates 1.If this failure mode occurs too
failure ary that a momentary frequently, check the power supply
power power failure has for possible problems. If a UPS is
failure occurred. in use, check that it has captured
peak values of its supply voltage
waveform. If the failure still occurs
frequently while there is no problem
with the waveform, it is likely that
the power supply module and/or
CPU module is defective. Replace
it.
Note: For this failure mode, you can determine whether to stop or continue program execution. TA080205.EPS
TA080206.EPS
CAUTION
The failure mode “switchover in subunit transmission line” is effective for the Rev.8 or later
version of the F3SP21, F3SP25 and F3SP35.
You can clear the CPU memory and revert it back to its factory settings by installing the
sequence CPU module in the 5th or later slot of the main unit and turning it on. If the failure
is a transient memory failure due to effects of noise, download the application program
again to allow memory reuse. If the failure recurs, there may be a hardware failure.
Replace the sequence CPU module.
See Also
Fiber-optic FA-bus Module and Fiber-optic FA-bus Type 2 Module Instruction Manual
(IM34M6H45-01E), for more information on the failure modes “failure in subunit
transmission line” and “switchover in subunit transmission line.”
CAUTION
Use the R1.08 or later version of Ladder Diagram Support Program M3 to edit the
configuration item “Failure in Subunit Transmission Line.” This item is effective for the Rev.8
or later version of the F3SP21, F3SP25 and F3SP35 sequence CPU modules.
See Also
Fiber-optic FA-bus Module and Fiber-optic FA-bus Type 2 Module Instruction Manual
(IM34M6H45-01E), for more information on the failure modes “failure in subunit
transmission line” and “switchover in subunit transmission line.”
CONTENTS
B1. Specification and Basic Configuration ................................................ B1-1
B1.1 Overview ........................................................................................................ B1-1
B1.2 Specification ................................................................................................. B1-3
B1.2.1 Performance Data ........................................................................... B1-3
B1.2.2 Device List ...................................................................................... B1-5
B1.2.3 Configuration .................................................................................. B1-6
B1.2.4 Components and Their Functions ................................................... B1-8
B1.2.5 External Dimensions ....................................................................... B1-9
B1.3 Basic Configuration .................................................................................... B1-10
B1.3.1 Units ............................................................................................. B1-10
B1.3.2 Slot Number ................................................................................. B1-11
B1.3.3 I/O Relay Number ......................................................................... B1-11
B2. System Configuration .......................................................................... B2-1
B2.1 Basic System Configuration ........................................................................ B2-1
B2.2 Extended System Configuration .................................................................. B2-2
B2.2.1 Remote I/O System ........................................................................ B2-2
B2.2.2 Personal Computer Link System ..................................................... B2-3
B2.2.3 FA Link System ............................................................................... B2-3
B2.3 Programming Tools ....................................................................................... B2-4
B2.3.1 WideField ....................................................................................... B2-4
B2.3.2 Ladder Diagram Support Program M3 ............................................ B2-6
B1.1 Overview
■ Overview
Model F3SP05-0P is a sequence CPU module with a built-in power supply and memory
and is used to configure the FA-M3 Value system. The built-in power supply is functionally
equivalent to the F3PU10-0N power supply module. The sequence CPU is also
functionally equivalent to the F3SP21-0N except for the CPU’s 5K-step program size. This
chapter focuses on the CPU of the F3SP05-0P module. For details on the power supply
block of the module, refer to the part “FA-M3 Value (Model F3SC21-1N)” of Hardware
Manual (IM34M6C11-01E).
For further details on instructions available with the F3SP05-0P module, refer to the
F3SP21’s Sequence CPU Instruction Manual - Instructions (IM34M6P12-03E), as such
specifications as device sizes and instructions available with the F3SP05-0P are the same
as those of the F3SP21 sequence CPU module.
CAUTION
The R2.02 or a later version of Ladder Diagram Support Program M3 is required to use the
F3SP05-0P sequence CPU module.
■ Features
• Has a compact body, allowing for space saving within the cabinet.
• Support for high-speed processes and responses of the module’s maximum
instruction processing speed.
• Operates large-capacity programs and has large device sizes, enabling it to cope with
advanced, complex control applications.
• Uses index modification and structured ladder language for easy program design and
maintenance.
• Allows the device size and operating method to be flexibly configured according to
your application needs.
• Provides various functions, e.g., a forced SET/RESET function and scan operation
independent of program computation results, for easy program debugging and
maintenance.
• Has a carefully designed self-diagnosis function, in addition to a highly reliable design.
• Can connect to a host computer or a monitor without the need for a personal computer
link module, as the programming tool connection port supports a personal computer
link function.
■ Major Functions
• Configuration (setup of parameters, including device size, range of devices to be
latched in case of power failure, and external output to be retained in case of
sequence stop)
• Constant scan (at an interval of 1 to 190 ms, in 0.1 ms increments)
• Debugging (forced SET/RESET instructions, online editing, scan operation, etc.)
• Error logging, user logging
• Clock (year, month, day, hour, minute, second, and day of the week)
• Support for programming tool connection port with the personal computer link function
• Program protection
• Program/data storage in ROM pack
* See Section B1.2, “Specification,” for more information.
B1.2 Specification
B1.2.1 Performance Data
Table B1.1 Performance Data (1 of 2)
Item Specifications
Control method Repetitive computation based on stored programs
I/O computation method Refreshing by direct I/O instructions
Programming language Structured ladder language and mnemonic language
Number of I/O points 2048 max.
Number of internal relays (I) 4096
Number of shared relays (E) 0
Number of extended shared relays (E) 0
Number of link relays (L) 2048
Number of special relays (M) 2048
Number of timers (T) 256
Number of counters (C) 256
Number of data registers (D) 5120
Number of shared registers (R) 0
Number of extended shared registers (R) 0
Number of file registers (B) 0
Number of link registers (W) 2048
Number of special registers (Z) 256
Number of labels 64
Number of interruption processing routines 4*
TB010201.EPS
* The inputs of F3WD32-3F cannot be used as interrupt inputs.
Item Specifications
Program size 10 K steps max., ROM-able
Number of program blocks 32 max.
TB010202.EPS
Con-
tinuous 100-ms timer T241 to T256 16
timer
Latching Correlative with counters (T) in
Counter type C C001 to C256 256 terms of configuration limitations.
Latching
Data register type D D0001 to D5120 5120
B1.2.3 Configuration
■ Configuration Function
The sequence CPU contains the predefined defaults of device sizes and operation meth-
ods.
You can run programs with these defaults. In some applications, however, they may not suit
your specific purpose. In such a case, flexibility allows for defaults to be changed to meet
your needs. Changing the defaults is called "configuration" and can be performed through
a programming tool.
Table B1.3 Configuration Ranges (1 of 2)
Item Default Configuration Range
Internal relay (I) 4096 –
Shared relays (E) 0 –
Timer (T) 256 512 units in 1 point increments
Device for timers and counters com-
size Counter (C) 256
Data register (D) 5120
–
Shared registers (R) 0
1-ms timer 0
Timer 10-ms timer 128 Configurable in 1 point incre-
ments;
100-ms timer 112 16 units max. for 1-ms timers;
100-ms continuous timer 16
Link relay (L) 32 units for each station Configurable in16 points incre-
ments for each link
Range
of link Configurable in 1 point incre-
relays/ Link register (W) 32 units for each station ments for each link
registers
Link relays (L)/ Configurable in 16 points
Range of link data increments for each link module
registers (W)
(2 modules max.)
Configurable in 32 points
Internal relay (I) I0001 to I1024 increments; continuous from the
starting number
Configurable in 16 points
Link relay (L) Non-latching type increments; continuous from the
Range of starting number
devices Configurable in 1 point
to be Timer (T) Non-latching type increments; continuous from the
latched (except for continuous timers) starting number
in case Configurable in 1 point
of power All latched
Counter (C) (C001 to C256) increments; continuous from the
failure starting number
All latched
Data register (D) (D0001 to D5120) Configurable in 2 points
increments; continuous from the
starting number
Link register (W) Non-latching type
TB010204.EPS
CPU
commu- Mode 0: 9600 bps, even parity
Mode 0: 9600 bps, Mode 1: 9600 bps, non parity
nication Mode even parity
port Mode 2: 19200 bps, even parity
83.2 58
2
100
FB010202.EPS
■ Main Unit
In the case of the FA-M3 Value system, the F3SC21-1N controller is called a main unit and
consists of the following modules.
• F3BU04-0N base module
• F3SP05-0P sequence CPU module with power supply and memory
• F3WD64-3N I/O module
Install the F3SP05-0P sequence CPU module in the leftmost slot of the F3BU04-0N base
module and the F3WD64-3N I/O module in slot 2. In the remaining third and fourth slots,
install other necessary I/O modules or special modules.
■ Subunit
A unit that contains no CPU modules and is connected to the main unit through a fiber-optic
FA-bus or fiber-optic FA-bus type 2 is called a subunit. The subunit consists of the modules
listed in Table B1.5. A maximum of seven subunits can be connected to the main unit and
are identified by their unit numbers.
Table B1.5 Subunit Components
Name Description
Base module Five types are available depending on the number of modules to be mounted.
Power supply module One power supply module must always be mounted on the base module.
At least one CPU module is required. Several types are available depending
CPU module on the functionality.
Various types are available depending on the type of I/O and the number of
I/O module I/O points.
Special module Various types are available, including analog I/O and communication modules.
TB010301.EPS
Slot number
Y004 06
Terminal number
Slot number
Y 08- OUT
F3YC08-0N
FB010302.EPS
The input and output terminal numbers of a mixed-I/O module or multifunctional module
with 32 input and output points each are assigned as 1 to 32 and as 33 to 64, respectively.
FB020101.EPS
Subunit
Fiber-optic cable
FB020202.EPS
Main unit
FA link
B2.3.1 WideField
The table below presents an overview of WideField.
Personal computer
■ Object Ladder
WideField defines "blocks" and "macros" that compose a ladder program as "objects," a
term commonly used in the computing world. The object-oriented ladder language
assumes responsibility for a given function and features a high degree of independence.
Consequently, the language offers higher productivity and better maintainability than a
structured programming language. It is therefore effective for the reuse of ladder programs.
■ Features
● Treatment as Components
Blocks can be reused as sheer components. Devices that are used only within a block are
defined separately. WideField eliminates the chance of using the same device twice and
makes it easy to recombine blocks.
FB020302.EPS
MCN1
MCN1.SWICH MCN2.SWICH MCN3.SWICH
MCN1.POMP MCN2.POMP MCN3.POMP MCN2 Naming of a
MCN1.OUT MCN3.OUT MCN3.OUT set of data
MCN3
FB020303.EPS
TB020302.EPS
Ladder Diagram Support Program M3, supports both ladder diagram input and mnemonic
input for higher programming efficiency. In addition, its wide choice of debugging functions
reduces the amount of time required for tuning work. Since this programming tool runs on a
personal computer, there is no need for any dedicated programming console.
CAUTION
The R2.02 or a later version of Ladder Diagram Support Program M3 is required to use the
F3SP05-0P sequence CPU module.
CONTENTS
C1. Specification and Basic Configuration ................................................ C1-1
C1.1 Overview ........................................................................................................ C1-1
C1.2 Specification ................................................................................................. C1-3
C1.2.1 Performance Data ........................................................................... C1-3
C1.2.2 Device List ...................................................................................... C1-5
C1.2.3 Configuration .................................................................................. C1-6
C1.2.4 Components and Their Functions ................................................... C1-8
C1.2.5 External Dimensions ....................................................................... C1-9
C1.3 Basic Configuration .................................................................................... C1-10
C1.3.1 Units ............................................................................................. C1-10
C1.3.2 Slot Number ................................................................................. C1-11
C1.3.3 I/O Relay Number ......................................................................... C1-11
C2. System Configuration .......................................................................... C2-1
C2.1 Basic System Configuration ........................................................................ C2-1
C2.2 Extended System Configuration .................................................................. C2-2
C2.2.1 Remote I/O System ........................................................................ C2-2
C2.2.2 Personal Computer Link System ..................................................... C2-3
C2.2.3 FA Link System ............................................................................... C2-3
C2.3 Programming Tools ....................................................................................... C2-4
C2.3.1 WideField ....................................................................................... C2-4
C1.1 Overview
■ Overview
Model F3SP08-0P is a sequence CPU module with a built-in power supply and memory
and is used to configure the FA-M3 Value II system. The built-in power supply is function-
ally equivalent to the F3PU10-0N power supply module. The sequence CPU is also func-
tionally equivalent to the F3SP21-0N. This chapter focuses on the CPU of the F3SP08-0P
module. For details on the power supply block of the module, refer to the part “FA-M3 Value
II (Model F3SC22-)” of Hardware Manual (IM34M6C11-01E).
For further details on instructions available with the F3SP08-0P module, refer to the
F3SP21’s Sequence CPU Instruction Manual - Instructions (IM34M6P12-03E), as such
specifications as device sizes and instructions available with the F3SP08-0P are the same
as those of the F3SP21 sequence CPU module.
CAUTION
The R2.06 or a later version of FA-M3 Programming Tool WideField is required to use the
F3SP08-0P sequence CPU module.
■ Features
• Has a compact body, allowing for space saving within the cabinet.
• Support for high-speed processes and responses of the module’s maximum instruc-
tion processing speed.
• Operates large-capacity programs and has large device sizes, enabling it to cope with
advanced, complex control applications.
• Uses index modification and structured ladder language for easy program design and
maintenance.
• Allows the device size and operating method to be flexibly configured according to
your application needs.
• Provides various functions, e.g., a forced SET/RESET function independent of
program computation results, for easy program debugging and maintenance.
• Has a carefully designed self-diagnosis function, in addition to a highly reliable design.
• Can connect to a host computer or a monitor without the need for a personal computer
link module, as the programming tool connection port supports a personal computer
link function.
■ Major Functions
• Configuration (setup of parameters, including device size, range of devices to be
latched in case of power failure, and external output to be retained in case of se-
quence stop)
• Constant scan (at an interval of 1 to 190 ms, in 0.1 ms increments)
• Debugging (forced SET/RESET instructions, online editing, etc.)
• Error logging, user logging
• Clock (year, month, day, hour, minute, second, and day of the week)
• Support for programming tool connection port with the personal computer link function
• Program protection
• Program/data storage in ROM pack
* See Section C1.2, “Specification,” for more information.
C1.2 Specification
C1.2.1 Performance Data
Table C1.1 Performance Data (1 of 2)
Item Specifications
Control method Repetitive computation based on stored programs
I/O computation method Refreshing by direct I/O instructions
Programming language Structured ladder language and mnemonic language
Number of I/O points 2048 max.
Number of internal relays (I) 4096
Number of shared relays (E) 0
Number of extended shared relays (E) 0
Number of link relays (L) 2048
Number of special relays (M) 2048
Number of timers (T) 256
Number of counters (C) 256
Number of data registers (D) 5120
Number of shared registers (R) 0
Number of extended shared registers (R) 0
Number of file registers (B) 0
Number of link registers (W) 2048
Number of special registers (Z) 256
Number of labels 64
Number of interruption processing routines 4*
TC010201.EPS
* The inputs of F3WD32-3F cannot be used as interrupt inputs.
Item Specifications
Program size 10 K steps max., ROM-able
Number of program blocks 32 max.
TC010202.EPS
Con-
tinuous 100-ms timer T241 to T256 16
timer
Latching Correlative with counters (T) in
Counter type C C001 to C256 256 terms of configuration limitations.
Latching
Data register type D D0001 to D5120 5120
C1.2.3 Configuration
■ Configuration Function
The sequence CPU contains the predefined defaults of device sizes and operation meth-
ods.
You can run programs with these defaults. In some applications, however, they may not suit
your specific purpose. In such a case, flexibility allows for defaults to be changed to meet
your needs. Changing the defaults is called "configuration" and can be performed through
a programming tool.
Table C1.3 Configuration Ranges (1 of 3)
Item Default Configuration Range
Internal relay (I) 4096 –
Shared relays (E) 0 –
Timer (T) 256 512 units in 1 point increments
Device for timers and counters com-
size Counter (C) 256
Data register (D) 5120
–
Shared registers (R) 0
1-ms timer 0
Timer 10-ms timer 128 Configurable in 1 point incre-
ments;
100-ms timer 112 16 units max. for 1-ms timers;
100-ms continuous timer 16
Link relay (L) 32 units for each station Configurable in16 points incre-
ments for each link
Range
of link Configurable in 1 point incre-
relays Link register (W) 32 units for each station ments for each link
/registers
Link relays (L)/ Configurable in 16 points
Range of link data increments for each link module
registers (W)
(2 modules max.)
Configurable in 32 points
Internal relay (I) I0001 to I1024 increments; continuous from the
starting number
Configurable in 16 points
Link relay (L) Non-latching type increments; continuous from the
Range of starting number
devices Configurable in 1 point
to be Timer (T) Non-latching type increments; continuous from the
latched (except for continuous timers) starting number
in case Configurable in 1 point
of power All latched
Counter (C) (C001 to C256) increments; continuous from the
failure starting number
All latched
Data register (D) (D0001 to D5120) Configurable in 2 points
increments; continuous from the
starting number
Link register (W) Non-latching type
TC010204.EPS
CPU
commu- Mode 0: 9600 bps, even parity
Mode 0: 9600 bps, Mode 1: 9600 bps, non parity
nication Mode even parity
port Mode 2: 19200 bps, even parity
83.2 58
2
100
FC010202.EPS
I/O Module
Main Unit
F3WD32
F3SP08
F3SC22-1F
I/O Module
Main Unit
F3WD64
F3SP08
F3SC22-2F
Main Unit
F3XD16
F3YD14
F3SP08
F3SC22-1A
■ Subunit
A unit that contains no CPU modules and is connected to the main unit through a fiber-optic
FA-bus or fiber-optic FA-bus type 2 is called a subunit. The subunit consists of the modules
listed in Table C1.5. A maximum of seven subunits can be connected to the main unit and
are identified by their unit numbers.
Table C1.5 Subunit Components
Name Description
Base module Five types are available depending on the number of modules to be mounted.
Power supply module One power supply module must always be mounted on the base module.
Various types are available depending on the type of I/O and the number of
I/O module I/O points.
Special module Various types are available, including analog I/O and communication modules.
TC010301.EPS
Slot number
Y004 06
Terminal number
Slot number
Y 08- OUT
F3YC08-0N
FC010302.EPS
The input terminal numbers of F3WD64- are assigned as 1 to 32 and the output
terminal numbers assigned as 33 to 64;
The input terminal numbers of F3WD32- are assigned as 1 to 16 and the output
terminal numbers are assigned as 17 to 32.
FC020101.EPS
Subunit
Fiber-optic cable
FC020202.EPS
Main unit
FA link
C2.3.1 WideField
The table below presents an overview of WideField.
Personal computer
CAUTION
The R2.04 or a later version of FA-M3 Programming Tool WideFild is required to use the
F3SP08-0P sequence CPU module.
■ Object Ladder
WideField defines "blocks" that compose a ladder program as "objects," a term commonly
used in the computing world. The object-oriented ladder language assumes responsibility
for a given function and features a high degree of independence. Consequently, the lan-
guage offers higher productivity and better maintainability than a structured programming
language. It is therefore effective for the reuse of ladder programs.
■ Features
● Treatment as Components
Blocks can be reused as sheer components. Devices that are used only within a block are
defined separately. WideField eliminates the chance of using the same device twice and
makes it easy to recombine blocks.
FC020302.EPS
MCN1
MCN1.SWICH MCN2.SWICH MCN3.SWICH
MCN1.POMP MCN2.POMP MCN3.POMP MCN2 Naming of a
MCN1.OUT MCN3.OUT MCN3.OUT set of data
MCN3
F040403.EPS
CONTENTS
Appendix 1. Special Relays (M) .................................................................App.1-1
Appendix 1.1 Block Start Status ........................................................................... App.1-1
Appendix 1.2 Utility Relays ................................................................................... App.1-2
Appendix 1.3 Sequence Operation and Mode Status Relays ............................. App.1-4
Appendix 1.4 Self-diagnosis Status Relays ......................................................... App.1-5
Appendix 1.5 FA Link Module Status Relays ....................................................... App.1-7
Appendix 2. Special Registers (Z) .............................................................App.2-1
Appendix 2.1 Sequence Operation Status Registers .......................................... App.2-1
Appendix 2.2 Self-diagnosis Status Registers .................................................... App.2-2
Appendix 2.3 Utility Registers .............................................................................. App.2-4
Appendix 2.4 FA Link Module Status Registers .................................................. App.2-5
Appendix 2.5 CPU Module Status Registers ....................................................... App.2-6
Appendix 3. Forms for System Design .....................................................App.3-1
■ Program Coding Sheet ..................................................................................... App.3-1
■ Relay Devices Assignment Table ..................................................................... App.3-2
■ Register Devices Assignment Table ................................................................ App.3-3
■ Timer/Counter Setpoints Table ......................................................................... App.3-4
Note: The start status relays assigned to blocks 1 to 32 are M0001 to M0032 and M2001 to M2032, where the
values of M0001 to M0032 are the same as those of M2001 to M2032. Similarly, start status relays M2033 to
M3024 are assigned to blocks 33 to 1024.
AP040401.EPS
CAUTION
Do not write to a special relay, including those not listed in the table above (e.g., M067 to
M128), unless otherwise stated. This is because they are used by the CPU module for the
system. If you inadvertently write to these relays, a failure such as a system shutdown may
occur. (The use of a forced set/reset instruction in debug mode is also prohibited.)
Always ON ON
M033
OFF Used for an initialization process or as a
dummy contact in a program.
Always OFF ON
M034
OFF
On for one scan at CB ON: When the block starts. Turns on for one scan when the
M097 startup sensor control block starts (at the first
(Note) OFF: In all other cases.
execution of the sensor control block).
Note: Only available with the F3SP28, F3SP38, F3SP53 and F3SP58. AP010101.EPS
CAUTION
The utility relay M066 “normal subunit transmission line” is only available with the Rev.8 or
later version of the F3SP21, F3SP25 and F3SP35.
See Also
Fiber-optic FA-bus Module and Fiber-optic FA-bus Type 2 Module (IM34M6H45-01E), for
more information on the M066 utility relay (Normal Subunit Transmission Line).
Run mode flag ON: Run mode Indicates the status of CPU operation.
M129
OFF: Other modes
Stop mode flag ON: Stop mode Indicates the status of CPU operation.
M131
OFF: Other modes
M136 Power-on ON: Power-on operation Indicates whether the system has been
OFF: Other modes of put in run mode at power-on or by
(Note1) operation flag
operation resetting.
M137 ON: Start Indicates the status of sensor control
(Note2) CB execution status
OFF: Stop block execution.
Devices reserved
M177 to M187 for extended functions
Devices reserved
M189 to M192 for extended functions
Note 1: Only available with the F3SP21, F3SP25, F3SP28, F3SP35, F3SP38, F3SP53 and F3SP58.
Note 2: Only available with the F3SP28, F3SP38, F3SP53 and F3SP58.
AP010301.EPS
See Also
Specifications of special registers for clock data, for more information on time setting.
ON: Abnormal
Subunit transmission transmission line.
M210
line fai lure OFF: Unspecified ornormal The slot number of the fiber-optic FA-bus
transmission line module in question is stored in special
registers Z89 to Z96 if a failure occurs in
ON: Abnormal
the module.
Switchover in subunit transmission line.
M211
transmission line OFF: Unspecified ornormal
transmission line
Indicates that it is not possible to sustain
M212 CB scan timeout ON: Abnormal. the execution interval of the sensor control
OFF: Normal. block.
M225 CPU-1 sequence ON: Executes the program. Indicates whether a sequence program for
(Note1) program execution OFF: Stops the program. a CPU in slot 1 is running or at a stop.
M226 CPU-2 sequence ON: Executes the program. Indicates whether a sequence program for
(Note1) program execution OFF: Stops the program. a CPU in slot 1 is running or at a stop.
M227 CPU-3 sequence ON: Executes the program. Indicates whether a sequence program for
(Note1) program execution OFF: Stops the program. a CPU in slot 1 is running or at a stop.
M228 CPU-4 sequence ON: Executes the program. Indicates whether a sequence program for
(Note1) program execution OFF: Stops the program. a CPU in slot 1 is running or at a stop.
AP010401.EPS
Note 1: Only available with the F3SP21, F3SP25, F3SP28, F3SP35, F3SP38, F3SP53 and F3SP58.
Note 2: Only available with the F3SP28, F3SP38, F3SP53 and F3SP58.
CAUTION
The M210 (Subunit Transmission Line Failure) and M211 (Switchover in Subunit
Transmission Line) self-diagnosis relays are only available with the Rev.8 or a later version
of the F3SP21, F3SP25 and F3SP35.
See Also
Fiber-optic FA-bus Module and Fiber-optic FA-bus Type 2 Module (IM34M6H45-01E), for
more information on the M210 (Subunit Transmission Line Failure) and M211 (Switchover
in Subunit Transmission Line) self-diagnosis relays.
See Also
AP010501.EPS
Scan time Latest scan time Stores the latest scan time in 100-µs
Z001 (Run mode) increments.
CAUTION
Do not write to a special register, including those not listed in the table above (e.g., Z010 to
Z016), unless otherwise stated. This is because they are used by the CPU module for the
system. If you inadvertently write to these registers, a failure such as a system shutdown
may occur.
Self-diagnosis
Z017 Store the results of self-diagnosis.*
error number
Self-diagnosis error
Z018 Self-diagnosis error block number
Self-diagnosis error
Z019 instruction number
Instruction processing
Z024 error instruction number
* For information on error numbers (codes) to be saved in these special registers, see Table A8.2,"Details of Self-
diagnosis."
AP020201.EPS
CAUTION
• The Z041 to Z048 (Module Recognition) self-diagnosis status registers are only
available with the Rev.8 or later version of the F3SP21, F3SP25 and F3SP35.
• The Z089 to Z096 (Abnormal Slot in Subunit Transmission Line) self-diagnosis status
registers are only available with the Rev.8 or later version of the F3SP21, F3SP25 and
F3SP35.
See Also
Fiber-optic FA-bus Module and Fiber-optic FA-bus Type 2 Module (IM34M6H45-01E), for
more information on the Z089 to Z096 special registers (Abnormal Slot in Subunit
Transmission Line).
Z057 1 ms increments
Constant scan time Value of constant scan time Example: 10 ms as 10
See Also
0
TAP0301.EPS
Device No. Signal Name Description Device No. Signal Name Description
1 3
2 4
3 5
4 6
5 7
6 8
7 9
8 0
9 1
0 2
1 3
2 4
3 5
4 6
5 7
6 8
7 9
8 0
9 1
0 2
1 3
2 4
3 5
4 6
5 7
6 8
7 9
8 0
9 1
0 2
1 3
2 4
TAP0302.EPS
Device No. Signal Name Description Device No. Signal Name Description
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
0 0
TAP0303.EPS
2
TAP0304.EPS
FA-M3
Sequence CPU Instruction Manual - Functions
(for F3SP21, F3SP25 and F3SP35)
IM 34M6P12-02E 3rd Edition
Index
Number executing specified blocks ................................... A6-7
100-ms continuous timer ................................... A4-29 extended shared register (R) ............................. A4-36
100-ms timer ..................................................... A4-29 extended shared relay (E) .......................... A4-6, A4-9
10-ms timer ....................................................... A4-29 extended system configuration .................. B2-2, C2-2
1-ms timer ......................................................... A4-29
F
B F3SP05 .............................................................. B1-1
basic system configuration ............... A2-1, B2-1, C2-1 F3SP08 .............................................................. C1-1
block ................................................................... A5-3 F3SP21 .............................................................. A1-1
block protection ................................................. A6-18 F3SP25 .............................................................. A1-1
block start status ............................................... A4-22 F3SP35 .............................................................. A1-1
FA link module status ............................. A4-26, A4-43
C FA link system .................................. A2-4, B2-3, C2-3
clearing device .................................................... A6-3
FA-M3 Value ....................................................... B1-1
clearing memory ................................................. A6-3
FA-M3 Value II .................................................... C1-1
command .......................................................... A6-39
file register (B) .................................................. A4-46
communication procedure ................................. A6-37
forced reset ....................................................... A6-15
computation method ........................................... A3-6
forced set .......................................................... A6-15
configuration .................................... A1-7, B1-6, C1-6
constant scan time .............................................. A6-5 I
counter ............................................................. A4-30 I/O address allocation ......................................... A4-2
CPU module status ........................................... A4-44 immediate detection mode .................................. A3-3
CPU service ..................................................... A3-14 index register (V) ............................................... A4-45
current value ..................................................... A6-16 initial data ......................................................... A4-38
interrupt processing .......................................... A3-17
D interrupt processing control ............................... A3-18
data code type, specifying ................................... A4-3
input relay (X) ..................................................... A4-1
data register (D) ................................................ A4-32
input sampling interval ........................................ A4-3
data value, changing ......................................... A6-16
input/output processing ....................................... A3-8
debug mode ...............................................A3-1, A6-3
input/output relay number .......... A1-17, B1-11, C1-11
device ................................................................. A4-1
internal relay (I) ..........................................A4-5, A4-9
device list ......................................... A1-5, B1-5, C1-5
interrupt program ................................................ A5-8
device management function ............................ A6-46
DIO (input/output module) setup ......................... A4-3 L
ladder diagram support program M3 ..........A2-7, B2-6
E link refresh ........................................................ A3-15
exclusive access right ....................................... A6-26
link register (W) ...................................... A4-16, A4-21
executable program ............................................ A5-4
link relay (L) ........................................... A4-11, A4-21
executable program protection .......................... A6-17
link service ........................................................ A3-11
executing all blocks ............................................. A6-6
P W
WideField ........................................ A2-5, B2-4, C2-4
partial operation ................................................ A6-15
PC link function ................................................. A6-31
PC link system ................................. A2-3, B2-3, C2-3
program memory ................................................ A5-9
programming language ....................................... A5-1
programming tool ............................. A2-5, B2-4, C2-4
R
RAS function ....................................................... A8-1
remote I/O system ........................... A2-3, B2-2, C2-2
reset ................................................................... A4-4
response ........................................................... A6-39
response delay ................................................... A3-9
ROM Clear function .......................................... A6-25
ROM Copy function ........................................... A6-25
ROM Cross-check function ............................... A6-25
ROM resident ................................................... A6-20
ROM Transfer function ...................................... A6-25
ROM Writer function ......................................... A6-20
S
sampling trace function ..................................... A6-27
scan operation .................................................. A6-14
scan time ............................................................ A7-1
scan time monitoring time, setting ....................... A7-2
self diagnosis ...................................................... A8-1
self diagnosis status ............................... A4-25, A4-40
sequence operation .......................................... A4-24
sequence operation status ................................ A4-39
setpoint ............................................................. A6-16
Revision Information
Document Name : Sequence CPU Instruction manual - Functions (for F3SP21, F3SP25 and F3SP35)
Document No. : IM 34M6P12-02E