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

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

Advertisement

Read integers from a PLC-5 controller
EXAMPLE
When serial_port[1].3 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.
serial_port[1].3
message.EN
message.DN
Write integers to a PLC-5 controller
EXAMPLE
When serial_port[1].3 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.
serial_port[1].3
fal_control.DN
message.EN
Allen-Bradley HMIs
The following examples show how to use a buffer of INTs
/
fal_control
RES
fal_control
RES
/
Where:
dint_array
int_buffer
Configure Dial-Up Communications
MSG
Type - Unconfigured
Message Control
FAL
File Arith/Logical
Control
Length
Position
Mode
Dest
dint_array[fal_control.pos]
Expression
int_buffer[fal_control.pos]
FAL
File Arith/Logical
Control
Length
Position
Mode
Dest
int_buffer[fal_control.pos]
Expression
dint_array[fal_control.pos]
MSG
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
Publication 1756-UM001E-EN-P - August 2002
EN
message ...
DN
ER
EN
fal_control
?
DN
0
all
ER
EN
fal_control
?
DN
0
all
ER
EN
message ...
DN
ER
23-7
42387

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents