Project Spooler Manager Settings

The "Spooler Manager" transmits project events to a LPT or COM port. The events managed by the Spooler are: Alarm ON, Alarm ACK, Alarm OFF, System. Comm.Driver. The LPT port  needs the "printer spooler" service, which is normally always active in Windows, in order to be used. The "Spooler Manager" requires "data.spool" xml files, which are created in the project's "DATA" sub-folder, to save specific, such as the current row number and the spooler's buffer.

To change the  project's "Spooler Manager" properties, select the name of the project and use the Movicon "Properties Window".

 

The spooling management does not support texts with Unicode for printing events directly.

 

When the printer in use does not support ASCII code for formatting text (ie. as with many inkjet printers), you will need to set the print styles of each event with the "10 cpi" character option without setting any of the other style options.

 

 

Printer Port

The Port to be used to send texts to be printed is entered here. LPT ports from 1 to 3 and COM ports from 1 to 9 are supported.

When using the COM port, the format below can be set in the port's open parameters:

 

COMx:BAUD=9600 PARITY=N DATA=8 STOP=1

 

Read Interval Timeout

The value set in this property is used as a timeout upon the reception of two characters  (IOCTL_SERIAL_SET_TIMEOUTS) after the selected port has been opened.  You may need to change this value when using serial printers or printers that are very slow.

 

Read Timeout

The value set in this property is value is used as a timeout upon reception  (IOCTL_SERIAL_SET_TIMEOUTS) after the selected port has been opened. The default value is  10000 milliseconds.

 

Write Timeout

This value is used to set a transmission timeout (IOCTL_SERIAL_SET_TIMEOUTS) after the selected port has been opened.The default value is 10000 milliseconds.

 

# Lines per Page

This value allows you to decide how many printed lines are needed before sending the page end to the port. To print a continuous page you should enter the "0" value so that no change page takes place.  When using single sheets of paper you should enter the number of lines per sheet so that a change page takes place on the last line printed.

 

Events to be printed are sent immediately to the selected port. Laser or ink jet printers must be setup beforehand so their buffer contents are printed only when the end page character is received.

 

Max. Buffer Size

This property determines the buffer memory size in  Kbytes used for the spooler.  When the buffer is full, the oldest events will be removed from the buffer in function with the most recent ones and they will not be printed.  A message will be traced in the system log for each event removed from the Spooler Buffer:

 

"The Spooler Buffer has reached the maximum value. Entry '<event text>' has been removed"

 

The buffer memory is saved in the  "data.spool" file so that those events that are not printed due to unexpected application aborts can be printed.

 

Time From

The spooler can be made active for a specific time interval. The events which are generated outside this time interval will not be printed. This property is used to enter the tiime the interval starts in hours and minutes.

 

Time To

The spooler can be made active for a specific time interval. The events which are generated outside this time interval will not be printed. This property is used to enter the time the interval ends in hours and minutes.

 

Enable Spooler...

You can activate or deactivate the spooler for each event category (Alarm ON, Alarm ACK, etc). The spooler can also be activated or deactivated for each alarm threshold ( "Print" style properties) and for each Basic Script ( "Spooler" Script Debug Output properties ).

 

Event Style...

The message print style can be set for each event category. The following dialog  window will open when clicking on the  (...) command button of each event to set the print characters:

 

 

The meaning of these settings are as follows:

 

 

The direct event's printout (spooling) does not support text that uses Unicode.

 

When the printer in use does not support ASCII code for formatting text (ie. as with many inkjet printers), you will need to set the print styles of each event with the "10 cpi" character option without setting any of the other style options.

 

 

See Also