![background image](http://html.mh-extra.com/html/amx/axb-pccom/axb-pccom_instruction-manual_2937741011.webp)
Programming
7
AXB-PCCOM Communications Port Interface
Programming
Requests
Enter the numeric value only; do not enter the brackets.
Examples shown are in the Axcess programming language syntax.
All values expressed in brackets are true decimal values.
Replace the comma delimiter, as used in the examples, with the delimiter accepted by
your PC or RS-232 device. (Refer to your PC or device user's or reference guide.)
The DEVICE value is not the AXlink device code. It is the value incremented from the
AXB-PCCOM DEVICE value, which should be 0. If you configure the AXB-PCCOM
for multiple devices, the successive device values will be 1, 2, and 3.
Valid values for <LEVEL NO> are 0 through 7, and correspond to Axcess levels 1
through 8. (For example, 0 corresponds to 1, 1 corresponds to 2, and so on.)
CHECKSUM the sum of all bytes mod 256.
For the equation X mod Y = N, X is divided by Y, with the remainder being N
.
All examples are for an AXB-PCCOM set as AXlink device number 128, configured for
four devices
Request Commands
The following table lists the request commands sent to the AXB-PCCOM :
Requests sent to the AXB-PCCOM
Command
Packet Structure and Example
DO Push/Release
Syntax:
'*' <1> <DEVICE> <CHANNEL> <STATUS> <CHECKSUM>
"'*',1,0,1,1,45"
(Status Byte: 1 = Push; 0 = Release). Push channel 1 on device 0 (AXlink device
128).
Example:
"'*',1,3,255,0,45"
Release channel 255 on device 3 (AXlink device 131).
Get Bus Status
Syntax:
'*' <8> <CHECKSUM>
Example:
"'*',8,50"
Request bus status. The AXB-PCCOM responds with a BUS STATUS string.
Get Channel Status
Syntax:
'*' <6> <DEVICE> <CHANNEL> <CHECKSUM>
Example:
"'*',6,0,100,148"
Request the channel status for channel 100 on device 0 (AXlink device 128). The
AXB-PCCOM responds with a CHANNEL STATUS string.