beautypg.com

Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 94

background image

4Ć34

4.9.1

Errors Caused by All Compare Instructions

These errors can occur when you are using the compare instructions in a program.

They are logged in the error log.

If this error occurs:

Then:

Do the following:

The array index is negative.

ENO is set according to ERROR_ENO,

and element zero of the array is used for the

instruction's operation.

Specify a valid array element.

The array index is too large.

ENO is set according to ERROR_ENO,

and the last element of the array is used for

the instruction's operation.

Specify a valid array element.

4.9.2

Errors Caused by the Limit Instruction

These errors can occur when you are using the LIMIT instruction in a program. They are

logged in the error log.

If this error occurs:

Then:

Do the following:

The result is larger than what Out's data

type supports.

ENO is set according to ERROR_ENO,

and Out contains the largest signed value

allowed for the data type being used.

Specify a larger data type for Out. For

example, if you are using integers, specify

the data type as a double integer.

Minimum is greater than Maximum.

ENO is set according to ERROR_ENO,

and the values for Mn and Mx are swapped

before the limit operation is performed.

Make sure the value for Mx is larger than

that for Mn.