Program action – Rockwell Automation 1794-XXXX FLEX I/O High-Density Analog Modules User Manual
Page 78

Publication 1794-UM062A-EN-P - September 2012
70
Module Programming
PLC-3 Family Sample Program Structure for a 1794-OE4 Module
Program Action
At power-up in RUN mode, or when the processor is switched from PROG to
RUN, the user program enables a block transfer read. Then it initiates a block
transfer write to configure the module and send data values.
Thereafter, the program continuously performs read block transfers and write
block transfers.
PLC-3 Family Sample Program Structure for a 1794-IE4XOE2 Module
EN
BTR
BLOCK TRANSFER READ
RACK:
GROUP:
SLOT:
DATA FILE:
7
1
0
B7:0
LENGTH:
CONTROL:
1
B6:0
05
B6:0
15
DN
ER
Block Transfer
Read Done Bit
B6:0
Block Transfer
Write Done Bit
12
15
13
Enable
Done
Error
EN
BTR
BLOCK TRANSFER WRITE
RACK:
GROUP:
SLOT:
DATA FILE:
7
1
0
B8:0
LENGTH:
CONTROL:
14
B6:0
DN
ER
02
05
03
Enable
Done
Error
1
2
TIP
You must create the data file for the block transfers before you enter
the block transfer instructions
EN
BTR
BLOCK TRANSFER READ
RACK:
GROUP:
SLOT:
DATA FILE:
7
2
0
B10:0
LENGTH:
CONTROL:
5
B9:0
05
B9:0
15
DN
ER
Block Transfer
Read Done Bit
B9:0
Block Transfer
Write Done Bit
EN
BTR
BLOCK TRANSFER WRITE
RACK:
GROUP:
SLOT:
DATA FILE:
7
2
0
B11:0
LENGTH:
CONTROL:
8
B9:0
DN
ER
1
2