Rockwell Automation 57C409 2 Channel Analog Input Module User Manual

Page 40

Advertising
background image

EĆ2

16 Bit Register Reference

Use the following method to reference a 16 bit register as a unit. Analog input

data, update period, interrupt control, and filter selection registers are typically

referenced this way. The symbolic name of each register should be as meaningul

as possible:
nnnnn IODEF SYMBOLIC_NAME%[ SLOT=s, REGISTER=r]

Bit Reference

Use the following method to reference individual bits on the module. Common

clock status and control bits are typically referenced this way. The symbolic name

of each bit should be as meaningful as possible:
nnnnn IODEF SYMBOLIC_NAME@[ SLOT=s, REGISTER=r,

BIT=b]

where:
nnnnn Ć BASIC statement number. This number may range from 1Ć32767.
SYMBOLIC_NAME% Ć A symbolic name chosen by the user and ending with (%).

This indicates an integer data type and all references will access register r".
SYMBOLIC_NAME@ Ć A symbolic name chosen by the user and ending with (@).

This indicates a boolean data type and all references will access bit number b"

in register r".
SLOT Ć Slot number that the module is plugged into. This number may range

from 0Ć15.
REGISTER Ć Specifies the register that is being referenced. This number may

range from 0Ć10.
BIT Ć Used with boolean data types only. Specifies the bit in the register that is

being referenced. This number may range from 0Ć15.

Examples of Local I/O Definitions

The following statement assigns the symbolic name POSITION% to register 0 of

the input module located in slot 4:
1020 IODEF POSITION%[ SLOT=4, REGISTER=0]
The following statement assigns the symbolic name

CCLK ON@ to bit 8 of register 4 on the input module located in slot 7:
2050 IODEF CCLK ON@[ SLOT=7, REGISTER=4, BIT=8]

Advertising