2 command codes – Rockwell Automation AutoMax R-Net Processor Module User Manual

Page 24

Advertising
background image

4Ć8

4.1.3

Command Buffer Area

The command buffers in the dual port memory are used to store the

commands for the AutoMax RĆNet Processor module that are

generated by the GATEWAY_CMD_OK@ function. The buffers are

controlled by the GATEWAY_CMD_OK@ function and are not used

by the user.

4.2

Command Codes

The AutoMax RĆNet Processor module communicates over RĆNet

using the AutoMate communications protocol. A subset of the

AutoMate command codes is supported to specify what action is to

be taken by the AutoMax RĆNet Processor module. These codes are

used in the BASIC program and are initiated by executing a

GATEWAY_CMD_OK@ function. The AutoMax RĆNet Processor

module can initiate only commands 1 through 4. However, it can

respond to all of the commands listed below when initiated by an

AutoMate.
OCTAL

AutoMate

CODE

COMMAND NAME

INSTRUCTION

001

Read Point

002

Write Point

003

Read Register

GETRNT

004

Write Register

SNDRNT

013

Read Register List

014

Write Multiple Points

050

Who Are You

4.2.1

Read Point

The Read Point command (001) is used to read the value of any

single bit within a register. When initiated by the

GATEWAY_CMD_OK@ function, this command will transfer up to 640

sequential bits from an AutoMate register, starting at any bit position,

to any bit position in the AutoMax RĆNet Processor module's

AutoMate image registers. Because of the processing time required

to align the bits, it is more efficient to transfer multiples of 16 bits with

the Read Register command (003).

4.2.2

Write Point

The Write Point command (002) is used to write a 1" or 0" into any

bit location within a register without affecting any other bits in that

register. When initiated by the GATEWAY_CMD_OK@ function, this

command will transfer up to 640 sequential bits from the AutoMax

RĆNet Processor module's AutoMate image registers, starting at any

bit position, to any bit position in an AutoMate register. Because of

the processing time required to align the bits, it is more efficient to

transfer multiples of 16 bits with the Write Register command (004).

Advertising