61
3.4.4 Program example for setting the operation commands
Write a program as explained below to write the inverter operation commands to the
master station buffer memory:
The inverter is operated in accordance with the operation commands written to the
remote outputs (addresses 160
H
to 1DF
H
).
The following program outputs the commands of forward rotation and middle speed
signals to the inverter of station 2:
SET M103
SET M100
TO 0000 0162 M100 1
X0000 X000F X0001
6
HH KK4
Forward rotation command (RY20)
Middle-speed command (RY23)
Writes the operation commands to buffe
memor
and out
uts to the inverter.
0 0 0 0
* *
0
* * * *
0 1 0 0 1
M115 M110 M105 M100
RY0F to RY00
160H
RY1F to RY10161H
1DEH
RY2F to RY20
RY3F to RY30
RY7EF to RY7E0
RY7FF to RY7F0
1DFH
162H
163H
Address
Station 1
Station 2
Station 64
TO
instruction
[RY2F to RY2A]
[Operation commands]
Note:
*
: Enter 0 since they are reserved bits.
1: ON
0: OFF
Forward
rotation
M100 ..... Forward rotation command
M101 ..... Reverse rotation command
M102 ..... High speed (RH)
M103 ..... Middle speed (RM)
M104 ..... Low speed (RL)
M105 .....
M106 .....
M107 .....
M108 .....
M109 ..... MRS
Operation commands
Medium
speed
M110 .....
M111 .....
M112 ..... Monitor command
M113 ..... Frequency setting command (RAM)
M114 ..... Frequency setting command (E PROM)
M115 ..... Instruction code execution request
RY2F to RY2A
2
3.4.5 Program example for monitoring the output frequency
This section describes the program which reads the monitoring function of the inverter.
The following program reads the output frequency of the station 2 inverter to D1.
Output frequency reading code number: 0001
H
(hexadecimal)
Example: The output frequency of 60Hz is indicated 1770
H
(6000).
M9036
FROM0000 00E2 M200 2
HHK4K
X0000 X000F X0001 X0020
MOV 0001
H
D100
TO 0000 01E4 D100 1
HH K
FROM0000 02E4 D1 1
HH K
M9036
TO 0000 0162 M100 2
HHK4K
X0000 X000F X0001 X0020
6
6
5
5
SET M112
RST M112
M212
Switches on the monitor command
(RY2C).
Monitoring stop.
Reads the remote input (RX20 to RX3F)
data of buffer memory to M200-M231.
M212:Reads output frequency (RWr
4
to D1
when monitoring (RX2C) switches on.
Writes M100-M131 data to the remote
outputs (RY20 to RY3F) of buffer memory.
Read
setting
Sets the monitor code (01
H
) of the
output frequency to RWw
4
.