-

Y_CamStructSelect

Image
Y_CamStructSelectloads a cam table from the application memory area to the motion memory area and returns a CamTableID to be referenced when activating the Cam function.

Parameters

* Parameter Data Type Description Default
VAR_IN_OUT
B
CamTable
Yt_MS_CamStruct Cam data structure. Can be downloaded to the motion engine using Y_CamStructSelect.
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
V BlockSize UDINT Size of cam data in bytes copied per application task rate (if BlockSize is unconnected, then the full amount). UINT#0 (Entire CamStruct)
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.
B CamTableID UINT A reference to the cam memory in the motion engine.

Notes

◾Loads a cam file from the application program memory into the motion kernel memory.

◾To access cam data that has previously been assigned a CamTableID and resides in the motion kernel memory, use and . Y_ReadCamTable Y_WriteCamTable

◾Each application task scan, the function block copies a portion of data from the application program memory to the motion kernel memory. The portion is determined by the BlockSize input. If BlockSize is 0, the entire structure is copied in one scan. If the Cam structure is too large and the scan time too small, a watchdog error may occur.

◾Y_MS_CAM_STRUCT is any 'ANY' input, but the motion kernel memory checks that it starts with a valid Y_CAM_HEADER.

◾The application roprogrammer can adjust the size of the cam arrays by editing the Data Types worksheet.

◾If a CamTableID is no longer needed, the application program should release the cam memory using . Y_ReleaseCamTable

◾Refer to or more information regarding cam file creation. Camming Overview

◾The behavior of this function block has been modified in Firmware Release Version 1.2.3 to adhere to the PLCopen specification. Prior to that firmware release, the CamTableID was always output even after Execute was low.

Error Description

See the Function Block ErrorID List

 


This help information is valid for iCube Engineer Online Help 2025.6

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