Communication
3. Communication
3.1 Setting RS-232 Interface
The VPG can use USB to RS-232 adapter to connect the RS-232 interface on PC site. When
the USB to RS-232 adapter is used to plug in the USB Host Port (USB A Type), the system
will automatically set the RS-232 communication format to 115200, 8-N-1 and set the RS-232
interface format on PC site to the same to communicate with VPG.
3.2 Command Set
The basic form of the commands that can be recognized by the system is as follows:
Command [Parameter 0], [Parameter 1]… ;
At first, there must be a marker, then followed by a combination of parameters or markers or
nothing at all, and at last there must be a terminator. The terminator for the system is a
semicolon (;). Markers and parameters must be separated by space, comma (,), carriage
return (0DH), or line feed (0AH) to be more readable. The commands are all in ASCII codes,
and can be written by use of any text editing software. A marker can be written in upper or
lower case.
For example: ENABLE;
KEYBOARD LOCK;
When the system successfully receives a command, it will begin parsing the command, and
check if the parameters are in the acceptable range. If the check is all right, the execution will
start. During execution, if all is normal, the system will return an OK, otherwise an NG which
indicates NOGO.
For example:
OK;
NG; BOUNDARY ERROR:
The commands are described in the following subsections.
3.2.1 Abbreviations of Commands
In order to increase the efficiency of input commands, abbreviations are used to replace
certain commands.