Programming examples
4.7.7
Programming example for setting the running frequency
1) The following program example changes the running frequency of
Set frequency: K5000 decimal
The reply code at the time of instruction code execution is set to D2. (Refer to page 63)
X0
X0F
X1 SW80.0
0
M0
X20
7
M300
11
M301
X100D
13
M302 X100D
20
26
2) To continuously change the running frequency from the programmable controller
When the frequency (speed) setting completion (example: X100D) switches ON, make sure that the reply code in the
remote register is 0000H and change the set data (example: W101) continuously.
3) Program example for writing data to EEPROM
Change the following points in the program shown above.
Frequency setting command Y100D → Y100E
Frequency setting completion X100D → X100E
<Timing chart when writing to RAM>
Y100D
W101
Inverter
running
frequency
∗1
For EEPROM, write is made only once when Y100E is switched ON.
∗2
If the set data is changed with Y100E ON, it is not reflected on the inverter.
72
M0
PLS
M300
SET
M301
MOV K5000 W101
SET Y100D
RST M301
SET M302
MOV W2
D2
RST Y100D
RST M302
END
<Timing chart when writing to EEPROM>
Y100E
*2
W101
Inverter
running
frequency
Reflect to the inverter when Y100E turns ON
station 1
inverter to 50.00Hz
Check the data link status of the station 1
Write set frequency to RWw1.
Turn ON the frequency setting
command RAM (RY0D)
Read reply code (RWr2) to D2 when the
frequency setting completion (RX0D) turns ON.
Turn OFF the frequency setting command RAM
(RY0D)
*1