64
3.4.8 Running frequency setting program example
1) The following program changes the running frequency of station 2 inverter to
50.00Hz.
Set frequency: K5000 (decimal)
The reply code at the time of instruction code execution is set to D2. (Refer to
page 58.)
SET M303
M9036
FROM 0000 00E2 M200
2
PLS M302
M303
FROM 0000 02E6 D2 1
HH K
MOV 5000
K
D100
TO 0000 01E5 D100
1
HH K
26
5
X0000 X000F X0001 X0020
M302
HH KK4
SET M113
M213
66
RST M113
RST M303
TO 0000 0162 M100
2
HHK4K
M9036
82
36
3
Write setting
Writes set frequency to RWw
5
.
Switches on the frequency setting
command RAM (RY2D).
Switches off the frequency setting
command (RY2D).
Reads the remote input (RX20 to RX3F)
data of buffer memory to M200-M231.
Reads reply code (RWr
6
) to D2 when the
frequency setting completion (RX2D)
switches on.
Writes M100-M131 data to the remote
outputs (RY20 to RY3F) of buffer memory.
2) To continuously change the running frequency from PLC
When the frequency setting completion (example: RX2D) switches on, make
sure that the reply code in the remote register is 0000
H
and change the set data
(example: RW
W
5
) continuously.
3) Program example for writing data to E
2
PROM
Modify the above program as follows:
Change the frequency setting command from RY2D to RY2E.
RY2D
RW
W5
RY2E
(Note 2)
(Note1)
Frequency setting completion
<Timing chart for write to RAM>
<Timing chart for write to E PROM>
Reflected on inverter
at the point when RY2E
switches on
Inverter
running
frequency
Inverter
running
frequency
RY2D
→
RY2E
RWw
5
2
Note:1. For E
2
PROM, write is made only once when RY2E is switched on.
2. If the set data is changed with RY2E on, it is not returned on the inverter.
3