Troubleshoot Analog IO in PLC 5
Troubleshoot Analog IO in PLC 5
Troubleshoot Analog IO in PLC 5
For review, PLC-5 processors transfer discrete I/O data and status
data using discrete data transfers. Discrete transfers allow the
processor to transfer up to eight words per rack, and they occur
automatically during the processor's input and output scans.
Block transfers are a special type of data transfer that require ladder
logic instructions. Block transfers allow processors to transfer up to
64 words of data between themselves and analog modules.
Programming
System
Communications
System (Network)
Processor 1
Discrete Modules Analog
Modules
Data from
Key Input Devices Local I/O
Control
Discrete Transfers System
Outputs
Block Transfers
Machine/Process 1
Interpreting Block Transfer Status Bits
There are two block transfer instructions: BTR (block transfer read)
and BTW (block transfer write). The processor uses BTR and BTW
instructions as follows:
• BTW: When the rung goes true, the BTW instruction tells the
processor to write data stored in the data file to the specified
address.
• BTR: When the rung goes true, the BTR instruction tells the
processor to read data from a specified address and store it in the
data file.
Important: Every analog module must have one BTR and one
BTW instruction assigned to it.
Example: BTR and BTW Instructions
Note that the BTW instruction is used to send status and control
information to the module, while the BTR instruction is used to obtain
information from the module:
Example: BTR and BTW Instructions
Component Description
Module Type The type of analog module.
Rack The rack number of the analog module.
Group The group number of the analog module.
Module The slot number (0-1) within the group.
The location in memory where information from the BTR or
BTW instruction is stored:
Control With enhanced PLC-5 processors, this is a six-word block
block transfer control file (BT).
With standard PLC-5 processors, this is an integer file (N)
with five words.
(Continued)
Block Transfer Instruction Components
Component Description
The data file the information is transferred to (BTR) or is
Data File transferred from (BTW). Data files can be I, O, S, N, F, B,
BCD, or ASCII.
Length The number of words to be transferred.
The data transfer method for the instruction:
“Yes” indicates that once the rung containing the BTR or
BTW transitions from false-to-true, data flows
continuously until the CO bit is set and the rung goes
Continuous
false, or until the BTR or BTW instruction is edited.
“No” indicates that only one data transfer occurs per
false-to-true transition of the rung containing the BTR or
BTW instruction.
Block Transfer Instruction Components
The following status bits of BTR and BTW instructions are used in
troubleshooting analog I/O problems:
This Status
Is Set . . .
Bit . . .
When the rung goes true.
No
Demonstration Visuals
Analog I/O Module Monitor Screen Example
Tab 1 - Getting Started
Tab 1A - Getting Started
Tab 5 - Analog I/O Problem (output)
Tab E1 - I/O Modules (analog)
Tab 5 - Analog I/O Problem (output)
Tab 9B - Analog I/O Problem (output)
Tab 9C - Analog I/O Problem (output)
Tab 9B - Analog I/O Problem (input)
Tab 7A - Analog I/O Problem (input)
Tab 9 - Analog I/O Problem (input)
Tab 9A - Analog I/O Problem (input)
Lab Time