Servo, Axis Motion: via EtherCAT and CANopen

Overview

Unitronics enables you to implement Motion via EtherCAT and CANopen.

EtherCAT communications are via the Unitronics EtherCAT master module. In addition to acting as the gateway for all EtherCAT communication, the master module acts as a motion controller, building the motion profile.

CANopen communications are either via a port located directly on the CPU, or via a CANbus Add-on communication port.

Unitronics offers a full line of servo drives and motors for your motion application needs. UniLogic greatly simplifies servo applications by enabling you to:

The Motion Control functions currently supported are:

MC Power

Controls the power flow to the Axis (On or Off).

MC Home

Commands the axis to perform the «search home» sequence set in Axis> Homing.

MC Stop (Emergency Stop)

Decelerates the axis according to the emergency deceleration defined in the axis parameters.

MC Halt

Decelerates the axis according to the rate of deceleration you define in MC Halt.

MC MoveAbsolute

Commands a controlled motion to a specified absolute position

MC MoveRelative

Commands a controlled motion of a specified distance relative to the set position at the time of the execution

MC MoveAdditive

Commands a controlled motion of a specified, relative distance additional to the most recent commanded axis position.

MC MoveVelocity

Commands a never-ending controlled motion at a specified velocity.

MC TorqueControl

Continuously exerts a torque or force of the specified magnitude.

MC ApplyTorque

Enables you to set Torque and apply it according to the physical values you define in the Axis Configuration, regardless of the motor specification.

MC ApplyForce

Enables you to set Force and apply it according to the physical values you define in the Axis Configuration, regardless of the motor specification (linear actuators only.

MC SetPosition

Shifts the coordinate system of an axis by manipulating both set-point position and actual position.

MC Reset

Transitions the axis state ‘ErrorStop’ to ‘Standstill’ or ‘Disabled’ by resetting all internal axis-related errors.

MC Jog*

Commands Jog forward or backward. Jog is a Unitronics' function, not part of the PLCopen standard.

MC Read

This FB returns the value of a specific parameter.

MC Write

This FB writes a value to a specific parameter.

Multi-Axes Functions (EtherCAT)

When the axes are configured to Mode: Cyclic, the EtherCAT master module acts as a motion controller and generates the motion profile at each cycle.

With Multi-Axis Function Blocks a synchronized relationship exists between two or more axes.
The synchronization can be related to time or position. Often this relationship is between a master axis and one or more slave axes.

MC_GearIn

Commands a ratio between the VELOCITY of the slave and master axis.

MC GearOut

Disengages the Slave axis from the Master axis

GearInPos

Commands a gear ratio between the position of the slave and master axes from the synchronization
point onwards

Combine Axes

Combines the motion of 2 axes into a third axis with selectable combination method

Cam TableSelect

Selects the CAM tables by setting the connections to the relevant tables

CamIn

Engages the Cam

CamOut

Immediately disengages the Slave axis from the Master axis

 

State Diagram

The next diagram has been adapted from the PLCopen State diagram to show the states and motion actions currently supported by UniLogic.

Note 1:    From any state. An error in the axis occurred.

Note 2:    From any state. MC_Power.Enable = FALSE and there is no error in the axis.

Note 3:    MC_Reset AND MC_Power.Status = FALSE

Note 4:    MC_Reset AND MC_Power.Status = TRUE AND MC_Power.Enable = TRUE

Note 5:    MC_Power.Enable = TRUE AND MC_Power.Status = TRUE

Note 6:    MC_Stop.Done = TRUE AND MC_Stop.Execute = FALSE

 

Configuration: via EtherCAT and CANopen

Configurations contain drive-related parameters, which you can edit to suit your application.

During the Configuration process, as you add drives, motors, and axes, UniLogic automatically creates operand structs that you can use in your motion application.

EtherCAT Motion

EtherCAT Drive Structs

Configuring Axes, EtherCAT

CANopen Motion

CANopen Drive Structs

CANopen Drive Structs

Related Topics

Axis Structs

UMD Servo Firmware Update

Servo COM Functions

MC Function Blocks

Multi-Axes MC Functions (EtherCAT)

Servo: Ready-made Motion Code

Motion: Diagnostics & Tuning

Servo Motion Complete Error Codes

Axis Homing Methods