10ć10 – Rockwell Automation 1775-S4B,D17756.5.3 User Manual SCANNER/MSG HND User Manual
Page 113

Using Commands in Report Generation
Chapter 10
10Ć10
If you enter:
P (5+3)
The 1775-S4B scanner returns the value:
8
If you enter:
P $N:($CACC:19)
In this example, an expression is used as part of a logical address. The
accumulated value of counter 19 in the expression selects a word in the
integer section of the data table. The 1775-S4B scanner prints out the
current value of the selected word.
Definition: To execute a procedure or nest procedure execution.
Format: @
Description: You can use the execute command line within a procedure to
nest procedure execution. By placing @
procedure, you can call for a procedure to execute within a procedure. This
type of procedure execution is called nesting. Nesting procedures is similar
to executing subroutines in a ladder diagram program. You can nest
procedures 3 levels in report generation. If you attempt to nest beyond 3
levels, the 1775-S4B displays an error code.
Example using the execute command:
Suppose you enter a procedure called @MAKEUP which contains the
following lines:
P ‘REPORT ITEMS’
@ITEMA
@ITEMB
You could call this procedure to execute from another procedure
@REPORT:
P ‘REPORT’
@MAKEUP
The 1775-S4B scanner displays the introductory line followed by the
execution of @MAKEUP.
10.3.2
Execute