Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 131

Advertising
background image

5Ć37

5.10.7

Errors Caused by the Square Root Instruction

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

are logged in the error log.

If this error occurs:

Then:

Do the following:

The result of the

arithmetic calculation

is too large for Out.

ENO is set according

to ERROR_ENO, and

Out contains the

largest positive value

allowed for its data

type.

Specify a larger data

type for Out. For

example, if you are

using integers, specify

the data type as a

double integer.

Cannot take the

square root of a

negative number

ENO is set according

to ERROR_ENO, and

Out contains the

square root of the

absolute value of In.

Make sure the value of

In is positive.

Advertising