Plc 3 Program Example - AB Quality ALLEN-BRADLEY 1791 User Manual

Analog block i/o input/output modules
Table of Contents

Advertisement

Chapter 6
Programming Your Analog Module

PLC 3 Program Example

Program Action
At power up, the user program examines the BTR
done bit in the block transfer read file, initiates a
write block transfer to configure the module, and
then does consecutive read and write block
transfers continuously.
6-2
Block transfer instructions with the PLC-3 processor use one binary file in
a data table section for module location and other related data. This is the
block transfer control file. The block transfer data file stores data that you
want transferred to the module (when programming a block transfer write)
or from the module (when programming a block transfer read). The
address of the block transfer data files are stored in the block transfer
control file.
The programming terminal prompts you to create a control file when a
block transfer instruction is being programmed. The same block transfer
control file is used for both the read and write instructions for your
module. A different block transfer control file is required for every
module.
A sample program segment with block transfer instructions is shown in
Figure 6.1, and described below.
Figure 6.1
PLC 3 Family Sample Program Structure
Block Transfer
Read Done Bit
1
Block Transfer
Write Done Bit
2
BTR
BLOCK XFER READ
RACK:
XXX
GROUP:
X
MODULE:
X = XXXX
DATA:
XXXX:XXXX
LENGTH:
00
CNTL:
XXXX:XXXX
BTW
BLOCK XFER WRITE
RACK:
XXX
GROUP:
X
MODULE:
X = XXXX
DATA:
XXXX:XXXX
LENGTH:
00
CNTL:
XXXX:XXXX
Enable
EN
12
Done
DN
15
Error
ER
13
Enable
EN
02
Done
DN
05
Error
ER
03

Advertisement

Table of Contents
loading

Table of Contents