Allen-Bradley ControlLogix System 1756-L1 User Manual page 93

Hide thumbs Also See for ControlLogix System 1756-L1:
Table of Contents

Advertisement

Read integers from a PLC-5 controller
EXAMPLE
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.
condition
message.EN
message.DN
Write integers to a PLC-5 controller
EXAMPLE
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
other controller.
e
condition
fal_control.DN
message.EN
Allen-Bradley HMIs
The following examples show how to use a buffer of INTs
/
fal_control
fal_control
/
Where:
dint_array
int_buffer
Communicate with Another Controller over an EtherNet/IP Network
Type - Unconfigured
Message Control
RES
File Arith/Logical
Control
Length
Position
Mode
Dest
Expression
RES
File Arith/Logical
Control
Length
Position
Mode
Dest
Expression
Type - Unconfigured
Message Control
Is an:
array of DINTs that are used in the ControlLogix controller
array of INTs with the same number of elements as
dint_array
MSG
message ...
FAL
fal_control
?
0
all
dint_array[fal_control.pos]
int_buffer[fal_control.pos]
FAL
fal_control
?
0
all
int_buffer[fal_control.pos]
dint_array[fal_control.pos]
MSG
message ...
Publication 1756-UM001E-EN-P - August 2002
5-17
EN
DN
ER
EN
DN
ER
EN
DN
ER
EN
DN
ER
42424

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents