Programming Your Analog Module
Chapter 6
6-4
The following are sample programs for using your modules more
efficiently when operating with the PLC-3 or PLC-5 family processors.
These programs show you how to:
configure the module
read data from the module
update the output channels
Refer to the proper PLC-3 or PLC-5 documentation for additional
information on processor programming and data entry.
An analog block requires BTWs or discrete data to configure it and update
its output data. BTRs or discrete data are required to send back input data
and module status.
The following PLC-3 program can be altered to effectively address analog
block modules.
Figure 6.3
PLC3 Family Sample Program Structure
EN
BTR
BLOCK XFER READ
RACK:
GROUP:
MODULE:
DATA:
XXX
X
X = XXXX
XXXX:XXXX
LENGTH:
CNTL:
0
XXXX:XXXX
EN
BTW
BLOCK XFER WRITE
RACK:
GROUP:
MODULE:
DATA:
XXX
X
X = XXXX
XXXX:XXXX
DN
LENGTH:
CNTL:
0
XXXX:XXXX
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
MOV
SOURCE:
DESTINATION:
XXX
XXX
Pushbutton
Power-up
Bit
2
MOV
SOURCE:
DESTINATION:
XXX
XXX
(BTW LENGTH)
Pushbutton
Power-up
Bit
Block Transfer
Write Done Bit
3
(O 1)
Block Transfer
Write Done Bit
(BTW LENGTH)
4
27
Sample Programs for
Analog Block
PLC3 Family Processors