beautypg.com

Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 128

background image

5Ć34

5.10.4

Errors Caused by the Divide, Modulo, and Multiply Divide

Instruction

These errors can occur when you are using the DIV, MOD, or MDV 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 signed 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 divide by

zero.

ENO is set according

to ERROR_ENO, and

Out contains the

largest signed value

allowed.

Define In2 (In3 for

MDV instructions) to

be a value other than

0.