beautypg.com

Camtablemanager, Parameters – Yaskawa MotionWorks IEC Toolboxes User Manual

Page 148

background image

Cam Toolbox: Function Blocks

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

135

CamTableManager

This function block serves as a FIFO buffer for CamTableID's. Each time a new CamTableID is created, it will
delete the memory allocated to the oldest CamTable by using the Y_RemoveCamTable function block from the
PLCopenPlus firmware library. This function block is used to clean up memory in applications which build cam
tables on the fly. A circular buffer of four cam tables is maintained in the CamTableManager. When the function
block is executed a fifth time, it releases the memory area of the oldest cam table ID. The controller can allocate
this memory area for new cam tables or application code.

Parameters

*

Parameter

Data
Type

Description

VAR_INPUT

Default

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

CamTableID

UINT

The most recent CamTableID create by Y_CamFileSelect
or Y_CamStructSelect

UINT#0

VAR_OUTPUT

B

Done

BOOL

Set high when the commanded action has been 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' or 'Enable' input, and
reset if Done, CommandAborted, or Error is true.

B

Error

BOOL

Set high if error has occurred during the execution of the function