-

Y_CamIn

Image
This function block engages the axis in camming mode with the cam profile specified by the CamTableID.

Parameters

* Parameter Data Type Description Default
VAR_IN_OUT
B Master AXIS_REF A logical reference to the master axis
B Slave AXIS_REF A logical reference to the slave axis
VAR_INPUT
B Execute BOOL Upon the rising edge, all other function block inputs are read and the function is initiated. To modify an input, change the value and re-trigger the execute input. FALSE
B CamTableID UINT A reference to the cam memory in the motion engine. UINT#0
E EngagePosition LREAL The master position (CamMasterShiftedCyclic: ) at which the slave starts following the master. Units are those of the cam master.See EngageData details below. parameter 1502 LREAL#0.0
V EngageWindow LREAL If the master is moving in the positive direction, the slave will engage when the master is at any position between EngagePosition + (EngageWindow).
If the master is moving in the negative direction, the slave will engage when the master is at any position between EngagePosition - (EngageWindow).
Units are those of the cam master.

1% of the CamMasterCycle
Default value is not accepted for AtAbsolutePosition EngageMode. See notes for details.
E Periodic BOOL If Periodic is FALSE, the cam profile will be run just once. This eliminates the need to disengage the slave with . When Periodic is TRUE, the cam profile will repeat.until or is executed. Y_CamOutY_CamOutMC_Stop FALSE
V EngageData Yt_EngageData Structure containing details to specify how the slave will engage. All zeros in structure
VAR_OUTPUT
B InSync BOOL Set high when the axis or group is synchronized with the axis or group it is commanded to follow. Synchronized means that the two are position locked, any transitional period required to achieve synchronization has been completed.
E Busy BOOL Set high upon the rising edge of the Execute input, and reset when Done, CommandAborted, or Error is true. In the case of a function block with an Enable input, a Busy output indicates the function is operating, but not ready to provide Valid information. (No Error)
E Active BOOL For buffered modes, this output is set high at the moment the block takes control of the axis. For non buffered modes, the outputs Busy and Active have the same value.
E CommandAborted BOOL Set high if motion is aborted by another motion command or MC_Stop. This output is cleared with the same behavior as the Done output.
B Error BOOL Set high if an error has occurred during the execution of the function block. This output is cleared when 'Execute' or 'Enable' goes low.
E ErrorID UINT If Error is true, this output provides the Error ID. This output is reset when 'Execute' or 'Enable' goes low.
E EndOfProfile
BOOL Pulsed output signaling the cyclic end of a CAM Profile

Notes

Error Description

See the Function Block ErrorID List

Example 1

Below is a camming example with a CamTable loaded into CamTableID 1 using Y_CamStructSelect.


First, Y_CamStructSelect must be executed to load the CamTable into CamTableID 1.


Once CamTableID has been properly populated, Y_CamIn can be executed with Axis1 and Axis2 as the Master and Slave, respectively. The two axis are at standstill in this example, so only the Busy output is TRUE.


Once the two axis are in a cam relationship, the function blocks InSync and Active outputs will return TRUE, as shown below:



Example 2

Cascaded camming: Four levels of cascaded camming is allowed. Master - Slave1, Slave1 - Slave2, Slave2 - Slave3, Slave3 - Slave4 is valid.

Image


Example 3

Different engage modes for the start of the cam.


Start Mode: AtPosition (INT#0)

Image



Image

Start Mode: Immediate (INT#1)




Image


Start Mode: Linked (INT#2)

Start Mode: AtAbsolutePosition (INT#3)

 


This help information is valid for iCube Engineer Online Help 2025.6

Copyright © 2025 YASKAWA EUROPE GmbH and © 2025 YASKAWA America, Inc.