Kramer Electronics VP-14x1 Instruction Codes for the VP-14xl, Sample VP-14xl Control Commands

Page 12

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 front-panel, then these bits are set with the OUTPUT NUMBER which was switched. For other operations, these bits are defined according to the table.

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

0–close

Output bit:

1, 2, 4, 5

 

PORT

1–open

O0–O5 = output # or 0 for all outputs

 

 

 

O6–0 = Tx; 1 = Rx

 

 

 

 

 

2D

READS THE STATUS OF A PORT

0–open

Output bit:

2, 3, 4, 5

 

 

 

O0–O5 = output #

 

 

 

 

O6–0 = Tx; 1 = Rx

 

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 RS-232/Direct command from any input. In this case the instruction does not modify previously set output numbers, allowing the setting of multiple outputs for the Direct command. If O6 = 1 (Rx), the command defines/reads the definition of the output # (1, 2 or 3) to pass the reply from the output to inputs. In this case, the instruction resets a previously set output number, preventing the setting of multiple outputs for the reply.

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 power-on or on reception of command 44 or 45, any received bytes are analyzed to see whether it is a command 44 or 45. If not, it is transmitted to the output based on the existing setup. If the analyzed bytes are a command 44 or 45, the unit waits for the other 3 bytes and interprets them as a Protocol 2000 command. The command is executed if relevant to this machine number or discarded if not.

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

Image 12
Contents Model Contents TablesIntroduction Getting StartedQuick Start Getting Started Overview Feature Function Defining the VP-14xl RS-232 Port ExtenderConnecting the VP-14xl RS-232 Port Extender Connecting the VP-14xl RS-232 Port ExtenderSetting the DIP-switches on the VP-14xl Setting the RS-485 Bus TerminationVP-14xl DIP-switch Functions Setting the Addr DIP-switches Setting the Baud DIP-switchesSelecting Hardware/Software Mode Technical Specifications Hardware ModeSoftware Mode Protocol Command Definition Serial Port PinoutsTable of Hex Codes for Serial Communication Protocol Pin D-sub Serial Port PinoutsSample VP-14xl Control Commands Command Description ReplyInstruction Codes for the VP-14xl Only the first purchase customer may enforce this warranty We welcome your questions, comments, and feedback