PLCcheck

PLC-5 to ControlLogix: Instruction Set Conversion Table

Conversion reference for Allen-Bradley PLC-5 instructions to ControlLogix equivalents. Covers file instructions, Block Transfers, indirect addressing, and PID changes.

·8 min read
Allen-BradleyPLC-5ControlLogixinstructionconversionBTRBTWMSGindirect addressing

PLC-5 to ControlLogix: Instruction Set Conversion Table

Most PLC-5 instructions have direct equivalents in ControlLogix. The key differences are in file handling, Block Transfers, indirect addressing, and communication instructions.

Instructions That Convert Directly

All basic bit, timer, counter, math, and comparison instructions (XIC, XIO, OTE, OTL, OTU, TON, TOF, RTO, CTU, CTD, ADD, SUB, MUL, DIV, EQU, NEQ, GRT, LES, MOV, COP, FLL) work identically in ControlLogix. The only change is addressing: file-based (N7:0) becomes tag-based (MyTag).

Instructions That Require Changes

PLC-5 InstructionControlLogix EquivalentChange Required
BTR (Block Transfer Read)MSG (Message)Complete restructure — BTR/BTW replaced by MSG with CIP path
BTW (Block Transfer Write)MSG (Message)Same — MSG handles all communication
MSG (DH+ based)MSG (EtherNet/IP CIP path)Path syntax changes from DH+ node to IP address/CIP path
File indirect N7:[N10:0]Array tag MyArray[MyIndex]Syntax change — same concept
PID (PLC-5 structure)PIDE (enhanced PID)Different structure, more parameters, anti-windup built in
SFC structuresSequential stepsRe-implementation recommended
ASCII instructions (AHL, ARD, AWT)ASCII serial port instructionsSimilar but different parameter structure

Indirect Addressing Conversion

PLC-5 indirect addressing is powerful but converts to a different syntax:

PLC-5ControlLogixNotes
N7:[N10:0]MyArray[MyIndex]Tag-based array with integer index
#N7:0MyArray[0] (with length)File reference → array with explicit length
B3:[N10:0]/0MyBoolArray[MyIndex].0Bit-in-word with computed index

Migration trap: PLC-5 allows nested indirect addressing (N7:[N10:[N12:0]]). ControlLogix does not support nested indirection — you must unroll to intermediate variables.

Block Transfer → MSG Conversion

This is the most labor-intensive conversion for PLC-5 programs with analog or specialty I/O:

PLC-5ControlLogix
BTR with rack/group/moduleMSG with CIP path to module
BTW with data file referenceMSG with source tag
Continuous BTR/BTW schedulingPeriodic MSG trigger logic

On ControlLogix, most analog and specialty modules are configured in the I/O tree and produce/consume data automatically — no MSG instructions needed. BTR/BTW are only required for legacy Remote I/O modules accessed via 1756-DHRIO bridge.


Analyze Your PLC-5 Code

PLCcheck Pro identifies all Block Transfer instructions, indirect addressing patterns, and MSG configurations in your PLC-5 program — the three areas that require the most manual conversion effort.

Upload PLC-5 code for analysis →

Maintained by PLCcheck.ai. Not affiliated with Rockwell Automation.

Related Articles

Analyze your PLC code with AI

PLCcheck Pro explains, documents, optimizes, and migrates PLC code — automatically.

Try PLCcheck Pro →
← Back to Blog

Not affiliated with Siemens AG. S5, S7, STEP 5, STEP 7, and TIA Portal are trademarks of Siemens AG.