beautypg.com

Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 157

background image

7Ć11

7.3.2

Errors Caused by the Convert Integer Data To BCD Instruction

These errors can occur when you are using the TO_BCD 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.

D Out contains the

maximum value alĆ

lowed for the data

type (9999 for inteĆ

gers and 99999999

for double integers)

D ENO is set accordĆ

ing to ERROR_ENO

Make sure the value

you want to convert to

BCD is within the

range Out supports.

Tried to convert a

negative value to

BCD.

D Out contains the

value of 0

D ENO is set accordĆ

ing to ERROR_ENO

Use a positive value

for In.