Input Parameters

Unless otherwise specified in the function block's description, the input parameters are read with the rising edge of the Execute input.

The input parameters are:

The PLCopen function / function block input parameters are:

PLCopen Function Blocks with Execute

  • These FBs initiate execution on the rising edge of Execute.
  • Execution continues until completion independent of the Execute value (or values) following initiation.
  • Once execution is complete, the function block can be rearmed or reengaged by introducing another rising edge of Execute.

  • Dual-Core limitation: Consecutive calls to the function block with repeating Execute values in the same cycle return an error code 76.

Function Block

Description

MC_AbortTrigger

MC_SetPosition - Deprecated

MC_SyncSlaves

MC_TouchProbe

A positive transition of this input causes this function block to execute.

MC_CamIn

MC_CamOut

MC_GearIn

MC_GearInPos

MC_GearOut

MC_Halt

MC_MoveAbsolute

MC_MoveAdditive

MC_MoveRelative

MC_MoveSuperimp

MC_MoveVelocity

A positive transition of this input requests to queue the move.

MC_CamTblSelect

A positive transition of this input reads and initializes the specified profile.

MC_Phasing

A positive transition of this input requests to queue the phase shift move.

MC_Reference

A positive transition of this input requests to queue the reference move and arm the reference trigger events.

MC_Stop

A positive transition of this input initiates a stop move.

While this input is held high, no other move can be queued for this axis.

MC_WriteBoolPar

MC_WriteParam

A positive transition of this input writes the specified parameter.

PLCopen Function Blocks with Enable

These FBs continuously execute every PLC cycle, as long as the Enable remains high.

Function Block

Description

MC_Power

  • If this input is high and the drive is currently disabled, this function block requests to close the servo loop and enable the drive.
  • If this input is low and the drive is currently enabled, this function block requests to open the servo loop and disable the drive.

MC_ReadActPos

 

MC_ReadActVel

When this input is high, the axis's actual velocity is returned.

MC_ReadAxisErr

When this input is high, the axis's error status is returned.

MC_ReadBoolPar

MC_ReadParam

When this input is high, the specified parameter is read.

MC_ReadStatus

When this input is high, the function block outputs is updated.

MC_SetOverride

When this input is high, the override factors is written.

PLCopen Functions with Input Parameter En

This is similar to ENABLE on function blocks.
Functions are expected to complete in one cycle.
See Differences between Functions and Function Blocks.

Function

Description

MC_AddSuperAxis

When this input is high, the specified axis is added to the superimposed axis list of the receiving axis.

MC_CreatePLCAxis

When this input is high, a PLCopen axis is created.

MC_EStop

When this input is high, an E-stop is generated for the specified axis.

MC_InitAxis

When this input is high, the specified axis is initialized.

MC_RemSuperAxis

When this input is high, the specified axis is removed from the superimposed axis list for the specified receiving axis.

MC_ResetError

When this input is high, the specified axis's errors is reset.