
42 | NEC PD COMMS TOOL - USER’S GUIDE
Chapter
5
Scripting Language
This chapter describes the format and syntax of the scripting language.
A script le is a simple text le that can be created and edited with any text editing application. Save the le with a .txt
extension. When a script le is loaded into the application, it will be parsed and any errors in the script will be reported.
Within the script le:
• Each command in the script must appear on a new line.
• Blank lines are allowed.
• Comment lines can be used by adding # as the rst character on each line.
• Multiple displays and operations can be specied in a script le.
Various commands are supported as follows:
SETPORT command
This command sets the RS232 COM port, or IP address of the display to communicate with.
Note: If no port or IP address is specied, then the port currently selected in Communications Interface will be used.
To specify an RS232 COM port use the following syntax where xx is the COM port number (e.g. COM1)
SETPORT COMxx
To use a TCP/IP address use the following syntax, where xxx.xxx.xxx.xxx is a numerical IP address in decimal format:
SETPORT xxx.xxx.xxx.xxx
Examples:
SETPORT 192.168.0.10
SETPORT COM3
FOREACHPORT command
This command allows operations to be performed on a range of IP addresses. If multiple displays are used, and
they have sequential IP addresses assigned, this command can be used to perform operations on each, rather than
specifying each IP address individually using the SETPORT command.
This command consists of a FOREACHPORT, and a matching ENDFOREACHPORT command. Any commands
specied between these lines will be performed on each of the IP addresses in the specied range.
Use the following syntax to specify an IP address range where xxx.xxx.xxx.xxx and yyy.yyy.yyy.yyy are numerical IP
Comentarios a estos manuales