MC_CamResumePos
Function Block - Returns the slave axis position for resuming an MC_CamIn move.
- Returns the slave axis position for the most recently executed MC_CamIn profile, based on the current position of the master axis.
- This slave axis position can be used to command the slave axis to return to the proper location prior to resuming a MC_CamIn function.
- When calculating the slave axis position, MC_CamResumePos utilizes the master offset, slave offset, master scaling, and slave scaling of the most recently executed MC_CamIn function block for the slave axis.
- The typical application of MC_CamResumePos is to aid in returning a slave axis back to its profile position after an event (e.g., E-stop) caused the slave axis to go off path.
- See Resume Camming After an E-Stop for instructions.
-
-
- This function block starts a motion-related action and stores data for calculations and error checking.
- If using a dual-core controller, see Program a Multi-Core Controller.
Inputs
|
Input |
Data Type See Data Types. |
Range |
Unit |
Default |
Description |
|---|---|---|---|---|---|
|
Enable |
BOOL |
FALSE, TRUE |
N/A |
No default |
Enables execution. |
|
Master |
AXIS_REF |
AXIS_NUM - 1 to 256 |
N/A |
No default |
|
|
Slave |
AXIS_REF |
AXIS_NUM - 1 to 256 |
N/A |
No default |
|
|
CamTableID |
INT |
0 to 255 |
N/A |
No default |
Profile ID number.
|
Outputs
|
Output |
Data Type See Data Types. |
Range |
Unit |
Description |
|---|---|---|---|---|
|
Done |
BOOL |
FALSE, TRUE |
N/A |
|
|
Error |
BOOL |
FALSE, TRUE |
N/A |
|
|
ErrorID |
INT |
No range |
N/A |
|
|
SlavePos |
LREAL |
No range |
User units |
If the Done output is TRUE, this output returns the:
|
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
Inst_MC_CamResumePos( TRUE, Axis1, Axis2, Profile1CamTableID);
See Also







