Professional Documents
Culture Documents
Mitsubishi FR A800 PLC Function Programming Manual
Mitsubishi FR A800 PLC Function Programming Manual
A800
FR-A800
PLC FUNCTION
PROGRAMMING MANUAL
INVRERTER
PLC FUNCTION PROGRAMMING MANUAL
PLC Function
1
CC-Link communication
2
Sequence program
3
Error code list
4
A
CONTENTS
1 PLC Function 7
CONTENTS
1.1 Applicable inverter model ....................................................................................... 8
1.2 Function block diagram .......................................................................................... 8
1.3 Operation panel indication...................................................................................... 9
1.4 PLC function specifications.................................................................................. 10
1.5 System configuration ............................................................................................ 11
1.6 Operations of PLC function (Pr.414, Pr.415, Pr.498, Pr.1150 to Pr.1199) ......... 12
1.7 Prior to creating sequence programs .................................................................. 13
1.7.1 Precautions for creating sequence programs............................................................................... 13
1.7.2 The main functions of FR Configurator2 (Developer) ................................................................... 13
1.7.3 Sequence program execution....................................................................................................... 14
1.7.4 Setting the communication parameter .......................................................................................... 15
1.7.5 Writing sequences programs ........................................................................................................ 16
CONTENTS 1
1.14 PID control .............................................................................................................. 49
1.15 Clearing the flash memory of the PLC function .................................................. 50
1.16 Constant scan......................................................................................................... 51
2 CC-Link communication 53
3 Sequence program 69
2 CONTENTS
3.7 Scan time ................................................................................................................ 79
3.8 Values that can be used in sequence programs................................................. 80
3.8.1 BIN (binary) .................................................................................................................................. 81
CONTENTS
3.8.2 HEX (hexadecimal)....................................................................................................................... 82
CONTENTS 3
3.24 How to view instructions ..................................................................................... 116
3.25 Sequence instructions......................................................................................... 117
3.25.1 Contact instruction:
operation start, series connection, parallel connection ... LD, LDI, AND, ANI, OR, ORI ............ 117
3.25.2 Association instruction: ladder block series connection, parallel connection ... ANB, ORB ....... 119
3.25.3 Association instruction:
operation results, push, read, pop ... MPS, MRD, MPP ............................................................. 121
3.25.4 Output instruction: bit device, timer, counter ... OUT.................................................................. 124
3.25.5 Output instruction: device set, reset ... SET, RST ...................................................................... 126
3.25.6 Output instruction: rising, falling differential output ... PLS, PLF................................................. 128
3.25.7 Shift instruction: bit device shift ... SFT, SFTP ........................................................................... 130
3.25.8 Master control instruction: master control set, reset ... MC, MCR .............................................. 132
3.25.9 Termination instruction: termination of main program ... FEND.................................................. 135
3.25.10 Termination instruction: sequence program termination ... END ................................................ 135
3.25.11 Other instructions: non-processing ... NOP, NOPLF, PAGE n ................................................... 136
4 CONTENTS
BIN 32-bit data increment/decrement ... DINC, DINCP, DDEC, DDECP ................................... 164
3.27.7 Data transfer instruction ............................................................................................................. 165
3.27.8 Data transfer instruction:
32-bit data transfer ... DMOV, DMOVP ...................................................................................... 165
CONTENTS
3.27.9 Data conversion instruction:
2's complements of BIN 32-bit data ... DNEG, DNEGP.............................................................. 167
3.27.10 Data conversion instructions:
BIN 32-bit data BCD conversions ... DBCD, DBCDP ................................................................. 168
3.27.11 Data conversion instructions:
BIN 32-bit data BIN conversions ... DBIN, DBINP...................................................................... 169
APPENDIX 201
CONTENTS 5
About the related manuals
The manuals related to A800 PLC function are shown below. The download of the latest manuals is free at the Mitsubishi
Electric FA Global Website.
Related manuals
Manual name Manual number
FR-A800 Instruction Manual (Startup) IB-0600493
FR-A800 Instruction Manual (Detailed) IB-0600503ENG
FR Configurator2 Instruction Manual IB-0600516ENG
GX Works2 Version 1 Operating Manual (Common) SH-080779ENG
6 CONTENTS
1 PLC Function
This instruction manual explains the functions and devices required for programming.
PLC Function 7
Applicable inverter model
Inverter
Input signal ∗1
Sequence program
Special relays,
Output signal ∗1 special registers,
etc.
Set "9999" in any of Pr.178 to Pr.189 (input terminal function assignment) and Pr.190 to Pr.196 (output terminal function selection) to use
terminals as general-purpose I/O terminals. For details on Pr.178 to Pr.189 and Pr.190 to Pr.196, refer to the Instruction Manual of the inverter.
8 PLC Function
Operation panel indication
FR-DU08 FR-PU07
P.RUN is displayed on
the LCD when PLC
P.RUN function is operating.
60.00 Hz
STF FWD PU
PLC function indicator
P.RUN state
NOTE
• While the offline auto tuning is being activated by FR-PU07, P.RUN is not displayed even during PLC function operation.
PLC Function 9
PLC function specifications
NOTE
• There is no buffer memory.
10 PLC Function
System configuration
PU connector PU connector
Inverter Inverter
Model Manufacturer
Interface embedded cable dedicated for inverter
Diatrend Corp.
DINV-CABV
The conversion cable cannot connect multiple inverters. (The computer and inverted are connected in a 1:1 pair.) This product is a RS-232C
RS-485 conversion cable that has a built-in converter. No additional cable or connector is required. For the product details, contact the
manufacturer.
• USB RS-485 conversion cable
Model Manufacturer
DINV-U4 Diatrend Corp.
POINT
• FR Configurator2 (Developer) is a programming tool for designing and debugging of the sequence programs on the Windows
personal computer. To use the PLC function of the inverter, write sequence programs to the inverter using FR Configurator2
(Developer). (For the details, refer to the Instruction Manual of FR Configurator2.)
NOTE
• For details on wiring, refer to the Instruction Manual of the inverter.
• For the specifications of the FR Configurator2 (Developer) and personal computers on which FR Configurator2 (Developer)
runs, refer to the Instruction Manual of FR Configurator2.
• Programming tools other than FR Configurator2 (Developer) cannot be used. (Tools such as GX Developer and GX Works
cannot be used.) 1
PLC Function 11
Operations of PLC function (Pr.414, Pr.415, Pr.498, Pr.1150 to Pr.1199)
NOTE
• The FR-PU07 cannot read or write parameters Pr.1000 or later.
12 PLC Function
Prior to creating sequence programs
If a sequence program contains instructions (refer to page 106) or devices (refer to page 10) that cannot be used with the
PLC function, an instruction code error occurs at the execution of that instruction.
Error code SD0 = 4000
Error information SD5 to SD26
Error flag SM0: ON
NOTE
• For the error codes, refer to page 33.
NOTE
• Present values can be changed using FR Configurator2 (Developer) ([Debug] -> [Present value change]). Even if changes
are made to the devices corresponding to the control terminal signals (STF, STR, etc.), such changes are not applied to the
inverter operation. (Device present values of the sequence programs are changed.)
PLC Function 13
Prior to creating sequence programs
NOTE
• Turn OFF (STOP) the SQ signal when creating a sequence program.
• The RUN state output (Y) is internally stored and all outputs (Y) are turned off by turning the SQ signal OFF (STOP) after
sequence program execution (SQ signal ON).
The other devices retain the data prior to STOP. To clear the remaining device data, power OFF or reset (RES signal ON (0.1
s)OFF) the inverter.
POINT
• To run the inverter without using the PLC function, set Pr.415 = "0" (initial value) (the start signal of the inverter is enabled).
NOTE
• This parameter cannot be written during inverter operation, regardless of the Pr.77 setting.
• During automatic operation using SD1148 (or SM1200 to SM1211) in the sequence program, the inverter stops operation if
the sequence program is in the STOP state while Pr.415 = "1". However, when Pr.415 = "0", the device data is retained and
the operating status does not change (the inverter continues operation) even if the sequence program is in the STOP state.
• Pr.415 setting is also enabled for the start signals of the operation panel and the FR-PU07.
14 PLC Function
Prior to creating sequence programs
• While the inverter communication parameters (Pr.118 to Pr.120, and Pr.122) are initial values, communication with FR
Configurator2 (Developer) cannot be established. Set the inverter communication parameters as shown below.
Parameter
Parameter name Initial value Setting value
number
118 PU communication speed 192 (19200 bps) 1152 (115200 bps)
PU communication stop bit length 1 (data length: 8 bits, 0 (data length: 8 bits,
119
/ data length stop bit: 2 bits) stop bit: 1 bit)
120 PU communication parity check 2 (with even parity check) 1 (with odd parity check)
PU communication check time
122 9999 (without communication check)
interval
• To use the Developer and other functions of FR Configurator2, open the "System setting" window in FR Configurator2, and
set the [Detailed setting] as follows.
NOTE
• Use the operation panel (FR-DU08) or parameter unit (FR-PU07) to change the settings of the inverter parameters.
The operation unit and FR Configurator2 (personal computer) cannot be connected to the PU connector simultaneously.
• For details on each inverter communication parameter, refer to the Instruction Manual (Detailed) of the inverter. For the
setting method of the [Detailed setting] of the [System setting] window of FR Configurator2, refer to the Instruction Manual of
FR Configurator2.
• When parameter clear or all clear is performed, the communication parameter setting values are also cleared, and
communication with FR Configurator2 (Developer) is therefore no longer possible.
PLC Function 15
Prior to creating sequence programs
Check the following points when rewriting the PLC function parameters and sequence programs using FR Configurator2
(Developer):
• The sequence program execution status is in the STOP (SQ signal OFF) (refer to page 14).
• The inverter is stopped.
• The communication specifications setting parameters (Pr.117 to Pr.124) are correctly set. Communication with FR
Configurator2 (Developer) is not possible if these parameter setting values are incorrect.
• The PLC series setting and sequence program capacity are correctly set with FR Configurator2 (Developer) parameters.
(Refer to page 11.)
Refer to the FR Configurator2 manual and write sequence programs.
NOTE
• A sequence program cannot be written with its steps specified. The sequence program does not run if written in this way.
(The program outside the specified range is initialized.)
• To read the PLC function parameters and sequence programs from the inverter, such information must be written to the
inverter using FR Configurator2 (Developer) in advance. Always write the PLC function parameters and sequence program at
least once as the inverter does not have valid data.
• There is a limitation on the number of times writing can be done (approximately 100,000 times) as the PLC function
parameters and sequence program are written to the Flash ROM.
• A program with more than 6K steps cannot be written.
16 PLC Function
Device map
External terminal
X06 Terminal RT Y06 Terminal ABC2
X07 Terminal AU Y07
X08 Terminal CS Y08
X09 Terminal MRS Y09
X0A Terminal STOP Y0A
X0B Terminal RES Y0B Empty (for temporary retention)
X0C Y0C
X0D Y0D
Vacant (for temporary retention)
X0E Y0E
X0F Y0F
X10 Terminal X0 Y10 Terminal DO0
X11 Terminal X1 Y11 Terminal DO1
X12 Terminal X2 Y12 Terminal DO2
Digital output
X13 Terminal X3 Y13 Terminal DO3
FR-A8AY
X14 Terminal X4 Y14 Terminal DO4
X15 Terminal X5 Y15 Terminal DO5
X16 Terminal X6 Y16 Terminal DO6
Plug-in option I/O
PLC Function 17
Device map
Device Device
Name Remarks Name Remarks
number number
Operation mode setting Operation mode setting
X20 SD1140 Y20 SD1140
read complete read command
Set frequency read Set frequency read
X21 SD1141 Y21 SD1141
complete (RAM) command (RAM)
Set frequency read Set frequency read
X22 SD1142 Y22 SD1142
complete (EEPROM) command (EEPROM)
Operation mode setting Operation mode setting
X23 SD1143 Y23 SD1143
write complete write command
Set frequency write Set frequency write
X24 SD1144 Y24 SD1144
complete (RAM) command (RAM)
Set frequency write Set frequency write
X25 SD1145 Y25 SD1145
complete (EEPROM) command (EEPROM)
Fault record batch clear Fault record batch clear
X26 SD1146 Y26 SD1146
complete command
Parameter clear Parameter clear
System I/O
18 PLC Function
Device map
PLC Function 19
Device map
20 PLC Function
Device map
PLC Function 21
Device map
Value Code
0 Not used
Value Code
Special register
0 Not used
3 Time (actual measurement value)
5 Parameter number
Number Description
SD5 Drive name.
SD6
SD7 File name
SD8 (ASCII code: 8 characters)
SD5 to SD15 Common error information -
SD9
SD10 Extension 2EH(.)
SD11 (ASCII code: 3 characters)
SD12 to
Empty
SD15
The step numbers where errors occurred are stored in SD14 and
SD15.
When the common information category code is 3, the time
(setting value) is stored in SD5 and SD6.
Number Description
SD5 to SD15 Common error information SD5 Time: in 1 μs increments (0 to 999 μs) -
SD6 Time: in 1 ms increments (0 to 65535 ms)
SD7 to
Empty
SD15
22 PLC Function
Device map
Number Description
SD5
SD6 File name MAIN
SD7 (ASCII code: 8 characters)
SD8
SD9 Extension 2EH(.)
SD5 to SD15 Common error information SD10 QPG (ASCII code: 3 characters) -
SD11 Always 0
SD12 Always 0
SD13 Always 0
SD14 Sequence step No.(L)
SD15 Sequence step No.(H)
Always "MAIN". After "MAIN", four null characters are stored.
The step numbers where errors occurred are stored in SD14 and
SD15.
When the individual information category code is 3, the time
(actual measured data) is stored in SD16 and SD17.
Number Description
Special register
Number Description
-
SD16 Parameter number
SD17 to
Empty
SD26
1
bit Item Value Description
CPU module
b3 to b0 0 RUN
operating status
1 STOP
CPU module operating
SD203 STOP/RUN -
status b7 to b4 0 Switch
factor
1 Remote contact
Remote operation
from the peripheral
2 S/W for the
programmable
controller
4 Error
PLC Function 23
Device map
Minute Second
Year (the first two digits of the year) and day of the week are
stored in BCD code.
Sunday
First two digits of the year Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
SD1062 to Special register for communicating with the master station in CC-
Remote register 57
SD1093 Link.
SD1133 Output frequency monitor Present output frequency is stored. The increment is 0.01 Hz.
SD1134 Output current monitor Present output current is stored. The increment is 0.01 A. 30
SD1135 Output voltage monitor Present output voltage is stored. The increment is 0.1 V.
24 PLC Function
Device map
SD1146 Fault record batch clear Clears the faults history when H9696 is written. 39
H9696 write: parameter clear
H9966 write: all clear
H5A5A write: parameter clear except for communication
SD1147 Parameter clear parameters 39
H55AA write: all clear except for communication parameters
While communicating with FR Configurator2, clear the parameters
using H5A5A or H55AA.
Turn ON/OFF the corresponding bit to control the inverter
operating status.
All initial values are set as "0". When SM1255 is OFF, this function
is disabled.
b15 b12 b11 b8 b7 b4 b3 b0
0:OFF
1:ON
Inverter operating status Invalid STF
SD1148 40
control STR
RH
RM
RL
JOG
RT
AU
CS
MRS
STOP
RES
PLC Function 25
Device map
26 PLC Function
Device map
SD1190 Remote output 4 Stores the analog remote output setting value 4. -
PTC thermistor resistance
SD1191 Stores the PTC thermistor resistance value. -
value
SD1197 Energy saving effect -
According to the parameter settings.
SD1198 Cumulative energy saving -
SD1199 PID set point Stores the PID set point. The increment is 0.1%. -
SD1200 PID measured value Stores the PID measured value. The increment is 0.1%. -
SD1201 PID deviation Stores the PID deviation. The increment is 0.1%. -
SD1202 Second PID set point Stores the second PID set point. The increment is 0.1%. -
Second PID measured
SD1203 Stores the second PID measured value. The increment is 0.1%. -
value
SD1204 Second PID deviation Stores the second PID deviation. The increment is 0.1%. -
Stores the input status of the FR-A8AX.
All are OFF (0) when there are no options installed.
b15 b12 b11 b8 b7 b4 b3 b0
0:OFF
SD1205
Option input terminal status 1:ON
SD1205 -
1 X0
X1
X2
1
X3
X4
X5
X6
X7
X8
X9
X10
X11
X12
Option input terminal status X13
SD1206 -
2 X14
X15
b15 b12 b11 b8 b7 b4 b3 b0
0:OFF
SD1206 1:ON
DY
PLC Function 27
Device map
SD1211 Dancer main speed setting Stores the dancer main speed setting. -
SD1212 PID manipulated amount Stores the PID manipulated amount. The increment is 0.1%. -
Stores the PID measured value. The increment is 0.1%.
SD1213 PID measured value 2 -
(Monitoring can be performed even when PID control is disabled.)
An inverter fault is initiated by setting the values of "16 to 20" in
SD1214 User definition error 43
SD1214.
SD1215 Monitor setting selection Set SD1215 to display the monitor set in SD1216 to SD1218. 43
Special register for control
SD1216 Monitor 1 setting value The first to the third monitors on the operation panel (FR-DU08) or
SD1217 Monitor 2 setting value the parameter unit (FR-PU 07) can be changed by setting the 43
value "40 to 42" in Pr.774 to Pr.776.
SD1218 Monitor 3 setting value
SD1220 Motor thermal load factor Stores the motor thermal load factor. -
SD1221 Inverter thermal load factor Stores the inverter thermal load factor. -
Second PID manipulated Stores the second PID manipulated amount. The increment is
SD1222 -
amount 0.1%.
Second PID measured Stores the second PID measured value. The increment is 0.1%.
SD1223 -
value 2 (Monitoring can be performed even when PID control is disabled.)
32-bit cumulative power
SD1224 1 kWh -
(Lower 16 bits)
32-bit cumulative power
SD1225 1 kWh -
(Upper 16 bits)
32-bit cumulative power
SD1226 0.01 kWh/0.1 kWh -
(Lower 16 bits)
32-bit cumulative power
SD1227 0.01 kWh/0.1 kWh -
(Upper 16 bits)
SD1229 Trace status Stores the trace status. -
Second parameter change When setting a calibration parameter (bias/gain)
SD1234
(RAM) H00: Frequency (torque) 44,
Second parameter change H01: Analog value set by parameters 45
SD1235 H02: Analog value input from terminals
(EEPROM)
Settings differ according to the inverter capacity. (FR-A820-03160(55K) or lower and FR-A840-01800(55K) or lower, FR-A820-03800(75K) or
higher and FR-A840-02160(75K) or higher)
28 PLC Function
Device map
SD1247 Terminal 4 input Stores the analog input value (0.1% increments) to terminal 4.
PID control set point/
SD1248 Set the PID set point or PID deviation. (0.01% increments)
deviation
SD1249 PID control measured value Set the PID measured value. (0.01% increments) 49
PID control manipulated
SD1250 Stores the PID manipulated amount. (0.01% increments)
amount
When Pr.54="70", analog output can be performed from the
SD1251 Terminal FM/CA output
terminal FM/CA. (0.1% increments)
When Pr.158= "70", analog output can be performed from
SD1252 Terminal AM output 47
terminal AM. (0.1% increments)
SD1253 AM0 output Analog output can be performed from terminals AM0 and AM1
SD1254 AM1 output of the FR-A8AY. (0.1% increments)
Sets the start/stop of PID operation.
SD1255 PID operation control
Set "1" to start PID control.
Second PID control set Set the second PID set point or the second PID deviation.
SD1308
point/deviation (0.01% increments)
49
Second PID control
SD1309 Set the second PID measured value. (0.01% increments)
measured value
SD1310
Second PID control
manipulated amount
Stores the second PID manipulated amount. (0.01%
increments)
1
Read parameter content When the parameter to be written is 2 words, storage locations
SD1320 -
(2-word parameter: L) are as follows:
Read parameter content SD1320: Lower 1 word
SD1321 SD1321: Upper 1 word -
(2-word parameter: H)
Write parameter content When the parameter to be read is 2 words, storage locations
SD1322 -
(2-word parameter: L) are as follows:
Write parameter content SD1322: Lower 1 word
SD1323 SD1323: Upper 1 word -
(2-word parameter: H)
PLC Function 29
Special registers to monitor and control inverter status
Operation monitor
These are the data devices by which the output frequency, output current, and output voltage of the inverter can be monitored,
and which are always readable (write is disabled). Pay attention to the setting increments.
Device Setting
Name Data example Data access condition
number increments
SD1133 Output frequency monitor 0.01 Hz Device content 600060.00 Hz
SD1134 Output current monitor 0.01 A Device content 2002.00 A Always accessible
SD1135 Output voltage monitor 0.01 V Device content 100010.0 V
NOTE
• Setting frequency can be set in increments of 0.01 Hz, but operates at 0.1 Hz increments in actual operation.
30 PLC Function
Special registers to monitor and control inverter status
For details of fault records, refer to the Instruction Manual of the inverter.
PLC Function 31
Special registers to monitor and control inverter status
Fault status
(terminal ABC)
Fault is cleared by turn If a fault occurs while the X51 Fault is cleared by
ON of X51 signal. signal has been ON, turn OFF turn ON of X51 signal.
the X51 signal once, then turn it
ON again.
• The fault clear function using the X51 signal does not function while the retry function is operating (including during the retry
waiting time).
(The X51 signal operates when the retry count is exceeded (E.RET).
• When the fault is cleared, start commands from PU and communication are also cleared. (All commands except the start
command from communication are maintained in the status before the fault is cleared.)
NOTE
• E.CPU, E.P24, E.CTE, E.1 to E.3, E.6, E.7, E.13, E.14, E.16 to E.20, E.SAF and E.PE2 are not cleared by X51 signal.
• When a fault is cleared, the accumulated heat values of the electronic thermal O/L relay and regenerative brake are not
cleared. Faults including E.THM, E.THT, and E.BE may occur again.
• The inverter remains in the stop status immediately after a fault is cleared. However, the inverter starts operating again after
the fault is cleared if the start command is ON.
• When an error occurs, the normal reset function operates when the STOP/RESET key on the operation panel or parameter
unit is pushed. Be careful not to push the key by mistake.
• Changing terminal assignment by using Pr.178 to Pr.189 (input terminal function selection) may affect the other functions.
Set parameters after confirming the function of each terminal.
32 PLC Function
Special registers to monitor and control inverter status
NOTE
• Operation at error stop
Output (Y) is cleared.
Other devices remain in the status before the error stop occurred.
To clear the statuses, turn OFF or reset (turn RES signal ON (0.1 s) and then OFF) the inverter.
PLC Function 33
Special registers to monitor and control inverter status
Y2n(n=0 to 2)
Read command
X2n(n=0 to 2)
Read completion
SD114n(n=0 to 2)
Read data
User sequence
processing
NOTE
• When Pr.79 Operation mode selection"0", the setting is applied. However, if Pr.79 = "3 or 4", "H0002" (PU operation
mode) is applied.
34 PLC Function
Special registers to monitor and control inverter status
NOTE
• The frequency to be read is not the command value of an external signal.
NOTE
• The frequency to be read is not the command value of an external signal.
PLC Function 35
Special registers to monitor and control inverter status
The data above is written at the point when write completion turns ON after the write command turns from OFF to ON.
(Written at clear completion of SD1146 executed for fault record batch clear and SD1147 for all parameter clear.)
To write again, the write command must be turned OFF and then ON again.
Y2n(n=3 to 7)
Write command
X2n(n=3 to 7)
Write completion
SD114n(n=3 to 7)
Write data
User data
3) Turns ON when inverter CPU completes data 5) Inverter CPU confirms that
write to inverter. write command is OFF and
Faults history clear and parameter turns OFF write completion.
clear turn ON at completion of clear.
"0" written to SD1150 indicates normal completion.
Any value other than 0 indicates abnormal completion.
36 PLC Function
Special registers to monitor and control inverter status
The method for changing operation modes is shown in the following chart when Pr.79 Operation mode selection = "0".
H0000
H0001 External
NET mode
operation mode
H0000
NOTE
• When Pr.79 "0", the mode is fixed.
1
Setting frequency write (RAM) (SD1144)
The content of SD1144 is written to the RAM as setting frequency. Its increment is 0.01 Hz.
(For example, 60.00 Hz is written as "6000".)
If the rotation speed is set, the increment is 1 r/min or 0.1 r/min. (According to the setting value of Pr.811)
The frequency can be set within the range of 0 to 12000 (0 to 120.00 Hz).
When frequency settings are written normally, the write completion signal (X24) turns ON at the same time as SD1150 is set
to "0".
Executing writing with any value that is outside the specified range causes the write completion signal (X24) to turn ON at the
same time as setting HFFFF in SD1150, resulting in error completion. If an error completion occurs, the setting frequency is
not changed.
PLC Function 37
Special registers to monitor and control inverter status
POINT
• This can be set in PU operation mode and NET operation mode. Refer to the Instruction Manual of the inverter.
POINT
• This can be set in PU operation mode and NET operation mode. Refer to the Instruction Manual of the inverter.
NOTE
• When set frequencies need to be changed often, use the device SD1144 "set frequency (RAM)". There is a limitation on the
number of times EEPROM can be written to. (Approximately 100,000 times)
38 PLC Function
Special registers to monitor and control inverter status
When clearing is complete, the write completion signal (X27) turns ON at the same time as SD1150 is set to "0".
Executing writing with any value that is outside the specified range or writing while the inverter is running causes the write
completion signal (X27) to turn ON at the same time as setting HFFFF in SD1150, resulting in error completion. In the case of
an error completion, the parameters are not cleared.
NOTE
• Identify the terminal function parameters and communication parameters in the parameter list. (Refer to the Instruction
Manual of the inverter.)
POINT 1
• This can be set in the PU operation mode and NET operation mode. Refer to the Instruction Manual of the inverter.
PLC Function 39
Special registers to monitor and control inverter status
NOTE
• When parameter clear/all clear is executed, communication parameters are also cleared. Thus communication with FR
Configurator2 (Developer) becomes impossible.
Related device
Device SD1150: inverter parameter access error (refer to page 42)
NOTE
• The functions of SD1148 bits are assigned by Pr.178 to Pr.189 in the same way as for the external input terminal. Note that
SQ signal (setting value: 50) cannot be assigned.
• Turn ON SM1255 (special register selection) before using SD1148. (Refer to page 20.)
40 PLC Function
Special registers to monitor and control inverter status
NOTE
• When SD1148 and SM1200 to SM1211 are enabled by SD1149, control by external terminal input or CC-Link remote input
are disabled for the bits that are enabled. (Same as setting Pr.178 to Pr.189 to "no function".)
• When terminals are enabled by PLC function, the control through external terminals is disabled.
• Input through external terminals is always enabled for SQ signal.
(Control of SQ signal cannot be performed from each SD1149 bit.)
Operation start
PLC Function 41
Special registers to monitor and control inverter status
<Parameters>
Parameter number + H8000 is stored to SD1150.
Example) If an error occurs when Pr.0 Torque boost is written, H8000 (H0 + H8000) is stored to SD1150.
If an error occurs when Pr.10 DC injection brake operation frequency is written, H800A is stored to SD1150.
<Operation mode, setting frequency, batch clear of fault records, and all parameter clear>
HFFFF is stored to SD1150. (The initial values is "0".)
POINT
• The error code stored after the error occurrence will be cleared by writing "0" in SD1150. (The error code is retained until "0"
is written in SD1150.)
b15 b8 b7 b4 b3 b0
0:OFF
1:ON
42 PLC Function
Special registers to monitor and control inverter status
Monitor
Device Pr.774 to Pr.776 setting
description
SD1216 User monitor 1 40
SD1217 User monitor 2 41
SD1218 User monitor 3 42
To display the monitors set in SD1216 to SD1218 to decimal places, set SD1215 as follows.
<Setting of SD1215>
b15 b12 b11 b8 b7 b4 b3 b0
Setting example: 1
1. To display SD1216 without decimals
• Set H0000 in SD1215.
• Set "40" in Pr.774.
2. To display SD1216 in 0.1 increment, and SD1218 in 0.001 increment.
• Set H3100 in SD1215.
• Set "40" in Pr.774 and "42" in Pr.775.
PLC Function 43
Read/Write method of inverter parameters
To read a parameter, store the parameter number in SD1241 (SD1243) and turn ON Y28 (Y2A). The parameter content will be
stored in SD1242 (SD1244). After the reading is complete, X28 (X2A) turns ON to notify of the completion. (Use the device
numbers in parentheses to read a parameter setting value from EEPROM.)
When reading a calibration parameter (Pr.902 to Pr.935), set a value listed below in SD1234 (SD1235) to read each
calibration value.
0: Setting value (frequency)
1: Analog value by parameter setting
2: Analog value input from terminal
If an access error such as non-existent parameter occurs, the value of the specified parameter number plus 8000H is stored
in SD1150. (Refer to page 42.)
SD1242(SD1244)
Parameter
read data
User sequence
processing
2) Inverter CPU stores inverter parameter 5) Inverter CPU confirms that read
data into data register SD1242(SD1244), command is OFF and turns OFF
and turns ON read completion. read completion.
44 PLC Function
Read/Write method of inverter parameters
To write to a parameter, store the parameter number in SD1241 (SD1243) and the value to be written in SD1242 (SD1244),
and turn ON Y29 (Y2B) to execute writing. After the writing completes, X29 (X2B) turns ON to notify of the completion. (Use
the device numbers in parentheses to write a parameter setting value to EEPROM.)
When writing to a calibration parameter (Pr.902 to Pr.935), set a value listed below in SD1234 (SD1235) to write each
calibration value.
0: Setting value (frequency)
1: Analog value by parameter setting
2: Analog value input from terminal
When the inverter parameter write completion signal (X29 (RAM) or X2B (EEPROM)) turns ON with normal completion,
SD1150 is set to 0.
If an error in access to a parameter such as setting an out-of-range value and writing during inverter operation occurs, the
write completion signal (X29 (RAM) or X2B (EEPROM)) turns ON and the value of the parameter number plus H8000 is set in
SD1150 as soon as the write completion signal (X29 (RAM) or X2B (EEPROM)) is turned ON, resulting in error completion.
When an error completion occurs, the parameter is not written. (For example, if an error occurs in Pr.0 Torque boost, H8000
is written to SD1150.)
For details on whether inverter parameter writing is allowed, refer to Pr.77 Parameter write selection.
POINT
• Inverter parameter writing must be performed in PU operation mode or NET operation mode. (Refer to the Instruction Manual
of the inverter.)
1
X29(X2B)
Parameter
write completion
Inverter parameter
SD1242(SD1244)
Parameter write
data
User sequence
data
3) Turns ON when inverter CPU completes inverter 5) Inverter CPU confirms
parameter data write. that write command is
"0" written to SD1150 indicates normal completion. OFF and turns OFF write
Any value other than "0" indicates abnormal completion. completion.
PLC Function 45
User area reading/writing
Turn the read/write instruction from OFF to ON and then turn the read/write completion ON to read/write the user parameters
from RAM and EEPROM.
Read/write command is turned After confirmation of completion,
ON in user sequence program read/write command is turned OFF.
Y2n
User parameter
read/write command
X2n
User parameter
read/write completion
Turns ON when inverter CPU Inverter CPU confirms that
completes user parameter read/write command
data read/write. is OFF and turns OFF write completion.
POINT
• Application example of user parameter
Operation timings can be adjusted by assigning a timer in D206 and varying the value set in the timer. Values can be set to
the timer with the Pr.1150 setting without changing the program.
The user parameters (Pr.1150 to Pr.1199) and the devices (D206 to D255) can be freely read and written. Data transfer
between Pr.1150 to Pr.1199 and D206 to D255 is automatically executed.
NOTE
• If EEPROM is read after writing a parameter directly (to RAM), the values in RAM are replaced by the values in EEPROM.
• When Pr.342 Communication EEPROM write selection = "1", RAM values are read or written.
46 PLC Function
Analog I/O function
NOTE
• The full scale value of analog input depends on the setting values of Pr.73 Analog input selection and Pr.267 Terminal 4
input selection. Refer to the Instruction Manual of the inverter.
PLC Function 47
Pulse train input function
Initial
Parameter Name Setting range Description
value
0, 10, 20 Terminal JOG
291 Pulse train I/O selection 0
1, 11, 21, 100 Pulse train input
Pre-scale function selection
(increments scaling factor)
0: No function
1: 1
416 Pre-scale function selection 0 0 to 5
2: 0.1
3: 0.01
4: 0.001
5: 0.0001
Set the pre-scale value to calculate the number of
417 Pre-scale setting value 1 0 to 32767
sampling pulse when inputting the pulse train.
Device
Name Setting range Description
number
The number of pulses counted in count cycle is
SD1236 Pulse train input sampling pulse 0 to 32767
stored.
SD1237 Pulse train input cumulative count value L The cumulative value of the number of
0 to 99999999
SD1238 Pulse train input cumulative count value H sampling pulses is stored.
0 Not clear
SD1239 Reset request of pulse train input count
1 Count clear
0 Stop counting
SD1240 Count start of the pulse train input
1 Start counting
48 PLC Function
PID control
Initial
Parameter Name Setting range Description
value
0 PID control disabled
10, 11, 20, 21,
40 to 43, 50, 51,
60, 61, 1000,
For details, refer to the Instruction Manual of the inverter.
1001, 1010, 1011,
2000, 2001, 2010,
2011
70 PID reverse action
128 PID action Deviation signal input (PLC function)
0 71 PID forward action
753 selection
80 PID reverse action Measured value and set point input (PLC
81 PID forward action function)
90 PID reverse action Deviation signal input (PLC function)
91 PID forward action Not applied to inverter output frequency.
100 PID reverse action Measured value and set point input (PLC
function)
101 PID forward action Not applied to inverter output frequency.
When both Pr.934 and Pr.935 are set to values other than "9999", the set point of SD1248 (SD1308) and the measured value of SD1249
(SD1309) are set as coefficients. The setting range is from the smaller coefficient to the larger one set in Pr.934 and Pr.935.
(For details of Pr.934 and Pr.935, refer to the Instruction Manual of the inverter.)
PLC Function 49
Clearing the flash memory of the PLC function
NOTE
• Depending on the setting value of Pr.128 (Pr.753), SD1248 (SD1308) automatically switches between set point and
deviation.
• When Pr.128 (Pr.753) is set to deviation input "70, 71, 90, or 91", the value set as the measured value in (SD1249 (SD1309))
becomes invalid.
• If an out-of-range value is set, the maximum value (or the minimum value) of the setting range is used for operation.
Initial Setting
Parameter Name Description
value range
9696: Clears the flash memory.
498 PLC function flash memory clear 0 0 to 9999 Other than 9696: Does not clear the flash
memory.
• The read value of Pr.498 is always "0" regardless of the set value.
• If the file password (registered by FR Configurator2 (Developer)) of the PLC function has been forgotten, use Pr.498 to
clear the flash memory and unlock the file password.
• The flash memory can only be cleared when the PLC function is disabled (Pr.414 ="0").
NOTE
• Executing this function clears the PLC function program and all parameters of the PLC function. Create the program and set
the parameters of the PLC function again.
• It takes approximately 5 s to clear the flash memory. Do not reset the inverter or turn OFF the power for 5 s after setting
Pr.498 = "9696". If the inverter is reset or the power is turned OFF within 5 s, set Pr.498 = "9696" again.
50 PLC Function
Constant scan
• A waiting time is automatically set so that the sum of the execution time of the sequence programs and the waiting time is
equal to the set constant scan time.
• PLC parameter: Although the setting range of PLC RAS setting is 0.5 ms to 2000 ms, the actual set constant scan time is a
minimum of 10 ms. (Increments: 10 ms)
• I/O timing
After END processing is completed, a waiting time is automatically set as shown below.
Program execution
END processing
Waiting time
NOTE
• Processes other than the PLC function are executed even during the waiting time.
• The set constant scan time must meet the following condition:
Set watchdog timer time > set constant scan time > maximum scan time of program.
• If a scan time is longer than the set constant scan time, "PRG.TIME OVER Error code: 5010" occurs. In this case, the
constant scan setting is ignored in the operation.
• If a scan time is longer than the set watchdog timer time, a watchdog timer error is detected and execution of the sequence
program stops. (Refer to page 33.)
• Only the "Execute it while waiting for constant scan setting" is enabled for the service processing setting.
Settings other than "Execute it while waiting for constant scan setting" are ignored and no error occurs even if they are set.
• Scan time monitoring in FR Configurator2 (Developer) monitors the actual scan time excluding the waiting time for constant
scan. 1
PLC Function 51
MEMO
52
2 CC-Link
communication
CC-Link communication 53
System configuration
Inverter Inverter
Master station Up to 42
QJ61BT11N, units can be
etc.
connected
when only
inverters are
connected Terminating
resistor
Terminating
resistor
Power Power
Motor Motor
CC-Link dedicated cable supply supply
Remote device station
NOTE
• For details on CC-Link communication wiring and the CC-Link cable, refer to the Instruction Manual of the FR-A8NC.
54 CC-Link communication
System configuration
CC-Link interface
CC-Link interface
Sequence program
1) C PU
Input signal
PLC CPU
3) 4)
5)
CPU
2)
Buffer Output signal
memory
I/O signals assigned to the CC-Link system master/local module. These signals are for
CC-Link module I/O
1) communication between the programmable controller CPU and the CC-Link system master/
signals
local module.
Information that is input to the inverter can be read, and output information can be written.
Reading from/writing
2) FROM/TO instruction of the sequence program enables reading from/writing to the buffer
to the buffer memory
memory. For details on the buffer memory, refer to page 64.
CC-Link dedicated The PLC link start instruction is sent from the sequence program. After PLC link starts, link
3)
cable refresh is continuously performed asynchronously with execution of the sequence program.
The sequence program exchanges I/O information between the CC-Link system master/local
4) Sequence program
module and the inverter CPU.
The CC-Link system master/local module and the inverter CPU exchange I/O information.
5) I/O information
(When CC-Link is not used, only 5) is performed and 1) to 4) are not related to the operation.)
NOTE
• Programs cannot be read or written via CC-Link communication.
POINT
• The differences between the normal CC-Link communication (Pr.544 = "1, 2, 12, 14, or 18") and the CC-Link communication
with the PLC function (Pr.544 = "100, 112, 114, or 118") are shown below.
Inverter Inverter
Pr.544=0,1,12,14,18 Pr.544=100,112,114,118
CC-Link master module
CPU
CPU
User
RW w RWr
RW w RWr assignment
Parameter read/write, monitor, operation commands, The user must assign parameters, monitors, etc. using sequence programs. 2
etc. have been assigned in advance. Other data read/write, etc. can be assigned freely as user areas.
∗Operation and speed commands have been assigned in advance.
CC-Link communication 55
CC-Link parameter
NOTE
• The setting becomes valid after inverter reset.
56 CC-Link communication
CC-Link I/O specifications
Remote I/O
PLC function Remote output PLC function Remote input
Signal name Signal name
device number device number device number device number
Forward rotation
X30 RYn0 Y30 RXn0 Forward rotating
command
Reverse rotation
X31 RYn1 Y31 RXn1 Reverse rotating
command
High-speed operation Running
X32 RYn2 command Y32 RXn2 (Terminal RUN function)
(Terminal RH function)
Middle-speed operation
Up to frequency
X33 RYn3 command Y33 RXn3
(Terminal SU function)
(Terminal RM function)
Low-speed operation
Overload alarm
X34 RYn4 command Y34 RXn4
(Terminal OL function)
(Terminal RL function)
JOG operation
Instantaneous power
command
X35 RYn5 Y35 RXn5 failure
(Terminal JOG function)
(Terminal IPF function)
Second function
Frequency detection
X36 RYn6 selection Y36 RXn6
(Terminal FU function)
(Terminal RT function)
Fault
Current input selection
X37 RYn7 Y37 RXn7 (Terminal ABC1 function)
(Terminal AU function)
Selection of automatic
restart after —
X38 RYn8 instantaneous power Y38 RXn8 (Terminal ABC2 function)
failure
(Terminal CS function)
Pr.313 assignment
X39 RYn9 Output stop Y39 RXn9
function (DO0)
Start self-holding
selection Pr.314 assignment
X3A RYnA Y3A RXnA
(Terminal STOP function (DO1)
function)
2
Reset
Pr.315 assignment
X3B RYnB (Terminal RES function) Y3B RXnB
function (DO2)
CC-Link communication 57
CC-Link I/O specifications
Remote register
PLC function PLC function
Address Description Address Description
device number device number
SD1062 RWwn SD1078 RWrn
SD1063 RWwn + 1 Registers for reading data SD1079 RWrn + 1 Registers for writing data
received from the master to be sent to the master
SD1064 RWwn + 2 station. SD1080 RWrn + 2 station.
SD1065 RWwn + 3 SD1081 RWrn + 3
("n" indicates a value determined by the station number setting.)
I/O figure
FR-A800 series
Devices for CC-Link (station No. 1)
Devices for built-in PLC function
RY00 to 0F X30 to 3F
RX00 to 0F Y30 to 3F
RWw0 SD1062
Master RWw1 SD1063
station
RWw2 SD1064
RWw3 SD1065
RWr0 SD1078
RWr1 SD1079
RWr2 SD1080
RWr3 SD1081
NOTE
• All remote registers are user areas and can be used freely.
58 CC-Link communication
CC-Link I/O specifications
Remote I/O
PLC function Remote output PLC function Remote input
Signal name Signal name
device number device number device number device number
Forward rotation
X30 RYn0 Y30 RXn0 Forward rotating
command
Reverse rotation
X31 RYn1 Y31 RXn1 Reverse rotating
command
High-speed operation Running
X32 RYn2 command Y32 RXn2 (Terminal RUN function)
(Terminal RH function)
Middle-speed operation
Up to frequency
X33 RYn3 command Y33 RXn3
(Terminal SU function)
(Terminal RM function)
Low-speed operation
Overload alarm
X34 RYn4 command Y34 RXn4
(Terminal OL function)
(Terminal RL function)
JOG operation
Instantaneous power
command
X35 RYn5 Y35 RXn5 failure
(Terminal JOG function)
(Terminal IPF function)
Second function
Frequency detection
X36 RYn6 selection Y36 RXn6
(Terminal FU function)
(Terminal RT function)
Fault
Current input selection
X37 RYn7 Y37 RXn7 (Terminal ABC1 function)
(Terminal AU function)
Selection of automatic
restart after —
X38 RYn8 instantaneous power Y38 RXn8 (Terminal ABC2 function)
failure
(Terminal CS function)
Pr.313 assignment
X39 RYn9 Output stop Y39 RXn9
function (DO0)
Start self-holding
selection Pr.314 assignment
X3A RYnA Y3A RXnA
(Terminal STOP function (DO1)
function)
Reset
Pr.315 assignment
X3B RYnB (Terminal RES function) Y3B RXnB
function (DO2) 2
RYnC Monitor command RXnC Monitoring
Frequency setting Frequency setting
RYnD RXnD
command (RAM) completion (RAM)
Frequency setting Frequency setting
RYnE command RXnE completion (RAM,
(RAM, EEPROM) EEPROM)
Instruction code Instruction code
RYnF RXnF
execution request execution completion
CC-Link communication 59
CC-Link I/O specifications
Remote register
PLC function Description PLC function Description
Address Address
device number Upper 8 bits Lower 8 bits device number Upper 8 bits Lower 8 bits
Monitor code Monitor code
RWwn RWrn First monitor value
2 1
Set frequency/torque
RWwn + 1 command RWrn + 1 Second monitor value
(0.01 Hz increments)
Link
parameter Instruction Reply Reply
RWwn + 2 RWrn + 2
extended code code 2 code 1
setting
RWwn + 3 Write data RWrn + 3 Read data
SD1062 RWwn + 4 SD1078 RWrn + 4
SD1063 RWwn + 5 Registers for reading data SD1079 RWrn + 5 Registers for writing data
received from the master to be sent to the master
SD1064 RWwn + 6 station. SD1080 RWrn + 6 station.
SD1065 RWwn + 7 SD1081 RWrn + 7
("n" indicates a value determined by the station number setting.)
Under vector control (torque control) (Pr.804 = "3, 5")
60 CC-Link communication
CC-Link I/O specifications
Remote I/O
Same as when Pr.544 = "112". (Refer to page 59.)
Remote register
PLC function Description PLC function Description
Address Address
device number Upper 8 bits Lower 8 bits device number Upper 8 bits Lower 8 bits
Monitor code Monitor code
RWwn RWrn First monitor value
2 1
Set frequency/torque
RWwn + 1 command RWrn + 1 Second monitor value
(0.01 Hz increments)
Link
parameter Instruction Reply Reply
RWwn + 2 RWrn + 2
extended code code 2 code 1
setting
RWwn + 3 Write data RWrn + 3 Read data
RWwn + 4 Monitor code 3 RWrn + 4 Third monitor value
RWwn + 5 Monitor code 4 RWrn + 5 Fourth monitor value
RWwn + 6 Monitor code 5 RWrn + 6 Fifth monitor value
RWwn + 7 Monitor code 6 RWrn + 7 Sixth monitor value
SD1062 RWwn + 8 SD1078 RWrn + 8
SD1063 RWwn + 9 SD1079 RWrn + 9
SD1064 RWwn + A SD1080 RWrn + A
SD1065 RWwn + B Registers for reading data SD1081 RWrn + B Registers for writing data to
received from the master
SD1066 RWwn + C station. SD1082 RWrn + C be sent to the master station.
SD1067 RWwn + D SD1083 RWrn + D
SD1068 RWwn + E SD1084 RWrn + E
SD1069 RWwn + F SD1085 RWrn + F
("n" indicates a value determined by the station number setting.)
Under vector control (torque control) (Pr.804 = "3, 5")
CC-Link communication 61
CC-Link I/O specifications
Remote I/O
Same as when Pr.544 = 112. (Refer to page 59.)
Remote register
PLC function Description PLC function Description
Address Address
device number Upper 8 bits Lower 8 bits device number Upper 8 bits Lower 8 bits
Monitor code Monitor code
RWwn RWrn First monitor value
2 1
Set frequency
RWwn + 1 RWrn + 1 Second monitor value
(0.01 Hz increments)
Link
parameter Instruction Reply Reply
RWwn + 2 RWrn + 2
extended code code 2 code 1
setting
RWwn + 3 Write data RWrn + 3 Read data
RWwn + 4 Monitor code 3 RWrn + 4 Third monitor value
RWwn + 5 Monitor code 4 RWrn + 5 Fourth monitor value
RWwn + 6 Monitor code 5 RWrn + 6 Fifth monitor value
RWwn + 7 Monitor code 6 RWrn + 7 Sixth monitor value
Fault record Fault record Fault record
RWwn + 8 H00 RWrn + 8
number number data
PID set point Fault record
RWwn + 9 RWrn + 9
(0.01% increments) (Output frequency)
PID measured value Fault record
RWwn + A RWrn + A
(0.01% increments) (Output current)
PID deviation Fault record
RWwn + B RWrn + B
(0.01% increments) (Output voltage)
Fault record
RWwn + C Reserved RWrn + C
(Energization time)
RWwn + D RWrn + D
RWwn + E H00 (Empty) RWrn + E H00 (Empty)
RWwn + F RWrn + F
Valid when Pr.128 = "40, 41, 60, 61, 140, or 141".
Valid when Pr.128 = "60 or 61".
Valid when Pr.128 = "50 or 51".
62 CC-Link communication
CC-Link I/O specifications
Description Description
PLC function PLC function
Address Upper Lower Address Upper Lower
device number device number
8 bits 8 bits 8 bits 8 bits
SD1062 RWwn + 10 SD1078 RWrn + 10
SD1063 RWwn + 11 SD1079 RWrn + 11
SD1064 RWwn + 12 SD1080 RWrn + 12
SD1065 RWwn + 13 SD1081 RWrn + 13
SD1066 RWwn + 14 SD1082 RWrn + 14
SD1067 RWwn + 15 SD1083 RWrn + 15
SD1068 RWwn + 16 SD1084 RWrn + 16
SD1069 RWwn + 17 Registers for reading data SD1085 RWrn + 17 Registers for writing data to
received from the master be sent to the master
SD1070 RWwn + 18 station. SD1086 RWrn + 18 station.
SD1071 RWwn + 19 SD1087 RWrn + 19
SD1072 RWwn + 1A SD1088 RWrn + 1A
SD1073 RWwn + 1B SD1089 RWrn + 1B
SD1074 RWwn + 1C SD1090 RWrn + 1C
SD1075 RWwn + 1D SD1091 RWrn + 1D
SD1076 RWwn + 1E SD1092 RWrn + 1E
SD1077 RWwn + 1F SD1093 RWrn + 1F
("n" indicates a value determined by the station number setting.)
CC-Link communication 63
Buffer memory
FR-A800 series
Remote device station
Master Station (Station No. 1: 1 station occupied) Inverter
Correspondence table of buffer memory addresses and station numbers of the master station
Station Buffer memory Station Buffer memory Station Buffer memory Station Buffer memory
number address number address number address number address
1 160H 17 180H 33 1A0H 49 1C0H
2 162H 18 182H 34 1A2H 50 1C2H
3 164H 19 184H 35 1A4H 51 1C4H
4 166H 20 186H 36 1A6H 52 1C6H
5 168H 21 188H 37 1A8H 53 1C8H
6 16AH 22 18AH 38 1AAH 54 1CAH
7 16CH 23 18CH 39 1ACH 55 1CCH
8 16EH 24 18EH 40 1AEH 56 1CEH
9 170H 25 190H 41 1B0H 57 1D0H
10 172H 26 192H 42 1B2H 58 1D2H
11 174H 27 194H 43 1B4H 59 1D4H
12 176H 28 196H 44 1B6H 60 1D6H
13 178H 29 198H 45 1B8H 61 1D8H
14 17AH 30 19AH 46 1BAH 62 1DAH
15 17CH 31 19CH 47 1BCH 63 1DCH
16 17EH 32 19EH 48 1BEH 64 1DEH
64 CC-Link communication
Buffer memory
Correspondence table of buffer memory addresses and station numbers of the master station
Station Buffer memory Station Buffer memory Station Buffer memory Station Buffer memory
number address number address number address number address
1 E0H 17 100H 33 120H 49 140H
2 E2H 18 102H 34 122H 50 142H
3 E4H 19 104H 35 124H 51 144H
4 E6H 20 106H 36 126H 52 146H
5 E8H 21 108H 37 128H 53 148H
6 EAH 22 10AH 38 12AH 54 14AH
7 ECH 23 10CH 39 12CH 55 14CH
8 EEH 24 10EH 40 12EH 56 14EH
9 F0H 25 110H 41 130H 57 150H
10 F2H 26 112H 42 132H 58 152H
11 F4H 27 114H 43 134H 59 154H
12 F6H 28 116H 44 136H 60 156H
13 F8H 29 118H 45 138H 61 158H
2
14 FAH 30 11AH 46 13AH 62 15AH
15 FCH 31 11CH 47 13CH 63 15CH
16 FEH 32 11EH 48 13EH 64 15EH
CC-Link communication 65
Buffer memory
to to
2DBH
2DCH RWW FC
For station 2DDH RWW FD
No.64 2DEH RWW FE
2DFH RWW FF
Correspondence table of buffer memory addresses and station numbers of the master station
Station Buffer memory Station Buffer memory Station Buffer memory Station Buffer memory
number address number address number address number address
1 1E0H to 1E3H 17 220H to 223H 33 260H to 263H 49 2A0H to 2A3H
2 1E4H to 1E7H 18 224H to 227H 34 264H to 267H 50 2A4H to 2A7H
3 1E8H to 1EBH 19 228H to 22BH 35 268H to 26BH 51 2A8H to 2ABH
4 1ECH to 1EFH 20 22CH to 22FH 36 26CH to 26FH 52 2ACH to 2AFH
5 1F0H to 1F3H 21 230H to 233H 37 270H to 273H 53 2B0H to 2B3H
6 1F4H to 1F7H 22 234H to 237H 38 274H to 277H 54 2B4H to 2B7H
7 1F8H to 1FBH 23 238H to 23BH 39 278H to 27BH 55 2B8H to 2BBH
8 1FCH to 1FFH 24 23CH to 23FH 40 27CH to 27FH 56 2BCH to 2BFH
9 200H to 203H 25 240H to 243H 41 280H to 283H 57 2C0H to 2C3H
10 204H to 207H 26 244H to 247H 42 284H to 287H 58 2C4H to 2C7H
11 208H to 20BH 27 248H to 24BH 43 288H to 28BH 59 2C8H to 2CBH
12 20CH to 20FH 28 24CH to 24FH 44 28CH to 28FH 60 2CCH to 2CFH
13 210H to 213H 29 250H to 253H 45 290H to 293H 61 2D0H to 2D3H
14 214H to 217H 30 254H to 257H 46 294H to 297H 62 2D4H to 2D7H
15 218H to 21BH 31 258H to 25BH 47 298H to 29BH 63 2D8H to 2DBH
16 21CH to 21FH 32 25CH to 25FH 48 29CH to 29FH 64 2DCH to 2DFH
66 CC-Link communication
Buffer memory
to to
3DBH
3DCH RWR FC
For station 3DDH RWR FD
No.64 3DEH RWR FE
3DFH RWR FF
Correspondence table of buffer memory addresses and station numbers of the master station
Station Buffer memory Station Buffer memory Station Buffer memory Station Buffer memory
number address number address number address number address
1 2E0H to 2E3H 17 320H to 323H 33 360H to 363H 49 3A0H to 3A3H
2 2E4H to 2E7H 18 324H to 327H 34 364H to 367H 50 3A4H to 3A7H
3 2E8H to 2EBH 19 328H to 32BH 35 368H to 36BH 51 3A8H to 3ABH
4 2ECH to 2EFH 20 32CH to 32FH 36 36CH to 36FH 52 3ACH to 3AFH
5 2F0H to 2F3H 21 330H to 333H 37 370H to 373H 53 3B0H to 3B3H
6 2F4H to 2F7H 22 334H to 337H 38 374H to 377H 54 3B4H to 3B7H
7 2F8H to 2FBH 23 338H to 33BH 39 378H to 37BH 55 3B8H to 3BBH
8 2FCH to 2FFH 24 33CH to 33FH 40 37CH to 37FH 56 3BCH to 3BFH
9 300H to 303H 25 340H to 343H 41 380H to 383H 57 3C0H to 3C3H
10 304H to 307H 26 344H to 347H 42 384H to 387H 58 3C4H to 3C7H
11 308H to 30BH 27 348H to 34BH 43 388H to 38BH 59 3C8H to 3CBH
12 30CH to 30FH 28 34CH to 34FH 44 38CH to 38FH 60 3CCH to 3CFH
13 310H to 313H 29 350H to 353H 45 390H to 393H 61 3D0H to 3D3H
14 314H to 317H 30 354H to 357H 46 394H to 397H 62 3D4H to 3D7H
15 318H to 31BH 31 358H to 35BH 47 398H to 39BH 63 3D8H to 3DBH
16 31CH to 31FH 32 35CH to 35FH 48 39CH to 39FH 64 3DCH to 3DFH 2
CC-Link communication 67
MEMO
68
3 Sequence program
Sequence program 69
Overview
3.1 Overview
Initial processing
Initial processing is pre-processing to execute sequence operations and is performed only once when the inverter is
turned ON or reset.
• Resets to initialize the input and output.
• Initializes the data memory (bit devices are turned OFF and word devices are set to 0).
• Performs self-diagnostic checks on such items as PLC function parameter settings and operation circuits.
NOTE
• PLC function can be checked via FR Configurator2 (Developer). (Refer to the Instruction Manual of FR Configurator2.)
END processing
End processing is post-processing to end operation processing of a sequence program once and return execution to step
0 in the sequence program.
• Performs a self-diagnostic check.
• Updates timers and counters to the present values and turns contacts on/off.
70 Sequence program
Overview
Power ON
Initial processing
·I/O initialization
·Data memory initialization
·Self-diagnostic checks
Sequence program
operation processing
Step 0
to
Until execution of END instruction
END processing
·Self-diagnostic checks
·Updating of timer and counter present values
and ON/OFF of their contacts
Sequence program 71
RUN/STOP operation
POINT
• The PLC function performs I/O refresh processing in both RUN and STOP states. Therefore, input/output can be monitored
and tested from peripheral devices even in the STOP state.
Program capacity
The program capacity is the memory capacity that stores programs and is 6K steps. Set the program capacity using PLC
function parameters (PLC parameters).
72 Sequence program
Programming language
Ladder block
A ladder block is the smallest elements for the sequence program operation, and starts at a vertical rail on the left side and
ends at the one on the right side.
Step number
Ladder
blocks
Sequence program 73
Programming language
Operation 3) 4)
5)
from top
to bottom 6)
Beginning of
Execution one ladder block 11) 13) 14) Operation from left to right 15)
returns to
step 0 when 12)
Operation 16)
END
from top
instruction is
to bottom 17) End of one
executed.
ladder block
END
1) 2) 7) 8) 9)
Step number 10)
3) 4)
5)
Operation
6)
sequence
11)
74 Sequence program
Programming language
Program 1 Program 1
FB
Program 2
Program 2
Repeatedly-used
circuit blocks are FB
treated as a block
and treated as
one component. Reuse
FB
Project B
Program 3
Project B
FB
Program 3
Sequence program 75
Operation processing method of the PLC function
Step 0
Step 1
Step 2
END
·Timer/counter present
value updating
·Self-diagnostic
checks, etc.
NOTE
• Processing from step 0 to the next step 0 or END to the next END is called a scan.
Therefore, a single scan time is the total time to process a user-created program (step 0 through END) and the time for
internal processing of the PLC function.
76 Sequence program
I/O processing method
4)
At output refresh
Control output
Y22 Output (Y)
terminal
Y20 5) data memory 2)
• Input refresh
Input information is read 1) in batch from the PLC function area and stored in the input data memory (X) before executing
step 0.
• Output refresh
Output information 2) stored in the output data memory (Y) is output in batch to the PLC function area before executing
step 0.
• When executing a contact instruction for the input
Input information is read 3) from the input data memory (X) to execute a sequence program.
• When executing a contact instruction for the output
Output information is read 4) from the output data memory (Y) to execute a sequence program.
• When executing an OUT instruction for the output
Operation result of the sequence program 5) is stored in the output data memory (Y).
Sequence program 77
I/O processing method
Ladder example
ON
OFF
Control input
ON
terminal
OFF
X5
ON
OFF
Y1E
ON
Control output OFF
terminal Delay
(Minimum 1 scan)
The Y1E output turns ON at the earliest timing when the control input terminal turns ON immediately before the refresh. In
this case, X5 turns ON at input refresh, Y1E turns ON at step 0, and then the control output terminal turns ON at output
refresh after END instruction execution.
Therefore, change in the control output terminal occurs one scan behind that in the control input terminal.
ON
OFF
Control input
ON
terminal
OFF
X5
ON
OFF
Y1E
ON
OFF
Control output
terminal Delay
(Maximum 2 scans)
The Y1E output turns ON at the latest timing when the control input terminal turns ON immediately after the refresh. In this
case, X5 turns ON at the next input refresh, Y1E turns ON at step 0, and then the control output terminal turns ON at the
output refresh after END instruction execution.
Therefore, change in the control output terminal occurs two scans behind that in the control input terminal.
78 Sequence program
Scan time
Scan time
END 0 END 0
Sequence program
END processing
Timer/counter count processing
Self-diagnostic checks
Sequence program 79
Values that can be used in sequence programs
80 Sequence program
Values that can be used in sequence programs
2 15 2 14 2 13 2 12 2 11 2 10 2 9 28 27 26 25 24 23 22 21 20
Decimal value -32768 16384 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1
Sequence program 81
Values that can be used in sequence programs
82 Sequence program
Explanation of devices
Number of
Classification Category Device name Range of use
points
Input (X) 64 points X0 to X3F <12 points installed> HEX
Output (Y) 64 points Y0 to Y3F <12 points installed> HEX
Sequence program 83
Explanation of devices
Signal lamp
·Select switch
Inputs (X) Outputs (Y)
Sequence
operation Contactor
·Digital switch
Input X
• The input allows external devices, such as push-button switches, selection switches, limit switches, and digital
switches, to give commands and data to the inverter (PLC function).
• Assuming that the PLC function has internal virtual relays (Xn), the NO contacts and NC contacts of those Xn are used
in programs.
Virtual relay
PB1 X0
X0 Sequence
function
LS2 X1
X1
No restrictions
on the number
of used contacts.
When the inverter is used without connecting any external device to the control input terminal, "X" can be substituted for
internal relay "M".
84 Sequence program
Explanation of devices
Output Y
• The output performs output of program control results to external devices (signal lights, digital Human Machine
Interfaces (HMI), electromagnetic switches (such as contactors and solenoids)).
• Output information can be output through a single NO contact or an equivalent device.
• There is no limit on the number of NO contacts and NC contacts of output Yn used in a program as long as it is within
the range of the program capacity.
M11
When the inverter is used without connecting the control input terminals to external devices, "Y" can be substituted for internal
relay "M".
Sequence program 85
Explanation of devices
3.9.4 Timer T
The PLC function uses up-timing timers.
The up-timing timer starts measuring a present value when the timer's coil turns ON, and then the timer's contact turns ON
when the present value reaches a setting value.
Ladder example
Timing chart
ON ON
X5 OFF OFF OFF
ON ON
T2 coil OFF OFF OFF
Setting
Timer present
value
5s
ON
T2 contact OFF OFF
NOTE
• Changing between the 100 ms timer, 10 ms timer, and 100 ms retentive timer can be done using PLC function parameters.
(The initial setting is the 100 ms timer.)
86 Sequence program
Explanation of devices
Ladder example
Timing chart
ON ON
Setting
Timer present
value 5s
15s
ON
T5 contact OFF OFF
[Program example]
Processing
Coil ON/OFF
Current value update
Contact ON/OFF
Sequence program 87
Explanation of devices
Accuracy
The value obtained by the END instruction is added to the current value when the OUT T instruction is executed. The
current value is not updated while the timer coil is off even if the OUT T instruction is executed.
Timer limit setting=10ms, Setting value of T0=8 (10ms 8=80ms), Scan time=25ms
X0 K8
T0
1 2 1 2 3 1 2 1 2 3 1 2 1 2 3
10ms counting
Count at
execution of the 2 3 2 3 2 3
END instruction
Current value
0+2=2 2+3=5 5+2=7 7+3=
of T0
ON
External input OFF
to X0
ON
Inverter X0 OFF
ON
Coil of T0 OFF
ON
Contact of T0 OFF
Accuracy of the timer response that is from reading input (X) to output the data are up to
"2-scan time + timer limit setting".
88 Sequence program
Counter C
3.10 Counter C
The PLC function uses up-timing counters.
The up-timing counter turns its contact ON when the count value reaches a setting value.
Count processing
• The counter's coil turns on/off at execution of the OUT C instruction, and then the counter's present value is updated
and its contact turns ON after the END instruction is executed.
• The counter detects the coil's rise (OFFON) and then starts counting. Therefore, it will not start counting if the coil
remains ON.
Counter reset
• The count value is not cleared even when the coil turns OFF. Use the RST C instruction to clear the count value and
turn the contact OFF.
• If the counter is reset with the RST instruction, the counter's present value and contact are cleared at execution of the
RST instruction.
Ladder example
Input condition
C0 counts on leading edge (OFF to ON)
of input X5.
Resets C0 when input X6 turns ON.
Sequence program 89
Counter C
Ladder example
Counting method
ON
OFF
X5
ON
X5 (Image) OFF
ON
OFF
C3 coil
C3 present 0 1 2
value ON
OFF
C3 contact
NOTE
• For the maximum counting speed of the counter, refer to page 90.
n 1 n : Duty (%)
Maximum counting speed Cmax = × [times/s]
100 ts ts : Scan time [s]
NOTE
• Duty n is a ratio between the ON and OFF time of count input signals and is represented as a percentage (%).
T1
When T1 T2 n= 100[%]
T1 + T2
T2
When T1>T2 n = 100[%]
T1 + T2
T1 T2
ON
Count input signal OFF
90 Sequence program
Data register D
b15 to b0
D
16 bits
Data register No.
• Data stored during execution of a sequence program is retained until overwritten with new data.
• Unused timers (T) and counters (C) can be substituted for data registers if the number of data registers is insufficient.
Sequence program 91
Special relays and special registers
Timing contact
The following items are special relays with different operating statuses that can be used for sequence programs.
• Always ON/OFF flag
• RUN flag (OFF for one scan)
• Initial processing flag (ON for one scan)
NOTE
• For special relays and special registers that can be used in the PLC function, refer to page 17.
Special
Item relay Application/description
number
Turned ON when a diagnostic error has been detected.
Diagnostic error SM0
ON status is retained even after the condition becomes normal.
Turned ON when an error is detected by self-diagnosis.
Self-diagnostic error SM1
ON status is retained even after the condition becomes normal
Common error information SM5 When SM5 is turned ON, common error information (SD5 to SD15) is stored.
When SM16 is turned ON, error individual information (SD16 to SD26) is
Individual error information SM16
stored.
Turned ON when an operation error is detected during instruction execution.
Operation error flag SM56
ON status is retained even after the condition becomes normal.
Clock data is read in BCD value to SD210 to SD213 when this relay is turned
Clock data read request SM213
ON. The process is not executed when the relay is OFF.
Always ON SM400 SM400 and SM401 are respectively turned ON and OFF regardless of the
Always OFF SM401 STOP and RUN states.
ON only for one scan after SM402 and SM403 change depending on the STOP and RUN states.
SM402
RUN In the cases other than STOP:
OFF only for one scan after SM402 is ON only for one scan.
SM403 SM403 is OFF only for one scan.
RUN
92 Sequence program
Function list
NOTE
• The following functions cannot be used.
Constant scan, latch (retention at power failure), PAUSE, status latch, sampling trace, step operation, clock, interrupt
processing, comment, microcomputer mode, print title entry, annunciator display mode, ERROR LED priority settings.
Sequence program 93
RUN/STOP method of PLC function from an external source (remote RUN/STOP)
SQ terminal
ON
Remote RUN contact OFF
(External input terminal)
STOP
Built-in sequence
RUN
function:
RUN/STOP status
STOP status
POINT
• PLC function parameter settings for the remote RUN contact
X0 to X1F can be set for the remote RUN contact.
(For details, refer to the Instruction Manual of FR Configurator2)
94 Sequence program
RUN/STOP method of PLC function from an external source (remote RUN/STOP)
Note
Note the following points because the PLC function has priority on STOP.
• The PLC function switches to the STOP state when remote STOP is executed from any source such as the remote
RUN contact or FR Configurator2 (Developer), etc.
• After switching the PLC function to the STOP state with remote STOP, all external factors (remote RUN contact, FR
Configurator2 (Developer), etc.) that executed the remote STOP must be RUN in order to switch the PLC function back
to the RUN state.
NOTE
• In the RUN state, the sequence program step 0 to the END instruction are executed repeatedly.
In the STOP state, all sequence program operations are stopped, and all outputs (Y) are OFF.
Sequence program 95
Watchdog timer (watchdog error supervision timer)
0 END 0
96 Sequence program
Self-diagnostic function
Self-diagnostic timing
The self-diagnostic is executed at power-on, at reset, when each instruction is executed and when the END instruction is
executed.
• At power-on, at reset.
Diagnoses whether the operation can be executed.
• When each instruction is executed
An error occurs if the operation of each instruction of the sequence program could not be executed.
• When the END instruction is executed
Watchdog error supervision is performed.
• The initial status of the operation mode and PLC function status when there is an operation error are as shown in the
following table.
Sequence program 97
Registering file password
File A ca Inverter
Read password n
"XYZ98756" is authenticated. the pass be read since
word m
atches.
File A
FR Configurator2
Write password: AbcDEF12
(Developer) Read password: XYZ98756
Write password
"1234abCD" is authenticated. A write password and read
password can be set individually.
n since
e writte
annot b match.
File A c ord does not
FR Configurator2 sw
the pas
(Developer)
NOTE
• For the procedure and precaution on the password change, cancellation, and unlock, refer to the GX Works2 Version1
Operating Manual (Common).
• Even when the password function (Pr.296, Pr.297) is enabled, FR Configurator2 can be used to read/write the inverter
parameter settings. To use the password function and PLC function at the same time, register keywords and lock reading/
writing of the ladder program.
• The purpose of the file password is different from that of the inverter password function (Pr.296, Pr.297).
98 Sequence program
Output (Y) status settings when STOP status → RUN status
YES
Sequence program 99
Structure of instructions
• Instruction section
Indicates the functions of the instruction.
• Device
Indicates the data used by the instruction.
The structure of instructions based on a combination of the instruction section and device can be broadly divided into the
following categories.
• Instruction section
Instructions that do not change the device status, and mainly perform program controls.
Example END
• Others
Combinations other than those above.
Source (S)
A source is the data used in the operation.
It is as shown below depending on the specified device.
• Constant
Specifies the value used in the operation. It is a fixed value that cannot be changed when the program is being executed
because it is set when the program is created.
• Bit device, word device
Specifies the device in which the data used in the operation is stored. Therefore, the data needs to be stored in the
specified device before the operation is executed. The data used in the instruction can be changed by changing the
data stored in the specified device while the program is being executed.
Destination (D)
The data after operation is stored in the destination.
However, when instructions are constructed of a combination of Instruction section + Source device +
Destination device , the data to be used in the operation needs to be stored in the destination before the operation.
The device in which data is to be stored must be specified in the destination.
NOTE
• In this manual, the source and destination shall be indicated as the following abbreviations.
Designation range
of K1
(4 points)
Designation range of K2
(8 points)
Designation range of K3
(12 points)
Designation range of K4
(16 points)
• When there is a digit specification on the source (S) side, the values that can be handled as source data are indicated in
the table below.
Change to 0. 3
• When there is a digit specification on the destination (D) side, the number of points from the digit specification is applied
to the destination side.
Specification
range of K1
(4 points)
Specification range of K2
(8 points)
Specification range of K3
(12 points)
Specification range of K4
(16 points)
Specification range of K5
(20 points)
Specification range of K6
(24 points)
Specification range of K7
(28 points)
Specification range of K8
(32 points)
• When there is a digit specification on the source (S) side, the values that can be handled as source data are indicated in
the table below.
X010 P K1 Change to 0.
DMOV X000 D0
b15 b4 b3 b2 b1 b0
D0 0 0 0 0 0 0 0 0 0 0 0 0 X3 X2 X1 X0
Source (S) data 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
D1
b31 b16
Change to 0.
• When there is a digit specification on the destination (D) side, the number of points from the digit specification is applied
to the destination side.
0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0
3 4 5 6
0 1 1 1 1 0 0 0 0 0 0 1 0 0 1 0
X010 P H K5 7 8 1 2
K5M0
DMOV 78123456 M0 M15 M8 M7 M0
0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0
Remain unchanged.
b15 b8 b7 b0
X010 P K5 D1 0 0 1 1 0 1 0 0 1 0 0 1 0 1 1 1
DMOV D0 M10
Remain unchanged.
NOTE
• When 32-bit data is stored in word devices, it is stored in two consecutive word devices. An error does not occur even if the
stored data exceeds the range of the corresponding device, but the content of devices outside of the range is changed. When
storing data, check beforehand that the amount of devices required for storage can be allocated.
POINT
• Value setting method
1) Decimal
2) Hexadecimal
• 16 bits • 32 bits
Hexadecimal Hexadecimal
Decimal display Decimal display
display display
32767 H7FFF 2147483647 H7FFFFFFF
to to to to
5 H0005 5 H00000005
4 H0004 4 H00000004
3 H0003 3 H00000003
2 H0002 2 H00000002
1 H0001 1 H00000001
0 H0000 0 H00000000
-1 HFFFF -1 HFFFFFFFF
-2 HFFFE -2 HFFFFFFFE
-3 HFFFD -3 HFFFFFFFD
-4 HFFFC -4 HFFFFFFFC
-5 HFFFB -5 HFFFFFFFB
to to to to
-32768 H8000 -2147483648 H80000000
POINT
• Note that an operation error does not occur when the device specified range exceeds the corresponding device range, and
data is written to devices other than the specified device.
Error processing
If an operation error occurs when a basic instruction is executed, SM0 turns ON and an error code is stored in SD0.
(SM0 remains ON even if subsequent processing is normal.)
• The error code of the instruction in which the operation error occurred when SM0 changed from OFF to ON is stored in
SD0. Therefore, the content of SD0 does not change when SM0 remains ON.
• The following type of program resets SD0 and SM0.
Reset command
RST SM0 Resets (turns off) SM0.
Reset command
RST SD0
Resets SD0.
(Clears SD0 to 0.)
• When an operation error occurs, the choice of whether to stop or continue sequence processing can be made in the
PLC function parameter settings. For details, refer to page 97.
MOV MOV S D
Transfer (S)(D) 5
MOVP MOVP S D
1) 2) 3) 4) 5) 6)
Example + D+
• Change the instruction symbol so that the start execution command is output when the signal is ON, as shown below.
Add a P to the end of the instruction that is executed only at the leading edge of OFF to ON.
Example MOV MOVP
Instruction executed during ON Instruction executed only at the leading edge of OFF to ON
MOV S D WAND S1 S2 D
(D + 1, D) + (S + 1, S) (D + 1, D)
16 bits 16 bits
(D) + (S) (D)
D +1 D
5): Details of the execution conditions for each instruction are as follows.
SFT SFT D
Shift Device 1-bit shift 130
SFTP SFTP D
LD= = S1 S2
OR= = S1 S2
LD<> <> S1 S2
OR<> <> S1 S2
LD> > S1 S2
OR> > S1 S2
16-bit data
140
comparison
LD<= <= S1 S2
OR<= <= S1 S2
LD< < S1 S2
OR< < S1 S2
LD>= >= S1 S2
OR>= >= S1 S2
LDD= LDD= S1 S2
When (S1+1, S1) = (S2+1, S2),
32-bit
conductive.
data ANDD= ANDD= S1 S2 156
When (S1+1, S1) (S2+1, S2),
comparison
non-conductive.
ORD= ORD= S1 S2
LDD<> LDD<> S1 S2
When (S1+1, S1) (S2+1, S2),
conductive.
ANDD<> ANDD<> S1 S2
When (S1+1, S1) = (S2+1, S2),
non-conductive.
ORD<> ORD<> S1 S2
LDD> LDD> S1 S2
When (S1+1, S1) > (S2+1, S2),
conductive.
ANDD> ANDD> S1 S2
When (S1+1, S1) (S2+1, S2),
non-conductive.
ORD> ORD> S1 S2
LDD<= LDD<= S1 S2
When (S1+1, S1) (S2+1, S2),
32-bit
conductive.
data ANDD<= ANDD<= S1 S2 156
When (S1+1, S1) > (S2+1, S2),
comparison
non-conductive.
ORD<= ORD<= S1 S2
LDD< LDD< S1 S2
When (S1+1, S1) < (S2+1, S2),
conductive.
ANDD< ANDD< S1 S2
When (S1+1, S1) (S2+1, S2),
non-conductive.
ORD< ORD< S1 S2
LDD>= LDD>= S1 S2
When (S1+1, S1) (S2+1, S2),
conductive.
ANDD>= ANDD>= S1 S2
When (S1+1, S1) < (S2+1, S2),
non-conductive.
ORD>= ORD>= S1 S2
+ + S D
(S) + (D)(D)
+P +P S D
+ + S1 S2 D
(S1) + (S2)(D)
BIN +P +P S1 S2 D
16-bit
143
addition/
subtraction - - S D
(S) - (D)(D)
-P -P S D
- - S1 S2 D
(S1) - (S2)(D)
-P
3
-P S1 S2 D
D+ D+ S D
(D+1, D) + (S+1, S)
(D+1, D)
D+P D+P S D
D+ D+ S1 S2 D
(S1+1, S1) + (S2+1, S2)
(D+1, D)
BIN D+P D+P S1 S2 D
32-bit
158
addition/
subtraction D- D- S D
(D+1, D) - (S+1, S)
(D+1, D)
D-P D-P S D
D- D- S1 S2 D
(S1+1, S1) - (S2+1, S2)
(D+1, D)
D-P D-P S1 S2 D
* * S1 S2 D
(S1) (S2)(D+1, D)
BIN *P *P S1 S2 D
16-bit
146
multiplication/
division / / S1 S2 D
(S1)/(S2)quotient(D),
remainder (D+1)
/P /P S1 S2 D
D* D* S1 S2 D
(S1+1, S1) (S2+1, S2)
(D+3, D+2, D+1, D)
BIN D*P D*P S1 S2 D
32-bit
161
multiplication/
division D/ D/ S1 S2 D (S1+1, S1)/(S2+1, S2)
quotient (D+1, D),
D/P D/P S1 S2 D remainder (D+3, D+2)
INC INC D
(D)+1(D)
BIN 16-bit INCP INCP D
data
149
increment/
decrement DEC DEC D
(D) - 1(D)
DECP DECP D
DINC DINC D
(D+1, D)+1(D+1, D)
BIN 32-bit DINCP DINCP D
data
164
increment/
decrement DDEC DDEC D
(D+1, D) - 1(D+1, D)
DDECP DDECP D
MOV MOV S D
16-bit
(S)(D) 150
transfer
MOVP MOVP S D
DMOV DMOV S D
32-bit
(S+1, S)(D+1, D) 165
transfer
DMOVP DMOVP S D
WAND WAND S D
DAND DAND S D
WOR WOR S D
(D) OR (S)(D)
WORP WORP S D
BIN 16-bit
174
logical OR
WOR WOR S1 S2 D
(S1) OR (S2)(D)
WORP WORP S1 S2 D
DOR DOR S D
WXOR WXOR S D
DXOR DXOR S D
WXNR WXNR S D
exclusive 178
NOR WXNR WXNR S1 S2 D
DXNR DXNR S D
(D+1, D) XOR (S+1, S)
(D+1, D)
BIN 32-bit DXNRP DXNRP S D
exclusive 190
NOR DXNR DXNR S1 S2 D
(S1+1, S1) XOR (S2+1, S2)
(D+1, D)
DXNRP DXNRP S1 S2 D
Sequence instructions 3) 4)
2) SET
D
RST
SET input
6) Function
SET
• When SET input is turned ON, the specified device turns ON.
• A device that was turned ON remains ON even if the SET input is turned OFF. It can be turned OFF with the RST
instruction.
SET input
RST input
• When the SET input is OFF, the device state does not change.
7) Execution condition
The SET and RST instructions are executed for each scan.
NOTE
• The number of steps is three when the following devices are used.
SET instruction ... Special relay (M)
RST instruction ... Special relay (M), all word devices
8) Program example
SET , RST
• Program that sets Y8 (ON) when X8 turns ON, and resets Y8 (OFF) when X9 turns ON.
Coding
Description
1) Indicates the item number, instruction overview and instruction symbol.
2) Devices that can be used by instructions are marked with .
3) When a bit device is used, this indicates digit specifications that can be set in the instruction required by the digit
specification.
4) When an operation error occurs, instructions whose error flags turn ON are marked with .
5) Indicates the format in ladder mode.
6) Describes the instruction.
7) Indicates the execution conditions of the instruction.
8) Indicates the program example in ladder mode and list mode.
X1 Device number
LD
X1
LDI
X2
AND
X2
ANI
OR
X3
ORI
X3
Function
LD, LDI
• LD is the NO contact operation start instruction and LDI is the NC contact operation start instruction. They import the ON/
OFF information of the specified device as the operation result.
AND, ANI
• AND is the NO contact series connection instruction, and ANI is the NC contact series connection. They import the ON/OFF
information of the specified device to perform the AND operation with the operation result up to this point and take the
resulting value as the operation result.
• There are no usage limitations on AND and ANI, but the following limitations exist in ladder mode.
• Write: When AND or ANI are connected in a series, a ladder with a maximum of 21 steps can be created.
• Read: When AND or ANI are connected in a series, a ladder with a maximum of 24 steps can be displayed.
If the ladder exceeds 24 steps, steps up to the 24th step are displayed.
OR, ORI
• OR is the parallel connection instruction with a single NO contact, and ORI is the parallel connection instruction with a
single NC contact. They import the ON/OFF information of the specified device to perform the OR operation with the 3
operation result up to this point and take the resulting value as the operation result.
• There are no usage limitations on OR and ORI, but the following limitations exist in ladder mode.
• Write: A ladder that contains 23 OR or ORI continually linked can be created.
• Read: A ladder that contains 23 OR or ORI continually linked can be displayed. Ladders that contains more than 23 OR
or ORI cannot be displayed correctly.
Execution condition
The instructions explained in this section are executed every scan irrespective of the device ON/OFF status or the operation
result directly prior to the execution.
Program example
LD , LDI , AND , ANI , OR , ORI
Coding
Coding
ORB
ANB
Coding
Block A Block B
Block A
Block B
Function
ANB
• The AND operation is executed for the A block and B block to produce the operation result.
• The AND symbol is a connection symbol, not a contact symbol.
• A maximum of 7 instructions (8 blocks) can be written continuously for ANB.
If more ANB instructions than indicated above are written continuously, the PLC function cannot operate correctly.
ORB
• The OR operation is executed for the A block and B block to produce the operation result.
• ORB creates parallel connections with ladder blocks that have two or more contacts. Use OR or ORI to create parallel
connections with ladder blocks that only have one contact, there is no need to use ORB.
Coding
Program example
ANB
The following two types of program coding are available for continuous series connection of ladder blocks. However, the
coding example 1 should be applied.
ORB
The following two types of program coding are available for continuous parallel connection of ladder blocks. However, the
coding example 1 should be applied.
Function
MPS
• The operation result (ON/OFF) directly prior to the MPS instruction is stored.
• The MPS instruction can be used continuously up to 12 times.
However, it can only be used up to 11 times when created with ladder mode.
When the MPP instruction is used during the program, the number of the MPS instructions to be used is reduced by 1.
MRD
• The operation result stored by the MPS instruction is read, and the operation of the following step is continued by this
operation result.
MPP
• The operation result stored by the MPS instruction is read, and the operation of the following step is continued by this
operation result.
• The operation result stored by the MPS instruction is cleared.
POINT
• The ladder is as shown below when MPS, MRD and MPP are used and when they are not used.
Ladder when MPS, MRD and MPP are used Ladder when MPS, MRD and MPP are not used
• Be sure to match the number of MPS and MPP instructions. The following will occur if the number used is different.
If the number of MPS instructions is greater, the ladder is changed and the PLC function executes operations on the changed
ladder.
Before change
Coding
After change
Coding
If the number of MPP instructions is greater, a ladder creation failure occurs for that ladder block and the PLC function cannot
execute operations normally.
Program example
MPS , MRD , MPP
• Program using MPS, MRD and MPP
1) Coding
1)
2)
3) 4)
2)
5) 3)
6) 4)
7)
5)
8)
6)
9)
10) 7)
8)
9)
10)
OUT Y15
(Y, M) Device number
K50 Setting Any of 1 to 32767 is
valid
T0
Device number (T0 to 15)
OUT
D10 Setting Any of data register
(T) contents 1 to 32767
T0 is valid
Device number (T0 to 15)
Function
OUT (Y, M)
• Operation results up to the OUT instruction are output to the specified device.
OUT instruction
Operation result Contact
Coil
NO contact NC contact
OFF OFF Non-conduction Conduction
ON ON Conduction Non-conduction
NOTE
• The OUT instruction repuires 3 steps when a special relay (M) is used.
OUT(T)
• When the operation result up to the OUT instruction is ON, the timer coil turns ON and counts up the value up to the setting
value. When the coil's timer reaches the setting value (counted value setting value), the contacts enter the following
states:
NO contact Conduction
NC contact Non-conduction
• When the operation result up to the OUT instruction changes from ON to OFF, the following occurs.
OUT (C)
• If the operation result changes from OFF to ON up to the OUT instruction, +1 is added to the present value (count value),
and when counting reaches the setting value (present value = setting value), the contact is as follows.
NO contact Conduction
NC contact Non-conduction
• The timer will not start counting if the operation result remains ON. (Count input does not need to be converted into pulse
form.)
• After a count-up, the count value and state of the contact do not change until the RST instruction is executed.
• Negative values (-32768 to -1) cannot be set for the setting value. Furthermore, if the setting value is 0, the same process
as for a setting value of 1 is performed.
• For details on the counting method of the counter, refer to page 89.
Execution condition
The OUT instruction is executed for each scan irrespective of the operation result up to the instruction.
Program example
OUT
• Program that outputs to the output module.
Coding
• Program that turns X0 ON, and then 10 seconds later turns Y10 and Y14 ON. 3
Coding
SET input
Setting data
Function
SET
• When SET input is turned ON, the specified device turns ON.
• A device that was turned ON remains ON even if the SET input is turned OFF. It can be turned OFF with the RST
instruction.
SET input
RST input
• When the SET input is OFF, the device state does not change.
RST
• When the RST input is turned ON, the specified device is as follows.
Device Status
Y, M The coil and contact are turned OFF.
T, C The present value is set to 0, and the coil and contact are turned OFF.
D The content is set to 0.
• When the RST input is OFF, the device state does not change.
• The RST (D) function is identical to the following ladder.
RST input RST input
Execution condition
The SET and RST instructions are executed for each scan.
NOTE
• The number of steps is three when the following devices are used.
SET instruction ... Special relay (M)
RST instruction ... Special relay (M), all word devices
Program example
SET , RST
• Program that sets Y8 (ON) when X8 turns ON, and resets Y8 (OFF) when X9 turns ON.
Coding
X8 (SET input)
X9 (RST input)
Coding
D
PLS command
Setting data
PLF command
Function
PLS
• The specified device is turned ON when the PLS command changes from OFF to ON, and OFF at all times other than when
the PLS command is turned OFF to ON (OFF to OFF, ON to ON, ON to OFF).
If there is one PLS instruction for the device specified by D during one scan, the specified device is turned ON for one
scan.
Do not execute the PLS instruction of the same device multiple times during one scan.
1 scan 1 scan
• After the PLS instruction is executed, it will not be executed again even if STOP is executed and RUN is executed again.
PLF
• The specified device is turned ON when the PLF command changes from ON to OFF, and OFF at all times other than when
the PLS command is turned ON to OFF (OFF to OFF, OFF to ON, ON to ON).
If there is one PLF instruction for the device specified by D during one scan, the specified device is turned ON for one
scan.
Do not execute the PLF instruction of the same device multiple times during one scan.
1 scan 1 scan
• After the PLF instruction is executed, it will not be executed again even if STOP is executed and RUN is executed again.
Program example
PLS
Program that executes the PLS instruction when X9 is turned ON.
Coding
1 scan
PLF
Program that executes the PLF instruction when X9 is turned OFF.
Coding
1 scan
D
SFT commands
Setting data
Function
• The ON/OFF status is shifted to the device immediately prior to the device specified with D , and the prior device is set to
OFF.
• Use the SET instruction to turn ON the start device to be shifted.
• When SFT or SFTP are used continuously, start programming from larger device numbers.
Shift range
Shift input
1) X02 ON
2)
After first shift input
3)
After second shift input
4)
X02 ON
5)
5) After third shift input
6)
6) After fourth shift input
7)
7) After fifth shift input
Program example
SFT
• Program that shifts Y7 to YB when X8 turns ON.
Coding
X8
X7
Y7
Y8
Y9
YA
YB
D
Function
• This instruction is for creating an efficient ladder switching sequence program by opening and closing the common bus
of the ladder using the master control instruction. The following ladders use the master control.
Y7 Executed
only when
X0 is ON.
YF
Y10
MC
• When the MC ON/OFF instruction is turned ON at the start of master control, the operation results from MC to MCR are as
per the instruction (ladder).
• Even when the MC instruction is OFF, the scan time is not shortened because the scan is executed between the MC
instruction and MCR instruction.
Also, when the MC instruction is OFF, the operation results of MC and MCR are as follows.
100 ms, 10 ms timer The count value becomes 0, and both coil and contact turn OFF.
The coil turns OFF, but the count value and contact both retain the current
100 ms retentive timer, counter
state.
Device currently under OUT instruction All turn OFF.
SET, RST or SFT, or devices currently
Retain the current state.
executing basic or application instructions
• The MC instruction can use the same nesting (N) number any number of times by changing the D device.
• When the MC instruction is ON, the coil of the device specified by D is ON. Furthermore, as a double coil occurs when
the same device is used by instructions such as the OUT instruction, do not use a device specified by D when it is
executing a different instruction.
MCR
• The master control release instruction that indicates the end of the master control range.
• Do not add a contact instruction to the front of the MCR instruction.
Program example
• The master control instruction can be used as a nesting structure. Each master control area is separated by nesting (N). N0
to N14 can be used for nesting.
A ladder in which the program execution conditions are limited successively can be created by using the nesting structure.
A ladder that uses a nesting structure is as follows.
ñ H̃[ ‚ƒh
‰
Display ƒin ladder
Å
‚ Ì‚ •\ Ž
¦mode Actual operation ladder
A
Executed
when A
turns ON.
B
Executed
when A
and B
turn ON.
C
Executed
when A, B
and C
turn ON.
Executed
when A
and B
turn ON.
Executed
when A
turns ON.
No affected by
A, B and C.
Nesting numbers of MCR are Since buses cross each other, normal
opposite. master control ladder cannot be created.
• If the nesting structure consists of MCR instructions collected in one location, the single lowest nesting (N) number can be
used to terminate all master controls.
FEND
Function
• Execution of the FEND instruction will cause the CPU module to terminate the program it was executing.
• Even sequence programs following the FEND instruction can be displayed in ladder display at a peripheral device.
(Peripheral devices continue to display ladders until encountering the END instruction.)
Sequence program
FEND
END
Function
• Indicates the end of a program. Scanning terminates with this step, and returns to step 0.
Sequence program
NOTE
• An operation error occurs if there is no END instruction during the program, and the PLC function does not operate.
NOPLF
PAGE n
Function
NOP
Non-processing instructions do not have an effect on previously executed operations.
NOP are used in the following situations.
• Creating space for sequence program debugging.
• Deleting instructions without changing the number of steps. (Replaced by NOP)
• Temporarily deleting instructions.
NOPLF
This is a no operation instruction that has no impact on any operations up to that point.
The NOPLF instruction is used when printing from a peripheral device to force a page change at any desired location.
• When printing ladders
• A page break will be inserted between ladder blocks with the presence of the NOPLF instruction.
• The ladder cannot be displayed correctly if an NOPLF instruction is inserted in the midst of a ladder block.
• Do not insert an NOPLF instruction in the midst of a ladder block.
• When printing instruction lists
• The page will be changed after the printing of the NOPLF instruction.
Refer to the Operating Manual for the peripheral device in use for details of printouts from peripheral devices.
PAGE n
This is a no operation instruction that has no impact on any operations up to that point.
No processing is performed at peripheral devices with this instruction.
Program example
NOP
• Contact short-circuit (AND, ANI)
Replaced by NOP.
After change
Coding
Replaced by NOP.
After change
NOPLF
Coding
X0
0 MOV K1 D30
MOV K2 D40
8 END
• Printing an instruction list with the NOPLF instruction will result in the following:
0 LD X0
1 MOV K1 D30
3 MOV K2 D40
6 LD X1
7 OUT Y30
8 END
PAGE n
Coding
NOP
• The usage method of comparison operation instructions is the same as the contact instructions of sequence instructions,
and is as follows.
• LD, LDI: LD=
• AND, ANI: AND=
• OR, ORI: OR=
Dn K100 ON OFF ON
Dn K100 OFF ON
Dn K100 ON OFF
Dn K100 ON OFF
Dn K100 OFF ON
NOTE
• The comparison instruction assumes the specified data as a BIN value for comparison. For this reason, when performing
hexadecimal comparison, when the value whose most significant bit (b15) is 1 (8 to F), the BIN value is assumed as a
negative number for the comparison.
Example
Regarded Regarded
as -32767 as 1384
in BIN. in BIN.
Therefore, -32767 < 1384, and Y10 does not turn ON.
S1
K1 to K4
S2
Function
• 16-bit comparison operation is handled as NO contact.
• Comparison operation results are as follows.
= S1 = S2 = S1 S2
<> S1 S2 <> S1 = S2
> S1 > S2 > S1 S2
Conducted Not conducted
<= S1 S2 <= S1 > S2
< S1 < S2 < S1 S2
>= S1 S2 >= S1 < S2
Execution condition
The execution conditions for LD , AND and OR are as follows.
NOTE
• When the digit setting of a bit device is other than K4 and a start bit device value is other than a multiple of 8, the number of
steps is 7.
Program example
=
Program that compares the X0 to F data with D3 data.
Coding
<>
Program that compares the BCD value 100 with D3 data.
Coding
>
Program that compares the BIN value 100 with D3 data.
Coding
<=
Program that compares the D0 with D3 data.
Coding
S
D
S1 K1 to K4
S2
D1
Function
+
• Executes addition of the BIN data specified with D and BIN data specified with S , and stores the addition results in the
• Executes addition of the BIN data specified with S1 and BIN data specified with S2 , and stores it in the device specified
with D1 .
• Positive/negative judgment of the S , S1 , S2 and D data is performed by the most significant bit (b15).
(0: positive, 1: negative)
• The carry flag does not turn ON for the 0-bit underflow. The carry flag does not turn ON for the 15th bit overflow. (There is
no carry flag)
Function
-
• Executes subtraction of the BIN data specified with D and BIN data specified with S , and stores the subtraction results
• Executes subtraction of the BIN data specified with S1 and BIN data specified with S2 , and stores it in the device specified
with D1 .
• Positive/negative judgment of the S , S1 , S2 and D data is performed by the most significant bit (b15).
(0: Positive, 1: negative)
• The carry flag does not turn ON for the 0-bit underflow. The carry flag does not turn on for the 15th bit overflow.
(There is no carry flag)
Execution condition
Addition/subtraction instruction
Addition/subtraction
command
Program example
Program that adds the content of D3 to the content of D0 when X5 turns ON, and outputs the results to Y38 to 3F.
Coding
D0
D0
S1
S2 K1 to K4
D
Function
*
• Executes multiplication of the BIN data specified with S1 and BIN data specified with S2 , and stores the multiplication
• Positive/negative judgment of the data is performed by the most significant bit (b15) for S1 and S2 , and (b31) for D .
(0: Positive, 1: negative)
• Executes division of the BIN data specified with S1 and BIN data specified with S2 , and stores the division results in the
Quotient Remainder
• The division results are stored as the quotient and remainder using 32 bits for a word device, or stored as only the quotient
using 16 bits for a bit device.
• Positive/negative judgment of the S1 , S2 , D and D +1 data is performed by the most significant bit (b15).
(Both quotient and remainder have a sign.)
(0: positive, 1: negative)
Execution condition
The execution conditions for multiplication/division instructions are as follows.
Multiplication/division
command
Operation error
An operation error occurs in the following cases, and the error flag turns on.
Program example
*
• Program that stores the multiplication results of BIN 5678 and 1234 in D3 and 4 when X5 turns on.
Coding
/
Program that outputs the results of dividing the X8 to F data by 3.14 to Y30 to 3F when X3 turns on.
Coding
Function
INC
D D
b15 b0 b15 b0
5678 (BIN) 5679 (BIN)
• When INC/INCP operation is executed for the device designated by D , whose content is 32767, the value -32768 is
DEC
D D
b15 b0 b15 b0
5678 (BIN) 1 5677 (BIN)
• When DEC/DECP operation is executed for the device designated by , whose content is -32768, the value 32767 is stored
Program Example
The following is a down counter program.
MOV, S
K1 to K4
MOVP
D
Function
MOV
16-bit data from the device specified with S is transferred to the device specified with D .
16 bits
Before
transfer
After Transfer
transfer
Execution condition
The execution conditions for transfer instructions are as follows.
Transfer
command
MOVP
Executed only once. Executed only once.
Program example
MOV
• Program that stores 155 as a binary value in D8 when X8 turns ON.
Coding
NEGP
Function
• Invert the sign of the 16-bit device specified with D , and store the device specified with D .
16 bits
Before
execution
Sign
conversion
After
execution
Execution condition
2's complement
execution command
NEGP
Executed only once. Executed only once.
Program example
NEG
• Program that calculates D10 to D20 when XA is turned ON, and calculates the absolute value when this result is negative.
ON.
ON,
BCD S
K1 to K4
BCDP
D
Command
S D
Setting data
BCD
Function
BCD
• Converts BIN data (0 to 9999) at the device designated by S to BCD data, and stores it at the device designated by D .
BIN S
K1 to K4
BINP
D
Setting data
Command
BIN S D BCD data or start number of the
S devices where the BCD data is stored
Command
(BCD 4 digits)
BINP S D
Start number of the devices where
D BIN data will be stored (BIN 16 bits)
Function
BIN
• Converts BCD data (0 to 9999) at device designated by S to BIN data, and stores at the device designated by D .
• The usage method of comparison operation instructions is the same as the contact instructions of sequence instructions,
and is as follows.
• LD, LDI.......LDD=
• AND, ANI...ANDD=
• OR, ORI.....ORD=
Dn K100 ON OFF ON
Dn K100 OFF ON
Dn K100 ON OFF
Dn K100 ON OFF
Dn K100 OFF ON
NOTE
• The comparison instruction assumes the specified data as a BIN value for comparison. For this reason, when performing
hexadecimal comparison, when the value whose most significant bit (b31) is 1 (8 to F), the BIN value is assumed as a
negative number for the comparison.
Example
Regarded Regarded
as -2147483648 as 2147483647
in BIN. in BIN.
Therefore, -2147483648 < -2147483647, and Y10 does not turn ON.
S1
K1 to K8
S2
Function
• 32-bit comparison operation handled as NO contact.
• Comparison operation results are as follows.
D= S1 = S2 D= S1 S2
D<> S1 S2 D<> S1 = S2
D> S1 > S2 D> S1 S2
Conducted Not conducted
D<= S1 S2 D<= S1 > S2
D< S1 < S2 D< S1 S2
D>= S1 S2 D>= S1 < S2
Execution condition
The execution conditions for LD , AND and OR are as follows.
NOTE
• When the digit setting of a bit device is other than K8 and a start bit device value is other than a multiple of 8, the number of
steps is 7.
Program example
D=
Program that compares the M0 to 31 data with D3 and D4 data.
Coding
K8 0 LDD= K8M0 D3
0 D= M0 D3 ( Y0 )
11 OUT Y0
12 END
D<>
Program that compares the BCD value 18000 with D3 and D4 data.
Coding
M3 0 LD M3
H
0 D<> 00018000 D3 ( Y0 ) 1 ANDD<> H00018000 D3
12 OUT Y0
13 END
D>
Program that compares the BIN value -80000 with D3 and D4 data.
Coding
M3 0 LD M3
K-
0 D> 80000 D3 ( Y0 ) 1 LDD> K-80000 D3
12 OR M8
M8
13 ANB
14 OUT Y0
15 END
D<=
Program that compares D0 and D1 with D3 and D4 data.
Coding
M3 M8 0 LD M3
0 ( Y0 )
1 AND M8
2 ORD<= D0 D3
D<= D0 D3 13 OUT Y0
14 END
S
D
S K1 to K8
S2
S2
D1
Function
D+
• Executes addition of the BIN data specified with D and BIN data specified with S , and stores the addition results in the
D +1 D S +1 S D +1 D
• Executes addition of the BIN data specified with S1 and BIN data specified with S2 , and stores the addition results in the
S1 +1 S1 S2 +1 S2 D1 +1 D1
• Positive/negative judgment of the S , S1 , S2 and D data is performed by the most significant bit (b31).
(0: positive, 1: negative)
• The carry flag does not turn ON for the 0-bit underflow. The carry flag does not turn ON for the 31st bit overflow. (There is
no carry flag)
Function
D-
• Executes subtraction of the BIN data specified with D and BIN data specified with S , and stores the subtraction results
D +1 D S +1 S D +1 D
• Executes subtraction of the BIN data specified with S1 and BIN data specified with S2 , and stores the subtraction results
S1 +1 S1 S2 +1 S2 D1 +1 D1
Execution condition
Addition/subtraction instruction
Addition/subtraction
command
Program example
D+
Program that adds the X10 to X2B 28-bit data to the D9 and D10 data when X0 turns ON, and outputs the results to M0 to
M27.
Coding
X000 P K7 K7 0 LD X000
0 D+ X010 D9 M0
1 D+P K7X010 D9 K7M0
12 END
D-
Program that subtracts the M0 to M23 data from the D0 and D1 data when X0 turns ON, and stores the results in D10 and
D11.
Coding
X0 P K6 0 LD X0
0 D- D0 M0 D10 1 D-P D0 K6M0 D10
12 END
S1
S2 K1 to K8
D
Setting data
Start number of the multiplied/divided data or
S1 the device in which the multiplied/divided data
is stored
Start number of the multiplication/division data
S2 or the device in which the multiplication/
division data is stored
Start number of the device in which the
D
multiplication/division results are stored
Function
D*
• Executes multiplication of the BIN data specified with S1 and BIN data specified with S2 , and stores the results in the
S1 +1 S1 S2 +1 S2 D +3 D +2 D +1 D
b31 b16 b15 b0 b31 b16 b15 b0 b63 b48 b47 b32 b31 b16 b15 b0
567890 (BIN) * 123456 (BIN) 70109427840 (BIN)
D/
• Executes division of the BIN data specified with S1 and BIN data specified with S2 , and stores the results in the device
specified with D .
Quotient Remainder
S1 +1 S1 S2 +1 S2 D +1 D D +3 D +2
b31 b16 b15 b0 b31 b16 b15 b0 b31 b16 b15 b0 b31 b16 b15 b0
567890 (BIN) / 123456 (BIN) 4 (BIN) 74066 (BIN)
• The division results are stored as the quotient and remainder using 64 bits for a word device, or stored as only the quotient
using 32 bits for a bit device.
Quotient: Stored in the lower 32 bits.
Remainder: Stored in the upper 32 bits. (Only stored for word devices.)
• Positive/negative judgment of the S1 , S2 , D and D +2 data is performed by the most significant bit (b31).
(Both quotient and remainder have a sign.)
(0: positive, 1: negative)
Execution condition
The execution conditions for multiplication/division instructions are as follows.
Multiplication/division
command
Operation error
An operation error occurs in the following cases, and the error flag turns ON.
Program example
D*
Program that stores the results of multiplying D7 and D8 BIN data with D18 and D19 BIN data in D1 to D4 when X5 turns ON.
X005 P Coding
0 D* D7 D18 D1
0 LD X005
1 D*P D7 D18 D1
12 END
D/
Program that outputs the result of multiplying M0 to 7 by 3.14 to D3 when X3 turns ON.
X003 P K2 K Coding
0 * M0 314 D0 0 LD X003
1 *P K2M0 K314 D0
P K
D/ D0 100 D2 8 D/P D0 K100 D2
19 MOVP D2 D3
P
MOV D2 D3 24 END
Function
DINC
• When DINC/DINCP operation is executed for the device designated by D , whose content is 2147483647, the value
DDEC
D +1 D D +1 D
• When DDEC/DDECP operation is executed for the device designated by D , whose content is 0, the value -1 is stored at
Program example
• The following program adds 1 to the data at D0 and D1 when X0 is ON.
Coding
• The following program subtracts 1 from the data at D0 and D1 when X0 goes ON.
Coding
DMOV, S
K1 to K8
DMOVP
D
Function
DMOV
32-bit data from the device specified with S is transferred to the device specified with D .
32 bits
Before transfer S
Transfer
After transfer D
Execution condition
The execution conditions for transfer instructions are as follows.
Transfer
command
DMOVP
Executed only once. Executed only once.
Program example
DMOV
• Program that stores the input D2 to D3 data in D0 and D1.
Coding
M32 P 0 L M32
0 DMOV D2 D0
1 DMOVP D2 D0
8 END
M32 K8 Coding
0 DMOV M0 D0 0 LD M32
1 DMOVP K8M0 D0
8 END
DNEGP
Function
• Invert the sign of the 32-bit device specified with D , and store the device specified with D .
32 bit
Before b31 b0
execution D 1 1 1 1 1 1 1 0 1 0 0 1 0 0 -218460
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Sign
conversion - 1 1 1 1 1 1 1 0 1 0 0 1 0 0
After b31 b0
execution D 0 0 0 0 0 0 0 1 0 1 1 1 0 0 218460
Execution condition
2's complement
execution command
DNEGP
Executed only once. Executed only once.
3
DBCD S
K1 to K8
DBCDP
D
Setting data
Command
DBCD S D
BIN data or start number of the
Command S devices where the BIN data is stored
DBCDP S D (BIN 32 bits)
Start number of the devices where
D BCD data will be stored (BCD 8 digits)
Function
DBCD
• Converts BIN data (0 to 99999999) at the device designated by S to BCD data, and stores it at the device designated by
D.
S BIN 99999999 0 0 0 0 0 1 0 1 1 1 1 1 0 1 0 1 1 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1
106
105
104
103
102
101
100
1
1
8
4
2
8
4
2
8
4
2
8
4
2
8
4
2
8
4
2
8
4
2
8
4
2
D BCD 99999999 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1
DBIN S
K1 to K8
DBINP
D
Setting data
Command
DBIN S D BCD data or start number of the
S devices where the BCD data is stored
Command
(BCD 8 digits)
DBINP S D
Start number of the devices where
D BIN data will be stored (BIN 32 bits)
Function
DBIN
• Converts BCD data (0 to 99999999) at the device designated by S to BIN data, and stores at the device designated by
D.
S +1 S
107
106
105
104
103
102
101
100
1
1
8
4
2
8
4
2
8
4
2
8
4
2
8
4
2
8
4
2
8
4
2
8
4
2
S BCD 99999999 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1
D BIN 99999999 0 0 0 0 0 1 0 1 1 1 1 1 0 1 0 1 1 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1
NOTE
• Logical operation instructions execute the following processes in increments of bits.
Example
Classification Process Formula
A B Y
0 0 0
Set 1 when the inputs of both A and B are 1. 0 1 0
Logical AND Y=AB
Set 0 in all other cases. 1 0 0
1 1 1
0 0 0
Set 0 when the inputs of both A and B are 0. 0 1 1
Logical OR Y=A+B
Set 1 in all other cases. 1 0 1
1 1 1
0 0 0
Set 0 when the inputs of both A and B are equal. 0 1 1
Exclusive OR Y=AB+AB
Set 1 when they are different. 1 0 1
1 1 0
0 0 1
Set 1 when the inputs of both A and B are equal. 0 1 0
Exclusive NOR Y = (A + B) (A + B)
Set 0 when they are different. 1 0 0
1 1 1
S
D
WAND S1 K1 to K4
S2
D1
WANDP
Function
WAND
• Logical AND is executed for each bit of the 16-bit data of the device specified with D and 16-bit data of the device
specified with S , and the results are stored in the device specified with D .
16 bits
Before
execution
After
execution
• Logical AND is executed for each bit of the 16-bit data of the device specified with S1 and 16-bit data of the device
specified with S2 , and the results are stored in the device specified with D1 .
16 bits
Before
execution
After
execution
• Bits of the bit device higher than the specified digit are operated as 0.
Execution condition
The execution conditions for logical AND instructions are as follows.
Operation
command
WANDP
Executed only once. Executed only once.
Program example
WAND
• Program that masks the tenth digit (the second digit from the bottom) of the BCD 4 digits when XA turns ON.
(D10)=1234 1204
Coding
• Program that executes logical AND for X10 to 1B data and D33 data when XA turns ON, and outputs the results to Y0 to B.
Coding
X1B X1A X19 X18 X17 X16 X15 X14 X13 X12 X11 X10
X1B to 10
Regarded as 0(s).
D33
Turn to 0(s).
S
D
WOR S1 K1 to K4
S2
D1
Function
WOR
• Logical OR is executed for each bit of the 16-bit data of the device specified with D and 16-bit data of the device specified
with S , and the results are stored in the device specified with D .
16 bits
Before
execution
After
execution
• Logical OR is executed for each bit of the 16-bit data of the device specified with S1 and 16-bit data of the device specified
with S2 , and the results are stored in the device specified with D1 .
16 bits
Before
execution
After
execution
• Bits of the bit device higher than the specified digit are operated as 0.
Execution condition
• The execution conditions for logical OR instructions are as follows.
Operation
command
WORP
Executed only once. Executed only once.
Program example
WOR
• Program that executes logical OR for D10 and D20 data when XA turns ON, and stores the results in D10.
Coding
• Program that executes logical OR for X10 to 1B data and D33 data when XA turns ON, and outputs the results to Y0 to B.
Coding
S
D
WXOR S1 K1 to K4
S2
D1
WXORP
Function
WXOR
• Exclusive OR is executed for each bit of the 16-bit data of the device specified with D and 16-bit data of the device
specified with S , and the results are stored in the device specified with D .
16 bits
Before
execution
After
execution
• Exclusive OR is executed for each bit of the 16-bit data of the device specified with S1 and 16-bit data of the device
specified with S2 , and the results are stored in the device specified with D1 .
16 bits
Before
execution
After
execution
• Bits of the bit device higher than the specified digit are operated as 0.
Execution condition
The execution conditions for exclusive OR instructions are as follows.
Operation
command
WXORP
Executed only once. Executed only once.
Program example
WXOR
• Program that executes exclusive OR for D10 and D20 data when XA turns ON, and stores the results in D10.
• Program that executes exclusive OR for X10 to 1B data and D33 data when XA turns ON, and outputs the results to Y30 to
3B.
S
D
WXNR S1 K1 to K4
S2
D1
WXNRP
Function
WXNR
• Exclusive NOR is executed for the 16-bit data of the device specified with D and 16-bit data of the device specified with
16 bits
Before
execution
After
execution
• Exclusive NOR is executed for the 16-bit data of the device specified with S1 and 16-bit data of the device specified with
16 bits
Before
execution
After
execution
• Bits of the bit device higher than the specified digit are operated as 0.
Execution condition
The execution conditions for exclusive NOR instructions are as follows.
Operation
command
WXNRP
Executed only once. Executed only once.
Program example
WXNR
• Program that executes exclusive NOR for the 16-bit data of X30 to 3F and D99 data when X0 turns ON, and stores the
results in D7.
NOTE
• Logical operation instructions execute the following processes in increments of bits.
Example
Classification Process Formula
A B Y
0 0 0
Set 1 when the inputs of both A and B are 1. 0 1 0
Logical AND Y=AB
Set 0 in all other cases. 1 0 0
1 1 1
0 0 0
Set 0 when the inputs of both A and B are 0. 0 1 1
Logical OR Y=A+B
Set 1 in all other cases. 1 0 1
1 1 1
0 0 0
Set 0 when the inputs of both A and B are equal. 0 1 1
Exclusive OR Y=AB+AB
Set 1 when they are different. 1 0 1
1 1 0
0 0 1
Set 1 when the inputs of both A and B are equal. 0 1 0
Exclusive NOR Y = (A + B) (A + B)
Set 0 when they are different. 1 0 0
1 1 1
S
D
DAND
S1 K1 to K8
(P)
S2
D1
DANDP
Function
DAND
• Logical AND is executed for each bit of the 32-bit data of the device specified with D and 32-bit data of the device
specified with S , and the results are stored in the device specified with D .
D +1 D
b31 b16 b15 b0
D 1 1 1 1 1 1 0 0 1 1 0 0 1 1
DAND
S +1 S
b31 b16 b15 b0
S 0 1 0 1 1 0 0 1 0 1 0 0 0 1
D +1 D
b31 b16 b15 b0
D 0 1 0 1 1 0 0 0 0 1 0 0 0 1
• Logical AND is executed for each bit of the 32-bit data of the device specified with S1 and 32-bit data of the device
specified with S2 , and the results are stored in the device specified with D1 .
S1 + 1 S1
b31 b16 b15 b0
S1 1 1 1 1 1 1 0 0 1 1 0 0 1 1
DAND
S2 + 1 S2
b31 b16 b15 b0
S2 0 1 0 1 1 0 0 1 0 1 0 0 0 1
D1 + 1 D1
b31 b16 b15 b0
D1 0 1 0 1 1 0 0 0 0 1 0 0 0 1
• Bits of the bit device higher than the specified digit are operated as 0.
Execution condition
The execution conditions for logical AND instructions are as follows.
Operation
command
DANDP
Executed only once. Executed only once.
Program example
DAND
• The following program performs a logical product operation on the data at D99 and D100, and the 24-bit data between X20
and X37 when X8 is ON, and stores the results at D99 and D100.
Coding
20
20
Regarded as 0s.
S
D
DOR
S1 K1 to K8
(P)
S2
D1
Function
DOR
• Logical OR is executed for each bit of the 32-bit data of the device specified with D and 32-bit data of the device specified
with S , and the results are stored in the device specified with D .
D +1 D
b31 b16 b15 b0
D 1 1 1 1 0 0 0 0 0 0 0 0 1 1
DOR
S +1 S
b31 b16 b15 b0
S 1 0 0 1 0 0 0 1 1 1 0 0 1 1
D +1 D
b31 b16 b15 b0
D 1 1 1 1 0 0 0 1 1 1 0 0 1 1
• Logical OR is executed for each bit of the 32-bit data of the device specified with S1 and 32-bit data of the device specified
with S2 , and the results are stored in the device specified with D1 .
S1 + 1 S1
DOR
S2 + 1 S2
b31 b16 b15 b0
S2 0 0 1 0 1 1 0 0 0 0 1 1 1 1
D1 + 1 D1
b31 b16 b15 b0
D1 0 0 1 1 1 1 1 1 0 0 1 1 1 1
• Bits of the bit device higher than the specified digit are operated as 0.
Execution condition
• The execution conditions for logical OR instructions are as follows.
Operation
command
DORP
Executed only once. Executed only once.
Program example
DOR
• The following program performs a logical sum operation on the 32-bit data from X0 to X1F, and on the hexadecimal value
FF00FF00H when XB is turned ON, and stores the results at D66 and D67.
Coding
S +1 S
X1F X1C X10 XF X3 X0
X1F X0 1 0 1 0 0 0 0 0 0 0 1 0 1 0
DOR
D +1 D
b31 b16 b15 b0
FF00FF00H 1 1 1 1 0 0 0 1 1 1 0 0 0 0
D +1 D
b31 b16 b15 b0
D67,D66 1 1 1 1 0 0 0 1 1 1 1 0 1 0
• The following program performs a logical sum operation on the 32-bit data at D0 and D1, and the 24-bit data from X20 to
X37, and stores the results at D23 and D24 when M8 is ON.
Coading
S +1 S
b31 b28 b27 b24 b23 b22b21 b3 b2 b1 b0
D1, D0 1 1 1 1 0 0 0 0 1 1 0 0 1 1 1
DOR
X37X36X35 X23X22X21X20
X37 to X20 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1
Regarded as 0s.
D +1 D
b31 b16 b15 b0
D24, D23 1 1 1 1 0 0 0 0 1 1 0 1 1 1 1
S
D
DXOR
S1 K1 to K8
(P)
S2
D1
DXORP
Function
DXOR
• Exclusive OR is executed for each bit of the 32-bit data of the device specified with D and 32-bit data of the device
specified with S , and the results are stored in the device specified with D .
D +1 D
b31 b16 b15 b0
D 0 1 0 1 0 1 0 1 0 1 0 1 0 1
DXOR
S +1 S
D +1 D
• Exclusive OR is executed for each bit of the 32-bit data of the device specified with S1 and 32-bit data of the device
specified with S2 , and the results are stored in the device specified with D1 .
S1 + 1 S1
b31 b16 b15 b0
S1 1 1 1 1 0 0 0 0 0 0 1 1 1 1
DXOR
S2 + 1 S2
b31 b16 b15 b0
S2 1 1 1 1 1 0 1 0 1 0 1 1 0 0
D1 + 1 D1
b31 b16 b15 b0
D1 0 0 0 0 1 0 1 0 1 0 0 0 1 1
• Bits of the bit device higher than the specified digit are operated as 0.
Execution condition
The execution conditions for exclusive OR instructions are as follows.
Operation
command
DXORP
Executed only once. Executed only once.
Program example
DXOR
• The following program conducts an exclusive OR operation on the data at D20 and D21, and the data at D30 and D31
when X10 is turned ON, and stores the results at D40 and D41.
Coding
S1 + 1 S1
b31 b16 b15 b0
D21,D20 1 1 0 0 1 0 1 0 1 1 0 0 1 1
DXOR
S2 + 1 S2
b31 b16 b15 b0
D31,D30 0 0 0 0 1 1 0 0 0 1 0 1 0 1
D +1 D
b31 b16 b15 b0
D41,D40 1 1 0 0 0 1 1 0 1 0 0 1 1 0
S
D
DXNR
S1 K1 to K8
(P)
S2
D1
DXNRP
Function
DXNR
• Exclusive NOR is executed for the 32-bit data of the device specified with D and 32-bit data of the device specified with
D +1 D
b31 b16 b15 b0
D 1 1 0 0 0 0 0 0 0 0 0 0 1 1
DXNR
S +1 S
b31 b16 b15 b0
S 1 1 1 1 0 0 0 0 1 1 1 1 0 0
D +1 D
b31 b16 b15 b0
D 1 1 0 0 1 1 1 1 0 0 0 0 0 0
• Exclusive NOR is executed for the 32-bit data of the device specified with S1 and 32-bit data of the device specified with
S1 + 1 S1
b31 b16 b15 b0
S1 0 0 1 1 0 0 1 1 1 1 0 0 1 1
DXNR
S2 + 1 S2
b31 b16 b15 b0
S2 0 1 0 1 0 1 0 1 0 1 0 1 0 1
D1 + 1 D1
b31 b16 b15 b0
D1 1 0 0 1 1 0 0 1 0 1 1 0 0 1
• Bits of the bit device higher than the specified digit are operated as 0.
Execution condition
The execution conditions for exclusive NOR instructions are as follows.
Operation
command
DXNRP
Executed only once. Executed only once.
Program example
DXNR
• The following program performs an exclusive NOR operation on the 32-bit data at D20 and D21 and the data at D10 and
D11 when X10 is turned ON, and stores the result to D40 and D41.
Coding
S +1 S
b31 b16 b15 b0
D21,D20 0 1 0 1 1 0 1 0 1 0 0 1 0 1
DXNR
S +1 S
b31 b16 b15 b0
D11,D10 0 1 1 0 0 1 0 1 1 0 1 1 0 0
D +1 D 3
b31 b16 b15 b0
D41,D40 1 1 0 0 0 0 0 0 1 1 0 1 1 0
D
Function
• The character string data enclosed in double-quotation marks (" ") specified with S are transferred after the device
number specified in D .
• Only character string data that is enclosed in double-quotation marks (" ") can be set in S . A device can also be input, but
doing so results in an error at execution (INSTRCT. CODE ERR: 4000).
• Only word devices can be set in D . Bit devices can also be input, but doing so results in an error (INSTRCT. CODE ERR:
4000) at execution.
• A maximum of 32 characters can be set in S . (Up to 16 characters can be transmitted from S to D . The 17th character
or later are invalid.)
b15 b8 b7 b0
D 2nd character 1st character
D +1 4th character 3rd character
"Character string
D +2 6th character 5th character
(16 characters maximum)"
• If the set number of characters is less than 16, the content of D in the sections without corresponding characters remains
unchanged.
b15 b8 b7 b0
D H42 (B) H41 (A)
D +1 H44 (D) H43 (C)
"ABCD" D +2 6th character 5th character The contents of
the devices remain
D +7 16th character 15th character unchanged.
Applicable device
Others Digit Error flag
Bit device Word (16-bit) device Constant Level
U specification
X Y M T C D K H N (SM0)
n
S
D
Setting data
Command
G.PRR n S D
n Not used, but U is specified
Command Character string that is
GP.PRR n S D displayed on the display unit or
S the start number of the devices
containing the character string to
be displayed
D Not used, but Y is specified
UMSG
Applicable device
Digit Error flag
Bit device Word (16-bit) device Constant Level
specification
X Y M T C D K H N (SM0)
S
Command
Setting data
UMSG S
Character string that is
displayed on the display unit or
S the start number of the devices
containing the character string to
be displayed
Function
G.PRR, GP.PRR
n is not used, but specify U.
Register the data to be displayed on the parameter unit (FR-PU07) in the device specified with S .
D is not used, but specify Y.
UMSG
Register the data to be displayed on the parameter unit (FR-PU07) in the device specified with S .
3
• When the upper 8 bits of S +0 are values other than those in the table above, an operation error (OPERATION
ERROR: 4100) is generated.
• When the 7th bit of S +0 is executed as 1 (lower 8 bits as H81), the registered data is cleared and the monitor display
returns to normal.
• Settings can be made up to the 16th character. (Data from S +1 to S +8 are effective as characters.)
NOTE
• To display the monitor above on the parameter unit (FR-PU07), set "40, 41, 42" in Pr.774 to Pr.776 in advance. (For details
on Pr.774 to Pr.776, refer to the Instruction Manual (Detailed) of the inverter.)
• Set an error number that corresponds to the upper 8 bits of S +0. The setting range is from 16 to 20.
• When the upper 8 bits of S +0 are values other than 16 to 20, an operation error (OPERATION ERROR: 4100) is
generated.
• When the 7th bit of S +0 is executed as 1 (lower 8 bits as H82), the registered data is cleared.
• Settings can be made up to the 16th character. (Data from S +1 to S +8 are effective as characters.)
• When the upper 8 bits of S +0 are values other than those in the table above, an operation error (OPERATION
ERROR: 4100) is generated.
• When the 7th bit of S +0 is executed as 1 (lower 8 bits as H84), the registered data is cleared.
• Settings can be made up to the 3rd character. ( S +1 to S +2: Data up to the lower 8 bits are effective as characters.)
executed. Furthermore, an operation error (OPERATION ERROR: 4100) also occurs if the lower 8 bits of S +0 are set to values other than 01
to 04, or H81 to H84.
NOTE
• An error does not occur even if the stored data exceeds the range of the corresponding device, but the content of devices
outside of the range is changed. When storing data, check beforehand that the amount of devices required for storage can be
allocated.
• Do not change any of the device data while it is being displayed because the data stored in the device is used in actual
communication. Changing such data will change the transmitted data.
• If the ASCII data is other than 020 to 07A that can be displayed in the FR-PU07, it can be replaced with 020 (space).
• [ ^ ] (H5E), [ _ ] (H5F) and [ ' ] (H60) cannot be displayed by the FR-PU07.
• If the ASCII data is other than 020 to 07A that can be displayed in PU, it will be replaced with 020 (space).
196
4 Error code list
If an error occurs when PLC function is RUN or during RUN, an error indication is generated by the self-diagnostic function,
and an error code and error step are stored in the special register. The error description and corrective action are as follows:
Error code
Error name Error description possible cause Corrective action
(SD0)
All programs in the program capacity • Take measures against noise.
are executed without executing the • Perform an inverter reset and go to the RUN
END instruction. state again.
• After the END instruction was • If the same error is displayed again, a CPU
1010 END NOT EXECUTE executed, a different instruction hardware error has occurred. Please contact
code was read due to noise, etc. your sales representative and explain the
• The END instruction has changed to failure symptom.
a different instruction code for some
reason.
2200 MISSING PARA. • There are no parameter files. • Set a parameter file.
• The program file is not correct, or • Check that the program file type is ***.QPG,
2502 CAN'T EXE. PRG. the content of the file is not a and check that the file content is a program.
program.
• The content of the parameter • Read the error individual information with a
indicated by the error individual programming tool, check the parameter items
information (SD16) is incorrect. that correspond to the values (parameter
number) and correct them.
• Re-write the corrected parameters, reset the
3000 PARAMETER ERROR
power or reset the inverter.
• If the same error is displayed again, a CPU
hardware error has occurred. Please contact
your sales representative and explain the
failure symptom.
• The number of device points set in • Read the error individual information with a
the PLC parameter device setting is programming tool, check the parameter items
not within the usable range. that correspond to the values (parameter
number) and correct them.
3003 PARAMETER ERROR • If the error occurs again after correcting the
parameter, a memory error has occurred in
the program memory. Please contact your
sales representative and explain the failure
symptom.
• An undecodable instruction code is • Read the common error information with a
included in the program. programming tool, check the error step that
4000 INSTRCT. CODE ERR
• An unusable instruction is included corresponds to the value (program error
in the program. location) and correct it.
• No END (FEND) instruction in the • Read the common error information with a
program. programming tool, check the error step that
4010 MISSING END INS.
corresponds to the value (program error
location) and correct it.
• Data that cannot be used in • Read the common error information with a
instructions is included. programming tool, check the error step that
4100 OPERATION ERROR
corresponds to the value (program error
location) and correct it.
Error code
Error name Error description possible cause Corrective action
(SD0)
• The program scan time exceeded • Read the error individual information with the
the watchdog timer value set in the programming tool, check the values (time)
PLC RAS setting of the PLC function and shorten the scan time.
parameter. • Change the initial execution monitoring time
or watchdog setting values with the PLC RAS
settings of the PLC function parameter.
5001 WDT ERROR
• Delete the infinite loop from the jump
transition.
• Check the number of executions of the
interrupt program with a programming tool,
and reduce the number of interrupt
occurrences.
• The program scan time exceeded • Review the constant scan time setting.
the constant scan time set in the • Review the PLC parameter constant scan
5010 PRG. TIME OVER PLC RAS setting of the PLC function time and low-speed program execution time
parameter. in order to secure sufficient remaining time for
the constant scan.
200
APPENDIX
201
Instruction processing time
Basic instructions
Sequence instructions Comparison operation instructions
202
Instruction processing time
Processing Processing
time (μs) time (μs)
Condition Condition
Classification Instruction Classification Instruction Other
(device) Other (device) Subset
Subset than
than
subset
subset
+ SD 8.4 13.5 16-bit MOV 5.8 13.5
transfer MOVP 7.6 14.2
+P SD 11.0 14.3
- SD 8.4 13.5 32-bit DMOV 6.4 15.6
BIN transfer
-P SD 11.0 14.3 DMOVP 8.3 16.4
16-bit
addition/ + S1S2 D 8.4 13.6
subtraction
+P S1S2 D 11.0 14.5 Data conversion instructions
- S1S2 D 8.4 13.6
Processing
-P S1S2 D 11.0 14.5
time (μs)
D+ SD 9.6 15.6 Condition
Classification Instruction Other
(device) Subset
D+P SD 12.0 16.4 than
subset
D- SD 9.6 15.6
BIN NEG D 8.8 11.1
32-bit D-P SD 12.0 16.4
addition/ 2's NEGP D 9.5 11.8
D+ S1S2 D 9.6 15.7
subtraction complement DNEG D 8.8 12.6
D+P S1S2 D 12.0 16.5
DNEGP D 9.6 13.4
D- S1S2 D 9.5 15.7
BCD SD 5.8 13.7
D-P S1S2 D 12.0 16.5
BCD BCDP SD 8.3 14.5
* S1S2 D 8.7 13.9
BIN conversion DBCD SD 7.8 16.9
16-bit *P S1S2 D 11.2 14.7
multiplication / DBCDP SD 9.6 17.7
S1S2 D 8.9 14.2
/division BIN SD 5.9 13.7
/P S1S2 D 11.5 15.0
BIN BINP SD 7.6 14.6
D* S1S2 D 9.7 15.7
BIN conversion DBIN SD 6.8 16.1
32-bit D*P S1S2 D 12.2 16.5
multiplication D/ DBINP SD 8.5 16.9
S1S2 D 10.1 15.9
/division When all the devices used in the instruction satisfy one of the
D/P S1S2 D 12.6 16.7 following conditions, they are regarded as a subset.
INC D 5.8 11.1 • All the devices used are word devices.
• When the devices used are bit devices, the specified
INCP D 7.6 11.8 number of bits is the multiple of 16, or the digits are
DEC D 5.8 11.1 specified as K4 (word data) or K8 (double word data).
• The devices used are constants.
Data DECP D 7.6 11.9
increment/
decrement DINC D 6.5 12.6
NOTE
DINCP D 8.2 13.4
• During inverter control, reading 1000 steps takes a
DDEC D 6.5 12.6 scan time of about 40 ms.
DDECP D 8.2 13.4
203
Instruction processing time
Application instructions
Logical operation instructions Instructions regarding the message
display on PU
Processing
time (μs)
Condition Condition Processing
Classification Instruction Classification Instruction
(device) Other (device) time (μs)
Subset
than
Character $MOV 12.6
subset
string data
WOR SD 8.6 13.6 transfer $MOVP 13.3
WORP SD 11.2 14.4 G.PRR 8.7
WOR S1 S2 D 8.6 13.6 Character
GP.PRR 9.6
string output
WORP S1 S2 D 11.2 14.4 UMSG 5.3
Logical OR
DOR SD 9.7 15.7 When all the devices used in the instruction satisfy one of the
following conditions, they are regarded as a subset.
DORP SD 12.2 16.5
• All the devices used are word devices.
DOR S1 S2 D 9.7 15.7 • When the devices used are bit devices, the specified
number of bits is the multiple of 16, or the digits are
DORP S1 S2 D 12.2 16.5
specified as K4 (word data) or K8 (double word data).
WAND SD 8.6 13.6 • The devices used are constants.
204
MEMO
205
REVISIONS
*The manual number is given on the bottom left of the back cover.
Print date *Manual number Revision
Aug. 2013 IB(NA)-0600492ENG-A First edition
206 IB(NA)-0600492ENG-A
INVERTER
A800
FR-A800
PLC FUNCTION
PROGRAMMING MANUAL
INVRERTER
PLC FUNCTION PROGRAMMING MANUAL
PLC Function
1
CC-Link communication
2
Sequence program
3
Error code list
4