FX Series Programmable Controlers Applied Instructions 5
5-213
5.16.1.1.15 Example program 4
In the previous example, monitoring and write to the inverter are always driven. If the program
changes the frequency or gives a forward/reverse rotation command, communication with the
inverter may be delayed depending on the step executing communication.
In the example below, when a request to write is generated, a request to read is interrupted,
write is executed, then monitoring is continued again after write is completed.
M8000
MOV D8154 D7990
MOV D8155 D7791
M8002
SET M10
END
MOV D8156 D7992
MOV D8157 D7993
M8157
M10
EXTR K11 K6 H0FB H0
EXTR K13 K6 K1 K1200
EXTR K13 K6 K2 K500
EXTR K13 K6 K4 K5980
EXTR K13 K6 K5 K4980
EXTR K13 K6 K6 K3980
EXTR K13 K6 K7 K10
EXTR K13 K6 K8 K10
RST M10
M8029
M8002
MOV K6000 D10
M8000
EXTR K10 K6 H7A K2Y000
EXTR K10 K6 H6F D50
EXTR K10 K6 H70 D51
EXTR K10 K6 H71 D52
<> D10 D7998 MOV D10 D7998
M8002
SET M11
M11
EXTR K11 K6 H0ED D10
M8029
RST M11
<> K2X000 D7999 MOV 2X000 D7999
M8002
SET M12
M12
EXTR K11 K6 H0FA K2X000
M8029
RST M12
M10 M11 M12
MC N0 M50
MCR N0
N0 M50
Program which
monitors the related
special devices from
the personal computer
Writes parameters to the inverter at start
Waiting time for response from
inverter
Step No. of instruction currently
executing
Error code
Step in which error has occured for
the first time
Specifies computer link operation
Maximum frequency
Minimum frequency
Multi-speed setting (3)
Multi speed setting (2)
Multi speed setting (1)
Acceleration time
Deceleration time
Clears M10 when execution
complete
Sets the default value of the frequency
Executes write only when
D10 has changed
Withdraws to detect change
Sets a request to write
Writes the frequency
Executes write to the inverter, only when one of X0 to X7 has changed
X1:Forward,X2:Reverse
Withdraws to detect change
Gives a command to the inverter
Monitors the status, only when nothing is written to the inverter
Monitors the status
Monitors the frequency
Monitors the output current
Monitors the output voltage