Printer Commands SECTION 6 Functions and Methods
94
Typical Example
LogEvent("this is an event")
The message 'this is an event' appears as an event in the error log.
6-14 Printer Commands
6-14-1 ClearSpoolQueue
Syntax
returnstate = ClearSpoolQueue()
Remarks
Typical Example
ClearSpoolQueue()
Any messages (typically printed alarms) that are queued up waiting to be sent
to the CX-Supervisor Alarm/Message printer is discarded.
6-14-2 EnablePrinting
Syntax
returnstate = EnablePrinting(flag)
Remarks
Typical Example
EnablePrinting(FALSE) - Disables printing
EnablePrinting(TRUE) - Enables printing
While alarm printing is disabled, any new messages are stored but not printed.
When alarm printing is re-enabled, any pending messages are printed (if in
line mode) or added to the current page (if in page mode).
6-14-3 PrintActivePage
Syntax
returnstate = PrintActivePage(flag)
Remarks
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.
message string Contains the text string that is displayed in the
Error Log.
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.
flag bool 0 to disable, 1 to enable.