User manual
Toolbox 32 User Manual 1.47d www.cse-semaphore.com/mykingfisher
Page
100
Ladder Logic - Report Printer
Prints a text file to a serial printer. The text file may contain RTU variables. The text file is compiled with the
ladder logic and stored in the RTU. Requires driver REPORT.Dxx.
Comment: A 12-character description.
Filename: The filename is automatically generated and a text file is created with that name. The file can
then be edited and various variables and text added as detailed below. When the ladder logic is compiled,
the text file is included with the compiled code.
Port: (1-16) The serial port to print from.
Report File: The report file has 3 sections: Text, Variables and End.
• TEXT: This section contains all the text and variables that will be sent to the serial printer line by line. A
variable is included by writing a % followed by an integer (1-65535) and then declaring the variable
under the Variables section. Eg: Pump 1 Starts Today: %1 (%1 is then declared under the variables
section)
• VARIABLES: All the live variable information is declared in this section. Variables may include local
registers (#R), network registers (#N), system registers (#Y) and any other parameter that can be used
in ladder logic. The number and order of Variable declarations must match the number and order of
variables (%n) used in the Text section. There is no error checking.
• END: Denotes the end of the report file.
Example report file:
TEXT:
Pump 1 Starts Today: %1
Pump 1 Status: %2
PC-1 Battery Status: %3
RTU2 Comms Status: %4
VARIABLES:
#R1 %05i
#R2.1 %b STOPPED RUNNING
#DI13.3 %b LOW OK
#YLST2.1 %b OK FAIL
END