Message processor: types of scripts. 🔒
2.8 Serial link scripts
To receive a message from a serial link, proceed as follows:
This type of script is used to receive information via a serial link (printer, ASCII PLC, etc.).
The script is hooked to the serial port in the communication port parameters window in the Configuration/Communication menu.
Only serial scripts are available in this drop-down list.
The message received is placed in the sMessage variable and the message length is returned in nLen.
2.9 TCP/IP script type
This type of script is used to receive information via a TCP/IP link (GALAXY Central, .Net, ...).
The script's IP parameters are defined in the prototype parameters.
The connection can be defined in TCP mode (ALERT requests or waits for the connection) or in UDP mode.
The message received is placed in the sMessage variable, the sender IP address in sSourceIPAddress and the sender port in sSourcePort. The message length is returned in nLen.
2.10 Alarm script
This type of script is used to receive information when the status of an alarm changes.
The script is attached to an alarm in the action list, in the alarm parameters window, via the Execute script command.
It must be hooked into all actions where you wish to activate the script. (Alarm, Normal return and Acknowledge).
The identifier of the requesting alarm is placed in the nAlarmId variable, the alarm message is placed in sMessage and the alarm status is returned via nAlarmStatus.
2.11 Mini message script (SMS)
This type of script is used to receive information from an SMS received via a GSM modem.
The script is hooked up to a GSM modem via the modem settings window.
Only mini SMS scripts are available in the drop-down list.
The SMS message received is placed in the sMessage variable and the sender GSM number in sNumGSM. The length of the SMS message is returned in nLen.
2.12 API/command line scripting
This type of script is used to receive information from a driver installed in ALERT (ESPA 444, ...).
The script is attached to the driver via the driver parameters window.
Only API/command line scripts are available in the drop-down list.
The message received is placed in the sMessage variable. The length of the message is returned in nLen.
2.13 Other type script
This type of script allows you to read information from a source without connection (database, files).
The script operates independently.