beautypg.com

Error description, Example 1 – Yaskawa MotionWorks IEC Toolboxes User Manual

Page 495

background image

PLCopen Toolbox: Function Blocks

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

482

Output Bits: Boolean Outputs are exclusive

Data Validation

The data passed into the function block will be validated at run time.

All TrackNumbers must be in the range of 1 ~ 32 (corresponds to bit locations in EnableMask).

AxisDirection must be 0, any other number will default to 0. (values 1 and 2 not supported at this time)

CamSwitchMode must be 0 or 1, any other number will default to 0.

The total number of switches must be less than or equal to 256.

Error Description

ErrorID

Meaning

0

No error

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.

10061

MasterType is something other than 0 or 1.

10062

MachineCycle must be a positive value if MasterType = 0

10063

LastSwitch is set outside the 0-255 range.

10064

Track Number outside the 0-31 range.

10065

FirstOnPosition is not equal to 0.

10066

LastOnPosition is not equal to 0.

10067

AxisDirection is not equal to 0.

10068

CamSwitchMode is not equal to 0.

10069

Duration is set to 0 or a negative value.

10070

OnCompensationScaler is set to an invalid value.

10071

OffCompensationScaler is set to an invalid value.

10072

ImproperOnPos_SetError

10073

OnOffPosition_Error

Example 1:

Consider the PLS requirement shown in the figure below. There are 4 tracks (0, 1, 2, 3) in the set up and a total
of 5 switches (0, 1, 2, 3, 4).

Track 0 has 2 switches associated with it.

Switch 0: On Position : 2 degrees