Table of Hex Codes for Serial Communication (Protocol 2000)
O6…O0 – “OUTPUT”.
When switching (ie. instruction codes 1 and 2), the OUTPUT (7 bits) is set as the output number which is to be switched. Similarly, if switching is done via the machine’s
4th BYTE: Bit 7 – Defined as 1.
Bit 5 – Don’t care.
OVR – Machine number override. M4…M0 – MACHINE NUMBER.
Used to address machines in a system via their machine numbers. When several machines are controlled from a single serial port, they are usually configured together with each machine having an individual machine number. If the OVR bit is set, then all machine numbers will accept (implement) the command, and the addressed machine will reply.
For a single machine controlled via the serial port, always set M4…M0 = 1, and make sure that the machine itself is configured as MACHINE NUMBER = 1.
Table 9: Instruction Codes for the VP-14xl
| INSTRUCTION | DEFINITION FOR SPECIFIC INSTRUCTION | NOTE | |
# | DESCRIPTION | INPUT | OUTPUT |
|
2C | CONTROLS THE STATUS OF A | Output bit: | 1, 2, 4, 5 | |
| PORT |
| ||
|
|
| ||
|
|
|
| |
2D | READS THE STATUS OF A PORT | Output bit: | 2, 3, 4, 5 | |
|
|
|
| |
|
|
|
|
Note: All values in the table are hexadecimal, unless otherwise stated.
NOTES on Table 9:
NOTE 1 – When the PC sends this command, if the instruction is valid the unit replies by sending the PC the same 4 bytes that it was sent (except for the first byte where the Destination bit is set high).
NOTE 2 – If O6 = 0 (Tx) – This command defines/reads the definition of the output # (1, 2 or3) to pass the
NOTE 3 – The reply to this command is as follows: The same command and output codes as were sent are returned, and the input is assigned the value of the parameter that was read. The reply is per the definitions in command 44.
NOTE 4 – At initial
NOTE 5 – This command works only when the unit is configured for Software mode.
Table 10: Sample VP-14xl Control Commands
| Command | Description |
| Reply |
2C | 80 80 81 | Close all output ports for direct command | 6C | 80 80 81 |
2C | 80 C0 81 | Close all output ports for reply command | 6C | 80 C0 81 |
2C | 81 82 81 | Open port 2 for direct command | 6C | 81 82 81 |
2C | 81 C1 81 | Open port 1 for reply command | 6C | 81 C1 81 |
2D | 80 81 81 | Check status of port 1 for direct command. Port is closed | 6D | 80 81 81 |
2D | 80 82 81 | Check status of port 2 for direct command. Port is open | 6D | 81 82 81 |
2D | 80 C1 81 | Check status of port 1 for reply command. Port is open | 6D | 81 C1 81 |
2D | 80 C2 81 | Check status of port 2 for reply command. Port is closed | 6D | 80 C2 81 |
10 | KRAMER: SIMPLE CREATIVE TECHNOLOGY |