Notes, Error description – Yaskawa MotionWorks IEC Toolboxes User Manual

Page 476

Advertising
background image

PLCopen Toolbox: Function Blocks

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

463

cycle" the machine by simulating
products using the TestTrigger input.

V

TestTrigger

BOOL

If TestMode is TRUE, then on the rising
edge of TestTrigger, the actual position
of the ProductAxis will be stored into
the RegistrationData STRUCT.

FALSE

VAR_OUTPUT

B

Valid

BOOL

Indicates that the outputs of the function are valid.

V

BufferLevel

BOOL

Indicates the number of products in the buffer by
subtracting UsePointer from StorePointer.

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.

B

ErrorID

UINT

If Error is true, this output provides the Error ID.
This output is reset when 'Execute' or 'Enable' goes
low.

Notes

The ProductBuffer function block manages only the “storing? activity and only updates the StorePointer.
Another part of your application must update the UsePointer and PrevUsePointer as the products leave
the machine. If these pointers are not updated, the function block will Error with code 10022, buffer
overrun.

The StorePointer and UsePointer are the “Head? and the “Tail? of the circular buffer. If more than one
“Use? of the latch data is required, they can be inserted into the chain outside of the ProductBufferStruct.

Both a cyclic (modularized) and unmodularized circular latch buffer are stored simultaneously.

TestMode can be switched on the fly without re enabling the function block. TestMode was added in v201.

See the

ProductBuffer eLearning Module

on Yaskawa's YouTube channel.

Error Description

ErrorID

Meaning

0

No error

4396

Axis latch function already in use.

4624

Axis latch function already in use.

4625

Axis ID does not correspond to an axis configured on the system. Verify the value of
AxisNum matches a logical axis number in the configuration. Tip: Make sure AXIS_REF is
properly declared as a VAR or VAR_GLOBAL in all relevant POUs.

4630

Trigger reference is not valid

4894

The specified virtual axis may not be used with this function block.

Advertising