Professional Documents
Culture Documents
Module 20110603 E
Module 20110603 E
Function Module
infoPLC.net
140 - 1
Automation Systems
This Section will cover:
140 - 2
Automation Systems
NJ501 Motion Control Function Module (MC)
140 - 3
Automation Systems
NJ501 Motion Control Function Module (MC)
•Axis parameters in the MC are synchronously linked to the IEC Axis variable [AXIS_REF ]
datatype.
•Motion Commands (POU) are executed in IEC task.
•Motion Commands (POU) are buffered to invoque Motion functions from the MC
•MC generates the Motion Profile according to the IEC Motion program.
•Axes are fully controlled and monitored by the MC
•MC and EtherCAT Servos exchange synchronous data
User
MC Module
Program Motion
Profile
EtherCAT Comms
Motion Function
FB
Out
G5
Command
Parameters
(AXIS_REF)
Servos
Variable
Feedback In
Axis
Other..
140 - 4
Automation Systems
PLC-MC Task Synchronization
• IEC Primary Task Program and MC are completelly executed and finished
within the EtherCAT cycle time.
• Consequence: NJ Program is strictly synchronized with the EtherCAT
Drives
PLC PLC
MC MC
Primary Task Primary Task
140 - 5
Automation Systems
The Axis
140 - 6
Automation Systems
NJ501 : The Axis
140 - 7
Automation Systems
NJ501 : Axis Types
Virtual encoder These axes are used virtually for encoder operation.
For example, they are used for debugging when there is no encoder.
140 - 8
Automation Systems
NJ501 : Axis Parameters
Axis Parameters
Studio
AXIS_REF MC
IEC
Program
140 - 9
Automation Systems
NJ501 : Axis Parameters List
140 - 10
Automation Systems
NJ501 : Axis Parameters List
140 - 11
Automation Systems
NJ501 : Axis Parameters List
140 - 12
Automation Systems
NJ501 : Axis Parameters
•Axis Parameters can be Set/Monitored from Studio:
Axis Parameters
140 - 13
Automation Systems
NJ501 : AXIS Parameter Setup example
140 - 14
Automation Systems
NJ501 : AXIS Parameter Setup example
10000 mm
Tip: Display
purposes Only
140 - 15
Automation Systems
NJ501 : AXIS Parameter Setup example
140 - 16
Automation Systems
NJ501 : AXIS Parameter Setup example
140 - 17
Automation Systems
NJ501 : AXIS Parameter Setup example
Rotary
Position
Positive OverTravel
Negative OverTravel
140 - 18
Automation Systems
NJ501 : AXIS Parameter Setup example
Rotary
Position
Modulo MAX Position=360º
140 - 19
Automation Systems
Test Operation (Test Tun)
• Test Operation (Test Run) is used to perform basic test of the motor.
• Test Operation covers:
– Servo Jog
– Servo Positioning (Absolute and Relative)
– Origin Search
– I/O Checking
140 - 20
Automation Systems
VIDEO
140 - 21
Automation Systems
EXERCICE
140 - 22
Automation Systems
The Axis Variable
(AXIS_REF)
140 - 23
Automation Systems
NJ501 : The Axis Variable (AXIS_REF)
•The Global Axis variables used for Axes (AXIS_REF) type are
the synchronous interface between the Logic Controller and
the MC Axis
Axis Parameters
Studio
MC
AXIS_REF
IEC
Program
140 - 24
Automation Systems
NJ501 : The Axis Variable (AXIS_REF)
Example:
MC_Axis000 is AXIS_REF Datatype
Then:
MC_Axis000.Cmd.Pos contains the Axis Commanded Position
MC_Axis000.Act.Pos contains the Axis Feedback Position
140 - 25
Automation Systems
NJ501 : The Axis Variable (AXIS_REF)
140 - 26
Automation Systems
NJ501 : The Axis Variable (AXIS_REF)
140 - 27
Automation Systems
NJ501 : AXIS_REF: AXIS_REF_CONFIG
140 - 28
Automation Systems
NJ501 : AXIS_REF: AXIS_REF_SCALE
140 - 29
Automation Systems
NJ501 : AXIS_REF: AXIS_REF_CMD_DATA
140 - 30
Automation Systems
NJ501 : AXIS_REF: AXIS_REF_STA
Idle: xxxx
AXIS_REF_DET
Idle BOOL InPosWaiting: xxxx
InPosWaiting BOOL
Axis is Homed and referenced
Homed BOOL
InHome BOOL Axis is in the Home Position
140 - 32
Automation Systems
NJ501 : AXIS_REF: AXIS_STA_DRV (Drive Status)
AXIS_REF_STA_DRV
ServoOn BOOL Servo Powered
140 - 33
Automation Systems
NJ501 : AXIS_REF: Actual Feedback, Warnings and Notices
AXIS_REF_ACT_DATA
Feedback Position
Pos LREAL
Feedback Velocity
Vel LREAL
Trq LREAL Actual Torque
AXIS_REF_WARN
Active BOOL Active when XX ocurres
Code UNIT XX Code
AXIS_REF_NOTICE
Active BOOL Active when YY ocurres
Code UNIT YY Code
140 - 34
Automation Systems