Understanding and Calculating Input/output Addressing in Plc Programming

Programmable Logic Controllers (PLCs) are used to automate industrial processes. Understanding how input and output addressing works is essential for effective programming and troubleshooting. This article explains the basics of input/output addressing in PLCs and how to calculate addresses accurately.

Basics of PLC Input/Output Addressing

In PLC systems, each input and output device is assigned a unique address. These addresses allow the PLC to identify and communicate with connected devices. Inputs typically include sensors and switches, while outputs control actuators and motors.

Understanding Addressing Schemes

Addressing schemes vary depending on the PLC manufacturer and model. Common schemes include:

  • Bit addressing: Uses individual bits within a byte or word, e.g., I0.0 or Q0.1.
  • Byte addressing: Uses entire bytes, e.g., I0 or Q0.
  • Word addressing: Uses 16-bit words, e.g., MW0.

Calculating Input/Output Addresses

To calculate addresses, identify the device type, the input/output number, and the addressing scheme. For example, if an input device is connected to input number 5 and uses bit addressing, its address might be I0.5. Similarly, an output connected to output number 3 could be Q0.3.

Some PLCs organize addresses into groups or modules. For example, an I/O module might have a base address, and each channel within the module is numbered sequentially. To find the address, add the channel number to the base address.