beautypg.com

Rockwell Automation 1775-S4B,D17756.5.3 User Manual SCANNER/MSG HND User Manual

Page 122

background image

Using Commands in Report Generation

Chapter 10

10Ć19

When assigning a numeric value to an address, do not attempt to assign a
value which is too large for that address. This causes the 1775-S4B scanner
to generate error code 89. The ranges include:

-32,768 to +32,767 for signed integer values.
0 to 65,535 for unsigned integer values.

When assigning a user symbol to an address, make sure that the user
symbol contains a numeric value, not a string. You cannot assign a numeric
value larger than 32-bits (-2,147,483,648 to +2,147,483,647).

Examples using the assignment command:

If you enter:

A = $N:3

The 1775-S4B scanner copies the contents of integer file 0, word 3 into
user symbol A.

If we reverse the command line:

$N:3 = A

The 1775-S4B scanner copies the data in user symbol A into integer file 0,
word 3.

If you enter:

US_2 = 1738

The 1775-S4B scanner copies the integer 1,738 into the user symbol US_2.

If you enter:

US_3==?’YES’

The 1775-S4B scanner copies the string YES into the interprocedural user
symbol US_3.