MC_CamResumePos

PLCopen motion icon

 Function BlockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. - Returns the slave axis positionClosed Position means a point in space which is described by different coordinates. Depending on the used system and transformation it can consist of a maximum of six dimensions (coordinates).This means three Cartesian coordinates in space and coordinates for the orientation. In ACS there can be even more than six coordinates. If the same position is described in different coordinate systems the values of the coordinates are different. for resuming an MC_CamIn move.

Inputs

Input

Data Type

Range

Unit

Default

Description

EnableClosed Enable signal for the drive, Hardware-Enable with 24V signal to X8, Software-Enable command by setup Software, fieldbus or permanently set. Both are required for enabling the drive.

BOOL

N/A

N/A

No default

Enables execution.

Master

AXIS_REF

AXIS_NUM - 1, 256

N/A

No default

Master axis.

This must be the same as the Master Axis specified for the most recently executed MC_CamIn functionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. block.

Slave

AXIS_REF

AXIS_NUM - 1, 256

N/A

No default

Slave axis.

This must be the same as the Slave Axis specified for the most recently executed MC_CamIn function block.

CamTableID

INT

0, 255

N/A

No default

Profile ID number.

  • This value is generated by MC_CamTblSelect.
  • This must be the same as the CamTableID specified for the most recently executed MC_CamIn function block.

Outputs

Output

Data Type

Range

Unit

Description

Done

BOOL

No range

N/A

TRUE = the function block has successfully calculated the slave position.

The slave position is available at the SlavePos output.

Error

BOOL

No range

N/A

TRUE = an invalid input was specified or an error occurred in the calculations.

The value at the SlavePos output is undefined.

ErrorID

INT

No range

N/A

Indicates the error if the Error output is set to TRUE.

See PLCopen Function Block ErrorIDs.

SlavePos

LREAL

No range

User units

If the Done output is TRUE, this output returns the:

Remarks

Figure 1: MC_CamResumePos

FBD Language Example

FFLD Language Example

IL Language Example

            CAL Inst_MC_CamResumePos( TRUE, Axis1, Axis2, Profile1CamTable ID)

ST Language Example

Inst_MC_CamResumePos( TRUE, Axis1, Axis2, Profile1CamTableID);

See Also