beautypg.com

8ć17 – Rockwell Automation 1775-S4B,D17756.5.3 User Manual SCANNER/MSG HND User Manual

Page 85

background image

Using Symbols and Expressions

in Report Generation

Chapter 8

8Ć17

If you do not enclose the entire expression in parentheses, the 1775-S4B
scanner displays an error code.

If you enter:

P (A/31)

The 1775-S4B scanner prints the status of decimal bit 31 of user symbol A.

If you enter:

P (@HR/015)

The 1775-S4B scanner prints the status of octal bit 15 of symbolic address
@HR.

Report generation supports the following arithmetic operators:

*—multiplication

%—division

+—addition

-—subtraction

Arithmetic operators allow you to perform arithmetic functions. For
example:

If you enter:

A=10
B=2
P (A*B)

The 1775-S4B scanner returns the value 20.

If you enter:

A=10
B=2
P (A%B)

8.5.8
Arithmetic Operations