Fuji Electric SPH Series, SPF Series User Manual

USER’S MANUAL
Instructions
series
(For SX-Programmer Expert [D300win]
Type: NP4H-SEDBV3)
FEH525a

Preface

Thank you for purchasing Fuji Electric Programmable Controller MICREX-SX SPF Series.
Read this manual carefully to ensure correct operation and also read the corresponding user’s manuals listed below.
Title Manual No. Contents
User’s Manual Hardware, MICREX-SX series SPF
User’s Manual Instructions (Expert), MICREX-SX series SPH
User’s Manual Analog Unit, MICREX-SX series SPF
User’s Manual Built-in High-Speed Counter, MICREX-SX series SPF
User’s Manual General Purpose Communication, MICREX-SX series SPF
User’s Manual Pulse Output Instructions, MICREX-SX series SPF
User’s Manual SX-Programmer Expert (D300win) <Reference>, MICREX-SX series
* In addition to the above manuals, the following Fuji Electric Co.,Ltd.site offers various manuals and technical documents associated with MICREX-SX series. URL http://www.fujielectric.com
FEH526
FEH200
FEH527
FEH534
FEH528
FEH529
FEH257
Describes the system conguration, hardware specications and
operations of units in the MICREX-SX series SPF.
Describes the memory, language and system denitions of the
MICREX-SX series SPH (Expert).
Describes the specications and operations of analog input/output
units of the MICREX-SX series SPF.
Describes the specications and operations of the high-speed
counter built in the Main unit of the MICREX-SX series SPF.
Describes the specications of general purpose communication
(RS-232C/RS485) units/boards of the MICREX-SX series SPF and how to create applications.
Describes the specications and operations of the high-speed
pulse output and high-speed positioning functions built in the Main unit of the MICREX-SX series SPF.
Describes the functions and the operations of SX-Programmer Expert (D300win) V3.
Notes
1. This manual may not be reproduced in whole or part in any form without prior written approval by the manufacturer.
2. The contents of this manual (including specifications) are subject to change without prior notice.
3. If you find any ambiguous or incorrect descriptions in this manual, please write them down (along with the manual No. shown on the cover) and contact FUJI.

Safety Precautions

: Incorrect handling of the device may result in minor injury or physical damage.
Be sure to read the "Safety Precautions" thoroughly before using the module.
Here, the safety precautions items are classied into "Warning" and "Caution".
Warning
: Incorrect handling of the device may result in death or serious injury.
Caution
Even some items indicated by "Caution" may result in a serious accident. Both safety instruction categories provide important information. Be sure to strictly observe these instructions.
Warning
Neve touch any part of charged circuits as terminals and exposed metal portion while the power is turned ON. It may result in an electric shock to the operator. Turn OFF the power before mounting, dismounting, wiring, maintaining or checking, otherwise, electric shock, erratic
operation or troubles might occur.
Place the emergency stop circuit, interlock circuit or the like for safety outside the PLC. A failure of the PLC might break or cause problems to the machine. When using an expansion right side unit, be sure to mount a healthy unit to stop the SPF system with a fatal fault if the
expansion right side unit is dropped. Unless a healthy unit is mounted, a dropout of the expansion right side unit is not detected and the SPF system continues operation in the state where the expansion right side unit is dropped.
Safety Precautions
Caution
Do not use one found damaged or deformed when unpacked, otherwise, fire, failure or erratic operation might be caused. Do not shock the product by dropping or tipping it over, otherwise, it might be damaged or troubled. Follow the directions of the instruction manual and user’s manual when mounting the product.
If mounting is improper, the product might drop or develop problems or erratic operations. Use the rated voltage and current mentioned in the instruction manual and user’s manual. Use beyond the rated values
might cause fire, erratic operation or failure.
Operate (keep) in the environment specified in the instruction manual and user’s manual. High temperature, high humidity,
condensation, dust, corrosive gases, oil, organic solvents, excessive vibration or shock, might cause electric shock, fire, erratic operation or failure.
Select a wire size to suit the applied voltage and carrying current. Tighten the wire terminals to the specified torque.
Inappropriate wiring or tightening might cause fire, malfunction, failure or might cause the product to drop from its mounting.
Contaminants, wiring chips, iron powder or other foreign matter must not enter the device when installing it, otherwise, fire,
accident, erratic operation or failure might occur.
Remove the dust-cover seals of modules after wiring, otherwise, fire, accident, erratic operation or failure might occur. Connect the ground terminal to the ground, otherwise, electric shock or erratic operation might occur. Periodically make sure the terminal screws and mounting screws are securely tightened.
Operation at a loosened status might cause fire or erratic operation.
Put the furnished connector covers on unused connectors, otherwise, erratic operation or failure might occur. Sufficiently make sure of safety before program change, forced output, starting, stopping or anything else during a run.
Wrong operation might break or cause problems to the machine
Engage the loader connector in a correct orientation, otherwise, an erratic operation might occur. Before touching the PLC, discharge any static electricity that may have been collected on your body. To discharge it, touch
a grounded metallic object. Static electricity might cause erratic operation or failure.
Be sure to install the electrical wiring correctly and securely, observing the directions of the instruction manual and user’s
manual. Wrong or loose wiring might cause fire, accident or failure.
When disengaging the plug from the outlet, do not pull the cord, otherwiase, break of cable might cause fire or failure. Do not attempt to change system configurations (such as installing or removing expansion block) while the power is ON,
otherwise, failure or erratic operation might occur.
Do not attempt to repair the module by yourself, but contact your Fuji Electric agent, otherwise, fire, accident or failure
might occur.
To clean the module, turn power off and wipe the module with a cloth moistened with warm water. Do not use thinner or
other organic solvents, as the module surface might become deformed or discolored.
Do not remodel or disassemble the product, otherwise, failure might occur. Follow the regulations of industrial wastes when the device is to be discarded. The products covered in this user’s manual have not been designed or manufactured for use in equipment or systems
which, in the event of failure, can lead to loss of human life.
Do not use the products covered in this user’s manual for special applications, such as power plant, radiation facilities,
railroad, space/flight equipments, lifeline facilities, or medical equipments, where a great effect on human life, body, society, major property or rights may be anticipated and high degree of safety is required.
Be sure to provide protective measures when using the products covered in this manual in equipment which, in the event
of failure, can lead to loss of human life or other grade results.
External power supply (such as 24 V DC power supply) which is connected to DC I/O should be strongly isolated from AC
power supply, otherwise, accident or failure might occur. (Use of EN60950 conforming power supply is recommended.)
Do not use the peoducts covered in this user’s manual in a residential environment.

Revision

* The manual No. is printed at the bottom right of the cover of this manual.
Printed on * Manual No. Revision contents
Mar. 2017 FEH525 First edition
Dec. 2017 FEH525a • The following sub sections were added.
“1-3-8 (9) and (10),” and “1-10.”
• R_READ, R_WRITE and C_ETHERNET FBs were added to “2-3-2 (4) Function block
summary.”

Contents

Preface
Safety Precautions
Revision
Contents
Section 1 Specications
1-1 Performance Specications ...............................................................................................................1-1
1-2 Function Specications ......................................................................................................................1-3
1-3 Memory ..............................................................................................................................................1-4
1-3-1 Memory map .................................................................................................................................................1-4
1-3-2 Input/output memory area .............................................................................................................................1-6
1-3-3 Standard memory area .................................................................................................................................1-7
1-3-4 Retain memory area......................................................................................................................................1-8
1-3-5 User FB instance memory area ....................................................................................................................1-9
1-3-6 System FB instance memory area ................................................................................................................1-10
1-3-7 System memory area ....................................................................................................................................1-11
1-3-8 SPF original special relay/register area ........................................................................................................1-22
1-4 I/O Address Assignment ..................................................................................................................... 1-40
1-4-1 Rules for assigning I/O addresses ................................................................................................................1-40
1-4-2 Example of address assignment ...................................................................................................................1-40
1-5 Variables ............................................................................................................................................. 1-42
1-5-1 Overview of variables ....................................................................................................................................1-42
1-5-2 Variable declaration .......................................................................................................................................1-43
1-6 Data Types .........................................................................................................................................1-47
1-6-1 Organization of data types ............................................................................................................................1-47
1-6-2 Basic data types ............................................................................................................................................1-48
1-6-3 Derived data types ........................................................................................................................................1-50
1-7 Tasks ..................................................................................................................................................1-55
1-7-1 Task specications ........................................................................................................................................1-55
1-7-2 Types and operations of tasks ......................................................................................................................1-55
1-7-3 Example of xed cycle task operation ...........................................................................................................1-56
1-7-4 Example of event task operation ...................................................................................................................1-57
1-8 Program Organization Units (POUs) ..................................................................................................1-58
1-9 Calendar Function ..............................................................................................................................1-61
1-9-1 Calendar value range ....................................................................................................................................1-61
1-9-2 Calendar accuracy ........................................................................................................................................1-61
1-9-3 How to monitor and set the calendar from D300win .....................................................................................1-61
1-9-4 How to monitor and set the calendar from an application program...............................................................1-62
1-10 Writing/Reading Data to/from Memory Pack ....................................................................................1-63
Section 2 Programming Languages
2-1 Types of Programming Languages .................................................................................................... 2-1
2-2 LD Language ......................................................................................................................................2-2
2-2-1 LD language ..................................................................................................................................................2-2
2-3 FBD Language ...................................................................................................................................2-3
2-3-1 Function summary.........................................................................................................................................2-4
2-3-2 Function block summary ...............................................................................................................................2-28
2-3-3 SPF Original FCTs ........................................................................................................................................2-41
2-4 ST Language ......................................................................................................................................2-43
2-4-1 ST operators .................................................................................................................................................2-43
Contents
2-4-2 ST statements ...............................................................................................................................................2-44
2-5 IL Language .......................................................................................................................................2-45
2-5-1 IL instruction summary ..................................................................................................................................2-45
2-6 SFC Elements ....................................................................................................................................2-48
2-6-1 SFC elements ...............................................................................................................................................2-49
2-6-2 Step transition ...............................................................................................................................................2-57
2-6-3 Automatically generated SFC variables ........................................................................................................2-60
2-6-4 SFC programming precautions .....................................................................................................................2-61
2-6-5 Continuous operation of SFC ........................................................................................................................2-62
Section 3 System Denition
3-1 System Denition Summary ...............................................................................................................3-1
3-2 System Conguration Denition .........................................................................................................3-2
3-2-1 System conguration denition .....................................................................................................................3-2
3-3 Parameters for Main Unit ...................................................................................................................3-4
3-3-1 CPU running denition ..................................................................................................................................3-4
3-3-2 CPU memory size denition ..........................................................................................................................3-6
3-3-3 I/O group setting............................................................................................................................................3-8
3-3-4 Remote RUN/STOP bit setting ......................................................................................................................3-10
3-3-5 Digital lter setting .........................................................................................................................................3-11
3-3-6 High-speed counter setting ...........................................................................................................................3-12
3-3-7 High-speed pulse output setting....................................................................................................................3-13
Section 1 Specications
1-1 Performance Specications ................................................................... 1-1
1-2 Function Specications ..........................................................................1-3
1-3 Memory .....................................................................................................1-4
1-3-1 Memory map ..................................................................................................1-4
(1) Main unit with 14/24 points ............................................................................1-4
(2) Main unit with 32/40/60 points .......................................................................1-5
1-3-2 Input/output memory area ..............................................................................1-6
1-3-3 Standard memory area ...................................................................................1-7
1-3-4 Retain memory area .......................................................................................1-8
1-3-5 User FB instance memory area ......................................................................1-9
1-3-6 System FB instance memory area ...............................................................1-10
1-3-7 System memory area ................................................................................... 1-11
(1) System memory ........................................................................................... 1-11
(2) Resource operating status %MW10.0 (Read only) ....................................1-12
(3) Resource switch / User ROM state %MW10.1 (Read only) ......................1-12
(4) Resource fatal fault factor %MW10.2 (Read only) .....................................1-13
(5) Resource nonfatal fault factor %MW10.4 (Read only) ...............................1-13
(6) CPU error factor %MW10.6 (Read only) ...................................................1-13
(7) Memory error factor %MW10.8, %MW10.9 (Read only) ...........................1-14
(8) Application error factor %MW10.12, %MW10.13 (Read only) ...................1-14
(9) User fatal fault %MW10.14 to %MW10.16 ................................................1-15
(10) User nonfatal fault %MW10.18 to %MW10.20 ........................................1-15
(11) System denition error factor %MW10.22 to %MW10.27
(Read only) ................................................................................................1-16
(12) Application program error factor %MW10.38 to %MW10.41 ................... 1-17
(13) Announce relay %MW10.42, %MW10.43 (Read only) ............................1-18
(14) Resource running information %MW10.49 (Read only) ..........................1-19
(15) Resource conguration/fault information %MW10.50, %MW10.51
(Read only) ................................................................................................1-19
(16) Conguration/conguration fault information %WM10.52 to %WM10.83
(Read only) ................................................................................................1-20
(17) User ROM status %MW10.298 (Read only) ............................................1-21
(18) SPF original announce relay %MW10.299 (Read only) ..........................1-21
1-3-8 SPF original special relay/register area ........................................................1-22
(1) Built-in calendar data %MW1.61442 to %MW1.61449 ..............................1-22
(2) Battery information %MW1.61450 .............................................................1-22
(3) Pulse catch input %MW1.61472 to %MW1.61479 ....................................1-22
(4) Memories related to interrupt %MW1.61480 to %MW1.61498 ..................1-23
(5) Memories related to high-speed counter
%WM1.61536 to %WM1.61561, %WM3.61536 to %WM3.61577 .............1-25
(6) Memories related to pulse/positioning
%MW1.61600 to %MW1.61769, %MW3.61600 to %MW3.61613 ..............1-27
(7) Memories related to general purpose communication
%MW1.61793 to %MW1.61838 ................................................................... 1-31
(8) Memories related to CPU link %MW1.61858 to %MW1.62399 .................1-33
(9) Memories related to Ethernet
%MW1.62400 to %MW1.62463, %MW3.62400 to %MW3.62463 ..............1-35
(10) Data write/read parameter for memory pack
%MW3.61440 to %MW3.61471 ................................................................1-39
1-4 I/O Address Assignment ....................................................................... 1-40
1-4-1 Rules for assigning I/O addresses ...............................................................1-40
(1) Unit No. ........................................................................................................1-40
(2) Word No. and bit address ............................................................................ 1-40
1-4-2 Example of address assignment ..................................................................1-40
(1) Example of a system consisting only of a main unit (40 points) ..................1-40
(2) Example of a system in which expansion units are connected to
a main unit (60 points) .................................................................................1-41
(3) Example of a system in which expansion units are connected to
a main unit (32 points) .................................................................................1-41
1-5 Variables .................................................................................................1-42
1-5-1 Overview of variables ...................................................................................1-42
1-5-2 Variable declaration ......................................................................................1-43
(1) Usage of variables .......................................................................................1-43
(2) Assigning variables to memory ....................................................................1-44
(3) Retaining variables during power failure ......................................................1-46
(4) Setting initial value for variable ....................................................................1-46
(5) Restrictions on variable names ....................................................................1-46
1-6 Data Types .............................................................................................1-47
1-6-1 Organization of data types ...........................................................................1-47
1-6-2 Basic data types ...........................................................................................1-48
1-6-3 Derived data types .......................................................................................1-50
(1) Array data types ...........................................................................................1-50
(2) Structured data types ...................................................................................1-52
(3) Restrictions on derived data types ...............................................................1-54
1-7 Tasks ...................................................................................................... 1-55
1-7-1 Task specications .......................................................................................1-55
1-7-2 Types and operations of tasks ......................................................................1-55
1-7-3 Example of xed cycle task operation ..........................................................1-56
1-7-4 Example of event task operation ..................................................................1-57
1-8 Program Organization Units (POUs) ...................................................1-58
1-9 Calendar Function .................................................................................1-61
1-9-1 Calendar value range ...................................................................................1-61
1-9-2 Calendar accuracy .......................................................................................1-61
1-9-3 How to monitor and set the calendar from D300win ....................................1-61
1-9-4 How to monitor and set the calendar from an application program .............. 1-62
1-10 Writing/Reading Data to/from Memory Pack ....................................1-63
Section 1 Specications
1-1 Performance Specications
Item
Control system
I/O connection method Direct input/output (local bus)
I/O control system
CPU 16-bit processor
Memory types Program memory, data memory, temporary memory
Programming language
Length of instructions Variable length (depending on language)
Instruction execution speed
Program memory capacity (Note 2) 8192 steps 20480 steps
Program steps in a POU 8192 steps 16384 steps
Sequence instruction Contact: mini. 0.30 µs, Coil: min. 0.33 µs
Applied instruction Timer: min. 10.06 µs, Counter: min. 7.51 µs
Specication
Main unit with 14/24 points Main unit with 32/40/60 points
Stored program,
Cyclic scanning system (default task), xed cycle task, event task
Whole: Scan batch refresh system
Digital I/O: Task synchronized refresh system
IL language, (Instruction List) ST language (Structured Text)
LD language, (Ladder Diagram) FBD language, (Function Block Diagram) SFC language, (Sequential Function Chart) Adhere to IEC61131-3
I/O memory (I/Q) 512 words
Standard memory (M) 4096 words 8192 words
Retain memory (M) 2048 words 4096 words
User FB instance memory 4096 words 8192 words
User FB instance memory Initial value setting memory
Memory (Note 1)
Temporary area 8192 words
Available basic data type (Note 3)
System FB instance memory
System memory (M) 512 words
Special relay/register (non-retain) (M) 4096 words
Special relay/register (retain) (L) 4096 words
Timer 256 points 512 points
Additional timer 0 point 0 point
Counter 256 points 512 points
Edge detection 1024 points 2048 points
Others 512 words 1024 words
4608 words 9216 words
5632 words 11264 words
BOOL, INT, DINT, UINT, UDINT, REAL,TIME, DT, DATE, TOD, WORD, DWORD
Data type nesting
Notes:
1) You can freely increase or decrease the area sizes of the standard memory, retain memory, user FB instance memory, and system FB instance memory. The above table shows the default values.
2) The initial value setting area of the standard memory and retain memory is included.
3) Available data types depend on the instruction.
One level (array of arrays, structure of arrays, array of structures, structure of structures)
1-1
Section 1 Specications
Item Specication
No. of structure data type members 200
Max. No. of elements of array data type 16-bit data type: 4096, 32-bit data type: 2048
No. of tasks
Program instance (No. of POUs / task)
No. of user function blocks 128
No. of user functions 128
Nesting depth of user function blocks / user functions
Variable
No. of user FB terminals
Library
Global variable 15000
Local variable 15000/POU
No. of registered libraries 16/project
Nesting depth 8 levels
Default tasks (Cyclic scanning): 1
Fixed cycle tasks + Event tasks: 15 in total
64 / Default task 8 / Fixed cycle task, Event task (Total of all tasks: Max. 64)
64 levels in total (Including user function blocks / user functions called from a program)
VAR_INPUT : Up to 128 VAR_OUTPUT : Up to 128
128 in total
1-2
Section 1 Specications
1-2 Function Specications
Item Main unit specication
External interrupt input function Max. 16 points (rising edge / falling edge / rising and falling edges)
Pulse catch function
No. of channels Max. 8 channels (single phase)
High-speed counter
0.1 ms high-speed timer When using high-speed counter in high-speed timer mode
High-speed pulse output and High-speed positioning
Communication port
Diagnostic function Self-diagnosis (memory check, ROM sum check), system conguration supervising
Security function Password (Set by the support tool)
Count frequency
Count mode U/D, U/D × 2, P/R, P/R × 2, A/B, A/B × 2, A/B × 3, A/B × 4 (Note 1)
No. of axes Max. 4
Output frequency Max. 200kHz
Output pulse mode U/D, P/R, A/B, PLS, PWM (Note 1) (Note 2)
Pulse output instruction By SPF original instructions
PORT0 (RS232C) Loader port built in main unit
PORT1, PORT2 (Communication board)
PORT3, PORT4 (Communication unit)
Max. 36 points (rising edge / falling edge)
Max. 200kHz (Advance Main unit) Max. 100kHz (Basic Main unit)
Communication mode: Loader communication, general-purpose communication, CPU link communication (only one port among them), Modbus RTU master communication Transmission speed: 1200/2400/4800/9600/19200/38400/57600/115200 bps
Calendar function
Program memory,
system denition
Backup (Note 3)
User ROM function
Notes:
1) U/D: Up/Down pulse mode, P/R: Pulse / Direction signal mode, A/B: A/B phase mode, x2: 2 multiplication, x3: 3 multiplication, x4: 4 multiplication
2) PLS: Single pulse output mode, PWM: PWM output mode
3) The backup time is 10 years or more (ambient temperature: 55°C)
4) Notes on rewriting programs
When rewriting the program in the main unit from the loader while the PLC is running, the built-in RAM is changed, however, the built-in ash memory is unchanged. As a result, the contents of the RAM does not match those of the ash memory, and the RUN/MEM LED blinks to prompt the user to transfer the contents of the RAM to the ash memory. After rewriting the program, be sure to transfer the contents of the RAM to the ash memory. When the transfer is completed
normally, the RUN/MEM LED turns OFF.
<Method 1>
By using the loader, transfer the contents of the RAM to the ash memory.
<Method 2>
After rewriting the program, turn OFF the main unit and then ON again. When the power supply is turned ON, the contents of the RAM is automatically transferred to the ash memory.
ZIP le Built-in ash memory
Data memory Built-in RAM: Built-in lithium primary battery
Calendar Calendar IC: Built-in lithium primary battery
Available up to 31 Dec. 2069 23:59:59 Precision: ±20 sec/day (at 25°C)
Built-in RAM: Built-in lithium primary battery
Built-in ash memory (Note 4)
Programs, system denitions, and zipped les can be stored in the external memory
pack (NA8PMF-20).
1-3
Section 1 Specications
IEC representation

1-3 Memory

1-3-1 Memory map

(1) Main unit with 14/24 points
(Input) (Output)
%I %Q
Input/output memory
(I/Q)
512 words (8192 points)
(Note 3)
%MW1.0
%MW1.4095
%MW3.0
%MW3.2047
%MW10.0
%MW10.511
%MW1.61440
Standard memory
(High-speed)
(M)
4K words
Standard memory
(M)
0K word
Retain memory
(M)
2K words
User FB instance memory
4K words
System FB instance memory
5.5K words
System memory
(M)
512 words
Special relay/register
(non-retain) (M)
4K words
(Note 2)
(Note 1)
Program memory
8K steps
Initial value setting area
for standard memory and
retain memory (Note 4)
Temporary area
8K words
* 1K = 1024
%MW3.61440
Special relay/register
(retain) (M)
4K words
User FB instance memory
Initial value setting memory
4.5K words
(Note 5)
Notes:
1) You can increase or decrease the size of the standard memory (excluding high-speed memory), retain memory, user FB
instance memory, and system FB instance memory by the loader. The default values are shown in the gure above. For details, see “3-3-2 CPU memory size denition.”
2) The rst 4K words of the standard memory (M) are used as a high-speed memory for high-speed access. You cannot
change the size.
3) For the input/output address assignment, see “1-4 I/O Address Assignment.”
4) You can set the initial values of the standard memory and retain memory using the free space of the program memory. Initial values require 2.5 steps per variable.
5) The initial value setting memory is automatically allocated according to the size of the user FB instance memory and uses he area of user FB memory x 1 1/8 words.
1-4
Section 1 Specications
IEC representation
(2) Main unit with 32/40/60 points
(Input) (Output)
%I %Q
Input/output memory
(I/Q)
512 words (8192 points)
(Note 3)
%MW1.0
%MW1.4095
%MW1.4096
%MW1.8191
%MW3.0
%MW3.4095
%MW10.0
%MW10.511
%MW1.61440
Standard memory
(High-speed)
(M)
4K words
Standard memory
(M)
4K words
Retain memory
(M)
4K words
User FB instance memory
8K words
System FB instancememory
11K words
System memory
(M)
512 words
Special relay/register
(non-retain) (M)
4K words
(Note 2)
(Note 1)
Program memory
20K steps
Initial value setting area
for standard memory and
retain memory (Note 4)
Temporary area
8K words
* 1K = 1024
%MW3.61440
Special relay/register
(retain) (M)
4K words
User FB memory
Initial value setting memory
9K words
(Note 5)
Notes:
1) You can increase or decrease the size of the standard memory (excluding high-speed memory), retain memory, user FB
instance memory, and system FB instance memory by the loader. The default values are shown in the gure above. For details, see “3-3-2 CPU memory size denition.”
2) The rst 4K words of the standard memory (M) are used as a high-speed memory for high-speed access. You cannot
change the size.
3) For the input/output address assignment, see “1-4 I/O Address Assignment.”
4) You can set the initial values of the standard memory and retain memory using the free space of the program memory. Initial values require 2.5 steps per variable.
5) The initial value setting memory is automatically allocated according to the size of the user FB instance memory and uses the area of user FB memory x 1 1/8 words.
1-5
Section 1 Specications
IEC representation
15……………………………0
………………………………………

1-3-2 Input/output memory area

The input/output memory area is a window through which data are exchanged between the main unit (user application) and external devices. This area is used by input devices such as pushbuttons, switches, and sensors which send data to the main unit and by output devices such as relays, solenoids, and indicators which show the results of program executions.
Key points:
G
1) Input is represented by %I (prex), and output by %Q (prex). When actually assigning an I/O address, these prexes
are followed by a size and address in the variable declaration. For details, see “1-4 I/O Address Assignment.”
2) Both input and output cannot exist in the same word.
%I %Q
Input/output memory
512 words
1-6
Section 1 Specications
15……………………………0IEC representation

1-3-3 Standard memory area

The standard memory area is used for auxiliary relays that are used internally in the PLC.
Key points:
G
1) In the direct addressing mode, this memory area is specied in he format of %Mo1. ... (replace o with any of X, W, or D).
Usually, since a variable declaration is used to assign memory to an application program, you may neglect addresses in programming. See “1-5 variables” for details.
2) The specied memory area is reset to (0) zero when self-PLC is started.
3) 4K words from the top of the standard memory is the area where data access in the CPU is processed at high speed.
4) The sizes of the standard memory areas can be changed taking those of other areas into account. Note that the size of
the high-speed access memory area is xed to 4K words and cannot be changed. For the details of memory size change, see “3-3-2 CPU memory size denition.”
5) No continuous access is allowed to the high-speed access memory area and the boundaries between other areas. For example, an array or structure cannot lie across the boundary
%MW1.0
%MW1.4095 %MW1.4096
……………………………… ……
Standard memory
(high speed)
(M)
4K words
Standard memory
(M)
Unit with 14/24 points : 0K word Unit with 32/40/60 points : 4K words
1-7
Section 1 Specications
15……………………………0
IEC representation

1-3-4 Retain memory area

The retain memory area is used for the auxiliary relays that are used internally in the PLC.
Key points:
G
1) In the direct addressing mode, this memory area is specied in he format of %Mo3. ... (replace o with any of X, W, or D).
Usually, since a variable declaration is used to assign memory to an application program, you may neglect addresses in programming. see “1-5 variables” for details.
2) The following processes are performed at cold or warm start.
Cold start Warm start
(Note)
Standard memory Reset to 0 (zero).
Initialized standard memory Writes specied initial values.
3) You can select whether or not to clear this area when transferring the project. If you select “clear,” the system cold-starts and If “not clear,” the system warm-starts.
4) The size of the retain memory area can be changed taking those of other areas into account.
For the details of memory size change, see “3-3-2 CPU memory size denition.”
%MW3.0
……………………………………………
Retain memory
(M)
Unit with 14/24 points : 2K words Unit with 32/40/60 points : 4K words
Retains old values.
Retains old values.
Notes:
1) The CPU runs in “cold start” mode when started by the “Initial run” command of the loader and in “warm start” mode when the system power is turned ON or started by the “Run” command of the loader.
2) In the following cases, the PLC cold-starts.
• When started up for the rst time after user ROM with different memory allocation was installed
• When started up for the rst time after memory backup error occurred
• When started up for the rst time after the resources were initialized
• When started up for the rst time after the data memory in this area was cleared
• During battery-less operation
1-8
Section 1 Specications

1-3-5 User FB instance memory area

The user FB instance memory area is an instance memory area dedicated to each user FB used internally in the PLC.
Key points:
G
1) The size of the user FB instance memory area can be changed taking those of other areas into account.
For the details of memory size change, see “3-3-2 CPU memory size denition.”
2) When setting an initial value in the user FB internal memory, “No. of words in user FB instance area that are dened in
the variable worksheet” x 9/8 is required for the user FB initial value setting area.
3) You can select whether or not to clear the memory for saved attributes in this area when transferring the project.
User FB
instance memory
Unit with 14/24 points : 4K words Unit with 32/40/60 points : 8K words
Notes:
The default values are shown in the left gure.
1-9
Section 1 Specications

1-3-6 System FB instance memory area

The user FB memory area is a real memory area dedicated to the system FBs such as timers, counters, and differential instructions that are used internally in the PLC.
Key points:
G
1) At PLC startup, predened initialization is performed. (the old values are retained or reset to 0s (zeros).
Example) The current values for the counters and additional timers and the old value for the edge detect instruction counter are retained, while the current values for the timers (excluding additional) are reset to 0s (zeros).
2) Eight words/timer, four words/counter, and two words/edge detect instruction counter are used.
3) The size of the system FB instance memory area can be changed taking those of other areas into account.
For the details of memory size change, see “3-3-2 CPU memory size denition.”
4) By default, the numbers of timers, additional timers, counters, and edge detect instruction counters have been preset per main unit. If necessary, you can change these numbers.
Timer
Main unit with 14/24 points 256 points 0 point 256 points 1024 points 512 words
Main unit with 32/40/60 points 512 points 0 point 512 points 2048 points 1024 words
To set the timer, additional timer, counter, edge detect, and other system FB areas, the following conditions must be met.
(No. of timers) × 8 words + (No. of counters) × 4 words + (No. of edge detect counters) × 2 words + Others <= Preset size of system FB instance memory area
5) You can select whether or not to clear the memory for saved attributes in this area when transferring the project.
Additional timer
Counter Edge detect Others
1-10
Section 1 Specications

1-3-7 System memory area

The use of the system memory is predetermined; the ags to indicate the operating status and error condition of the MICREX-SX
SPF series system are allocated.
(1) System memory
%MW10.0 Resource operating status
%MW10.1 Resource switch / User ROM status
%MW10.2 Resource fatal fault factor
%MW10.3 Not used
%MW10.4 Resource nonfatal fault factor
%MW10.5 Not used
%MW10.6 CPU error factor
%MW10.7 Not used
%MW10.8, 9 Memory error factor
%MW10.10 %MW10.11
%MW10.12 Application error factor (fatal fault)
%MW10.13 Application error factor (nonfatal fault)
%MW10.14
|
%MW10.16
%MW10.17 Not used
%MW10.18
|
%MW10.20
%MW10.21 Not used
%MW10.22
|
%MW10.27
%MW10.28
|
%MW10.37
%MW10.38
|
%MW10.41
%MW10.42 %MW10.43
%MW10.44
|
%MW10.48
%MW10.49 Resource running information
%MW10.50, 51 Resource conguration/fault information
%MW10.52
|
%MW10.67
%MW10.68
|
%MW10.83
Not used
User fatal fault factor 0 - factor 47
User nonfatal fault factor 0 - factor 47
System denition error factor
Not used
Application program error factor
Announce relay
Not used
Conguration information
Conguration fault information
%MW10.84
|
%MW10.297
%MW10.298 User ROM status
%MW10.299 SPF original announce relay
%MW10.300
|
%MW10.511
Notes:
1) Be sure not to write any data to Not used areas.
2) Information of system ags in the system memory areas
can be referenced from application programs. However, do not use it as “an event variable” for executing event tasks in application programs. (Some addresses are unavailable for starting tasks.)
Not used
Not used
1-11
Section 1 Specications
(2) Resource operating status %MW10.0 (Read only)
This area indicates the resource (main unit) operating status and operating modes.
Address Name Description
%MX10.0.0 Run ON while the main unit is running.
%MX10.0.1 Stop ON while the main unit is stopped.
%MX10.0.2 Fatal fault ON when a fatal error occurs in the main unit.
%MX10.0.3 Nonfatal fault ON when a nonfatal error occurs in the main unit.
%MX10.0.4 | %MX10.0.8
%MX10.0.9 Automatic operation mode ON while in the automatic operation mode.
%MX10.0.10 Not used
%MX10.0.11 Battery-less operation mode ON while in the battery-less operation mode.
%MX10.0.12 | %MX10.0.15
Automatic operation mode
In this mode, the main unit starts operation when the power switch is turned ON. SPF is always set in this mode.
Not used
Not used
Battery-less operation mode
In this mode, all memories are initialized (assigned initial values or cleared to zero) when the power of the main unit is turned
ON. The battery voltage is not checked. You can enable or disable this mode in the “CPU running denition” on the “Main unit
parameter” dialog box.
(3) Resource switch / User ROM state %MW10.1 (Read only)
Address Name Description
%MX10.1.0 | %MX10.1.5
%MX10.1.6 User ROM card connection state
%MX10.1.7 User ROM card write protect
%MX10.1.8 STOP position ON if the set bit is OFF (STOP) when using the remote RUN/STOP function
%MX10.1.9 Not used
%MX10.1.10 TERM position ON when the remote RUN/STOP function is not used
%MX10.1.11 | %MX10.1.15
Not used
ON: Connected OFF: Not connected
ON: Write-protected OFF: Write-permitted (enabled when “%MX10.1.6” is ON)
Not used
1-12
Section 1 Specications
(4) Resource fatal fault factor %MW10.2 (Read only)
This area indicates the factors of fatal faults. If a fatal fault occurs, the resource (main unit) stops operation.
Address Name Description
%MX10.2.0 CPU error ON when a fatal fault occurs in the main unit.
%MX10.2.1 Not used
%MX10.2.2 Memory error ON when an error occurs in the memory in the main unit.
%MX10.2.3 Not used
%MX10.2.4 Application error ON when an error is found in an application program or system denition.
%MX10.2.5 I/O error
%MX10.2.6 | %MX10.2.12
%MX10.2.13 Other hardware error ON when an error occurs in hardware other than the CPU, memory and I/O.
%MX10.2.14 Not used
%MX10.2.15 User fatal fault
Not used
ON when communication between the main unit and a healthy unit is interrupted. I/O errors are not detected if no healthy unit is mounted.
ON when one of the user fatal fault ags (%MX10.14.0 to %MX10.166.15) is
turned ON by an application program.
(5) Resource nonfatal fault factor %MW10.4 (Read only)
This area indicates the factors of nonfatal faults. Even if a nonfatal fault occurs, the resource (main unit) continues operation.
Address Name Description
%MX10.4.0 %MX10.4.1
%MX10.4.2 Memory error ON when an error occurs in the memory in the main unit.
%MX10.4.3 Not used
%MX10.4.4 Application error ON when an error is found in an application program or system denition.
%MX10.4.5 | %MX10.4.13
%MX10.4.14 Battery error
Not used
Not used
ON when voltage of the data backup battery drops or when the battery connection switch is OFF.
%MX10.4.15 User nonfatal fault
ON when one of the user nonfatal fault ags (%MX10.18.0 to %MX10.20.15)
is turned ON by a user program.
(6) CPU error factor %MW10.6 (Read only)
Address Name Description
%MX10.6.0 Arithmetic processor error Hardware error in the arithmetic LSI in the main unit
%MX10.6.1 | %MX10.6.15
Not used
1-13
Section 1 Specications
(7) Memory error factor %MW10.8, %MW10.9 (Read only)
Address Name Description Level
%MX10.8.0 System ROM error ON when an error occurs in the system ROM in the main unit. Fatal fault
%MX10.8.1 System RAM error ON when an error occurs in the system RAM in the main unit. Fatal fault
%MX10.8.2 Application ROM error
%MX10.8.3 Application RAM error
%MX10.8.4 | %MX10.9.13
%MX10.9.14
%MX10.9.15 Memory backup error
Notes:
1) This bit is also set to “1” when an error occurs in the user ROM card.
<System operation after a memory error occurs>
If a memory backup error occurs, the entire user memory area is reset to 0 (zero). When any of the bits %MX10.8.0 to %MX10.8.3 is set to ON, there is a possibility of a hardware fault. Therefore, even if the power is turned OFF and then ON again, a fatal fault may recur due to a memory error.
Not used
Power down processing error
ON when an error occurs in the ROM in the main unit for storing application programs.
ON when an error occurs in the RAM in the main unit for storing application programs.
ON when power down processing is not performed normally. This bit can be set OFF by an application program.
ON when no power-failure-time data is retained. This bit can be set OFF by an application program.
Fatal fault (Note 1)
Fatal fault
Nonfatal fault
Nonfatal fault
(8) Application error factor %MW10.12, %MW10.13 (Read only)
Address Name Description Level
%MX10.12.0 System denition error ON when an error is found in the system denition. Fatal fault
%MX10.12.1 Application program error ON when an error is found in an application program. Fatal fault
%MX10.12.2 | %MX10.12.15
%MX10.13.0 Not used
%MX10.13.1 Application program error ON when an error is found in an application program. Nonfatal fault
%MX10.13.2 | %MX10.13.15
Not used
Not used
1-14
Section 1 Specications
(9) User fatal fault %MW10.14 to %MW10.16
Address Name Description
%MX10.14.0 User fatal fault factor 0
| |
%MX10.14.15 User fatal fault factor 15
%MX10.15.0 User fatal fault factor 16
| |
%MX10.15.15 User fatal fault factor 31
%MX10.16.0 User fatal fault factor 32
| |
%MX10.16.15 User fatal fault factor 47
A fatal error occurs and the main unit stops when any of these bits is set to ON by an application program.
(10) User nonfatal fault %MW10.18 to %MW10.20
Address Name Description
%MX10.18.0 User nonfatal fault factor 0
| |
%MX10.18.15 User nonfatal fault factor 15
%MX10.19.0 User nonfatal fault factor 16
| |
A nonfatal error occurs when any of these bits is set to ON by an application program. The main unit continues operation. Set to OFF the bit that has been set to ON by the application program to restore the main unit from a nonfatal fault condition.
%MX10.19.15 User nonfatal fault factor 31
%MX10.20.0 User nonfatal fault factor 32
| |
%MX10.20.15 User nonfatal fault factor 47
1-15
Section 1 Specications
(11) System denition error factor %MW10.22 to %MW10.27 (Read only)
Address Name Description Level
%MX10.22.0 Not used
%MX10.22.1 System denition error
%MX10.22.2 | %MX10.22.9
%MX10.22.10 CPU running denition error ON when the system denition contains an error. Fatal fault
%MX10.22.11
%MX10.22.12 %MX10.22.13
%MX10.22.14 CPU running denition 3 error ON when the running denition of SPF contains an error. Fatal fault
%MX10.22.15 CPU running denition 2 error ON when the running denition of SPF contains an error. Fatal fault
%MX10.23.0
%MX10.23.1
%MX10.23.2
%MX10.23.3
%MX10.23.4
%MX10.23.5 | %MX10.23.15
%MX10.24.0 Not used
Not used
CPU memory boundary
denition error
Not used
CPU I/O group denition error
for default tasks
CPU I/O group denition error
for level 0 tasks
CPU I/O group denition error
for level 1 tasks
CPU I/O group denition error
for level 2 tasks
CPU I/O group denition error
for level 3 tasks
Not used
ON when the contents of the system denition in the main unit do not match the actual system conguration.
ON when the memory space used by an application program exceeds the total memory capacity.
ON when an input unit is dened for an output unit. Fatal fault
Fatal fault
Fatal fault
%MX10.24.1
%MX10.24.2 | %MX10.24.15
%MX10.27.0
%MX10.27.1 | %MX10.27.15
Expansion unit running
denition error
Not used
Communication unit/board
running denition error
Not used
ON when the running denition of the expansion unit contains an
error.
ON when the running denition of the communication unit/board
contains an error.
Fatal fault
Fatal fault
1-16
Section 1 Specications
(12) Application program error factor %MW10.38 to %MW10.41
Address Name Description Level
%MX10.38.0 Application WDT error
%MX10.38.1 Application execution error
%MX10.38.2 | %MX10.38.10
%MX10.38.11 FB instance setup error ON when the specied storage address is not found. Fatal fault
%MX10.38.12 Initial value setup error
%MX10.38.13 SFM boundary denition error
%MX10.38.14 POU instruction error ON when there is an error in the POU. Fatal fault
%MX10.38.15 Task registration error ON when there is an error in the task registration. Fatal fault
%MX10.39.0 Missing level 0 task
%MX10.39.1 Missing level 1 task
%MX10.39.2 Missing level 2 task
%MX10.39.3 Missing level 3 task
%MX10.39.4 Level 0 task slow-down
%MX10.39.5 Level 1 task slow-down
%MX10.39.6 Level 2 task slow-down
Not used
ON when the execution time of a default task exceeds the preset value of a watchdog timer.
ON when an error occurs during user program execution that causes “temporary size-over.”
ON when the set initial value exceeds the dened range of a
storage area.
ON when the set size exceeds the capacity of the system FB instance memory (SFM).
ON when a task is missing. These bits can be set OFF by an application program.
ON when program execution is deferred and the predened xed cycle time is not Maintained.
These bits can be set OFF by an application program.
Fatal fault
Fatal fault
Fatal fault
Fatal fault
Nonfatal fault
Nonfatal fault
%MX10.39.7 Level 3 task slow-down
%MX10.39.8 | %MX10.40.3
%MX10.40.4 Missing level 4 task
%MX10.40.5 Missing level 10 task
%MX10.40.6 Missing level 11 task
%MX10.40.7 Missing level 12 task
%MX10.40.8 Missing level 13 task
%MX10.40.9 Missing level 14 task
%MX10.40.10 Missing level 15 task
%MX10.40.11 Missing level 16 task
%MX10.40.12 Missing level 17 task
%MX10.40.13 Missing level 18 task
%MX10.40.14 Missing level 19 task
%MX10.40.15 Not used
%MX10.41.0 | %MX10.41.3
Not used
Not used
ON when a task is missing. These bits can be set OFF by an application program.
Nonfatal fault
1-17
Section 1 Specications
%MX10.41.4 Level 4 task slow-down
%MX10.41.5 Level 10 task slow-down
%MX10.41.6 Level 11 task slow-down
%MX10.41.7 Level 12 task slow-down
%MX10.41.8 Level 13 task slow-down
%MX10.41.9 Level 14 task slow-down
%MX10.41.10 Level 15 task slow-down
%MX10.41.11 Level 16 task slow-down
%MX10.41.12 Level 17 task slow-down
%MX10.41.13 Level 18 task slow-down
%MX10.41.14 Level 19 task slow-down
%MX10.41.15 Not used
ON when program execution is deferred and the predened xed cycle time is not Maintained.
These bits can be set OFF by an application program.
(13) Announce relay %MW10.42, %MW10.43 (Read only)
Address Name Description
%MX10.42.0 Initial ag
ON at the rst startup after program download and at initial startup (cold start).
This bit is not set to OFF during operation.
Nonfatal fault
%MX10.42.1 Power-off ag ON when a power-off condition occurred in the preceding session.
%MX10.42.2 | %MX10.42.15
%MX10.43.0 Level 0 start ag ON during the rst execution of level 0 task.
%MX10.43.1 Level 1 start ag ON during the rst execution of level 1 task.
%MX10.43.2 Level 2 start ag ON during the rst execution of level 2 task.
%MX10.43.3 Level 3 start ag ON during the rst execution of level 3 task.
%MX10.43.4 Level 4 start ag ON during the rst execution of level 4 task.
%MX10.43.5 Level 10 start ag ON during the rst execution of level 10 task.
%MX10.43.6 Level 11 start ag ON during the rst execution of level 11 task.
%MX10.43.7 Level 12 start ag ON during the rst execution of level 12 task.
%MX10.43.8 Level 13 start ag ON during the rst execution of level 13 task.
%MX10.43.9 Level 14 start ag ON during the rst execution of level 14 task.
%MX10.43.10 Level 15 start ag ON during the rst execution of level 15 task.
%MX10.43.11 Level 16 start ag ON during the rst execution of level 16 task.
%MX10.43.12 Level 17 start ag ON during the rst execution of level 17 task.
%MX10.43.13 Level 18 start ag ON during the rst execution of level 18 task.
Not used
%MX10.43.14 Level 19 start ag ON during the rst execution of level 19 task.
%MX10.43.15 Default task start ag ON during the rst execution of the default task.
1-18
Section 1 Specications
(14) Resource running information %MW10.49 (Read only)
Address Name Description
%MX10.49.0 Main unit running ON while the main unit is running.
%MX10.49.1 | %MX10.49.15
(15) Resource conguration/fault information %MW10.50, %MW10.51 (Read only)
The resource conguration/fault information enables an application program to recognize the status of the main unit.
Not used
Resource conguration
information
OFF OFF Nonexistent
ON OFF Normal (running or stopped)
ON ON Nonfatal fault (running or stopped)
OFF ON Fatal fault
Address Name Description
%MX10.50.0 Main unit conguration ON while the main unit is running normally or in a nonfatal fault condition.
%MX10.50.1 | %MX10.50.15
%MX10.51.0 Main unit error
%MX10.51.1 | %MX10.51.15
Not used
Not used
Resource fault information
Resource status
ON while the main unit is stopped due to a fatal fault or running in a nonfatal fault condition.
1-19
Section 1 Specications
(16) Conguration/conguration fault information %WM10.52 to %WM10.83 (Read only)
This area indicates the status of the expansion units/boards.
Address Name Description
%MX10.52.0 Main unit conguration ON when the main unit is in a normal or a nonfatal fault condition.
%MX10.52.1 Expansion right side unit 1 conguration
%MX10.52.2 Expansion right side unit 2 conguration
%MX10.52.3 Expansion right side unit 3 conguration
%MX10.52.4 Expansion right side unit 4 conguration
%MX10.52.5 Expansion right side unit 5 conguration
%MX10.52.6 Expansion right side unit 6 conguration
%MX10.52.7 Expansion right side unit 7 conguration
%MX10.52.8 | %MX10.58.3
%MX10.58.4 Front board conguration ON when the front board is in a normal or nonfatal fault condition.
%MX10.58.5 | %MX10.64.7
%MX10.64.8 Expansion left side unit conguration
%MX10.64.9 | %MX10.67.15
%MX10.68.0 Main unit error ON when the main unit is in a nonfatal or fatal fault condition.
Not used
Not used
Not used
When the main unit is powered on, the bit corresponding to the
connected expansion right side unit (including a healthy unit) is set ON. If an expansion right side unit is dropped while the main unit is
running, only the conguration bit of the healthy unit is set OFF. The other conguration bits reMain ON.
* “Expansion right side unit 7 conguration” is assigned only to a
healthy unit when six expansion units (max.) are connected.
ON when the expansion left side unit is in a normal or nonfatal fault condition.
%MX10.68.1 Expansion right side unit 1 error
%MX10.68.2 Expansion right side unit 2 error
%MX10.68.3 Expansion right side unit 3 error
%MX10.68.4 Expansion right side unit 4 error
%MX10.68.5 Expansion right side unit 5 error
%MX10.68.6 Expansion right side unit 6 error
%MX10.68.7 Expansion right side unit 7 error
%MX10.68.8 | %MX10.74.3
%MX10.74.4 Front board error
%MX10.74.5 | %MX10.80.7
%MX10.80.8 Expansion left side unit error
%MX10.80.9 | %MX10.83.15
Not used
Not used
When a healthy unit is mounted and an expansion right side unit is
dropped, only the error bit corresponding to the healthy unit is set ON. The other error bits of expansion right side units reMain OFF.
* “Expansion right side unit 7 error” is assigned only to a healthy unit when six expansion units (max.) are connected.
ON when the front board is in a nonfatal or fatal fault condition. (Note 1)
ON when the expansion left side unit is in a nonfatal or fatal fault condition. (Note 1)
Notes:
1) A dropout of communication boards/units is not detected. However, during the CPU link communication, a nonfatal fault occurs if a link station is dropped.
1-20
Section 1 Specications
(17) User ROM status %MW10.298 (Read only)
This area indicates the status of the ROM in the SPF main unit.
Address Name Description
ON when a mismatch occurs between the contents of the RAM and
%MX10.298.0 Built-in ash memory mismatch
%MX10.298.1 User ROM card mismatch
%MX10.298.2 | %MX10.298.15
Not used
(18) SPF original announce relay %MW10.299 (Read only)
Address Name Description
those of the built-in ash memory in the main unit. * Transferring data from the RAM to the built-in ash memory sets this
bit to OFF.
ON when a mismatch occurs between the contents of the RAM in the
main unit and those of the mounted user ROM card (ash memory).
* Transferring data from the RAM to the user ROM card sets this bit to OFF.
%MX10.299.0 Enable constant scanning ON while the constant scanning function is used.
%MX10.299.1 Enable remote RUN/STOP function ON while the remote RUN/STOP function is used.
%MX10.299.2 Enable I/O status latch function ON while the I/O status latch function is used.
%MX10.299.3 | %MX10.299.15
Not used
1-21
Loading...
+ 121 hidden pages