
Professional Control Solutions LLC 3804 Parchment Circle Henrico, VA 23233-7034
804-677-6794 info@professionalcontrolsolutions.com
www.professionalcontrolsolutions.com
Device Notes
Commands implemented by this interface include those that are commonly used and shared between
various LW400 devices. Several of the LW400 commands have been omitted and may be executed using
the PASSTHRU command.
A periodic poll will return the power state and the total number of hours used by the device. Should the
LW400 shift into sleep mode, it will be automatically shifted back into power-on mode.
Programming Notes
The COMM module imposes synchronous operation i.e. the COMM will not send a command to the
LW400 until it has gotten a response or a timeout from the previous command.
A queue is implemented so that the commands from can be stacked. Commands are pulled off the queue
(1) when a reply is received or, (2) after the reply timer times out (200 milliseconds). The device is
polled every 10 seconds to return the power state and the input selected.
The Request commands return the state that is currently stored in the COMM module. They do
NOT send a new Request to the device. The COMM module states are updated either by the periodic
poll or by the enforced feedback. When a state changes, the UI is automatically informed.
Adding Functions to Modules
Commands to the device
This module supplies a mechanism to allow additional device features to be added to software using the
module. This is the PASSTHRU command, which allows protocol strings to be passed through the
module. The device-specific protocol must be known in order to use this feature.
As an example, suppose that a module for a projector has not implemented the 'white balance adjustment'
feature. The command that the projector protocol requires is 03H, 10H, 05H, 14H, followed by a
checksum. The documentation for the PASSTHRU command specifies that the module will
automatically generate the checksum. In this case, the following string should be sent from
the UI code to implement 'white balance adjustment'.
send_command vdvDevice,"'PASSTHRU=',$03,$10,$05,$14"
The reason to use PASSTHRU instead of sending a protocol string directly to the device port is that the
device may require command queuing, calculation of checksums, or other internal processing, which
would not be done if the string was sent directly. Because of this, it is best to filter all communication TO