Rockwell Automation 57C419 5V-24V DC Input Module User Manual

Page 43

Advertising
background image

EĆ5

32 Bit Register Reference

WARNING

IF YOU USE DOUBLE INTEGER VARIABLES IN THIS INSTANCE, YOU MUST

IMPLEMENT A SOFTWARE HANDSHAKE TO ENSURE THAT BOTH THE LEAST

SIGNIFICANT AND MOST SIGNIFICANT 16 BITS HAVE BEEN TRANSMITTED

BEFORE THEY ARE READ BY THE RECEIVING APPLICATION PROGRAM.

FAILURE TO OBSERVE THIS PRECAUTION COULD RESULT IN BODILY

INJURY OR DAMAGE TO EQUIPMENT.

Use the following method to reference all 32 inputs as a single register. Only one

statement is necessary. The symbolic name of the register should be as

meaningful as possible:
nnnnn RIODEF SYMBOLIC_NAME![ MASTER_SLOT=m,

ăăăDROP=d, SLOT=s, REGISTER=0]
When referenced as a long register of 32 bits, register 0 becomes the high order

16 bits. A 32 bit register reference over remote I/O should be used with care since

the remote I/O system cannot guarantee that the entire 32 bit value will be moved

as a single operation. For more information refer to the DCS 5000 Remote I/O

Instruction Manual (JĆ3629).

16 Bit Register Reference

Use the following method to reference a 16 bit register as a single input. A

maximum of four statements can be included in the configuration task (one for

each register). The symbolic name of each register should be as meaningful as

possible:
nnnnn RIODEF SYMBOLIC_NAME%[ MASTER SLOT=m,

DROP=d, SLOT=s, REGISTER=r]

Bit Reference

Use the following method to reference individual inputs on the module. For the

entire module, a maximum of 48 statements can be included in the configuration

task (one for each bit that can be read or written by the user). The symbolic name

of each bit should be as meaningful as possible:
nnnnn RIODEF SYMBOLIC_NAME@[ MASTER SLOT=m,

ăăăDROP=d, 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 a long integer data type and all references will access registers 0

and 1.
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".
m Ć Slot number of the master remote I/O module.
d Ć Drop number of the slave remote I/O module that is in the same rack as the

input module. This number may range from 1Ć7.
s Ć Slot number that the module is plugged into. This number may range from

0Ć15.

Advertising