![Omron NX-EC0112 Скачать руководство пользователя страница 353](http://html1.mh-extra.com/html/omron/nx-ec0112/nx-ec0112_user-manual_742777353.webp)
9 - 13
9 Application Example
NX-series Position Interface Units User’s Manual (W524)
9-
4 Program
min
g
Exam
ples
9
9-4-
1 Main V
ariables
Used
in Pr
ogramming Example
9-4
Programming Examples
This example shows the basic programming for relative positioning.
Interlocks with other devices and programming are omitted from this example.
For other sample programming for the MC Function Module, refer to the
NJ/NX-series CPU Unit Motion
Control User’s Manual
(Cat. No. W507).
9-4-1
Main Variables Used in Programming Example
Name
Data type
Default
Comments
MC_Axis000
_sAXIS_REF ---
Axis variable for axis 0.
MC_Axis000.Cfg.NodeAddress
UINT
---
This is the node address of the EtherCAT Cou-
pler Unit under which the Position Interface Unit
that is assigned to axis 0 is connected.
_EC_PDSlavTbl[N]
BOOL
FALSE
TRUE when EtherCAT process data communica-
tions for node address N are enabled (Opera-
tional).
_EC_CommErrTbl[N]
BOOL
FALSE
TRUE when a communications error has
occurred in the slave with node address N.
StartPg
BOOL
FALSE
When this variable is TRUE, the Servo is turned
ON if EtherCAT process data communications
are active and normal.
MoveStart
BOOL
FALSE
This is the command to execute relative position-
ing. If this variable changes to TRUE when the
Servo is ON, the execution condition (
Start0
) for
the MC_MoveRelative instruction changes to
TRUE.
RunOutput
BOOL
FALSE
This is the Run output device variable to the
Servo Drive.
In this example, this variable is connected to the
Status
output from the PWR instance of the
MC_Power instruction. It changes to TRUE when
the Servo turns ON.
ResetOn
BOOL
FALSE
This variable gives the status of the external but-
ton that is used to reset errors.
If this variable is TRUE, the error reset output
(ResetDrvErr) to the Servo Drive turns ON and
the error in the MC Function Module is reset by
the MC_Reset instruction.
InPosition
BOOL
FALSE
This is the positioning completion input device
variable from the Servo Drive.
DrvErrInput
BOOL
FALSE
This is the error input device variable from the
Servo Drive.
When this variable is TRUE, an immediate stop
is performed by the MC_ImmediateStop instruc-
tion.
ResetDrvErr
BOOL
FALSE
This is the error reset output device variable to
the Servo Drive.
Содержание NX-EC0112
Страница 13: ...11 Manual Structure NX series Position Interface Units User s Manual W524...
Страница 34: ...Revision History 32 NX series Position Interface Units User s Manual W524...
Страница 36: ...Sections in this Manual 34 NX series Position Interface Units User s Manual W524...
Страница 70: ...2 Specifications and Application Procedures 2 14 NX series Position Interface Units User s Manual W524...
Страница 78: ...3 Part Names and Functions 3 8 NX series Position Interface Units User s Manual W524...
Страница 108: ...4 Installation and Wiring 4 30 NX series Position Interface Units User s Manual W524 Unit...
Страница 114: ...4 Installation and Wiring 4 36 NX series Position Interface Units User s Manual W524...
Страница 126: ...5 I O Refreshing Methods 5 12 NX series Position Interface Units User s Manual W524...
Страница 340: ...8 Pulse Output Units 8 76 NX series Position Interface Units User s Manual W524...
Страница 462: ...Appendices A 74 NX series Position Interface Units User s Manual W524...
Страница 463: ...I 1 I NX series Position Interface Units User s Manual W524 Index...
Страница 466: ...I 4 NX series Position Interface Units User s Manual W524 Index...