PureLink by Dtrovision
15
Chapter 4. Communication Code Configuration
4.1
Control Programmer’s Guide (Code Structure and Examples)
This section is designed for programmers who wish to create their own control programs using the
command code. All PureLink digital matrix switchers provide a simple character stream control used by
external control devices attached to a PureLink device. Command codes are used primarily for control,
during system installation and setup, and for diagnostic purposes.
4.2 Overview
Command code is a set of alphanumeric characters that combine to form control commands.
Command code strings are entered into a terminal emulation program (such as windows
HyperTerminal) running on an external control device. The control device (PC, third-party controller)
sends the commands to the system. Control devices must be able to send and receive ASCII or HEXA
code via an RS-232 or Ethernet port.
4.3 Command Code Formats
A command code is a series of command characters and numbers used to send commands to the
system. Commands include basic formulas for creating and disconnecting switches, as well as for
verifying the status of switches.
In a command code, each character is either general command (e.g., C for connect) or an identifier that
indicates what the following number designates (e.g.
, “O” and the number following it designate an “output
number”). The command code *255CI01O01! Can be interested as follows: (*) Starting the command code
(255) Switcher ID is 255 (C) Create connection on (I01) Input 01 to (O01) Output 01 (!) take the command.
Ack value (Acknowledge value: Response from Pure Link device) will be echoed back to the terminal screen
as the unit accepts them. When a command is successfully executed, all of the characters appear containing
the character “s” which stands for status. For example,
Ex 1) Command (Connect Input 1 to Output 1)
*255CI01O01!
Ack value
*255sC I01O01!
Ex 2) Command (Check Input connection status on Output 3)
*255?O03!
Ack Value
*255s? I03O03!