Axb-232++ program statements – AMX AXlink Bus Controllers AXB-232++ User Manual

Page 17

Advertising
background image

Programming

13

AXB-232++ RS-232/422/485 Interface

AXB-232++ Program Statements

The Axcess program of the AXB-232++ communicates with the master as Device 0. Its device

communicates with the RS232/422 Input/Output (I/O) of the AXB-232++ as Device 1. The

following table lists AXB-232++ statements.

AXB-232++ Program Statements

Statement

Function

CREATE_BUFFER

0,buffer

Places strings that come from the Master into buffer. If no

CREATE_BUFFER

0

exists, the incoming strings from the Master are sent out the RS232 port.

CREATE_BUFFER

1,buffer

Places strings that come from the RS-232 port into buffer. If no

CREATE_BUFFER 1

, exists, the incoming strings are sent to the Master.

CREATE_BUFFER

2,buffer

Places commands (i.e.

SEND_COMMANDs

) that come from the AXlink Master

into the buffer. Each command will be preceded by 2 characters: The first char-
acter will always be an '*', the second character is the length of the command,
the remaining n characters (as given in the second character) are the
command itself.

CREATE_LEVEL

0,level,variable

Places levels sent by the master for level in variable.

OFF[0,channel]

• Sends a RELEASE to the Master.

• Sends a message that channel is off.

OFF[1,channel]

Turns off a channel. This command has no external effect. It can be used as
status.

ON[0,channel]

• Sends a PUSH to the Master.

• Sends a message that channel is on.

ON[1,channel]

Turns on channel. This command has no external effect. It can be used as sta-
tus.

SEND_COMMAND

0,command

Sends command to the Master. Provides support for commands like

'RDS'

.

SEND_COMMAND

1,command

Sends command to the AXB-232++ as if the Master had sent it.

SEND_COMMAND

AXB_232,

'BAUDHIGH'

Sets the baud rate to 115.2k (DIP switch set to 300).

SEND_COMMAND

AXB_232, 'BAUDLOW'

Sets the baud rate to 300 (DIP switch set to 300).

SEND_COMMAND

AXB_232, 'CB1ON'

Enables placement of characters in the buffer specified by

CREATE_BUFFER 1

.

SEND_COMMAND

AXB_232, 'CB1OFF'

Disables placement of characters in the buffer specified by

CREATE_BUFFER 1

.

SEND_LEVEL

0,level,variable

Sends variable as the value for level.

SEND_STRING

0,string

Sends string to the Master.

SEND_STRING

1,string

Sends string out the RS-232 port.

Advertising