Program Examples - Mitsubishi Electric MELSEC iQ-F Series Quick Connection Manual

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

Advertisement

5.6

Program Examples

The following programs are designed to control the servo amplifiers. The programs use the FBs for servo amplifiers
compatible with CC-Link IE Field Network Basic.
This section provides the sample programs for the station number 1 and station number 2.
Initial setting
After RUN, ON for 1 scan
SM402
Starting communications using CC-Link IE Field Network Basic
After RUN, ON for 1 scan
SM402
Servo ON
Servo ON
command
X0
Servo ON
command
X10
5 CREATING PROGRAMS
47
5.6 Program Examples
K1
K2
RX information
G_stLinkIEF.bnRX[H3F]
Axis information 1
AxisInfo1
RX information
G_stLinkIEF.bnRX[H7F]
Axis information 2
AxisInfo2
MOV
EN
ENO
s
d
AxisInfo1.Setting.AxisNo
MOV
EN
ENO
s
d
AxisInfo2.Setting.AxisNo
SET
EN
ENO
RY information
d
G_stLinkIEF.bnRY[H3F]
SET
ENO
EN
RY information
d
G_stLinkIEF.bnRY[H7F]
Ready to operate FB1
MC_Power_CCLinkIEFBasic_F_1
MC_Power_CCLinkIEFBasic_F
Enable
Status
Busy
Error
ErrorID
Axis
Ready to operate FB2
MC_Power_CCLinkIEFBasic_F_2
MC_Power_CCLinkIEFBasic_F
Enable
Status
Busy
Error
ErrorID
Axis
Axis No.
Axis No.
Ready to operate status
PowerStatus[1]
Ready to operate (executing)
PowerBusy[1]
Ready to operate (error)
PowerError[1]
Error code
PowerErrorID[1]
Axis information 1
AxisInfo1
Ready to operate status
PowerStatus[2]
Ready to operate (executing)
PowerBusy[2]
Ready to operate (error)
PowerError[2]
Error code
PowerErrorID[2]
Axis information 2
AxisInfo2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melservo-jet seriesMelservo-j5 series

Table of Contents