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

Getting Started in Report Generation
Chapter 5
5Ć5
Now type:
S4B> DI [ENTER]
DI is the abbreviation for the directory command. The directory command
returns:
All stored procedure names
Extended address of all procedures
Number of words used by each procedure
If you made a mistake while entering the procedure, you can edit your
procedure. Editing instructions are discussed in chapter 7 of this manual.
In addition to commanding the execution of a procedure from the terminal,
you can use the message send instruction to execute a report generation
procedure from a ladder diagram program. You simply specify an extended
address of the 1775-S4B scanner which enables it to execute the procedure.
When the logic of the rung in the ladder diagram program is true, the Main
Processor Module (cat. no. 1775-LI, L2), or the (CPU), alerts the
1775-S4B scanner to execute the specified procedure. The CPU continues
to scan the rest of the program after alerting the 1775-S4B scanner. The
1775-S4B scanner then executes the procedures and turns on the done bit if
the procedure executes properly. If a problem occurs during procedure
execution, the 1775-S4B scanner turns on the error bit, and an error code
displays in the MSG instruction block.
The message instruction requires the following parameters:
Control file address
Channel address
Message type
Procedure name
The control file address is the data table file address that the PLC-3
processor uses to store the message status bits, error code, channel address,
and procedure name. The control file should be a binary file and can have a
starting word address other than zero. The CPU uses this file to locate the
1775-S4B scanner to execute the procedure. This file must be at least ten
words long.
5.5
Executing Procedures from
the Message Instruction in
the User Program