Publication 1756-UM001E-EN-P - August 2002
Communicate with an RSView Project over a ControlNet™ Network
14-19
The following examples show how to use a buffer of INTs
EXAMPLE
Read integers from an RSView project
When
condition
turns on, reads 16-bit integer values (INTs) and stores them in
int_buffer
. Then the FAL instruction moves the values to
dint_array
. This converts the
values to 32-bit integers (DINTs), for use by other instructions in the ControlLogix
controller.
EXAMPLE
Write integers to an RSView project
When
condition
turns on, moves the values in
dint_array
to
int_buffer
. This converts the
values to 16-bit integers (INTs). Then the message instruction sends
int_buffer
to the
RSView project.
condition
/
message.EN
EN
DN
ER
Type - Unconfigured
Message Control
message ...
MSG
message.DN
RES
fal_control
EN
DN
ER
File Arith/Logical
Control
fal_control
Length
?
Position
0
Mode
all
Dest
dint_array[fal_control.pos]
Expression
int_buffer[fal_control.pos]
FAL
e
condition
RES
fal_control
EN
DN
ER
File Arith/Logical
Control
fal_control
Length
?
Position
0
Mode
all
Dest
int_buffer[fal_control.pos]
Expression
dint_array[fal_control.pos]
FAL
fal_control.DN
/
message.EN
EN
DN
ER
Type - Unconfigured
Message Control
message ...
MSG
42424
Where:
Is an:
dint_array
array of DINTs that are used in the ControlLogix controller
int_buffer
array of INTs with the same number of elements as
dint_array
Summary of Contents for controllogix 1756-L63
Page 1: ...ControlLogix System 1756 L1 L1Mx L55Mxx L63 User Manual Allen Bradley HMIs...
Page 4: ...Publication 1756 UM001E EN P August 2002 Summary of Changes 2 Notes...
Page 16: ...Publication 1756 UM001E EN P August 2002 Table of Contents x...
Page 268: ...Publication 1756 UM001E EN P August 2002 15 4 Monitor Connections Notes...
Page 276: ...Publication 1756 UM001E EN P August 2002 16 8 Communicate with a DeviceNet Device Notes...
Page 402: ...Publication 1756 UM001E EN P August 2002 24 22 Program Motion Control Notes...
Page 408: ...Publication 1756 UM001E EN P August 2002 25 6 Maintain the 1756 BA1 Battery Notes...
Page 418: ...Publication 1756 UM001E EN P August 2002 B 2 Estimate Execution Time...
Page 420: ...Publication 1756 UM001E EN P August 2002 C 2 Estimate Memory Use...
Page 422: ...Publication 1756 UM001E EN P August 2002 D 2 Determine When Data Is Updated Notes...
Page 424: ...Publication 1756 UM001E EN P August 2002 E 2 Reconfigure an I O module Notes...
Page 428: ...Publication 1756 UM001E EN P August 2002 4 Index...
Page 429: ...Publication 1756 UM001E EN P August 2002 Index 5 Allen Bradley HMIs...
Page 430: ...Publication 1756 UM001E EN P August 2002 6 Index...
Page 435: ...ControlLogix System User Manual Allen Bradley HMIs...