Rockwell Automation 1794-IF4I, -OF4I, IF2XOF2I, -IF4IXT, -IF4ICFXT, -OF4IXT, IF2XOF2IXT FLEX I/O Isolated Analog Modules User Manual

Page 34

Advertising
background image

Publication 1794-6.5.8 - January 2010

34 Module Programming

Figure 1.1

PLC-3 Family Sample Program Structure for a 1794-IF4I Module

Figure 1.2

PLC-3 Family Sample Program Structure for a 1794-OF4I Module

EN

BTR

BLOCK XFER READ
RACK:
GROUP:
MODULE:
CONTROL:

02

1
0

#B3:0

DATA FILE:
LENGTH:

#B4:0

7

EN

BTW

BLOCK XFER WRITE
RACK:
GROUP:
MODULE:

CONTROL:

02

1
0

#B3:0

DN

DATA FILE:
LENGTH:

#B5:0

5

B3:0

05

Block Transfer
Read Done Bit

ER

Enable

Done

Error

12

15

13

Enable

Done

Error

02

05

03

Block Transfer
Write Done Bit

1

2

DN

ER

B3:0

15

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.

Thereafter, the program continuously
performs read block transfers.

Note: You must create the data file
for the block transfers before you
enter the block transfer instructions.

B4:5

15

Power-up Bit

B4:5

14

B4:5

15

B4:5

13

Power-up Bit

FP Bit

CF Bit

B5:4

15

IC Bit

3

Then it initiates a block transfer write to
configure the module if the power--up bit
is set.

This rung toggles the Initate Configuration
bit from 0 to 1 to 0

L

B5:4

14

EN

BTR

BLOCK XFER READ
RACK:
GROUP:
MODULE:
CONTROL:

02

0
0

#B6:0

DATA FILE:
LENGTH:

#B7:0

6

EN

BTW

BLOCK XFER WRITE
RACK:
GROUP:
MODULE:

CONTROL:

02

0
0

#B6:0

DN

DATA FILE:
LENGTH:

#B8:0

7

B6:0

05

Block Transfer
Read Done Bit

ER

Enable

Done

Error

12

15

13

Enable

Done

Error

02

05

03

Block Transfer
Write Done Bit

1

DN

ER

B6:0

15

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.

Thereafter, the program continuously
performs read block transfers and write
block transfers.

Note: You must create the data file
for the block transfers before you
enter the block transfer instructions.

3

2

B7:4

14

B7:4

15

B7:4

13

Power-up Bit

FP Bit

CF Bit

B8:6

15

IC Bit

This rung toggles the Initate Configuration
bit from 0 to 1 to 0

Then it initiates a block transfer write to
configure the module and send data
values.

L

B8:6

14

Advertising