-

Y_CA_CamSlaveLookup

Image

This function block returns the slave position corresponding to the given master position. This function block is used by Y_CA_CamSlaveRecover.

 Parameters

* Parameter Data Type Description Default
VAR_IN_OUT
B CamTable Yt_MS_CamStruct Cam data structure
VAR_INPUT
B Enable BOOL The function will continue to execute every scan while Enable is held high and there are no errors. FALSE
V MasterPosition LREAL T The position of the master axis for which the corresponding slave position is required. LREAL#0.0
VAR_OUTPUT
B Valid
BOOL Indicates that the function is operating normally and the outputs of the function are valid.
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.
B SlavePosition LREAL The slave position that relates to the master as described in the CamTable.


 Notes

This function provides the exact slave position that corresponds to the MasterPostion input by interpolating the CamTable. Consider the following CamTable:

If the MasterPosition is 15, the corresponding SlavePosition is 2.5. (50% of the value between two master points is used to determine the value 50% between the corresponding slave points.)

This function determines the equivalent slave position by looking in the CamTable only, It does not include any other cam adjustments that may have been applied using any of the Y_CamAdjust function blocks.


 Error Description

Refer to the Function Block ErrorID List .


 Example

In the example shown below, the slave position corresponding to a master position of 10.0 is calculated. The slave position from the Y_CA_CamSlaveLookup FB will be 9.9196950.


Image




 


This help information is valid for iCube Engineer Online Help 2025.6

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