Example Programs - Mitsubishi Electric MELSEC iQ-F Series Quick Connection Manual

For cc-link ie field network basic
Hide thumbs Also See for MELSEC iQ-F Series:
Table of Contents

Advertisement

5.3

Example Programs

The following programs are designed to control the inverters (station numbers 1 and 2) using the FB library for CC-Link IE
Field Network Basic compatible inverters.
This section provides the example programs for the station numbers 1 and 2.
Example program for the station number 1
Setting the station number to 1
SM402
Turning ON
one scan only
after RUN
Turning ON X0 to start the operation control FB of the station number 1
X0
Operation
control
command
When X2 is OFF, turning ON X1 to send forward rotation command to the station number 1
X1
X2
Forward
Reverse
rotation
rotation
command
command
When X1 is OFF, turning ON X2 to send reverse rotation command to the station number 1
X2
X1
Reverse
Forward
rotation
rotation
command
command
When X4 is OFF, the frequency of the station number 1 is set to 40 Hz at the rising edge of X3
X3
X4
40Hz setting
20Hz setting
When X3 is OFF, the frequency of the station number 1 is set to 20 Hz at the rising edge of X4
X4
X3
20Hz setting
40Hz setting
Turning ON X5 to monitor the operating status of the station number 1
X5
Monitor command
Turning ON X6 to monitor the output frequency of the station number 1
X6
Output frequency
monitor command
MOV
K1
D0
Station
number
M0
Execution
command
M1
Forward rotation
command
M2
Reverse rotation
command
MOV
K4000
D20
Set frequency
SET
M20
Execution
command
MOV
K2000
D20
Set frequency
SET
M20
Execution
command
M40
Execution
command
M60
Execution
command
5 EXAMPLE PROGRAMS
5.3 Example Programs
5
36

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents