4 configuration, 5 gateway_cms_ok@ function, 5 gateway_cmd_ok@ function – Rockwell Automation AutoMax R-Net Processor Module User Manual

Page 26

Advertising
background image

4Ć10

4.4

Configuration

Before running any application tasks, the system must be configured.

The major function of configuration is to assign meaningful symbolic

names to physical points in the system. This feature allows you to

construct application tasks using variable names instead of actual

physical locations.
The variables defined during configuration are termed common

variables. These are made available to BASIC and Control Block

application tasks using the COMMON statement. For Ladder

Logic/PC tasks, you use the PC task editor to designate them

common.
When configuring the AutoMax RĆNet Processor module, variable

names are assigned to memory locations in the dual port memory.

Once variables have been defined, they are accessible to any task on

any Processor in the rack. In AutoMax Version 3.0 systems, the

AutoMax RĆNet Processor module is configured as a Generic

module. To configure the AutoMax RĆNet Processor module, refer to

the ReSource AutoMax Programming Executive Instruction Manual

(JĆ3750).
In AutoMax Versions 1.0, 2.0, and all versions DCS 5000, a

configuration task must be created and loaded onto the Processor in

the rack before any application task can be executed. The Status and

Control Registers are defined using IODEF statements. These

variables are not transmitted over RĆNet. Memory locations within the

AutoMate image area are defined using RNETDEF statements. Refer

to the Configuration Task Instruction Manual (JĆ3649) for AutoMax

Version 1.0, 2.0, or DCS 5000 systems.
The following is the format of the RNETDEF statement:
nnnn

RNETDEF var_name[SLOT=slot number, &

REGISTER=register number]

where:
nnnn = configuration task line number.
var_name = name of the register or bit. The name must conform to

the system naming conventions for reals, integers (%), double

precision integers (!) or Booleans (@).
slot number = slot number of the AutoMax RĆNet Processor Module.

This number may range from 0 to 15.
register number = the octal register number in the following form:

0000.BB

where 0000 is the register number in octal, and BB is the bit number

in octal. The bit number may range from 0 to 17.

4.5

GATEWAY_CMD_OK@ Function

Application programs communicate with the AutoMax RĆNet

Processor module by defining the AutoMate image registers in the

dual port memory as described above. Commands to read and write

data over the network are initiated from the BASIC task by executing

the GATEWAY_CMD_OK@ function. GATEWAY_CMD_OK@ is a

Boolean function that performs data transfers and returns a TRUE

status if the operation is successful. If the function is FALSE, the

Advertising