How I/O data are transferred to/from the inverter by the built-in PLC function is
explained using function blocks.
(1) I/O data read, write, etc. can be performed by accessing the inverter in the
predetermined method using special relays, special registers, etc.
(2) Operation, parameter read/write, etc. can be performed in accordance with the
created sequence programs (built in the inverter) using input data from the control
input terminals.
With the output signals, output data can be output to outside the inverter from the
control output terminals as not only the inverter's status signals but also pilot lamp
on/off, interlock and other control signals set freely by the user.
Inverter
Input signal
I/O data
Output signal
Special relays,
special registers,
etc.
Built-in sequence program
Inverter CPU
2
PLC Function Specifications
1.2PLC Function Specifications
The following table indicates the program capacity and devices of the PLC function.
A700 Sequence Section
Control methodRepeated operation (by stored program)
I/O control methodRefresh
Programming language
PLC instructions23
Basic instructions32
Application instructions18
Number of
instruction
Processing speedPLC instruction 1.9µs to 12µs/step(*2)
Number of I/O points
Number of analog I/O points
Watchdog timer10 to 2000(ms)
Memory capacity6k bytes used by sequence and parameters.
Program capacity1k step
Internal relay (M)64(M0 to M63)
Latch relay (L)None (Can be set with parameters but will not latch)
Step relay (S)None (Can be set with parameters but will operate as M)
Link relay (B)None
Timer (T)
Counter (C)
Data device (D)120(D0 to D119)
Devices
Link register (W)None
Annunciator (F)None
File register (R)None
Accumulator (A)None
Index register (Z, V)None
Pointer (P)None
Interrupt pointer (I)None
Special relay (M)256 (M9000 to 9255) with function limit
Special register (D)256 (D9000 to 9255) with function limit
*1 These signals use the same terminals as used by the input and output signals given in the
common specifications of the inverter.
One point is always necessary for a sequence start (RUN/STOP).
*2 As inverter control is also performed actually, the scan time is approximately 40ms at 500 steps.
Points16
Specifications
Points16
Specifications
Relay symbolic language (ladder mode)
Logic symbolic language (list mode)
Pr.118 PU communication speed96 (9600bps)192 (19200bps)
Pr.119 PU communication stop bit length
Pr.120 PU communication parity check1 (with odd parity check)2 (with even parity check)
Pr.122 PU communication check time
interval
0 (data length: 8 bits, stop
bit: 1 bit)
9999 (without
communication check)
REMARKS
•For futher details, refer to the Inverter instruction manual (applied).
POINT
•Support GX Developer ver.8.0 or more
•GX Developer Setting
PLC seriesACPU
PLC typeA0J2H
[Project data list]→[Parameter]→[PLC parameter]→[A parameter]
→«Memory capacity» tab→"Program capacity"→"Sequence"→"main"
1 (data length: 8 bits, stop
bit: 2 bit)
9999 (without
communication check)
1k step
REMARKS
•Refer to the Inverter instruction manual (applied) for wiring.
•Refer to the GX Developer manuals for the specifications related to GX Developer and the
personal computer that uses GX Developer.
GX Developer Version xx Operating manual
GX Developer Version xx Operating manual (startup)
•The programming tool that can be used is GX Developer only. (The A6GPP, A7PHP, etc.
cannot be used.)
4
Wiring of the Inverter and Personal Computer Using
GX Developer for RS-485 Commun ication
1.4Wiring of the Inverter and Personal Computer Using
GX Developer for RS-485 Communication
PU connector
Personal computer
GX Developer :
Programming tool
RS-232C-RS-485
converter
RS-232C connector
zPersonal computer - inverter connection cable
Make connection after conversion between RS-232C and RS-485.
Examples of commercially available products (as of Sep., '05)
TypeMaker
SC-FRPCBEIJERS
REMARKS
When fabricating the cable on the user side, refer to the inverter instruction manual (applied).
1
PLC FUNCTION
5
Prior to Sequence Program Creation
1.5Prior to Sequence Program Creation
1.5.1Precautions for sequence program creation
POINT
•Online change of the sequence program and access to other stations are not
allowed.
In addition, program read/write from other stations and all PLC memory clear
cannot be performed.
•Back up the ladder configured with the protective function of GX Developer.
If any of the instructions (refer to page 103) and devices (refer to page 3) that cannot
be used with the built-in PLC function exists in a sequence program, an instruction
code error occurs at the execution of that instruction.
Error codeD9008=10
Operation error stepD9010
D9011
REMARKS
•Refer to page 22 for the error codes.
1.5.2Usable main GX Developer functions
z Parameter or sequence program read/write
z Ladder monitor
z Device monitor
z Device test
z All device memory clear
z Remote RUN/STOP
CAUTION
Device test ([Online] - [Debug] - [Device test]) of GX Developer can be performed, but if
devices corresponding to control terminal (e.g. STF, STR) signals are tested, the
devices turn on in the sequence but the inverter does not perform the corresponding
operation.
6
Prior to Sequence Program Creation
1.5.3Sequence program execution key
The sequence program execution key (STOP/RUN) of the PLC is switched by turning
off/on the SQ signal.
POINT
•For the terminal used for SQ signal input, set "50" in any of Pr.178 to Pr. 189 to
assign the function.
•SQ-SD must be shorted to execute the built-in PLC function.
CAUTION
If the SQ signal is not turned on, the start signal of the inverter is designed to
become valid by the factory setting of
Open (STOP) the SQ signal-SD terminals when writing a sequence program, for
example.
When executing the sequence program, short (RUN) the SQ signal-SD terminals.
Remote run/stop of the built-in PLC function can be executed in any of the following
methods:
• Setting using the built-in PLC function parameter (contact)
• Using GX Developer
• Via CC-Link communication (refer to page 49)
REMARKS
•The validity limit of the SQ signal can be controlled using Pr.415 Inverter operation lock mode
setting. (Refer to page 43.)
CAUTION
The outputs (Y) are cleared by turning the SQ signal off (STOP) after sequence program
execution (SQ signal on).
The other devices retain the device data prior to STOP. When you want to clear the
remaining device data, power off or reset (short RES-SD for 0.1s, then open) the
inverter.
Pr.415 Inverter operation lock mode setting.
1
PLC FUNCTION
7
Prior to Sequence Program Creation
1.5.4Sequence program write
POINT
Sequence program write can be performed in any operation mode.
When rewriting the PLC function parameters and sequence program using GX
Developer, check the following:
1)Check that the sequence program execution key is in the STOP position (SQ signal
is off) (refer to page 7).
2)Check that the inverter is at a stop.
3)Check that the communication specification setting parameters (Pr.117 to Pr.124) are
set correctly. If any of these parameters is set incorrectly, communication with GX
Developer cannot be made.
REMARKS
Check and set the communication specification parameter (Pr. 117 to Pr. 124) using
the parameter unit (FR-PU04/FR-PU07). (Refer to the FR-PU04/FR-PU07
instruction manual for the handling of the FR-PU04/FR-PU07.) GX Developer and
the FR-PU04/FR-PU07 cannot be connected and used simultaneously.
4)Check the PLC series and sequence program capacity in the GX Developer
parameters (refer to page 4).
5) Refer to the GX Developer manual and write the sequence program.
CAUTION
•A sequence program cannot be written with its steps specified. If written,
the sequence program does not run. (The program outside the specified
range is initialized.)
•Do not read the built-in PLC function parameters and sequence program
without writing them to the inverter once using GX Developer. Since the
inverter does not have normal data, always write the built-in PLC function
parameters and sequence program once.
•Since the built-in PLC function parameters and sequence program are
written to the flash ROM, there are restrictions on the number of write times.
(Approximately 100,000 times)
8
Function Block Diagram
1.5.5Setting list of built-in PLC function parameter
The built-in PLC function parameters are designed to specify the ranges of using the
PLC function, e.g. program capacity, device assignment and various functions.
ItemGX Developer Default
Sequence program
capacity
File register capacityNoneCannot be set (default)
Comment capacityNoneCannot be set (default)
Status latchNoneCannot be set (default)
Sampling traceNoneCannot be set (default)
Microcomputer program
capacity
Latch range settingL1000 to L2047Cannot be set (invalid if set)
Link range settingNoneCannot be set (default)
I/O assignmentNoneCannot be set (default)
Internal relay, latch relay,
step relay setting
Watchdog timer setting200ms10 to 2000ms
Timer setting
Counter settingWithout interrupt counters
Remote run/pauseNone
Error-time operation mode
STOP → RUN output mode
Print title registrationNoneCannot be set
Keyword registrationNone
(100ms timers since only T0 to 7
Operation error: ContinuedStop/Continued
Special function module check
Operation status prior to
6k steps1k step
NoneCannot be set (default)
M0 to 999
L1000 to 2047
None for S
100ms: T0 to 199
10ms: T200 to 255
are available)
Fuse blow: Continued
I/O verify error: Stop
error: Stop
STOP is re-output.
L and S cannot be set.
(Operates as M if set)
<M0 to M63>
16 points for 100ms, 10ms and
retentive timers. Timers have
consecutive numbers.
<T0 to T15>
Cannot be set (default)
<C0 to C15>
Can be set using X0 to 1F.
Otherwise invalid. Pause does not
function.
Setting invalid (since there are no
fuses)
Setting invalid
(since there are no I/O modules)
Setting invalid (since there are no
special modules)
Prior to STOP/after operation
execution
Online setting cannot be made but
parameter setting is valid.
REMARKS
•The following functions are not supported.
1. Constant scan, 2. Latch (device data backup for power failure), 3. Pause,
4. Status latch, 5. Sampling trace, 6. Offline switch
•If parameter clear of the inverter is performed, the above built-in PLC function parameters are
not cleared.
•For the built-in PLC function parameter setting operation, refer to the GX Developer
Operating Manual.
Setting Range
<Usable device range>
1
PLC FUNCTION
9
Device Map
1.6Device Map
1.6.1I/O device map
Device
No.
X00 STF terminal
X01 STR terminalY01 SU terminal
X02 RH terminalY02 OL terminal
X03 RM terminalY03 IPF terminal
X04 RL terminalY04 FU terminal
X05 JOG terminalY05 ABC1 terminal
X06 RT terminalY06 ABC2 terminal
X07 AU terminalY07
X08 CS terminalY08
X09 MRS terminalY09
External I/O
X0A STOP terminalY0A
X0B RES terminalY0B
X0C
X0DY0D
The special relays are internal relays with special applications and therefore should
not be switched on-off in the program.
NumberNameDescription
M9008Self-diagnostic errorTurned on by self-diagnosed error.
M9010Operation error flag
M9011Operation error flag
M9036Normally ON
M9037Normally OFF
M9038
M9039
M9200
M9201
M9202
M9203
M9204
M9205
M9206
M9207
M9208
M9209
M9210
12
On only for 1 scan after
RUN
Off only for 1 scan after
RUN
Inverter operation status
control flag (STF)
Inverter operation status
control flag (STR)
Inverter operation status
control flag (RH)
Inverter operation status
control flag (RM)
Inverter operation status
control flag (RL)
Inverter operation status
control flag (JOG)
Inverter operation status
control flag (RT)
Inverter operation status
control flag (AU)
Inverter operation status
control flag (CS)
Inverter operation status
control flag (MRS)
Inverter operation status
control flag (STOP)
Turned on by an instruction execution error.
Turned off when error is removed.
Turned on by an instruction execution error.
Remains on after normal status is restored.
M9036 and M9037 are turned on and off independently
of STOP or RUN.
M9038 and M9039 change depending on the STOP or
RUN status. In other than the STOP status, M9038 is on
for one scan only and M9039 is off for one scan only.
Control the STF terminal of the inverter from PLC
function
Control the STR terminal of the inverter from PLC
function
Control the RH terminal of the inverter from PLC
function
Control the RM terminal of the inverter from PLC
function
Control the RL terminal of the inverter from PLC function
Control the JOG terminal of the inverter from PLC
function
Control the RT terminal of the inverter from PLC function
Control the AU terminal of the inverter from PLC
function
Control the CS terminal of the inverter from PLC
function
Control the MRS terminal of the inverter from PLC
function
Control the STOP terminal of the inverter from PLC
function
Device Map
NumberNameDescription
M9211
M9216Inverter status (RUN)Inverter running
M9217Inverter status (FWD)Forward running
M9218Inverter status (REV)Reverse running
M9219Inverter status (SU)Up to frequency
M9220Inverter status (OL)Overload alarm
M9221Inverter status (IPF)Instantaneous power failure/undervoltage
M9222Inverter status (FU)Output frequency detection
M9223Inverter status (ALM)Alarm output
M9224Inverter status (LF)Minor fault output
M9225Inverter status (DO0)Status of output terminal function set in Pr. 313 is stored *1
M9226Inverter status (DO1)Status of output terminal function set in Pr. 314 is stored *1
M9227Inverter status (DO2)Status of output terminal function set in Pr. 315 is stored *1
M9228Inverter status (DO3)Status of output terminal function set in Pr. 316 is stored *1
M9229Inverter status (DO4)Status of output terminal function set in Pr. 317 is stored *1
M9230Inverter status (DO5)Status of output terminal function set in Pr. 318 is stored *1
M9231Inverter status (DO6)Status of output terminal function set in Pr. 319 is stored *1
M9232Inverter status (RA1)Status of output terminal function set in Pr. 320 is stored *1
M9233Inverter status (RA2)Status of output terminal function set in Pr. 321 is stored *1
M9234Inverter status (RA3)Status of output terminal function set in Pr. 322 is stored *1
M9255
*1. Even if the FR-A7AY, FR-A7AR is not mounted, Pr. 313 to Pr. 322 are accessible during
Inverter operation status
control flag (RES)
Inverter operation status
control selection
PLC function operation, and status of output terminal functions are stored in each device.
(virtual output terminal)
Control the RES terminal of the inverter from PLC
function
Select the inverter status control command from M9200
to M9211 or D9148.
OFF: Special relay selection
ON : Special register selection
Device Map
13
1
PLC FUNCTION
Device Map
1.6.5Special registers
The special registers are data registers with special applications and therefore data
should not be written to the special registers in the program.
NumberNameDescriptionPage
D9008
D9010
D9011
D9014
Self-diagnostic
error
Operation error
step
Operation error
step
I/O control
method
Stores the self-diagnosed error number in BIN. (Refer to page 22 for the error codes.)
22
Stores the step number in BIN, at which an instruction
execution error occurred. After that, data is updated
—
each time operation error occurs.
Stores the step number in BIN, at which an instruction
error occurred. Since data is stored into D9011 when
M9011 turns from off to on, D9011 data is not updated
—
unless M9011 is cleared by the user program.
3 (fixed): Both input and output refreshes—
Stores the operating status of the PLC function.
B15B12B11B8B7B4B3B0
D9015
CPU operating
status
Special registers
D9016Program number
Minimum scan
D9017
time
(10ms units)
D9018
Scan time
(10ms units)
Maximum scan
D9019
time
(10ms units)
D9062 to
D9093
Remote registers
Remote run/stop
using GX Developer
RUN
0
STOP
1
Invalid
Remote run/stop using
sequence parameter setting
RUN
0
STOP
1
Shorting/
opening SQ-SD
0
RUN
STOP
1
Stores the number that indicates which sequence
program is currently in execution.
1 (fixed): Main program (RAM)
Stores the scan time at every END that is smaller than
D9017 data, i.e. stores the minimum scan time in BIN.
Stores and updates the scan time at every END in
BIN.
Stores the scan time at every END that is greater than
D9019 data, i.e. stores the maximum scan time in
BIN.
Special registers for communication with the master
station in CC-Link.
—
—
—
—
—
50
14
Device Map
NumberNameDescriptionPage
D9133
D9135
Output frequency
monitor
Output current
monitor
Output voltage
monitor
Stores the current output frequency.
0.01Hz units
Stores the current output current.
0.01A units
Stores the current output voltage.
0.1V units
20D9134
D9136Error history 1, 2
D9137Error history 3, 4
D9138Error history 5, 6
Store the errors that occurred in the inverter in order
of occurrence.
21
D9139Error history 7, 8
D9140
D9141
D9142
D9143
D9144
Special registers for control
D9145
D9146
Operation mode
setting read
Set frequency
read (RAM)
Set frequency
2
read (E
PROM)
Operation mode
setting write
Set frequency
write (RAM)
Set frequency
2
write (E
PROM)
Alarm definition
batch clear
Stores the current operation mode.23
Reads and stores the set frequency (RAM).24
Reads and stores the set frequency (EEPROM).24
Sets a new operation mode.26
Sets the running frequency (RAM).27
Sets the running frequency (EEPROM).28
Write H9696 to clear the error history.29
H9696 write: Parameter clear
H9966 write: All clear
H5A5A write:Parameter clear except communication
D9147Parameter clear
H55AA write:All clear except communication
parameters
30
parameters
During GX Developer communication, perform
clearing by H5A5A or H55AA.
Device Map
1
15
PLC FUNCTION
Device Map
NumberNameDescriptionPage
Turn on/off the corresponding bits to control the
inverter operation status.
The initial value: All "0". When M9255 is off, this
device does not function.
D9148
D9149
D9150
Inverter operation
status control
Inverter operation
status control
enable/disable
setting
Inverter
parameter
access error
B15B12B11B8B7B4 B3B0
Invalid
Enable/disable the inverter operation status control
using D9148 and M9200 to M9211 by turning on/off
the corresponding bits.
Bit image is the same as D9148.
The initial value: All "0" (invalid)
Stores the error No. when an error occurs because
the data stored in the parameter or special register is
not reflected on the inverter.
0:OFF
1:ON
STF
STR
RH
RM
RL
JOG
RT
AU
CS
MRS
STOP
RES
Stores the running status and operating status of the
inverter.
Special registers for control
D9151Inverter status
B15B8B7B4 B3B0
0:OFF
1:ON
Inverter running(RUN)
Forward running
Reverse running
Up to frequency(SU)
Overload alarm(OL)
Instantaneous power failure
/undervoltage(IPF)
Output frequency
detection(FU)
Alarm output(ALM)
Minor fault output(LF)
31
32
33
33
16
D9152
D9153
D9154
D9155
D9156
D9157
D9158
Frequency
setting
0.01Hz units—
Running speed1(0.1)r/min unit—
Motor torque
Converter output
When setting the calibration(bias/gain) parameters.
H00: Frequency(toruque)
H01: Parameter-set analog value
H02: Analog value input from terminal
The number of pulses counted in count cycle is
stored. (0 to 32767)
The cumulative value of the number of sampling
pulses is stored. (0 to 99999999)
The sampling pulses and cumulative count value are
cleared. Automatically changes to "0" after reset.
(1: count clear)
Start counting the sampling pulses and cumulative
count value. (0: count stop, 1: count start)
Set the number of parameter read or written of the
inverter.
The parameter description of the inverter (RAM value)
specified by D9241 is stored. Set the parameter
setting for parameter write.
Set the number of parameter read or written of the
inverter.
The parameter description of the inverter (EEPROM
value) specified by D9243 is stored. Set the
parameter setting for parameter write.
Analog input value of terminal 1 (0.1% increments) is
stored.
Analog input value of terminal 2 (0.1% increments) is
stored.
Analog input value of terminal 4 (0.1% increments) is
stored.
Set the PID set point or PID deviation (0.01% units)
Set the PID measurement value (0.01% units)
Stores the PID manipulated variable (0.01% units)
When Pr. 54 is set to "70", pulse train can be output
from terminal FM. High speed pulse train output can
be performed. (0.1% increments)
When Pr. 158 is set to "70", analog output can be
performed from terminal AM. (0.1% increments)
Analog output can be performed from terminal AM0
and AM1 of the FR-A7AY. (0.1% increments)
Setting 1 starts PID control.41
34, 36
40
34, 36
39D9246Terminal 2 input
41D9249
39
Device Map
1
PLC FUNCTION
19
Inverter Status Monitoring, Special Registers
for Control
1.7
Inverter Status Monitoring, Special Registers for Control
You can assign the data for grasping and changing the inverter's operation status to
D9133 - D9147 and read/write them from the user sequence. (Refer to page 14 for the
list.)
1.7.1Data that can be read at all times
The following data can always be read. They are automatically refreshed every time
the END instruction is executed.
(1) Operation monitor
The following data devices are always read-enabled (write-disabled) to allow you to
monitor the output frequency, output current and output voltage of the inverter. Note
the setting units.
Device
No.
D9133
D9135
Name
Output frequency
monitor
Output current
monitor
Output voltage
monitor
CAUTION
The frequency can be set in increments of 0.01Hz but actual operation is performed in
increments of 0.1Hz.
Setting
Unit
0.01HzDevice data 6000 → 60.00Hz
0.01ADevice data 200 → 2.00A
0.1VDevice data 1000 → 100.0V
Data Example
Data Access Enable
Condition
AlwaysD9134
20
Inverter Status Monitoring, Special Registers
r
for Control
(2) Error history (error codes and error definitions)
The inverter stores the error codes of the errors that occurred.
The error codes of up to eight errors are stored in the order as shown below and are
always read-enabled (write-disabled).
<Error code storing method details>
b15 to b8b7 to b0
D9136 Error history 2 Error history 1
D9137 Error history 4 Error history 3
D9138 Error history 6 Error history 5
D9139 Error history 8 Error history 7
Refer to the Inverter instruction manual (applied) for alarm definition details.
PLC FUNCTION
21
Inverter Status Monitoring, Special Registers
for Control
<Alarm definition read program example>
The following program reads the latest alarm definition of the inverter to D0.
Alarm definition read request
Stores only the lower 8 bits
of error history 1, 2 (D9136)
into D0.
(The latest error information
is stored into D0.)
<Regarding the error No. and details of the self-diagnostic errors>
During execution of a sequence program, any of the following error No. is stored into
D9008 due to an operation error.
At occurrence of a self-diagnostic error, the P.RUN indication (LED) flickers.
Error No.Error NameDetails
10INSTRCT CODE ERR.
11PARAMETER ERR
22WDT ERR
24END NOT EXECUTEEND instruction was not executed.
CAUTION
1. For the LD, AND, OR, logical comparison operation and OUT instructions,
device checks are always made. For the other instructions (SET, RST, MOV,
etc.), however, device checks are made when the execution condition holds.
2. Operation at error stop
The outputs (Y) are cleared.
The other devices hold the states prior to an error stop.
When you want to clear them, power off or reset (short RES-SD (0.1s), then
open) the inverter.
There is an instruction code that cannot be decoded.
Unusable device is specified.
Main program capacity setting is over 1k step.
Unusable function is set.
Scan time is longer than the time that can be monitored
by the watchdog timer.
22
Inverter Status Monitoring, Special Registers
for Control
1.7.2Data that are read by controlling (OFF to ON) the read
command
You can read the operation mode and set frequency of the inverter.
Device
No.
Name
D9140Operation mode setting readY20X20
D9142Set frequency read (EEPROM)Y22X22
Data are stored into the above data devices as soon as the read completion turns from
off to on after the read command has turned from off to on.
If the read command remains on, data is not refreshed. (Data is not updated.)
Turn the device off once, then on again to refresh data.
Data read timing chart
3) In user sequence, ON of read completion
1) Read command is turned
on in user sequence.
Y2n(n=0 to 2)
Read command
X2n(n=0 to 2)
Read completion
D914n(n=0 to 2)
Read data
is confirmed and data is read from special
register and processed.
Read
Command
Write
Completion
4) After completion of read,
read command is turned off.
Data Access
Enable Condition
AlwaysD9141Set frequency read (RAM)Y21X21
User sequence
processing
2) Inverter CPU stores inverter data
into special register and turns on
read completion.
5) Inverter CPU confirms that
read command is off and
turns off read completion.
(1) Operation mode setting read (D9140)
Data SettingOperation Mode
H0000
H0001
H0002
NET operation mode
External operation mode
PU operation mode
REMARKS
When the Pr. 79 "operation mode selection" setting is other than "0", the operation mode is as
set. However, when Pr. 79 = "3" or "4", the operation mode is "H0002" (PU operation mode).
<Operation mode setting read program example>
The following program reads the operation mode data to D0.
Operation mode read setting request
Turns on operation mode
read request pulse.
Stores operation mode data to D0
when operation mode setting read
completion signal turns on.
Turns on operation mode setting
read command. (Until operation
mode setting read completion
signal turns on)
1
PLC FUNCTION
23
Inverter Status Monitoring, Special Registers
for Control
(2) Set frequency (RAM) (D9141)
The frequency set to the RAM is read to D9141. The unit is 0.01Hz.
(For example, 6000 indicates 60.00Hz.)
When the speed is set, the speed is either 1r/min or 0.1r/min.
<Set frequency (RAM) read program example>
The following program reads the set frequency (RAM) to D0.
Set frequency read (RAM) setting request
Turns on set frequency
read (RAM) request pulse.
Stores data to D0 when set
frequency read (RAM)
completion signal turns on.
Turns on set frequency read (RAM)
command. (Until set frequency read
(RAM) completion signal turns on)
REMARKS
The read frequency is not the command value of the external signal.
(3) Set frequency (EEPROM) (D9142)
The frequency set to the EEPROM is read to D9142. The unit is 0.01Hz.
(For example, 6000 indicates 60.00Hz.)
When the speed is set, the speed is either 1r/min or 0.1r/min.
<Set frequency read (EEPROM) program example>
The following program reads the set frequency (E
The following program reads the set frequency (E2PROM) to D0.
2
PROM) to D0.
Set frequency read
(E
Stores data to D0 when set frequency
read (E
turns on.
Turns on set frequency read (E
command. (Until set frequency read
(E
2
PROM) setting request
2
PROM) completion signal
2
PROM) completion signal turns on)
2
PROM)
REMARKS
The read frequency is not the command value of the external signal.
24
Inverter Status Monitoring, Special Registers
for Control
1.7.3How to write data by controlling (OFF to ON) the write
command
You can write the operation mode and set frequency to the inverter, batch-clear the
alarm definitions, and clear all parameters.
D9146Alarm definition batch clearY26X26Always
D9147All parameter clearY27X27As set in Pr. 77
The above data are written as soon as the write completion turns on after the write
command has turned from off to on.
(Alarm definition batch clear (D9146) and all parameter clear (D9147) turn on at
completion of clear.)
To write the data again, the write command must be turned off once, then on again.
Data write timing chart
1) In user sequence, user
data is stored into write
data area (D914n).
2) In user sequence, write
command is turned on.
Write
Command
Y25X25
Write
Completion
Data Access
Enable Condition
(PU LED on) or CCLink operation mode
(PU and EXT LEDs
flicker slowly)
4) After confirmation of write
completion, write command
is turned off.
Y2n(n=3 to 7)
Write command
X2n(n=3 to 7)
Write completion
D914n(n=3 to 7)
Write data
User data
3) Turns on when inverter CPU completes data
write to inverter.
Alarm definition clear and parameter
clear turn on at completion of clear.
0 written to D9150 indicates normal completion.
Any value other than 0 indicates abnormal completion.
5) Inverter CPU confirms that
write command is off and
turns off write completion.
1
PLC FUNCTION
25
Inverter Status Monitoring, Special Registers
for Control
(1) Operation mode setting write (D9143)
Data are as follows:
Data SettingOperation Mode
H0000
H0001
H0002
NET operation mode
External operation mode
PU operation mode
The operation mode switching method is as shown below when the Pr.79Operation mode selection value is "0".
NET mode
(CC-Link)
H0001
H0000
External
operation mode
H0002
H0000
H0002
H0001
PU operation
mode
When Pr. 79 =2, switching is performed as shown below.
NET modeExternal
(CC-Link)
H0001
operation mode
H0000
REMARKS
When Pr. 79 is other than 0, the mode is fixed.
There are no restrictions on operation mode switching.
On normal completion of operation mode setting, the write completion signal
(X23) turns on, and at the same time, 0 is set to D9150.
If the value written is other than H0000 to H0002 or write is performed during
inverter operation, HFFFF is set to D9150 as soon as the write completion signal
(X23) turns on, resulting in abnormal completion.
If abnormal completion occurs, the operation mode is not changed.
<Operation mode setting write program example>
The following program changes the operation mode to the NET mode.
Operation mode write setting request
Normal write
Abnormal write
Turns on operation mode
setting write request pulse.
Check whether operation mode
setting write completion signal
turned on to judge whether write
was performed normally or not.
Stores 0 (CC-Link operation mode)
to D9143 and turns on operation
mode setting write command.
(Until completion signal turns on)
26
Inverter Status Monitoring, Special Registers
for Control
(2) Set frequency (RAM) (D9144)
The D9144 data is written to the RAM as a set frequency. The unit is 0.01Hz.
(For example, 6000 indicates 60.00Hz.)
When the speed is set, the speed is either 1r/min or 0.1r/min.
The range where the frequency can be set is 0 to 12000 (0 to 120.00Hz).
When the frequency setting is written normally, the write completion signal (X24)
turns on, and at the same time, 0 is set to D9150.
If any value outside the range is written, HFFFF is set to D9150 as soon as the
write completion signal (X24) turns on, resulting in abnormal completion. If
abnormal completion occurs, the set frequency is not changed.
POINT
• The frequency can be set in the PU operation mode and NET operation
mode. Refer to the inverter instruction manual (applied).
<Set frequency write (RAM) program example>
The following program changes the set frequency (RAM) to 30Hz.
Set frequency write (RAM) setting request
Normal write
Abnormal write
Turns on set frequency
write (RAM) command pulse.
Check whether set frequency
write (RAM) completion signal
turned on to judge whether write
was performed normally or not.
Stores 3000 (30Hz) into D9144,
and turns on set frequency write
(RAM) command.
(Until completion signal turns on)
1
PLC FUNCTION
27
Inverter Status Monitoring, Special Registers
for Control
(3) Set frequency (EEPROM) (D9145)
The D9145 data is written to the EEPROM as a set frequency. The unit is 0.01Hz.
(For example, 6000 indicates 60.00Hz.)
When the speed is set, the speed is either 1r/min or 0.1r/min.
The range where the frequency can be set is 0 to 12000 (0 to 120.00Hz).
When the frequency setting is written normally, the write completion signal (X25)
turns on, and at the same time, 0 is set to D9150.
If any value outside the range is written, HFFFF is set to D9150 as soon as the
write completion signal (X25) turns on, resulting in abnormal completion. If
abnormal completion occurs, the set frequency is not changed.
POINT
• Setting is enabled in the PU operation mode and NET operation mode.
(Refer to the Inverter instruction manual (applied).)
<Set frequency write (EEPROM) program example>
The following program changes the set frequency (EEPROM) to 10Hz.
Set frequency write (E2PROM) setting request
Normal write
Abnormal write
1000
Turns on set frequency write
2
PROM) request pulse.
(E
Check whether set frequency
2
write (E
PROM) completion signal
turned on to judge whether write
was performed normally or not.
Stores 1000 (10Hz) into D9145,
and turns on set frequency write
2
(E
PROM) command.
(Until completion signal turns on)
CAUTION
When rewriting the set frequency frequently, use device D9144 "set frequency (RAM)".
There are restrictions on the number of write times of the EEPROM. (Approximately
100,000 times)
28
Inverter Status Monitoring, Special Registers
(4) Alarm definition batch clear (D9146)
Writing H9696 to D9146 batch-clears the alarm definitions.
At completion of clear, the write completion signal (X26) turns on, and at the
same time, 0 is set to D9150. If any value outside the setting range is written or
write is performed during inverter operation, HFFFF is set to D9150 as soon as
the write completion signal (X26) turns on, resulting in abnormal completion.
If abnormal completion occurs, the alarm definitions are not cleared.
<Alarm definition batch clear program example>
The following program batch-clears the alarm history.
for Control
Alarm definition batch clear request
Normal write
Abnormal write
Turns on alarm definition
batch clear request pulse.
Check whether alarm definition
batch clear signal turned on to
judge whether write was
performed normally or not.
Stores H9696 (batch clear code)
to D9146 and turns on alarm
definition batch clea r command.
(Until completion signal turns on)
1
29
PLC FUNCTION
Inverter Status Monitoring, Special Registers
for Control
(5) Parameter clear (D9147)
Writing H9696 or H9966 to D9147 clears all parameters. Writing H5A5A or
H55AA to D9147 clears the parameters other than the communication
parameters (Refer to the Inverter instruction manual (applied)).
Device No.SettingDescriptionDetails
Terminal functions are not
cleared.
Terminal functions are
cleared.
Terminal functions are not
cleared.
Terminal functions are
cleared.
D9147
H9696
All parameter clear
H9966
H5A5AParameters other than
communication parameters
H55AA
are cleared.
At completion of clear, the write completion signal (X27) turns on, and at the
same time, 0 is set to D9150. If any value outside the setting range is written or
write is performed during inverter operation, HFFFF is set to D9150 as soon as
the write completion signal (X27) turns on, resulting in abnormal completion. If
abnormal completion occurs, the parameters are not cleared.
REMARKS
Check the terminal function parameters and communication-related parameters in the
parameter list (Refer to the Inverter instruction manual (applied)).
POINT
Setting is enabled in the PU operation mode and NET operation mode. Refer to
the inverter instruction manual (applied).
<All parameter clear program example>
The following program clears all parameters.
All parameter clear request
Related device
Device D9150: Parameter access error code (refer to page 33)
30
Normal write
Abnormal write
Turns on all parameter
clear request pulse.
Check whether all parameter
clear signal turned on to judge
whether write was performed
normally or not.
Stores H9696 (all parameter
clear code) to D9146 and turns
on alarm definition batch clear
command.
(Until completion signal turns on)
Inverter Status Monitoring, Special Registers
for Control
1.7.4Inverter operation status control
Device No.NameData Access Enable Condition
D9148Inverter operation status control
D9149
Inverter operation status control
enable/disable
(1) Inverter operation status control (D9148)
Device for inverter operation status control. The operation of the inverter can be
controlled by turning on/off (1, 0) bits b0 to b11 of D9148.
All bits are factory-set to "0".
Example: When 5 is set to D9148, bits b0 and b2 are 1 (ON), and STF and RH
therefore turn on to give a high-speed forward rotation command.
Always
Note that this function is enabled in
the external/NET operation mode.
(Not enabled in the PU
operation mode.)
B15B12B11B8B7B4 B3B0
Invalid
0:OFF
101000000000
1:ON
STF (Pr.178)
STR (Pr.179)
RH (Pr.182)
RM (Pr.181)
RL (Pr.180)
JOG (Pr.185)
RT (Pr.183)
AU (Pr.184)
CS (Pr.186)
MRS (Pr.187)
STOP (Pr.188)
RES (Pr.189)
CAUTION
As in the external input terminals, functions can be assigned to the bits of
D9148 using Pr.178 to Pr.189. However, no function can be assigned to SQ
(sequence RUN setting: 50).
1
PLC FUNCTION
31
Inverter Status Monitoring, Special Registers
r
for Control
(2) Inverter operation status control enable/disable setting (D9149)
You can enable or disable D9148 "inverter operation status control". The controls
of the corresponding bits of D9148 are enabled by turning on/off (1, 0) bits b0 to
b11 of D9149. All bits are factory-set to "0".
Example: When H1F is set to D9149, bits b0 to b11 are 1 (ON), the external terminal
inputs are therefore all disabled, and operation control using the inverter
operation status control (D9148) can be performed.
B15B12B11B8B7B4 B3B0
Invalid
0:OFF
111111111111
1:ON
STF (Pr.178)
STR (Pr.179)
RH (Pr.182)
RM (Pr.181)
RL (Pr.180)
JOG (Pr.185)
RT (Pr.183)
AU (Pr.184)
CS (Pr.186)
MRS (Pr.187)
STOP (Pr.188)
RES (Pr.189)
CAUTION
•When D9148 "inverter operation status control" is enabled using D9149,
the control performed by external terminal inputs and the control
performed by CC-Link remote inputs are disabled for the enabled bits.
(Same as when "No functions" are set to Pr.178 to Pr.189.)
•When the terminal is made valid from PLC function, control from external
terminal is made invalid.
<Operation command setting program example>
The following program example runs the inverter at high speed in forward rotation
direction.
Operation start
Turns on operation start pulse.
HFFF
Operation stop
Enables all inverter operation status
control enable/disable bits, and
disables external terminal inputs.
Self-holds operation start, and turns
on bits 0 (STF) and 2 (RH) of inverte
operation status control, D9148.
At input of stop signal, clears inverter
operation status control, D9148,
to 0 and decelerates inverter to stop.
32
Inverter Status Monitoring, Special Registers
for Control
1.7.5Inverter parameter access error (D9150)
Device No.Name
D9150Inverter parameter access errorAlways
If any value outside the setting range is written during parameter write, set frequency
write, parameter clear, etc. from the sequence program of the inverter, or if write is
performed when write is disabled, a write alarm occurs and the corresponding alarm
code is stored into D9150.
<Parameter>
The parameter No. + H8000 is stored into D9150.
Example: If an error occurs during write of Pr.0 Torque boost, H8000 (H0 + H8000) is
stored into D9150.
If an error occurs during write of Pr.10 DC injection brake operation frequency,
H800A is stored into D9150.
<Operation mode, set frequency, alarm definition batch clear, all parameter
clear>
HFFFF is stored into D9150. (Normal 0)
POINT
If write is completed normally after error occurrence, D9150 is not cleared
(D9150 data is held at error occurrence). When using D9150 to stop operation,
etc., the user must clear it.
Data Access Enable
Condition
1.7.6Inverter status (D9151)
Device No.Name
D9151Inverter statusAlways
The running status and operating status of the inverter are stored.
The corresponding bits are set according to the inverter status.
B15B8B7B4 B3B0
0:OFF
1:ON
Inverter running(RUN)
Forward running
Reverse running
Up to frequency(SU)
Overload alarm(OL)
Instantaneous power failure
/undervoltage(IPF)
Output frequency
detection(FU)
Alarm output(ALM)
Minor fault output(LF)
Data Access Enable
Condition
1
PLC FUNCTION
33
Inverter Parameter Read/Write Method
1.8Inverter Parameter Read/Write Method
1.8.1Reading the inverter parameters
Data Access Enable
Device No.NameCommand
D9241Parameter number (RAM)
D9242Parameter description (RAM)
D9234
D9243Parameter number (EEPROM)
D9244
D9235
Second parameter changing
(RAM)
Parameter description
(EEPROM)
Second parameter changing
(EEPROM
Y28X28Always
Y2AX2A
Completion
When reading the parameter, the parameter description is stored to D9242(D9244) by
storing the parameter number to D9241(D9243) and turning Y28 (Y2A) on. When
reading is completed, X28 (X2A) turns ON to notify the completion. (The device
number within parentheses is used to read the parameter setting value from
EEPROM.)
When reading the calibration parameter (Pr. 902 to Pr. 939), set the following value to
D9234 (D9235) to read each calibration parameter value.
0: Setting value (Frequency/Toruque)
1: Parameter-set analog value
2: Analog value input from terminal
When access error occurs such as "parameter does not exist", value obtained by adding the
parameter number and 8000H is stored to D9150. (Refer to page 33)
Condition
(Operation mode)
PU, NET operation mode
(as in Pr.77)
34
Inverter parameter data read timing chart
3) In user sequence, ON of read completion
is confirmed and data are read from data
registers D9242(D9243) and processed.
1) Read command is turned
on in user sequence.
Y28(Y2A)
Parameter read
command
X28(X2A)
Parameter read
completion
Inverter
parameter
D9242(D9243)
Parameter
read data
User sequence
processing
2) Inverter CPU stores inverter parameter
data into data registers D9242(D9243),
and turns on read completion.
Inverter Parameter Read/Write Method
4) After completion of read,
read command is turned off.
5) Inverter CPU confirms that read
command is off and turns off
read completion.
35
1
PLC FUNCTION
Inverter Parameter Read/Write Method
1.8.2Writing the inverter parameters
Data Access Enable
Device No.NameCommand
D9241Parameter number (RAM)
D9242Parameter description (RAM)
D9234
D9243Parameter number (EEPROM)
D9244
D9235
Second parameter changing
(RAM)
Parameter description
(EEPROM)
Second parameter changing
(EEPROM
Y29
Y2BX2B
Completion
X29Always
Parameter writing is performed when the parameter number is stored to D9241
(D9243) and parameter writing value to D9242 (D9244), and turns ON the Y29 (Y2B).
When writing is completed, X29 (X2B) turns ON to notify the completion. (The device
number within parentheses is used to write the parameter setting value to EEPROM.)
When writing the calibration parameter (Pr. 902 to Pr. 939), set the following value to
D9234 (D9235) to write each calibration parameter value.
0: Setting value (Frequency/Toruque)
1: Parameter-set analog value
2: Analog value input from terminal
As soon as the inverter parameter write completion (X29 (RAM) or X2B (EEPROM))
turns on, 0 is set to D9150 on normal completion.
If an error occurs during access to the parameters, e.g. if any value outside the setting
range is written or write is performed during inverter operation, the value of parameter
No. + H8000 is set to D9150 as soon as the write completion signal (X29 (RAM) or
X2B (EEPROM)) turns on, resulting in abnormal completion. If abnormal completion
occurs, the parameters are not written. (For example, if an error occurs in the torque
boost, H8000 is written to D9150.)
For whether inverter parameter write can be performed or not, refer to Pr.77 Parameterwrite selection .
Condition
(Operation mode)
PU, NET operation mode
(as in Pr.77)
POINT
Inverter parameter write must be performed in the PU operation mode or NET
operation mode. (Refer to the inverter instruction manual (applied).)
36
Inverter parameter data write timing chart
Inverter Parameter Read/Write Method
1) In user sequence, user data
are stored into parameter write
data area (D9242(D9244)).
Y29(Y2B)
Parameter
write command
X29(X2B)
Parameter
write completion
Inverter parameter
D9242(D9244)
Parameter write
data
User sequence
data
3) Turns on when inverter CPU completes inverter
parameter data write.
0 written to D9150 indicates normal completion.
Any value other than 0 indicates abnormal completion.
2) Write command is turned
on in user sequence.
4) After confirmation of write
completion, write command
is turned off.
5) Inverter CPU confirms
that write command is
off and turns off write
completion.
37
1
PLC FUNCTION
User Area Read/Write Method
1.9User Area Read/Write Method
Inverter parameters Pr.506 to Pr.515 can be used as user parameters.
Since this parameter area and the devices used with the PLC function, D110 to D119,
are accessible to each other, the values set in Pr.506 to Pr.515 can be used in a
sequence program. The result of operation performed in the sequence program can
also be monitored using Pr.506 to Pr.515.
Device
No.
D110 to
D119
Inverter
Parameter
No.
506 to 515
Name
User
parameters
Initial
Value
0
Setting
Range
0 to
65535
Minimum Setting
Unit
1
Data Access
Always
enabled
Inverter parameters
Pr.506 to Pr.515
PLC function devices
D110 to D119
POINT
Example of using the user parameter area
When the timing is to be changed for machine adjustment using D110 that
stores the timer setting, setting Pr. 506 without modifying the program enters
the set data into D110, enabling adjustment.
1.9.1User parameter read/write method
User parameter (Pr.506 to Pr.515) and device (D110 to D119) data can be read/written
freely. Data transfer between Pr.506 to Pr.515 and D110 to D119 is executed
automatically.
1)User parameter write processing
When values are written to Pr.506 to Pr.515 using the FR-PU04 or computer link
communication, they are written to the parameter storing RAM area and EEPROM
area, and further to D110 to D119 simultaneously.
2)User parameter read processing
When values are written to D110 to D119 from the PLC function side, they are
written to the parameter storing RAM area (Pr.506 to Pr.515) and read using the FR-
PU04/FR-PU07 or communication(RS-485 or communication option). (Since data
are not written to the EEPROM, making power-on reset returns the data to the
original values.)
3)Processing performed at inverter reset or power restoration
When the inverter is reset, the Pr.506 to Pr.515 values stored in the EEPROM are
transferred to the RAM area and D110 to D119.
FR-PU04 or RS-485
communication
38
1)
2)
1)
Pr.506 to Pr.515
(RAM)
3)
Pr.506 to Pr.515
(EEPROM)
1)
D110 to D119
2)
3)
1)
Analog I/O function
1.10 Analog I/O function
1.10.1 Analog input
Analog input value of termianl 1, 2, 4 can be read from D9245 to D9247.
Device
No.
D9245 Terminal 1 input0.1%
D9247 Terminal 4 input0.1%
Terminal Name
Actual read processing is performed at the END processing of the sequence.
REMARKS
Full-scale value of analog input is determined by the setting of Pr. 73 Analog input selection, Pr.
267 Terminal 4 input selection. Refer to the inverter instruction manual (applied).
1.10.2 Analog output
Analog output from each terminal can be performed by setting value on D9251 to
D9254.
Output from PLC function can be performed by setting "7" in output signal selection
parameters of each terminal (terminal FM: Pr. 54, terminal AM: Pr. 158, terminal AMO,
AM1: Pr. 306, Pr. 310).
Device
No.
D9251 Terminal FM0.1%
D9252 Terminal AM0.1%
D9253
D9254
Actual read processing is performed at the END processing of the sequence.
Terminal Name
Ter m in a l A M 0
(FR-A7AY)
Ter m in a l A M 1
(FR-A7AY)
Setting
Unit
Setting
Unit
0.1%
0.1%
Data Access Enable
Condition
AlwaysD9246 Terminal 2 input0.1%
Data Access Enable
Condition
Always
1
REMARKS
High speed pulse train output (Pr. 291) from terminal FM can be performed. (Refer to the
inverter instruction manual (applied).)
PLC FUNCTION
39
Paluse train input function
1.11 Paluse train input function
Pulse train (the number of sampling pulses) from terminal JOG is stored to D9236.
When the sampling pulses overflow, make adjustment with the setting of Pr. 416 andPr. 417.
The number of sampling pulses
= the number of input pulses per count cycle x Pre-scale setting value (Pr. 417) x
increments scaling factor (Pr. 416)
ParameterName
291
416
417
Pulse train input
selection
Pre-scale function
selection
Pre-scale setting
value
Initial
Value
0
00 to 5
10 to 32767
Setting
Range
0, 10,20Terminal JOG
1,11,21,100 Pulse train input
Pre-scale function selection
(increments scaling factor)
0: No function
1: ×1
2: ×0.1
3: ×0.01
4: ×0.001
5: ×0.0001
Set the pre-scale value to calcute the
number of sampling pulse when
inputting the pulse train.
Description
Device No.Name
D9236
D9237
D9238
D9239
D9240
40
Pulse train input sampling
pulse
Pulse train input cumulative
count value L0 to
Pulse train input cumulative
count value H
Reset request of pulse train
input count
Count start of the pulse train
input
Setting
Range
0 to 32767
99999999
The number of pulses counted in
count cycle is stored.
The cumulative value of the number
of sampling pulses is stored.
With PLC function, PID set point/PID deviation value, PID process value can be set by
setting Pr. 128.
Performing the PID operation using the value of D9248 and D9249 as PID set point/
PID deviation value, PID process value, manipulated variable is stored to D9250.
When performing PID control with PLC function, "1" is set on D9255 instead of X14
signal.
PID set point /
PID deviation
PID measurement
value
D9248
D9249
ParameterName
128
PID action
selection
Initial
Value
10
PID manipulated variable D9250
PID control
Setting
Range
10PID reverse actionDeviation value
11PID forward action
20PID reverse actionMeasured value
21PID forward action
50PID reverse actionDeviation value
51PID forward action
60PID reverse actionMeasured value,
61PID forward action
70PID reverse actionDeviation value
71PID forward action
80PID reverse actionMeasured value,
81PID forward action
90PID reverse actionDeviation value
91PID forward action
100PID reverse action Measured value,
101PID forward action
or
Inverter frequency setting
Description
signal input
(terminal 1)
(terminal 4)
Set point (terminal
2 or Pr. 133)
signal input
(LONW
communication)
set point input
(LONW
communication)
signal input
(PLC function)
Set point
(PLC function)
signal input
(
PLC function
Set point input
(
PLC function
ORKS
CC-Link
ORKS
CC-Link
,
1
,
PLC FUNCTION
)
)
41
PID control
Device No.Name
D9248PID set point / PID deviation-100 to 100%
D9249PID measurement value0 to 100%
D9250PID manipulated variable-100 to 100%
D9255
PID operation control
Setting
Range
Set the PID set point or PID
deviation (0.01% units)
• The PID set point/PID deviation value of D9248 automatically switches over
by Pr. 128 setting.
• If Pr. 128 is set to deviation input (70, 71, 90, 91), setting value of PID process
value (D9249) is made invalid.
• Operates in the maximum value (the minimum value) of the setting range if
the value outside the range is set.
42
Inverter Operation Lock Mode Setting
1.13 Inverter Operation Lock Mode Setting
You can disable a sequence program from being executed until the sequence program
execution key is set to RUN (SQ signal is turned on).
POINT
When you want to perform only inverter operation without using the PLC function,
set "0" (inverter start signal enable) in this parameter.
ParameterName
415
SettingDescription
Inverter operation
lock mode setting
0
1
The inverter start signal is made valid regardless of the sequence program
execution key.
The inverter start signal is made valid only when the sequence program
execution key is set to RUN (SQ signal is turned on).
When the sequence program execution key is in the STOP position (SQ
signal is off), the inverter does not start if the inverter start signal STF or STR
is turned on. (If the key is switched from RUN to STOP during inverter
operation, the inverter is decelerated to a stop.)
initial
Setting
00, 11
Setting
Range
Minimum Setting
Unit
CAUTION
•Independently of the Pr. 77 setting, this parameter value cannot be rewritten
during inverter operation.
•During automatic operation performed using D9148(or M9200 to M9211) in the
sequence program, the inverter comes to a stop when the sequence is set to a
STOP status with "1" set in Pr.415. However, when "0" is set in Pr.415, the
device data are held and the operation status does not change if the sequence
is set to a STOP status. (Inverter operation is continued.)
REMARKS
This parameter setting is also valid for the start signal from the operation panel or FRPU04/FR-PU07.
Mount the "Control & Communication Link system master/local module" on the
main base unit or extension base unit of the PLC CPU that will act as the master
station.
(2) Connect the PLC CC-Link module master station and inverters by CC-Link
dedicated cables.
Master station
AJ61
CPU
BT11
Power supply
module
Terminating
resistor
CC-Link dedicated cable
Power supply
Inverter
Up to 42 inverters
can be connected
when only inverters
are connected.
MotorMotor
Power
supply
Inverter
REMARKS
Refer to the FR-A7NC indtruction manual for the CC-Link communication wiring and CC-Link
cables.
46
System Configuration
2.1.2Function block diagram
How I/O data are transferred to/from the inverter in CC-Link will be described using
function blocks.
(1) Between the master station and inverter in the CC-Link system, link refresh is
always made at 3.5 to 18ms (512 points).
(2) I/O refresh and master station's sequence program are executed asynchronously.
(3) Data read from the inverter are read from the buffer memory of the CC-Link
system master/local module using the FROM instruction.
(4) Data to be written to the inverter are written to the buffer memory of the CC-Link
system master/local module using the TO instruction.
CC-Link module
Inverter
1) CC-Link modul e
I/O signals
2) Buffer me mory
PLC CPU
read/write
Interface with PLC
CPU
Buffer
memory
CC-Link interface
3) CC-Link
dedicated
cable
5)
4)
CC-Link interface
I/O
data
Built-in sequence program
Inverter CPU
Input signal
Output signal
1)I/O signals assigned to the CC-Link system master/local module. These signals
are used to make communication between the PLC CPU and CC-Link system
master/local module.
2)Input data from the inverter can be read, and output data from the inverter can be
written. Buffer memory read/write is performed using the FROM/TO instruction of
the sequence program. Refer to page 57 for details of the buffer memory.
3)PLC link start is commanded from the sequence program. After PLC link has
started, link refresh is always made asynchronously with the sequence program
execution.
4)I/O data are transferred between the CC-Link system master/local module and
inverter CPU via the sequence program.
5)I/O data are transferred between the inverter CPU and sequence program. (5)
indicates the operation performed when CC-Link is not used, and is irrelevant to
1) to 4).)
REMARKS
Programs cannot be read/written via CC-Link communication.
2
47
CC-Link COMMUNICATION
System Configuration
POINT
The difference between CC-Link communication (Pr. 544 = 100, 112, 114, 118)
with PLC function and normal CC-Link communication (Pr. 544 =1, 2, 12, 14, 18)
is indicated below.
PLC CPU
PLC CPU
CC-Link master module
CC-Link master module
Pr.544=0,1,12,14,18
Pr.544=100,112,114,118
Built-in CC-Link module
Inverter
I/O (RX, RY)
RWw RWr
Parameter read/write, monitor, operation commands,
etc. have been assigned in advance.
I/O (RX, RY)
RWw RWr
Inverter
Inverter CPU
Built-in
sequence
program
User
assignment
Using built-in sequence program, parameters,
monitor, etc. must be assigned.
Other data read/write, etc. can be assigned
freely as user areas.
*Operation and speed commands have
been assigned in advance.
Inverter CPU
48
2.2CC-Link Parameters
2.2.1CC-Link Extended Setting (Pr. 544)
Remote register function can be extended.
CC-Link Parameters
Parameter
Number
544
*1The program used for conventional series inverter (FR-A5NC) can be used.
*2When using double, quadruple and octuple settings of the CC-Link Ver.2, station data of
the master station must be set to double, quadruple and octuple also.
(If the master station is CC-Link Ver.1 compatible station, the above setting can not be
made.)
Name
CC-Link extended
setting
Initial
Value
0
Setting
Range
12
14 *2
18
1001
112
114
118
CC-Link
Description
Ver.
0
1Occupies one station
*2
*2Occupies one station octuple
*2
*2
*2
Occupies one station
(FR-A5NC compatible)
1
Occupies one station double
Occupies one station
2
quadrople
Occupies one station
(PLC function)
Occupies one station double
(PLC function)
Occupies one station
2
quadrople (PLC function)
Occupies one station octuple
(PLC function)
*1
REMARKS
The setting change is reflected after an inverter reset.
49
2
CC-Link COMMUNICATION
CC-Link I/O Specifications
2.3CC-Link I/O Specifications
2.3.1I/O signal when CC-Link Ver.1 one station is occupied
(Pr. 544 = 100)
The device points usable in CC-Link communication are 32 input (RX) points (16
points are available for PLC function), 32 output (RY) points (16 points are available
for PLC function), 4 remote register (RWr) points and 4 remote register (RWw) points.
General-purpose remote input
available in PLC function
to
Reserved
Not used
(initial data process
completion flag)
Not used
(initial data process request
flag)
Error reset request flag
Remote
PLC
device
X30
X32
X33
input
device
No.
No.
RXn0 Forward running
RXn2
RXn3
X34RXn4
X35
X36
RXn5
RXn6
X37RXn7
X38
RXn8 (terminal ABC2 function) *2
X3ARXnA
RXnB
X3B
RXnC
X3C
RXnD
X3D
RXnE
X3E
RXnF
X3F
RX(n+1)0
to
RX(n+1)7
RX(n+1)8
RX(n+1)9
RX(n+1)A
Signal
Running
(terminal RUN function) *2
Up to frequency
(terminal SU function) *2
Overload alarm
(terminal OL function) *2
Instantaneous power failure
(terminal IPF function) *2
Frequency detection
(terminal FU function) *2
Error
(terminal ABC1 function) *2
Pr. 313 assignment function
(DO0)
Pr. 314 assignment function
(DO1)
Pr. 315 assignment function
(DO2)
General-purpose remote input
available in PLC function
Reserved
Not used
(initial data process request
flag)
Not used
(initial data process
completion flag)
Error status flag
50
CC-Link I/O Specifications
PLC
function
device
No.
Remote
output
device
No.
RY(n+1)B
to
RY(n+1)F
Signal
function
Reserved
PLC
device
No.
Remote
input
device
No.
RX(n+1)B
RX(n+1)C
to
RX(n+1)F
Signal
Remote station Ready
Reserved
("n" indicates a value determined according to the station number setting.)
*1Signal names are initial values. Using Pr. 180 to Pr. 186, Pr. 188, and Pr .189, you can
change input signal functions.
Signals of the RYn0, RYn1, and RYn9 can not be changed. Even when changed using Pr.
178, Pr. 179, and Pr. 187, the settings are invalid.
Refer to the inverter manual (applied) for details of Pr. 178 to Pr.189.
*2Signal names are initial values. Using Pr. 190 to Pr .196, you can change output signal
functions.
Refer to the inverter manual (applied) for details of Pr. 190 to Pr.196.
Registers designed to
read data received
from the master
station
("n" indicates a value determined according to the station number setting.)
PLC functi on
device No.
AddressDescription
D9078RWrnRegisters designed to
write data to be sent
to the master station.
(3) Data I/O image
FR-A700 series
Devices in built-in sequence
X30 to 3F
Y30 to 3F
D9062
D9063
D9064
D9065
D9078
D9079
D9080
D9081
Master station
Devices in CC-Link (station No. 1)
RY00 to 0F
RX00 to 0F
RWw0
RWw1
RWw2
RWw3
RWr0
RWr1
RWr2
RWr3
Automatically refreshed at every END.
REMARKS
Use the remote registers freely since they are all user areas.
2
CC-Link COMMUNICATION
51
CC-Link I/O Specifications
2.3.2I/O signal when CC-Link Ver.2 double setting is selected
(Pr. 544 = 112)
The device points usable in CC-Link communication are 32 input (RX) points (12
points are available for PLC function), 32 output (RY) points (12 points are available
for PLC function), 4 remote register (RWr) points and 4 remote register (RWw) points.
Instantaneous power failure
(terminal IPF function) *2
Frequency detection
(terminal FU function) *2
Error
(terminal ABC1 function) *2
Pr. 313 assignment function
(DO0)
Pr. 314 assignment function
(DO1)
Pr. 315 assignment function
(DO2)
Frequency setting completion
(RAM)
Frequency setting completion
(RAM, EEPROM)
Instruction code execution
completion
Reserved
Not used
(initial data process request
flag)
Not used
(initial data process
completion flag)
Error status flag
Remote station Ready
Reserved
CC-Link I/O Specifications
("n" indicates a value determined according to the station number setting.)
*1Signal names are initial values. Using Pr. 180 to Pr. 186, Pr. 188, and Pr .189, you can
change input signal functions.
Signals of the RYn0, RYn1, and RYn9 can not be changed. Even when changed using Pr.
178, Pr. 179, and Pr. 187, the settings are invalid.
Refer to the inverter manual (applied) for details of Pr. 178 to Pr.189.
*2Signal names are initial values. Using Pr. 190 to Pr .196, you can change output signal
functions.
Refer to the inverter manual (applied) for details of Pr. 190 to Pr.196.
("n" indicates a value determined according to the station number setting.)
Description
Upper 8
Bits
Monitor
code 2
Lower 8
Bits
Monitor
code 1
Set frequency (0.01Hz
increments)
Link
parameter
expansion
setting
Instruction
code
Registers designed to
read data received
from the master
station
PLC function
device No.
RWrnFirst monitor value
RWrn+1
AddressDescription
Second monitor
value
RWrn+2
Reply
code2
Reply
code1
D9078RWrn+4 Registers designed
to write data to be
sent to the master
station.
53
2
CC-Link COMMUNICATION
CC-Link I/O Specifications
2.3.3I/O signal when CC-Link Ver.2 quadruple setting is selected
(Pr. 544 = 114)
The device points usable in CC-Link communication are 32 input (RX) points (12
points are available for PLC function), 32 output (RY) points (12 points are available
for PLC function), 8 remote register (RWr) points and 8 remote register (RWw) points.
Registers designed to
read data received
from the master
station
Lower 8
Bits
Monitor
code 1
increments)
Instruction
code
PLC function
device No.
RWrn+2
D9078RWrn+8
AddressDescription
RWrnFirst monitor value
RWrn+1
RWrn+3Read data
RWrn+4
RWrn+5
RWrn+6
RWrn+7
Second monitor
value
Reply
code2
Third monitor value
Fourth monitor value
Fifth monitor value
Sixth monitor value
Registers designed
to write data to be
sent to the master
station.
Reply
code1
54
CC-Link I/O Specifications
2.3.4I/O signal when CC-Link Ver.2 octuple setting is selected
(Pr. 544 = 118)
The device points usable in CC-Link communication are 32 input (RX) points (12
points are available for PLC function), 32 output (RY) points (12 points are available
for PLC function), 16 remote register (RWr) points and 16 remote register (RWw)
points.
(1) Remote I/O
Same as when Pr. 544 = 112 (Refer to page 52)
(2) Remote resister
PLC funct ion
device No.
RWwn+2
RWwn+8
RWwn+C
Address
RWwn
RWwn+1
RWwn+3Write data
RWwn+4
RWwn+5
RWwn+6
RWwn+7
RWwn+9
RWwn+A
RWwn+B
RWwn+D
RWwn+F
*1When Pr. 128 = "50, 51, 60, 61", they are valid.
Correspondences between Master Station Buffer Memory Addresses and Station
Numbers
Station
No.
Buffer
Memory
Address
Station
No.
Buffer
Memory
Address
Station
No.
11E0H to 1E3H17220H to 223H33260H to 263H492A0H to 2A3H
21E4H to 1E7H18224H to 227H34264H to 267H502A4H to 2A7H
31E8H to 1EBH19228H to 22BH35268H to 26BH512A8H to 2ABH
41ECH to 1EFH2022CH to 22FH3626CH to 26FH522ACH to 2AFH
51F0H to 1F3H21230H to 233H37270H to 273H532B0H to 2B3H
61F4H to 1F7H22234H to 237H38274H to 277H542B4H to 2B7H
71F8H to 1FBH23238H to 23BH39278H to 27BH552B8H to 2BBH
81FCH to 1FFH2423CH to 23FH4027CH to 27FH562BCH to 2BFH
9200H to 203H25240H to 243H41280H to 283H572C0H to 2C3H
10204H to 207H26244H to 247H42284H to 287H582C4H to 2C7H
112 08H to 20BH27248H to 24BH43288H to 28BH592C8H to 2CBH
1220CH to 20FH2824CH to 24FH4428CH to 28FH602CCH to 2CFH
13210H to 213H29250H to 253H45290H to 293H612D0H to 2D3H
14214H to 217H30254H to 257H46294H to 297H622D4H to 2D7H
15218H to 21BH31258H to 25BH47298H to 29BH632D8H to 2DBH
1621CH to 21FH3225CH to 25FH4829CH to 29FH642DCH to 2DFH
Buffer
Memory
Address
Station
No.
Buffer
Memory
Address
2
CC-Link COMMUNICATION
59
Buffer Memory
2.4.4Remote registers Pr.544=100
(Inverter(FR-A7NC) to master module)
• Data sent from the remote registers (RWR) of the remote device station are stored.
Correspondences between Master Station Buffer Memory Addresses and Station
Numbers
Station
No.
Buffer
Memory
Address
Station
No.
12E0H to 2E3H17320H to 323H33360H to 363H493A0H to 3A3H
22E4H to 2E7H18324H to 327H34364H to 367H503A4H to 3A7H
32E8H to 2EBH19328H to 32BH35368H to 36BH513A8H to 3ABH
42ECH to 2EFH2032CH to 32FH3636CH to 36FH523ACH to 3AFH
52F0H to 2F3H21330H to 333H37370H to 373H533B0H to 3B3H
62F4H to 2F7H22334H to 337H38374H to 377H543B4H to 3B7H
72F8H to 2FBH23338H to 33BH39378H to 37BH553B8H to 3BBH
82FCH to 2FFH2433CH to 33FH4037CH to 37FH563BCH to 3BFH
9300H to 303H25340H to 343H41380H to 383H573C0H to 3C3H
10304H to 307H26344H to 347H42384H to 387H583C4H to 3C7H
113 08H to 30BH27348H to 34BH43388H to 38BH593C8H to 3CBH
1230CH to 30FH2834CH to 34FH4438CH to 38FH603CCH to 3CFH
13310H to 313H29350H to 353H45390H to 393H613D0H to 3D3H
14314H to 317H30354H to 357H46394H to 397H623D4H to 3D7H
15318H to 31BH31358H to 35BH47398H to 39BH633D8H to 3DBH
1631CH to 31FH3235CH to 35FH4839CH to 39FH643DCH to 3DFH
This section outlines processings performed from when the inverter is powered on
until a sequence program is executed.
The built-in PLC function processings are roughly classified into the following three
types.
(1) Initial processing
Pre-processing for executing sequence operation. This processing is executed
only once when power is switched on or a reset is performed.
(a) The inputs/outputs are reset and initialized.
(b) The data memories are initialized (the bit devices are turned off and the word
devices are cleared to 0).
(c) Self-diagnostic checks are made on the built-in PLC function parameter
setting, operation circuit, etc.
REMARKS
The built-in PLC function parameters can be confirmed from GX Developer. (Refer
to the GX Developer Operating Manual.)
(2) Sequence program operation processing
The sequence program written to the built-in PLC function is executed from step 0
to an END instruction.
(3) END processing
Post-processing for terminating one sequence program operation processing and
return the sequence program execution to step 0.
(a) Self-diagnostic checks are performed.
(b) The present values of the timers are updated and their contacts are turned
on/off, and the present values of the counters are updated and their contacts
are turned on.
62
Power on
Initial processing
I/O initialization
Data memory initialization
Self-diagnostic checks
I/O refresh processing
Sequence program operation processing
Step 0
to
Until execution of END instruction
Overview
END processing
Self-diagnostic checks
Updating of timer and counter present values
and on/off of their contacts
Fig 3.1 Operation Processings of Built-in PLC function
SEQUENCE PROGRAMMING
3
63
RUN and STOP Operation Processings
3.2RUN and STOP Operation Processings
The built-in PLC function has two different operation statuses: RUN status and STOP
status.
This section explains the operation processings of the built-in PLC function in each
operating status.
(1) Operation processing in RUN status
A RUN status indicates that a sequence program repeats its operation in order of
step 0 to END (FEND) instruction to step 0 when SQ-SD are shorted. (P.RUN is on)
When entering the RUN status, the function outputs the output status saved at STOP
according to the "STOP to (RUN-time output mode setting" (refer to page 96).
(2) Operation processing in STOP status
A STOP status indicates that a sequence program stops its operation when SQSD are opened or remote STOP is commanded. (P.RUN is off)
When entering the STOP status, the function saves the output status and turns off
all outputs. The contents of the data memories other than the outputs (Y) are
maintained.
POINT
In either the RUN or STOP status, the built-in PLC function is performing I/O refresh
processings. In the STOP status, therefore, I/O monitoring and test operation can be
performed from the peripheral device.
3.3Program Makeup
(1) Program classification
The program that can be used by the built-in PLC function is a main sequence
program only. Microcomputer, interrupt and SFC programs cannot be used.
(2) Program capacity
A program capacity indicates the capacity of the program storage memory, and it
is 1k steps. Set the program capacity in the built-in PLC function parameter.
64
Programming Languages
3.4Programming Languages
The built-in PLC function has two different programming methods: one that uses
ladders and the other that uses dedicated instructions.
• Programming that uses ladders is performed in the relay symbolic language. *1
• Programming that uses dedicated instructions is performed in the logic symbolic
language. *2
Whether the relay symbolic language or logic symbolic language is used, the same
program is created.
REMARKS
*1. When using GX Developer for programming, perform programming in the "ladder mode".
*2. When using GX Developer for programming, perform programming in the "list mode".
3.4.1Relay symbolic language (Ladder mode)
The relay symbolic language is based on the concept of a relay control circuit.
You can perform programming in the representation close to the sequence circuit of
relay control.
(1) Ladder block
A ladder block is the minimum unit for performing sequence program operation. It
starts with the left hand side vertical bus and ends with the right hand side vertical
bus.
Left hand side vertical bus
Step number
* X0 to X5: Indicate inputs.
Y10 to Y14: Indicate outputs.
Fig 3.2 Ladder Blocks
Right hand
side vertical
bus
Ladder
blocks
SEQUENCE PROGRAMMING
3
65
Programming Languages
s
*
(2) Sequence program operation method
Sequence program operation repeats execution from a ladder block at step 0 to
an END instruction.
In a single ladder block, operation is performed from the left hand side vertical
bus to the right, and from the top to the bottom.
Beginning of one
ladder block
Operation
from top
to bottom
Operation from left to right
1)
3)4)
6)
2)
5)
7)8)9)
Beginning of
Execution
returns to
tep 0 when
END
instruction is
executed.
one ladder block
Operation
from top
to bottom
11)13)14)
12)
END
1) to 17) indicate the sequence of program operation.
Fig 3.3 Operation Processing Sequence
Operation from left to right
10)
15)
16)
17)
End of one
ladder block
End of one
ladder block
66
Programming Languages
3.4.2Logic symbolic language (List mode)
The logic symbolic language uses dedicated instructions for programming contacts,
coils, etc. instead of their symbols used by the relay symbolic language.
(1) Program operation method
Sequence program operation is executed from an instruction at step 0 to an END
instruction in due order. When the END instruction is executed, operation is
executed from the instruction at step 0 again.
Logic symbolic languageRelay symbolic language
Step number
n
e
o
c
i
t
n
a
e
r
u
e
q
p
e
O
s
Execution returns to step 0
when END instruction is executed.
Fig 3.4 Operation Processing Sequence
1)
2)
3)
4)
5)
6)
7)
8)
9)
10)
11)
1)2)7)8)9)
3)4)
6)
5)
10)
11)
67
SEQUENCE PROGRAMMING
3
Operation Processing Method of PLC Function
3.5Operation Processing Method of PLC Function
The operation processing method is the repeated operation of a stored program.
(1) Stored program system
1) In a stored program system, a sequence program to be operated is stored in
the internal memory beforehand.
2) When sequence program operation is executed, the sequence program stored
in the built-in PLC function is read to the CPU instruction by instruction to
execute the operation, and the corresponding devices are controlled according
to the results.
(2) Repeated operation system
In a repeated operation system, a sequence of operations is repeated.
The built-in PLC function repeats the following processings.
1) The built-in PLC function executes the sequence program stored in the
internal memory from step 0 in due order.
2) When the END instruction is executed, internal processings, such as timer/
counter present value updating and self-diagnostic checks, are performed, and
the execution returns to step 0 of the sequence program again.
Step 0
Step 1
Step 2
Built-in sequence function repeats
this operation.
END
Timer/counter present
value updating
Self-diagnostic
checks, etc.
Fig 3.5 Operation Processing Method of Built-in PLC Function
REMARKS
A processing from step 0 to next step 0 or from END to next END is called one scan.
Therefore, one scan is the sum of the processing time of a user-created program (step 0 to
END) and the internal processing time of the built-in PLC function.
68
I/O Processing Method
3.6I/O Processing Method
The control system is a refresh system.
3.6.1What is refresh system?
In the refresh system, control input terminal changes are batch-imported into the input
data memory of the CPU before execution of each scan, and the data of this input data
memory are used as the input data for operation execution.
Each program operation result of the output (Y) is output to the output data memory,
and after the END instruction is executed, the contents of the output data memory are
batch-output from the control output terminal.
PLC
CPU
(Central Processing Unit)
At input refresh
1)
Control input
terminal
X0
3)
Input (X) data
memory
Y22
Y20
4)
5)
Output (Y)
data memory
At output refresh
2)
Control output
terminal
• Input refresh
Before execution of step 0, input data are batch-read from the input module (1))
and stored into the input (X) data memory.
• Output refresh
Before execution of step 0, the data of the output (Y) data memory (2)) are batchoutput to the output module.
• When input contact instruction is executed
Input data are read from the input (X) data memory (3)) and the sequence
program is executed.
• When output contact instruction is executed
Output data are read from the output (Y) data memory (4)) and the sequence
program is executed.
• When output OUT instruction is executed
The operation result (5) of the sequence program is stored into the output (Y) data
memory.
Fig 3.6 I/O Data Flows in Refresh System
SEQUENCE PROGRAMMING
3
69
I/O Processing Method
(
)
3.6.2Response delay in refresh system
This section describes a delay of an output change in response to an input change.
An output change in response to an input change has a delay of up to two scans as
shown in Fig. 2.6.
Ladder example
In this ladder, output Y1E turns on when input
X5 turns on.
When Y1E turns on earliest
Input refreshInput refreshOutput refresh
0
X5
Y1E
OFF
OFF
OFF
OFF
Control input
terminal
Control output
terminal
The Y1E output turns on earliest when the control input terminal turns from OFF to
ON immediately before a refresh. X5 turns on at an input refresh, Y1E turns on at
step 0, and the control output terminal turns on at an output refresh after execution of
the END instruction.
In this case, therefore, a delay of a control output terminal change in response to a
control input terminal change is one scan.
0560
ENDEND
ON
ON
ON
Delay
Minimum 1 scan
ON
When Y1E turns on latest
Input refreshInput refreshOutput refresh
Control input
terminal
X5
Y1E
Control output
terminal
0
ON
OFF
OFF
OFF
OFF
0560
END
ON
ON
Delay
(Maximum 2 scans)
END
ON
The Y1E output turns on latest when the control input terminal turns from OFF to ON
immediately after a refresh. X5 turns on at the next input refresh, Y1E turns on at
step 0, and the control output terminal turns on at an output refresh after execution of
the END instruction.
In this case, therefore, a delay of a control output terminal change in response to a
control input terminal change is two scans.
Fig 3.7 Output Y Change in Response to Input X Change
70
3.7Scan Time
(1) Scan time
A scan time is a time from when sequence program operation is executed from
step 0 until step 0 is executed again.
The scan time of each scan is not equal, and changes depending on whether the
used instructions are executed or not.
(a)The scan time from the END instruction to the next END instruction is timed in
the PLC, and stored into the special registers D9017 to D9019 in units of
10ms.
1) Data stored into special registers D9017 to D9019
• D9017 ........... Minimum value of scan time
• D9018 ........... Present value of scan time
• D9019 ........... Maximum value of scan time
Scan Time
2) Scan time accuracy
The accuracy of the scan time observed in the PLC is 10ms.
For example, when the D9018 data is 5, the actual scan time is 40ms to
60ms.
SEQUENCE PROGRAMMING
3
71
Numerical Values Usable in Sequence Program
3.8Numerical Values Usable in Sequence Program
The built-in PLC function represents numerical values, alphabets and other data in two
statuses: 0 (OFF) and 1 (ON).
The data represented by these 0s and 1s are called BIN (binary code).
The built-in PLC function can also use HEX (hexadecimal code) that represents BIN
data in blocks of four bits.
Table 2.1 indicates the numerical representations of BIN, HEX and decimal code.
Table 3.1 Numerical Representations of BIN,
HEX and Decimal Code
DEC
(Decimal Code)
0
1
2
3
•
•
•
•
•
•
9
10
11
12
13
14
15
16
17
•
•
•
•
•
•
47
HEX
(Hexadecimal Code)
0
1
2
3
•
•
•
•
•
•
9
A
B
C
D
E
F
10
11
•
•
•
•
•
•
2F
BIN
(Binary Code)
0
1
10
11
•
•
•
•
•
•
1001
1010
1011
110 0
110 1
1110
1111
10000
10001
•
•
•
•
•
•
101111
72
Numerical Values Usable in Sequence Program
3.8.1BIN (Binary Code)
(1) Binary code
BIN is a numerical value represented by 0s (OFF) and 1s (ON).
In the decimal code, a number is incremented from 0 to 9, and at this point, a
carry occurs and the number is incremented to 10.
In BIN, 0, 1 are followed by a carry, and the number is incremented to 10 (2 in
decimal).
Table 2.2 indicates the numerical representations of BIN and decimal code.
Fig 3.9 Numerical Representation of Each Register of Built-in PLC Function
2) Numerical data usable with the built-in PLC function
In the numerical representation shown in Fig. 2.8, values can be represented in
3
73
Numerical Values Usable in Sequence Program
the range -32768 to 32767.
Therefore, each register of the built-in PLC function can store any value
between -32768 and 32767.
3.8.2HEX (HEX Decimal)
(1) HEX
HEX represents four bits of BIN data as one digit.
Using four bits in BIN, you can represent 16 values from 0 to 15.
Since HEX represents any of 0 to 15 in a single digit, 9 is followed by alphabets A
(instead of 10), B (11)..., and F (15) is followed by a carry.
Refer to page 72 for the correspondences between BIN, HEX and decimal code.
(2) Numerical representation of HEX
Each register (e.g. data register) of the built-in PLC function consist of 16 bits.
Therefore, the value that can be stored into each register is represented as any of
0 to HFFFF in HEX.
74
Description of devices
3.9Description of devices
3.9.1Device List
The following table indicates the device names usable with the built-in PLC function
and their ranges of use.
Table 3.3 Device List
Input (X)64 (X0 to X3F) <12 points installed>
Output (Y)64 (Y0 to Y3F) <7 points installed>
Internal relay (M)64 (M0 to M63)
Latch relay (L)
Step relay (S)
Link relay (B)None
Points16(T0 to T15)
Timer (T)
Counter (C)
Data device (D)120(D0 to D119)
Link register (W)None
Annunciator (F)None
File register (R)None
Accumulator (A)None
Index register (Z, V)None
Pointer (P)None
Interrupt pointer (I)None
Special relay (M)256 (M9000 to 9255) with function limit
Special register (D)256 (D9000 to 9255) with function limit
Specifications
Points16(C0 to T15)
Specifications
None (Can be set with built-in PLC function parameters
but will not latch)
None (Can be set with built-in PLC function parameters
but will operate as M)
100ms timer: Set time 0.1 to 3276.7s
10ms timer: Set time 0.01 to 327.67s
100ms retentive timer: Set time 0.1 to 3276.7s
Normal counter: Setting range 1 to 32767
Interrupt program counter: None
75
SEQUENCE PROGRAMMING
3
Description of devices
3.9.2Inputs, Outputs X, Y
Inputs and outputs are devices designed to transfer data between the inverter and
external devices.
Inputs provide ON/OFF data given to the corresponding control input terminals from
outside the inverter. In a program, they are used as contacts (normally open, normally
closed contacts) and the source data of basic instructions. Outputs are used when the
operation results of a program are output from the control output terminals to outside
the inverter.
Pushbutton switch
Select switch
Digital switch
1
Inverter
Inputs (X)
Sequence
operation
Outputs (Y)
Fig 3.10 Inputs (X), Outputs (Y)
Signal lamp
Contactor
76
Description of devices
(1) Inputs X
(a) Inputs are designed to give commands and data from external devices, such
as pushbuttons, select switches, limit switches and digital switches, to the
inverter (built-in PLC function).
(b) On the assumption that the PLC function contains a virtual relay Xn for one
input point, the normally open (N/O) or normally closed (N/C) contact of that
Xn is used in the program.
Virtual relay
PB1
X0
LS2
X1
X0
X1
Sequence
function
Input circuit (external devices)
Program
Fig 3.11 Concept of Inputs (X)
(c) There are no restrictions on the number of N/O and N/C contacts of Xn used
in the program.
No restrictions
on the number
of used contacts.
Fig 3.12 Use of Contacts in Input (X) Program
When no external devices are connected to the control input terminals, "X" can be
used as the internal relay "M".
SEQUENCE PROGRAMMING
3
77
Description of devices
)
(2) Outputs Y
(a) Outputs are designed to output the control results of a program to outside the
inverter (signal lamps, digital indicators, magnetic switches (contactors),
solenoids, etc.).
(b) An output can be exported to outside the inverter as equivalent to one N/O
contact.
(c) There are no restrictions on the number of N/O and N/C contacts of output
Yn used in the program, if they are used within the program capacity range.
Sequence
function
No restrictions on the number of used contacts.
Program
Load
M11
Output circuit (external devices
Fig 3.13 Concept of Outputs (Y)
When no external devices are connected to the control output terminals, "Y" can
be used as the internal relay "M".
78
Description of devices
3.9.3Internal Relays M
Internal relays are auxiliary relays that are used in the PLC function and cannot latch
data (backup for power failure).
All internal relays are turned off when:
• Power is switched from off to on; or
• Reset is performed.
There are no restrictions on the number of contacts (N/O and N/C contacts) used in
the program.
Use outputs (Y) when outputting the operation results of the sequence program to
outside the inverter.
No restrictions on the number of
used contacts.
Fig 3.14 Internal Relay
When X0 turns from OFF to ON, M0
(internal relay) is set (turned on).
M0 may only be turned on in
sequence function and cannot be
output to outside.
ON/OFF data of M0 is output to
outside.
SEQUENCE PROGRAMMING
79
3
Description of devices
v
X
3.9.4Timers T
The timers of the PLC function are count up timers.
The count up timer starts timing the present value when its coil turns on, and the
contact of that timer turns on when the present value reaches the setting (time-out).
3.9.5100ms, 10ms and 100ms retentive timers
(1) 100ms and 10ms timers
The timer starts timing the present value when its coil turns on, and the present
value is reset to 0 and the contact turns off when the coil turns off.
Ladder example
When input X5 turns on, T2 coil turns on
and timer times 5s. (T2 is 100ms timer.)
Timing chart
5
T2 coil
Timer present
alue
OFF
OFF
OFFT2 contact
ON
OFF
ON
OFFOFF
ON
OFF
ON
5s
ON
OFF
Fig 3.15 Timing Chart
REMARKS
100ms, 10ms and 100ms retentive timers can be changed using the built-in PLC function
parameter. (The default is a 100ms timer.)
Since the FR-C500 has 8 timers (T0 to T7), it can use only any one type of 100ms, 10ms and
100ms retentive timers.
Setting
80
Description of devices
(2) 100ms retentive timers
1) A 100ms retentive timer is designed to time the ON period of the timer coil.
When its coil turns on, the timer starts timing the present value and maintains
the present value and contact ON/OFF state if the coil turns off.
When the coil turns on again, the timer resumes timing from the maintained
present value.
2) Use the RST T instruction to clear the present value and turn off the contact.
Ladder example
Times ON of X5 for 20s.
Resets T5 contact and clears
present value when X6 turns on.
Timing chart
X5
T5 coil
Timer present
value
T5 contact
OFF
OFF
OFF
ON
OFF
ON
15s
ON
OFF
ON
OFFOFF
Setting
5s
ON
OFF
Fig 3.16 Timing Chart
3.9.6Timer processing method and accuracy
(1) Timer processing method
The coil of the timer is turned on/off at execution of the OUT T instruction, and
the timer's present value is updated and its contact turned on/off at execution of
the END instruction.
1) When the coil of the timer turns on, the present value of that timer is updated
after execution of the END instruction, and when the timer times out, its contact
turns on.
(a) When the coil of the 10ms or 100ms timer turns off, the present value of
that timer is reset to 0 and the contact is also turned off after execution of
the END instruction.
(b) If its coil turns off, the 100ms retentive timer maintains the prevent value
and contact ON/OFF state.
2) When the timer is reset by the RST instruction, the present value of the timer is
reset to 0 and the contact turns off too at execution of the RST T instruction.
POINT
If the timer setting is "0", the setting becomes infinite and the timer does not time out.
SEQUENCE PROGRAMMING
3
81
Description of devices
(2) Present value update timing and accuracy in refresh system
1) The timer accuracy is +2 scan times independently of the used timer and scan
time.
2) The following shows the present value update timing and accuracy when the
10ms timer is used in a program where the scan time is 10ms or more.
Ladder example
T3 contact turns on 6s after X0 turns
on. (T3 is 10ms timer.)
Timer timing method
Scan time 25ms
When external
input turns on
in hatched
range
X0
T3 coil
T3 contact
10ms timer
timing
Timing set
at END
T3 present
value
OUT
END
T3
25ms25ms25ms25ms
OFF
OFF
OFF
121 2
*2
1 scan
0
OUT
T3
ENDENDENDENDEND
ON
ON
2
OUT
T3
31212123
3
0 3 33 2 5597 2 599 599 3 602
22
6000ms
OUT
T3
ON
*1
1 scan
0
3
600 appears when monitored
on peripheral device.
Fig 3.17 Timer Timing Method
In Fig. 3.8, the time-out period of the 10ms timer T3 has the following errors.
*1 .......... 10ms timer error (+1 scan time)
*2 .......... Error produced by timer's input condition ON timing and OUT
T instruction's program position (+1 scan time)
The accuracy is +2 scan time (+0.05s in Fig. 3.8)
3) When the timer times out, its contact remains on until END even if the coil turns
off, and turns off at execution of the END instruction.
82
Counters C
3.10 Counters C
The counters of the built-in PLC function are up counters.
An up counter stops counting and its contact turns on when the count value reaches
the setting.
(1) Count processing
1) The coil of the counter is turned on/off at execution of the OUT C instruction,
and its present value is updated and its contact turns on after execution of the
END instruction.
2) The counter counts on detection of the leading edge (OFF to ON) of the coil. It
does not count if the coil remains on.
(2) Counter resetting
1) The count value is not cleared even if the coil turns off. Use the RST C
instruction to clear the count value and turn off the contact.
2) When the counter is reset by the RST instruction, the present value and
contact of the counter 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.
Fig 3.18 Count Ladder
SEQUENCE PROGRAMMING
3
83
Counters C
X
X
v
3.10.1 Count processing in refresh system
The counter counts on the leading edge of the input condition of the counter imported
at an input refresh.
Ladder example
When OFF to ON of X5 is counted
twice, C3 contact turns on.
Counting method
5
5
(Image)
C3 coil
C3 present
alue
C3 contact
Input (X) refresh
ENDEND
OFF
OFF
OFF
0
OFF
OUT
C3
ON
ON
ON
Does not count since X5 remains on.
OUT
C3
END
OUT
C3
END
Fig 3.19 Counter Counting Method
REMARKS
Refer to page 85 for the maximum counting speed of the counter.
OUT
C3
END
OUT
C3
END
21
ON
84
Counters C
3.10.2 Maximum counting speed of counter
The maximum counting speed of the counter is determined by the scan time, and the
counter can count only when the ON/OFF period of the input condition is longer than
the scan time.
n
Maximum counting speed Cmax
100
1
[times/s]
ts
REMARKS
The duty n is a percent (%) ratio of ON/OFF period to (ON + OFF period) of the count input
signal.
n: Duty (%)
ts: Scan time [s]
When T1 T2
When T1 T2
Count input signal
T1
T1 T2
n
T2
T1 T2
OFF
100[%]n
100[%]
T1T2
ON
SEQUENCE PROGRAMMING
85
3
Data Registers D
3.11 Data Registers D
(1) Data registers are memories that can store numerical data (-32768 to 32767 or
H0000 to HFFFF) in the built-in PLC function.
One point of data register consists of 16 bits and allows data to be read/written in
units of 16 bits.
D
Data register No.
b15b0to
16 bits
Fig 3.20 Data Register Structure
(2) The data stored once by the sequence program is maintained until other data is
stored.
(3) If more data registers are needed, the unused timers (T) and counters (C) can be
used as data registers.
86
Special Relays, Special Registers
3.12 Special Relays, Special Registers
Special relays and special registers are internal relays and data registers, respectively,
whose applications are predetermined by the built-in PLC functions.
They have the following main applications.
(1) Sequence operation check
The special relays and special registers can be used to:
(a)Check the operating status (RUN/STOP)
(b)Detect a fault by the self-diagnostic function
(c)Detect an operation error
(d)Check the scan time
(2) Timing contact
There are special relays that can be used in a sequence program and differ in
operating status.
(a)Normally ON/OFF flag
(b)RUN flag (OFF for 1 scan)
(c)Initial processing flag (ON for 1 scan)
REMARKS
For the special relays and special registers usable with the built-in PLC function,
refer to page 10.
87
SEQUENCE PROGRAMMING
3
Special Relays, Special Registers
Table3.4 Special Relay Application List
Item
Initial
processing
flag
(1 scan ON)
Normal OFF
flag
Normally ON
flag
Special
Relay
M9038
M9037
M9036
Application/Description
(1)This relay turns on for one scan when the built-in PLC function
switches from STOP to RUN.
0
Sequence
program
M9038
END/0 END/0 END/0 END/0
1 scan
ON
OFF
Switching from STOP to RUN
(2)Using M9038, you can create a sequence program to be
executed only once without using the PLS instruction at
switching from STOP to RUN.
M9038
Initial processing program
This relay remains off while power is on.
Can be used to temporarily disable execution for debugging, etc.
This relay is on while power is on.
Can be used to create a program to be executed only once after
power-on.
RUN flagM9039
88
This relay turns on at the second scan of the sequence program
when SQ-SD are shorted.
END/0
M9039
0
ON
OFF
RUN
Sequence
program
Function List
3.13 Function List
FunctionDescription
Remote RUN/STOP
Watchdog timer variable
(10 to 2000ms)
Self-diagnostic function
STOP to RUN-time output
setting
Keyword registration
CAUTION
The following functions are unavailable.
Constant scan, latch (backup for power failure), PAUSE, status latch, sampling trace,
step run, clock, interrupt processing, comment, microcomputer mode, print title
registration, annunciator display mode, ERROR LED priority setting
•This function performs remote RUN/STOP from outside the
inverter when SQ-SD are shorted (PLC function in RUN
status (P.RUN lit)).
•The watchdog timer is an internal timer of the sequence
function designed to detect hardware or program faults and
can be changed in setting.
•The built-in PLC function itself diagnoses faults and performs
fault detection, indication, built-in sequence
function stop, etc.
•This setting is made to determine the output (Y) state when
the function has switched from the STOP status to the RUN
status.
•This setting is made to inhibit read/interrupt of a program
(parameters and main/sub program) and comments.
89
SEQUENCE PROGRAMMING
3
How to RUN/STOP the Built-in PLC Function
from Outside (Remote RUN/STOP)
3.14 How to RUN/STOP the Built-in PLC Function from
Outside (Remote RUN/STOP)
The built-in PLC function is RUN/STOPped by shorting/opening SQ-SD.
Remote RUN/STOP is to RUN/STOP the built-in PLC function from outside the
inverter with SQ-SD shorted (RUN status).
(1) Applications of remote RUN/STOP
In the following cases, the function can be RUN/STOPped by remote operation
using remote RUN/STOP.
1) When the inverter is out of reach.
2) When the inverter in a control box is RUN/STOPped from outside the control box.
(2) Operation performed at remote RUN/STOP
The operation of the sequence program for performing remote RUN/STOP is as
described below.
• Remote STOP.......The function enters the STOP status after the sequence
program is executed up to the END instruction.
• Remote RUN ........When remote RUN is performed after the function has been
put in the "STOP status" by remote STOP, the function
enters the RUN status again and executes the sequence
program from step 0.
(3) Remote RUN/STOP method
There are the following remote RUN/STOP methods.
1) Setting using built-in PLC function parameter (using contact)
Remote RUN/STOP can be performed by turning the remote RUN contact off/on.
For example, this method can be used to STOP the PLC function with the
emergency stop contact.
• When the remote RUN contact turns off, the function enters the "RUN" status.
• When the remote RUN contact turns on, the function enters the "STOP"
status.
Step 0ENDStep 0
SQ terminal
Remote RUN contact
(External input terminal)
Built-in sequence
function:
RUN/STOP status
OFF
RUN
ON
STOP
STOP status
Fig 3.21 Timing Chart for RUN/STOP Using Remote RUN Contact
POINT
Setting of remote RUN contact built-in PLC function parameter
X0 to X1F can be set as the remote RUN contacts.
(Refer to the GX Developer manual for details.)
90
END
0
How to RUN/STOP the Built-in PLC Function
from Outside (Remote RUN/STOP)
2) Method using GX Developer
RUN/STOP can be performed by remote RUN/STOP operation from GX
Developer.
For example, this method can be used to STOP the function for sequence
program write in a place where the inverter is out of reach.
Step 0ENDStep 0END
0
GX Developer
Remote STOP
command
Remote RUN
command
RUN/STOP
status
OFF
OFF
RUN
ON
ON
STOP
STOP status
Fig 3.22 Timing Chart for RUN/STOP Using GX Developer
(4) Instructions
Note the following points since the built-in PLC function gives priority to STOP.
• The built-in PLC function enters the STOP status when remote STOP is
performed from any of the remote RUN contact, GX Developer, etc.
• To place the built-in PLC function in the RUN status again after it has been put
in the STOP status by remote STOP, all external factors (remote RUN contact,
GX Developer, etc.) for remote STOP must be set to RUN.
REMARKS
What are RUN and STOP statuses?
•RUN status.............Status where a sequence program is repeating operation from step 0 to
END instruction.
•STOP status ..........Status where sequence program operation is at a stop and the outputs
(Y) are all off.
SEQUENCE PROGRAMMING
3
91
Watchdog Timer (Operation clog up monitor timer)
3.15 Watchdog Timer (Operation clog up monitor timer)
(1) Watchdog timer
A watchdog timer is the internal timer of the built-in PLC function designed to
detect hardware or sequence program faults.
Its default value is set to 200ms.
(2) Watchdog timer resetting
The built-in PLC function resets the watchdog timer before execution of step 0
(after execution of END processing).
When the built-in PLC function operates properly and the END instruction is
executed within the setting in the sequence program, the watchdog timer does
not time out.
If the hardware fault of the built-in PLC function occurs or the scan time of the
sequence program is too long to execute the END instruction within the setting,
the watchdog timer times out.
Sequence program
Internal
processing time
END00
WDT resetting
(Internal processing)
Excess of scan time over setting
results in watchdog timer error.
Fig 3.23 Watchdog Timer Resetting
(3) Processing performed when watchdog timer times out
If the scan time exceeds the watchdog timer setting, a watchdog timer error
occurs and:
1) The built-in PLC function turns off all outputs.
2) The P.RUN LED goes off or flickers.
3) M9008 turns on and the error code is stored into D9008.
REMARKS
The watchdog timer setting can be changed by built-in PLC function parameter setting of GX
Developer. (Refer to the GX Developer manual for details.)
92
Self-diagnostic Function
3.16 Self-diagnostic Function
The self-diagnostic function diagnoses faults by the built-in PLC function itself.
(1) Self-diagnostic timing
The self-diagnostic function is performed at power-on, at reset, at execution of
any instruction, or at execution of the END instruction.
1) At power-on, at reset
Whether operation can be executed or not is diagnosed.
2) At execution of any instruction
An error occurs if the operation of any instruction in the sequence program is
not executed properly.
CAUTION
For the LD, AND, OR, logical comparison operation, and OUT instructions, the set
devices are always checked. For the other instructions (SET, RST, MOV, etc.), a
check is made as soon as the execution condition holds and the instruction is
ready to be executed.
3) At execution of END instruction
Operation clog up monitor timer
(2) Operation mode at fault detection
There are two different PLC operation modes at detection of a fault by the selfdiagnostic: operation stop mode and operation continuation mode.
The operation continuation mode includes a fault that enables operation to be
stopped by built-in PLC function parameter setting.
1) If an operation stop error is detected by the self-diagnostic, operation is
stopped and outputs (Y) are all turned off as soon as the error is detected. The
other devices maintain their states at occurrence of the error.
(Refer to page 94)
2) If an operation continuation error is detected, only the faulty program part is not
executed and the program at the next step is executed.
(3) Error definition checking
When M9008 (self-diagnostic error) turns on at detection of an error, the error
code is stored into D9008 (self-diagnostic error). Especially in the continuation
mode, use it in the program to prevent a mechanical system malfunction.
For the errors detected by the self-diagnostic, refer to the error code list on
172
.
page
SEQUENCE PROGRAMMING
3
93
Self-diagnostic Function
3.16.1 Error-time operation mode
The built-in PLC function allows you to set whether the sequence program operation
will be stopped or continued at occurrence of an operation error.
Use the built-in PLC function parameter to set whether operation will be stopped or
continued.
z Default value of error-time operation mode
The following table indicates the default value (initial value) of the error-time
operation mode and the status of the built-in PLC function.
Table 3.5 Error-time Operation Mode
CPU Status
Error Definition
Operation
error
An error occurred in
the sequence
program, e.g. an
attempt was made to
make BCD
conversion of any
value outside the
range 0 to 9999 (or 0
to 99999999).
Operation
Default val ue
P.RUN
LED
ContinuationFlicker
Special
relays
turned on
M9010
M9011
Specia l
registers
for data
storage
D9010
D9011
Self-
diagnostic
error No.
(D9008)
50
94
Keyword Registration
3.17 Keyword Registration
The keyword is designed to inhibit the read and rewrite of the program and comments
in the built-in PLC function using GX Developer.
(1) Read/write from built-in PLC function where keyword has been registered
When the keyword has been registered, the built-in PLC function parameters,
main program and comments cannot be read/written from the built-in PLC
function to the GX Developer device unless the keyword registered to the built-in
PLC function is entered.
(2) Registration and cancel of keyword
A keyword of up to six digits can be set in hexadecimal (0 to 9, A to F).
Make built-in PLC function parameter setting to register or cancel the keyword.
95
SEQUENCE PROGRAMMING
3
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.