Notes – Yaskawa MotionWorks IEC User Manual

Page 259

Advertising
background image

PLCopenPlus Function Blocks for Motion Control 2013-04-13

251

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 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 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

• This function block requires that a cam file was previously loaded with
Y_CamFileSelect or

Y_CamStructSelect

.

• You must first populate the TableType and DataSize before the function
will execute without error. Remember that the Y_MS_CAM_STRUCT's
DataSize element is in bytes, so multiply by 16 to account for the number
of pairs expected (each LREAL is 8 bytes). If left at 0, the function will
result with ErrorID 4885.

• When reading the cam table, this function block shall not exceed the
EndIndex, the cam table size, or the number of elements in Data.

• If EndIndex=0, then it defaults to the cam table size.

• Each scan, the function block copies a portion of data from the motion
memory area to the application program memory. The BlockSize input
specifies the number of data pairs to transfer per scan. If BlockSize is 0,

Advertising