AMX instruction manual AXC-232++ statements, AXC-232++ Program Statements

Page 17

Programming

AXC-232++ statements

The Axcess program of the AXC-232++ communicates with the AXC-EM as Device 0. Its device communicates with the RS232/422 Input/Output (I/O) of the AXC-232++ as Device 1. The following table lists AXC-232++ statements.

AXC-232++ Program Statements

Statement

Function

 

 

CREATE_BUFFER

Places strings that come from the AXC-EM into buffer. If no

0,buffer

CREATE_BUFFER 0 exists, the incoming strings from the AXC-EM are sent

 

out the RS232 port.

 

 

CREATE_BUFFER

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

1,buffer

CREATE_BUFFER 1, exists, the incoming strings are sent to the AXC-EM.

 

 

CREATE_BUFFER

Places commands (i.e. SEND_COMMANDs) that come from the AXlink Master

2,buffer

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

Places levels sent by the AXC-EM for level in variable.

0,level,variable

 

 

 

OFF[0,channel]

• Sends a RELEASE to the AXC-EM.

 

• Sends 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 AXC-EM.

 

• 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

Sends command to the AXC-EM. Provides support for commands like 'RDS'.

0,command

 

 

 

SEND_COMMAND

Sends command to the AXC-232++ as if the AXC-EM had sent it.

1,command

 

 

 

SEND_COMMAND

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

AXC_232,

 

'BAUDHIGH'

 

 

 

SEND_COMMAND

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

AXC_232, 'BAUDLOW'

 

 

 

SEND_COMMAND

Enables placement of characters in the buffer specified by

AXC_232, 'CB1ON'

CREATE_BUFFER 1.

 

 

SEND_COMMAND

Disables placement of characters in the buffer specified by

AXC_232, 'CB1OFF'

CREATE_BUFFER 1.

 

 

SEND_LEVEL

Sends variable as the value for level..

0,level,variable

 

 

 

SEND_STRING

Sends string to the AXC-EM.

0,string

 

 

 

SEND_STRING

Sends string out the RS-232 port.

1,string

 

 

 

AXC-232++ RS-232/422/485 Interface Card

13

 

 

 

 

Image 17
Contents AXC-232++ Page Table of Contents AXC-232++ RS-232/422/485 Interface Card Introduction SpecificationsSpecifications Baud rates 300, 600, 1200 , 4800, 9600, 19200 Setting the Internal Jumpers Installation and WiringSetting jumper JP1 to terminate RS-422 input with 100 ohms Setting jumper JP2 to set the RS-422 port for RS-485 useRS-232/422 DIP Switch Settings Setting the RS-232/422 DIP SwitchPreparing captive wires Wiring Devices to the AXC-232++Using RS-232 Card Edge PinoutsUsing RS-485 Using RS-422Using Hardware Handshaking Installing the AXC-232++ in a CardFrameReplacing the Lithium Batteries Lithium battery and socketInstallation and Wiring Programming SendCommandsAXC-232++ SendCommands Sendcommand AXC232,CTSPSH Sendcommand AXC232,CHARD-10Sendcommand AXC232,CTSPSHF Sendcommand AXC232,EOFFAxcess program characteristics SendString Escape Sequences SendString Escape SequencesAXC-232++ Program Statements AXC-232++ statementsXmodem Timing Commands Xmodem Timing CommandsAXlink Master Statements AXlink Master StatementsReserved Channels Axcess Master ModeReserved Channels RevisionLast9/12/05