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

Page 80

Advertising
background image

Publication 1794-UM062A-EN-P - September 2012

72

Module Programming

Thereafter, the program continuously performs read block transfers to configure
the module.

The pushbutton allows the user to manually request a block transfer write.

PLC-5 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-5 Family Sample Program Structure for a 1794-IE4XOE2 Module

EN

BTR
BLOCK TRANSFER READ
RACK:
GROUP:
SLOT:

DATA FILE:

2
2
0

N15:0

LENGTH:

CONTROL:

1

N14:0

N14:0

15

DN

ER

BTR Enable Bit

EN

BTW
BLOCK TRANSFER WRITE
RACK:
GROUP:
SLOT:

DATA FILE:

2
2
0

N15:5

LENGTH:

CONTROL:

14

N14:5

DN

ER

1

2

N14:5

15

BTW Enable Bit

N14:5

15

BTW Enable Bit

N14:0

15

BTR Enable Bit

CONTINUOUS:

N

CONTINUOUS:

N

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

Advertising