76
8.2 Programming example for setting the operation mode
The following explains a program to write various data to the inverter.
The following explains a program to change the operation mode of station 1 inverter to network operation.
• Operation mode write code: HFB (hexadecimal)
• Network operation set data: H0000 (hexadecimal) (Refer to
)
• The reply code at the time of instruction code execution is set to D2. (RWr10: Refer to
SET M301
PLS M300
M301
MOV W10 D2
MOV H0FB W110
Write operation mode write code (HFB)
to RWw10 and set data (H0000) to RWw11.
SET Y1025
Turn off the instruction code execution
request (RY25)
0
9
M0
X20
X1025
M300
RST M301
SET M302
M302
18
RST Y1025
RST M302
END
24
3
7
Turn on the instruction code execution
request (RY25)
MOV H0
W111
Read reply code (RWr10) to D2 when the instruction
code execution completion (RX25) turns on.
SB49
X1025
SW0B0.0
M0
Check the data link status of the station 1