-

Y_WriteCamTable

Image
Y_WriteCamTablecopies a cam table from the memory into the motion memory.application program

Parameters

* Parameter Data Type Description Default
VAR_IN_OUT
V Data
Yt_MS_CamStruct Structure containing the master and slave position relationships.
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
V StartIndex UDINT Index into cam table in bytes (as used with Y_Cam_Struct). UDINT#0
V EndIndex UDINT Index into cam table in bytes (as used with Y_Cam_Struct). 0 is interpreted as the maximum index. UDINT#0
V BlockSize UDINT Size of cam data in bytes copied per application task rate (if BlockSize is unconnected, then the full amount). UDINT#0
VAR_OUTPUT
B
Done
BOOL Set high when the commanded action has completed successfully. If another block takes control before the action is completed, the Done output will not be set. This output is reset when Execute goes low.
B 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)
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.

Notes

Error Description

See the Function Block ErrorID List

Example

Y_WriteCamTable writing the data from the CamData variable into the CamTableID 1 in the motion memory.

CamData is populated with Master and Slave positions in addition to having the proper TableType and DataSize specified.



 


This help information is valid for iCube Engineer Online Help 2025.6

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