Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: PLC Techniques for I/O Mapping
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > PLC Techniques for I/O Mapping

PLC Techniques for I/O Mapping

Learn about PLC techniques for I/O mapping for four types - digital inputs, digital outputs, analog inputs, and analog outputs.

Last updated: September 16, 2024 6:02 am
Viral Nagda
PLC Tutorials
No Comments
Share
5 Min Read
SHARE

When you are writing a PLC program, the very first thing that you have to do is map the inputs and outputs (IO). PLC digital and analog IO’s must be given proper tag conventions because that defines their proper use in the remainder of the program further.

Contents
What does it mean to map I/O in PLC?Types of I/O mapping in PLCMapping I/O tags at hardware configurationMapping I/O tags manually in the program

If the IO’s are not mapped and named properly according to actual field instruments, then the programmer will get confused in developing the logic afterward. There are some common and general methods which need to be followed for doing proper IO mapping in a PLC program. In this post, we will see the techniques for IO mapping in PLC.

What does it mean to map I/O in PLC?

PLC has four types of I/O’s – digital inputs, digital outputs, analog inputs, and analog outputs. They are connected in PLC in various electrical signals like 24V DC, 24V AC, 230V AC, 4-20 mA, 0-10V, RTD, or thermocouple. They are then converted to digital signals inside the PLC to make the processor understand.

Now, when you configure IO in PLC, you define the number of points to use, configure the type of analog IO, and configure the scaling of analog IO. After that, the next step comes in naming these IOs according to their corresponding convention.

Once the naming is done, you can either move these values to some internal memory words or use them directly in the program. This is called I/O mapping in PLC.

Types of I/O mapping in PLC

The main types of input-output mapping are mentioned below.

  • Mapping I/O tags at hardware configuration
  • Mapping I/O tags manually in the program

Mapping I/O tags at hardware configuration

Let us see the first step which is very easy to use. As the name says, we can directly map the tags in the hardware configuration. Refer to the below image.

PLC Technique for IO Mapping

You can see that the first two inputs, I0 and I1, have been named as I_EmgStop and I_StartPb respectively. The first two outputs, Q0 and Q1, have been named as Q_Lamp and Q_Motor respectively. You can use these tag names in the program directly.

Suppose input-1 is on; then the tag – I_EmgStop will be 1. When the input-1 is off; then the tag – I_EmgStop will be 0. Similarly, if you want to turn on the physical hardware output Q0, then just write value 1 to the tag – Q_Lamp.

So, there is no need to write extra logic of moving the by default names of IO’s in a separate variable, which will be the IO name. This saves memory as well as reduces the troubleshooting period.

Mapping I/O tags manually in the program

The other technique we will discuss is writing a logic to assign tags for IOs. As discussed in the first part, the technique saves memory and makes troubleshooting easier. But this is good for a small application. If you have a large application where there are hundreds of IOs, then configuring tags in the hardware will take time as you have to configure each input or output separately.

For this, it is better to write a logic. Refer to the below image. For best performance, use structured text language in the PLC program. Why? We will discuss this further in the post.

Types of IO mapping in PLC

As seen in the image, if you see the first line, it is written like we are moving the value of physical address %IX0.0 to a variable named I_EmgStop. This means, that whatever the status of the input, the same will be moved in that variable. A similar PLC logic is written for the remaining inputs. You can then use these tags in your program, which will reflect IO values.

The main advantage of ST language is that you can write the logic in Excel and just copy it from there. Mostly, big automation systems have the same types of field instruments with repetitive names. So, dragging the names and copying them from Excel makes the task easier.

Mapping IO tags at PLC hardware configuration

In this way, we saw the techniques for I/O mapping in PLC.

Read Next:

  • Intro to Mitsubishi Electric GOC Controllers
  • Tanks Draining Control in PLC Programming
  • Intrinsically Safe Barriers Questions and Answers
  • Structured Text for Measuring Event Duration
  • PLC FBD Example for Tank Liquid Heating Logic

Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Continue Reading

PLC Programming for Traffic Barrier Control
Configuration of Input and Output Tags in Siemens Scada and PLC
Chemical Mixing Process using PLC
Example PLC Program to Control a Pump based on Level Sensors
Types of PLC
Automatic Coffee Vending Machine – PLC Logic Programming
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
208kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

Shift Bit Register in PLC
What is Alarm Prioritization? – Types of Alarms
What is a Tag? Types of Tags in SCADA
What is Recipe Management in SCADA?
PLC Basics – Manual Control, Closed Loop, ON-OFF with Hysteresis
PLC Programming Example for a Batch Process
PLC Programming for Weight-Based Packaging
Web-based SCADA HMI Software

Keep Learning

DCS Alarm and Setpoint

Setpoints and Alarms in Control System

SCADA Software and their Comparison

SCADA Software and their Comparison

PLC analog input scaling

PLC Analog Input Scaling

PLC ON DELAY TIMER FUNCTION

#6 PLC Best Practices – Validate Timers and Counters

Flip-Flop PLC Program for Lamps Application

Example of Flip-Flop PLC Program for Lamps Application

SCADA Interview Questions

SCADA Interview Questions and Answers

PLC Latching circuit Animation

What is Seal-in Circuit ?

PLC Subroutine

Allen Bradley PLC Subroutines

Learn More

Siemens PLC

Will PLCs become obsolete?

Gas Filter Correlation (GFC) spectrometer

Gas Filter Correlation (GFC) Spectroscopy

Identify the Pressure Gauge Error

Identify the Pressure Gauge Error

Weir Flow Meter Principle

Measure Flow rate using Level Sensors

Flammable Gases and Vapors Class 1 & Class 2

Gas Detectors Standards

Power Electronics Objective Questions

Thyristors Objective Questions and Answers

Capillary Remote Seal Leave Measurement

Siemens Pressure Transmitter with Remote Seals Calculations

PLC TB Wiring

Electrical Signal and Control Wiring

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?