MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › How do instruction sets differ between PLC brands?
HomeModels
Table of contents

On this page

PLC & Programming (100 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

How do instruction sets differ between PLC brands?

Every PLC brand works under the international programming-language standards, so the logic functions are broadly the same, but instruction names, addressing notation and data-type rules each follow their own house style. Switching brands is like switching dialect: the meaning lines up, the grammar has to be relearned. The sections below break the differences down by instruction family.

1. The root of the difference: the standard says what exists, not how to write it

The standard defines which programming languages exist, roughly how data types are grouped, and how program structure is organised, but it does not dictate which mnemonics a vendor must use, what number base the addresses take, or how many timers are provided. So each brand keeps the same overall framework and still writes its own mnemonics and addressing. Once that is clear, nobody mistakes "the instruction name is different" for "the function cannot be done".

2. Basic logic: different names, near-identical meaning

For the most elementary elements, normally-open contacts, normally-closed contacts, output coils and set/reset, the graphic symbols are almost the same across brands. The differences lie in notation and in what the address areas are called: some use bit addresses with offsets, others use octal element numbers; set and reset may be two letter instructions or a single coil form. When porting a program across brands the contacts and coils map almost mechanically, and it is the addressing that decides how much work the job really is.

3. Timers and counters: the difference hides in time base and numbering

Timer differences cluster in three places: how the time base is defined, whether it is fixed by range or varies with the number block; whether the preset value is in milliseconds, seconds, or a time base multiplied by a preset; and the numbering range and whether numbers may be reused. For counters the differences are the counting range limit, whether up/down counting is supported, and how reset works. Nail those three and ported timer and counter logic will normally behave.

4. Data handling and strings: the part that genuinely has to be relearned

Data movement, comparison, shifting and conversion show the widest differences. One brand may handle a move automatically according to the variable type, while another demands explicit length and type declaration; comparison may be a stand-alone instruction block on one platform and a contact inserted straight into the rung on another. Strings and arrays go further still, with vendor-specific extensions, and belong firmly in the "read the manual" category. This is where newcomers fall over: assuming the notation is the same, only to find the length unit or byte order differs and the whole data stream is displaced.

5. Motion and special functions: each vendor's private territory

High-speed counting, pulse outputs, PID control and motion control are only sketched in the standard; the actual implementation is a vendor-specific function block or proprietary instruction set. There is no shortcut for porting these, only a rewrite against the target manual. Selection should confirm early that the required function has an equivalent on the chosen brand rather than discovering the gap afterwards.

6. Where instruction families differ

FunctionTypical brand A notationTypical brand B notationWhere they differ
Normally-open contactBit address with offsetOctal element numberNumber base and separator
Output coilOutput-area bit addressOutput element numberNaming of the output area
Set / resetTwo separate letter instructionsOne coil-form instructionMnemonic and operand order
Rising-edge detectEdge instruction with a state bitContact-type edge instructionWhere edge state is stored
On-delay timerFunction block with instance dataElement number plus time presetHow the time base is defined
CounterFunction block, limited rangeElement number plus presetNumber range and reset method
Data moveAuto-typed by variableLength and type declaredType inference capability
ComparisonStand-alone compare blockCompare contact in the rungWhere the result is used
ShiftWord shift with directionRegister rotateWord length and rotate style
Variable namingSymbolic names with namespacesElement numbers dominateReadability and porting cost

7. Notes

Whether anything needs relearning depends on whether logic or data is being ported. Pure discrete logic usually only needs the notation rewritten. As soon as analog values, strings or communication telegrams are involved, the data-type length and byte order of the target brand must be rechecked item by item. A practical engineering habit is to build a cross-reference table by function block, fixing the dozen or so instructions the plant actually uses, and swap against that table rather than hunting through a manual each time.

8. References

The definition of programming languages, the common instructions and the grouping of data types follow GB/T 15969.3, Programmable controllers, Part 3: Programming languages, equivalent to the international IEC 61131-3. The general requirements for PLCs relate to GB/T 15969.2 (IEC 61131-2). Instruction names, numbering ranges and time bases specific to a brand are as stated in that brand's programming manual; the items listed here illustrate the kinds of difference.

9. Points to watch

⚠️ Three common traps:
(1) Assuming the same instruction name means the same function and ignoring the time base unit, so the whole timing logic ends up ten times out;
(2) Porting a data-handling routine without checking data-type length and byte order, so the communication telegram is displaced throughout;
(3) Dropping a program written with symbolic names onto a brand that works mainly in element numbers, losing every symbol and making the program far harder to maintain.

After a cross-brand port, verify timing, counting and analog scaling item by item, and prove the logic out under no-load conditions before connecting the real loads.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL