Showing posts with label Industrial automation. Show all posts
Showing posts with label Industrial automation. Show all posts

October 23, 2023

Unleashing the Power of Programmable Logic Controllers

Introduction:

Programmable Logic Controllers (PLCs) have revolutionized industrial automation, enabling efficient control and management of complex processes. At the core of every PLC lies its memory, a crucial component responsible for storing and executing programs that drive all automation functions. This article dives into the world of PLC memory, exploring its types, functions, and the technological advancements that have transformed industrial operations.

 

Types of PLC Memory:

PLC memory comprises several distinct types, each serving a specific purpose. These include:

Read-Only Memory (ROM): Non-volatile memory that stores the PLC's firmware and cannot be altered by the user.

Random Access Memory (RAM): Volatile memory used for storing program instructions and data during runtime.

Electrically Erasable Programmable Read-Only Memory (EEPROM): Non-volatile memory permitting limited user modifications, often utilized for storing critical configuration and parameter data.

Flash Memory: Non-volatile memory used for storing larger program sizes and frequently updated data.

Functions of PLC Memory:

PLC memory performs critical functions that enable seamless operation of industrial automation systems:

Program Storage: PLC memory stores the user-defined program instructions, ladder logic, or other programming languages required to control and monitor automated processes.

Data Storage: PLCs utilize memory to store real-time data, inputs, outputs, and variable values essential for efficient decision-making and process control.

 

Retention: Some PLC memory types, such as EEPROM or battery-backed RAM, offer data retention even during power outages, safeguarding vital data and system configurations.

Advancements in PLC Memory Technology:

 

With advancing technology, PLC memory has evolved to meet the needs of modern industrial processes. Some significant developments include:

 

Increased Capacity: The ever-growing memory capacity of PLCs allows for complex program storage, intricate control algorithms, and extensive data logging, facilitating advanced automation functions.

 

Faster Access Speeds: PLC memory has progressed to provide faster access speeds, enabling real-time processing and rapid execution of control functions.

 

Redundancy and Fault-Tolerance: Modern PLCs often incorporate redundant memory systems, ensuring data integrity and fault tolerance in critical applications.

 

Best Practices for Managing PLC Memory:

Effectively managing PLC memory is vital for reliable and efficient system performance. Here are some best practices to consider:

 

Optimize Program Size: Efficient coding techniques, modular programming, and minimizing unnecessary instructions help optimize memory utilization, ensuring efficient execution of program logic.

 

Regular Backups: Regularly backing up PLC memory data and program configurations mitigates the risk of data loss and facilitates faster recovery in the event of a failure or fault.

Memory Monitoring: Monitoring memory usage helps identify potential issues such as memory leaks or excessive memory usage, enabling proactive measures to maintain system performance.

 

 

July 25, 2020

Explain IN Range instruction or value within range instruction using example


Explain IN Range instruction or value within range instruction using example

Application:-Explain IN_RANGE instruction using an example . Write PLC program for explanation using ladder diagram language in the Programmable Logic Controller (PLC).

Components:-Programmable logic controller, HMI panel, wires, 24 VDC lamp, 24 VDC power source, 24VDC temperature controller.

 

Diagram:-















Explanation:-

We can use IN_RANGE (Value within range) instruction when the variable is within a specific range. You can specify the value range for the MIN and MAX inputs. The IN_RANGE instruction will compare the variable value with the values of MIN and MAX value and sends the result.

For an explanation, we can consider a simple example so we can understand easily. Assume one application in which we need to operate a green lamp if the actual temperature is between MIN and MAX value which can be set by HMI. And if the actual temperature is not between MIN and MX value, operate a red lamp as shown in the figure. Assume analog scaling of the temperature value, so as sown in figure measured value s 50 degrees and MIN limit is 45 degree and MAX degree is 55 degree. So for the above example temperature is within range and the green lamp should be ON.

PLC program:-

Write the ladder program for the above application using ladder diagram language. Here for ladder logic, we can use any supported PLC system like S7-1200, S7-300, S7-1500, or any other PLC which can support this instruction. For PLC logic we need digital inputs and outputs.

For our application lamps are digital outputs. MAX and MIN values are input words.

Digital Output:-

Temp OK lamp=Q0.0

Temp not ok Lamp=Q0.1

M Memory:-

Actual temp. =MW2

MIN temp.:-MW10

MAX temp:-MW20









PLC program Explanation:-

In network 1, actual temperature is measured or stored in MW 2 and in MIN we can set minimum range of the temperature also in MAX we can specify the maximum applicable range of the temperature.

So here we have used IN_RANGE instruction which will compare a variable with MIN and MAX values and if the variable value is within range, green lamp (Q0.0) will be ON and if not then red lamp (Q0.1) will be ON as shown in network 2.


December 20, 2019

Difference between discrete signals and analog signals:-


Digital Signal:-

Discrete (digital) signals behave as binary switches, yielding simply an ON or OFF signal (1 or 0, True or False, respectively).

Examples of digital signals:-Push buttons, limit switches, and photoelectric sensors are examples of devices providing a discrete signal.

Discrete signals are sent using either voltage or current, where a specific range is designated as ON and another as OFF.

For example, a PLC might use 24 V DC I/O, with values above 22 V DC representing ON, values below 2VDC representing OFF, and intermediate values undefined. Initially, PLCs had only digital I/O.



Analog Signal:-

Analog signals are like volume controls, with a range of values between zero and full-scale.

These are typically interpreted as integer values (counts) by the PLC, with various ranges of accuracy depending on the device and the number of bits available to store the data.

As PLCs typically use 16-bit signed binary processors, the integer values are limited between -32,768 and +32,767.

Examples of analog signal:-Pressure, temperature, flow, and weight are often represented by analog signals.

Analog signals can use voltage or current with a magnitude proportional to the value of the process signal. For example, an analog 0 to 10 V or 4-20 mA input would be converted into an integer value of 0 to 32767.

Current inputs are less sensitive to electrical noise (e.g. from welders or electric motor starts) than voltage inputs.

December 27, 2018

ON/OFF PLC Output with Switch using S7-1200 PLC

Explanation:-
When Start switch (SW1) will be pressed then Output (Lamp 1) will be on and Output (Lamp 1) will be turned off if switch will be turned off.



Program:- Write the ladder Logic for Above application.
Input List:
Start Switch-I0.0

Output List:
Lamp 1 -Q0.0


ON/OFF PLC Output with Switch using S7-1200 PLC







ON/OFF PLC Output with Switch using S7-1200 PLC

Explanation:-
When Start switch (SW1) will be pressed then Output (Lamp 1) will be on and Output (Lamp 1) will be turned off if switch will be turned off.



Program:- Write the ladder Logic for Above application.
Input List:
Start Switch-I0.0

Output List:
Lamp 1 -Q0.0


ON/OFF PLC Output with Switch using S7-1200 PLC







Motor Start/Stop operation with trip indication lamp

Application:-There is one machine in the factory, we want to start/stop motor using push button g from the panel. Give motor ON lamp and motor trip lamp on the panel. When motor is running ON lamp should be ON and if motor trip due to some problem, trip lamp should be ON. Write the PLC program in LAD and FBD language.
Solution:-Here we will make PLC program in the PLC so operator can operate motor from the panel and get indication on the panel. And also we will take inputs signal and outputs for our application

Diagram:-

 
PLC Program:-Write the PLC program from above application using LAD diagram language.



PLC program explanation:-
As per our application we wrote PLC program. In this program we have considered following inputs and outputs for our application. We can use any make PLC for our application.
Inputs:-
Start Button:-I0.0
Stop Button:-I0.1
Trip Input:-I0.2
Outputs:-
Motor:-Q0.0
Motor On Lamp: Q0.1
Trip Lamp:-Q0.2
Network 1:-In this network we are starting and stopping motor by push button. By pressing Start (I0.0) motor can be started and by pressing stop PB (I0.1), motor (Q0.0) can be stopped.
Network 2:-In this network we wrote the logic for motor ON lamp or indication (Q0.1). SO when motor is running, Motor ON lamp is also ON.
Network 3:-For safety purpose we have considered here trip lamp (Q0.2). So when trip signal (I0.2) is ON, trip lamp is also ON.

3 Phase Motor Control using PLC Ladder Logic

3 Phase Motor Control using PLC

This is PLC Program for Forward and Reverse control for 3 Phase Asynchronous Motor.Lear how to write PLC logic for 3 phase motor control logic using PLC.

Click on image for more detail
https://instrumentationtools.com/plc-ladder-logic-for-3-phase-asynchronous-motor-control/

Water filling and Discharging Process

Water filling and Discharging Process

Water filling and discharging process used in idustry.Write PLC logic for the filling and discharging process using ladder language.

Click here for more detail.
https://instrumentationtools.com/plc-program-for-water-filling-and-discharging-process/

Water filling and Discharging Process

Water filling and Discharging Process

Water filling and discharging process used in idustry.Write PLC logic for the filling and discharging process using ladder language.

Click here for more detail.
https://instrumentationtools.com/plc-program-for-water-filling-and-discharging-process/

December 26, 2018

Explain equal instruction using example


Explain equal instruction using example

Application:-Explain Equal instruction in the PLC. Write PLC program for explanation using ladder diagram language.

Components:-Programmable logic controller, HMI panel, wires, 24 VDC lamp, 24 VDC power source.

Diagram:-




Explanation:-

Consider a simple example for explanation of equal instruction in the PLC. Here we have taken simple HMI (Human Machine Interface) for display and programmable Logic Controller (PLC) for programming. Take two value set value 1 and set value 2 for example. Here if both the value in the set value 1 and set value 2 equal then lamp will be ON. So we need to use == instruction for above example.

Enter 50 value in the set value 1 box and enter 50 value in the set value 2 box so lamp should be ON and if someone enter 25 value in the set value 2 box, lamp should not be ON.



PLC program:-

Write the ladder program for above application using ladder diagram language. Here for ladder logic we can use any supported PLC system like S7-1200, S7-300, S7-1500 or any other PLC which can support this instruction. For PLC logic we need digital inputs and outputs.

For our application lamp is digital output. Two set values from the HMI are input words.

Digital Output:-

Lamp=Q0.0

M Memory:-

Set value 1:-MW10

Set Value 2:-MW12











PLC program Explanation:-

In network 1 we tow values are compared with comparison instruction. Set value 1 (MW) is compared with Value 2 (MW12).Hence if both values are equal, lamp (Q0.0) will be ON.

In comparator instruction, two operands are compared, we can set data time in comparator instruction.




Latching and unlatching Circuit.


PLC program for latching and unlatching Circuit.

Latching concept is used in different industries.Learn how to write PLC program for the latching concept as well as unlatching concept.


Click on image for more detail

https://instrumentationtools.com/plc-program-for-latching-and-unlatched-circuit/

Explain greater than instruction using example


Application:-Explain greater than instruction in the PLC. Write PLC program for explanation using ladder diagram language in the Programmable Logic Controller (PLC).

Components:-Programmable logic controller, HMI panel, wires, 24 VDC lamp, 24 VDC power source, 24VDC temperature controller.


Diagram:-
















Explanation:-

Consider a simple temperature controller example for explanation of greater than (>) instruction in the Programmable Logic Controller (PLC). Here we have considered simple HMI (Human Machine Interface) for display and programmable Logic Controller (PLC) for programming. Consider one temperature control which is displaying the temperature given by temperature sensor, here we haven’t considered analog signal calculation and scaling so we directly consider actual value in the PLC. Here if the actual temp value in the actual temp box is greater than set temp, temperature indication will be ON.

If set temperature is 100 degree and temperature read by temperature controller is more than 100 degree or consider 102 degree, lamp should be ON because 102 degree is greater than 100 degree.

PLC program:-

Write the ladder program for above application using ladder diagram language. Here for ladder logic we can use any supported PLC system like S7-1200, S7-300, S7-1500 or any other PLC which can support this instruction. For PLC logic we need digital inputs and outputs.

For our application lamp is digital output. Set temp is the input word.

Digital Output:-

Temp Lamp=Q0.0

M Memory:-

Set temp.:-MW10

Actual temp:-MW20











PLC program Explanation:-

In network 1 actual temperature (MW10) will be compared with set temperature (MW20). So if the measured temperature (MW10) is greater than set temperature (MW20), temperature indication lamp (Q0.0) will be ON

In greater or equal (>) instruction, two operands are compared, we can set data type in comparator instruction.


Parameter Initialization when Power UP


Parameter Initialization when Power UP

Parameter initialization is necessary for some applications. Here we will learn how to write paramaeter initialization program for the applications.

Click on image for more detail

https://instrumentationtools.com/plc-program-for-automatic-parameter-initialization-when-power-up/


Explain less or equal (<=) instruction using example


Application:-Explain less or equal instruction in the PLC. Write PLC program for explanation using ladder diagram language in the Programmable Logic Controller (PLC).

Components:-Programmable logic controller, HMI panel, wires, 24 VDC lamp, 24 VDC power source, 24VDC temperature controller.

Diagram:-

























Explanation:-

Consider a simple temperature controller example for explanation of less equal instruction in the PLC. Here we have taken simple HMI (Human Machine Interface) for display and programmable Logic Controller (PLC) for programming. Consider one temperature control which is displaying the temperature given by temperature sensor, here we haven’t considered analog signal calculation and scaling so we can directly consider actual temp value in the PLC. Here if the actual temp value in the actual temp box is less or equal than set temp, temperature indication will be ON.

If set temperature is 50 degree and temperature read by temperature controller is 45 0r 50 degree, lamp should be ON because 45 degree is less than 50 degree.





PLC program:-

Write the ladder program for above application using ladder diagram language. Here for ladder logic we can use any supported PLC system like S7-1200, S7-300, S7-1500 or any other PLC which can support this instruction. For PLC logic we need digital inputs and outputs.

For our application lamp is digital output. Set temp is the input word.

Digital Output:-

Temp Lamp=Q0.0

M Memory:-

Set temp.:-MW10

Actual temp:-MW20
















PLC program Explanation:-

In network 1, actual temperature (MW10) will be compared with set temperature (MW20). So if the measured temperature (MW10) is less or equal than set temperature (MW20), low temperature indication lamp (Q0.0) will be ON.

In less or equal (<=) instruction, two operands are compared, we can set data type in comparator instruction.


Liquid Mixing Application

Liquid Mixing Application


Liquid mixing technique is used in different industries.Learn PLC program for this application.

Click on image for more detail

https://instrumentationtools.com/plc-program-for-automatic-liquid-mixing-application/

December 14, 2018

Drive multiple speed with different reference using PLC

Drive nultiple speed with different reference using PLC




Click on image for more detail





Automatic Lamp Control

Automatic Lamp Control


We need some light control logic in industries or in storage facility.Learn PLC program for the application.


Click on image for more detail
https://instrumentationtools.com/plc-program-for-automatic-lamp-control-in-storage-facility/





November 19, 2018

What is CPU?


What is CPU?

CPU is the brain of the PLC

It is controlled by the program called the operating system or OS.

And the execution is the collection of the program which is stored in the memory.

Duties of the CPU?

Duties of the CPU?

The CPU reads the inputs and processes the control program and controls the outputs as per program.

CPU provides internal memory, timers and counters and other instruction set.

Commands connected outputs can be controlled based on program. For examples light, fan etc.

Inputs examples for the PLC

Inputs examples for the PLC

Switches and Pushbuttons
Sensing Devices
Limit Switches
Photoelectric Sensors
Proximity Sensors
Condition Sensors
Pressure Switches
Level Switches
Temperature Switches
Vacuum Switches
Float Switches
Encoders