Motion / PLCopen Library

These are the Motion/PLCopen functions and function blocks.

Control

Name

Description

MC_ClearFaults

Sends a request to the drive to clear any drive faults.

MC_CreatePLCAxis

Creates a PLCopen Axis.

MC_EStop

Causes an emergency stop (E-stop).

MC_InitAxis

Initializes a PLCopen Axis' data.

MC_InitAxisFeedback

Initializes a PLCopen digitizing Axis' position data.

MC_Power

Requests to either enable the drive and close the loop, or disable the drive and open the loop.

MC_ResetError

Resets the errors of the specified axis.

MC_Stop

Aborts the active move, removes the next move from the queue, performs a controlled stop, and switches the axis to Stopping state.

Information

Name

Description

MC_ReadActPos

Reads the actual position of the axis.

MC_ReadActVel

Reads the actual velocity of the axis.

MC_ReadAxisErr

Returns the error status of the specified axis.

MC_ReadBoolPar

Returns the value of the specified Boolean axis parameter.

MC_ReadParam

Returns the value of the specified axis parameter.

MC_ReadStatus

Returns the state of the specified axis.

MC_WriteBoolPar

Writes the specified axis Boolean parameter.

MC_WriteParam

Writes the specified axis parameter.

I/O

Name

Description

MC_AbortTrigger

When the Execute input transitions from low to high, this function block aborts an MC_TouchProbe function block.

MC_TouchProbe

Arms a Fast Input and returns the latched position when the Fast Input event occurs.

PLCopenMotion

Name

Description

MC_AddSuperAxis

Adds a Superimposed Axis to the Axis’s list of assigned superimposed axes.

MC_Halt

Decelerates an axis to zero velocity.

MC_MoveAbsolute

Performs a single-axis move to a specified endpoint position.

MC_MoveAdditive

Performs a single-axis move for a specified distance from the endpoint of the previous move.

MC_MoveContVel

Performs a single-axis non-ending move at a specified velocity with the option of continually updating the ongoing motion with the current input parameters.

MC_MoveRelative

Performs a single-axis move of a specified distance relative to the actual position at the time of the start of execution.

MC_MoveSuperimp

Performs a single-axis move superimposed upon the currently executing move.

MC_MoveVelocity

Performs a single-axis, non-ending move at a specified velocity.

MC_RemSuperAxis

Remove an axis from the axis's list of assigned, superimposed axes.

MC_SetOverride

Writes velocity and acceleration override factors.

Profile

Name

Description

MC_CamIn

Performs a slave axis move which follows the master axis based on the Cam Table specified by CamTableID.

MC_CamOut

Disengages the slave axis from an MC_CamIn move or the master axis immediately in a cam block.

MC_CamResumePos

Returns the slave axis position for resuming an MC_CamIn move.

MC_CamStartPos

Returns the slave axis position for starting an MC_CamIn move.

MC_CamTblSelect

Defined to read and initialize the specified profile.
Selects the Cam tables by setting the pointers to the relevant tables.

MC_GearIn

Performs a slave axis move which follows the master axis using the ratio specified by RatioNumerator and RatioDenominator.
Once engaged, the slave moves RatioNumerator units for every RatioDenominator units the master moves.

MC_GearInPos

Performs a slave axis move which synchronizes motion at the SlaveSyncPosition and MasterSyncPosition.
Once synchronized, the slave moves RatioNumerator units for every RatioDenominator units the master moves.

MC_GearOut

Disengages the slave axis from a MC_GearIn or MC_GearInPos move or the master axis.

MC_Phasing

Performs a master position phase shift for the slave axis.

MC_SyncSlaves

Allows the application to specify what slave axes are to be synchronized and which master they follow.

Reference

Name

Description

MC_Reference

Used to execute a fast home to a switch.

MC_SetPos

Changes the present actual position of the axis (as reported by MC_ReadActPos) to the position specified by the Position and Mode inputs.

MC_SetPosition - Deprecated

Deprecated - See MC_SetPos.

Registration

Name

Description

MC_MachRegist

Enables Mark-to-Machine registration.

MC_MarkRegist

Enables Mark-to-Mark registration.

MC_StopRegist

Turns off registration for the specified axis and disarms the specified fast input.

Concept Link IconSee Also