8ć18, 9 expressions and logical addressing – Rockwell Automation 1775-S4B,D17756.5.3 User Manual SCANNER/MSG HND User Manual
Page 86

Using Symbols and Expressions
in Report Generation
Chapter 8
8Ć18
The 1775-S4B scanner returns the value 5.
NOTE: If you attempt to divide a value by zero, the 1775-S4B scanner
returns error code 20.
You can also use expressions inside a logical address. This use of
expressions enables you to create indirect logical addresses which can
function similar to data table pointers. Some examples appear below:
Expression
Description
$N3:($CACC:1)
In this expression, CACC:1 supplies the word number for the
integer file 3.
$N(A+B):45
In this expression, A+B supplies the file number for integer word
45.
$N($D2:5):(QFR * @HRĆ12)
In this expression, word D2:5 supplies the file number, and
QFR * @HRĆ12 supplies the word number
$N3:($B4:($D5:(A+B)))
In this expression, we set up three levels of indirect addressing
(figure 8.2):
ąWord number of decimal file 5
ąWord number of binary file 4
ąWord number of integer file 3
8.5.9
Expressions and Logical
Addressing