Skip to main content

PLC Scan Time

 What is Scan Time?

Every control system will take some time to execute its operation. Likewise, PLCs also takes time to perform a task. In simple terms, PLCs mainly has 3 parts which are input modules, output modules, and processor (CPU).

The input modules will read the status of switches, transmitters, and gives the data to the processor. The processor will execute the logic as per the user program. The processor will give the command to the output modules. The output modules are connected with final control elements like control valves, motor control feeders, etc.

The inputs and outputs may be in the form of NO, NC, 4-20mA, or a Bit/Pulse. So, the above all mentioned steps require some time in PLC which means for reading inputs, solve the logic, and write output, each step required some time which is nothing but the PLC scan time.

Definition of PLC Scan Time

Time taken by the PLC to read the inputs, solve the Logic, and to write the output is called a PLC Scan Time.

These functions work in the loop it may vary its time taken for execution from 0ms to 150ms to a large till 1000ms.

The variation in scan time depends on the following factors:

Number of inputs

Length of logic/Loops in program

Number of Outputs

Let’s get clear the concept by the following example;

In PLC, we have an analog input card, these analog signals need to be converted in digital format so that the processor can read it and perform an action.

Say If 1 channel generally needs a 3ms time so, if we used a 4 channel to PLC then the scan time will be 4 X 3=12ms.

Why the Scan time Important?

Suppose we have a PLC whose scan time is 5ms, and we need to assign an input for an encoder which generates a pulse every 1ms time. Refer below figure (a).

Figure: a

In the graph below, as you can see the PLC takes a 0.3ms time to read input, 0.3ms time to write output, and 4.4ms time to executive logic. I.e. total 5ms scan tim

igure: b

As we can see the encoder pulse start after 0.5ms and PLC scan time starts with 0ms. The PLC will read the first pulse of the encoder which is at 0.5ms but after the first pulse as soon as the second pulse which will be at 1ms, the PLC will not be able to read this input because the PLC input read scan time is 0.3ms only.

So at each new scan time, the PLC will read only the first pulse of the encoder and other pulses will be neglected by PLC because PLC scan time is Greater than Encoder time. These are a serious issue for the process.

What if I have already a PLC whose scan time is greater than an encoder?
In the PLC software there is Instruction, by which you can avoid the above problem they are as followed;

  • Immediate Instruction – Input Immediate, Output Immediate
  • Interrupts instruction.
These instructions are mainly seen in Siemens Old PLC’s.

The Instruction works such that the input immediate will pause the logic execution step and read the Inputs again and again and then continue the logic step, same the other Instruction also works respectively.

Comments

Popular posts from this blog

PLC Program for Mixing Tank

 Create a ladder diagram for controlling a batch mixing process. Implement a PLC program for mixing tank or Mixing Process using PLC Ladder Logic. PLC Program for Mixing Tank Fig : Mixing tank A tank is used to mix two liquids. The required control circuit operates as follows: A. When the START button is pressed, solenoids A and B energize. This permits the two liquids to begin filling the tank. B. When the tank is filled, the float switch trips. This de-energizes solenoids A and B and starts the motor used to mix the liquids together. C. The motor is permitted to run for 1 minute. After 1 minute has elapsed, the motor turns off and solenoid C energizes to drain the tank. D. When the tank is empty, the float switch de- energizes solenoid C. E. A STOP button can be used to stop the process at any point. F. If the motor becomes overloaded, the action of the entire circuit will stop. G. Once the circuit has been energized, it will continue to operate until it is manually stopped. Solution...

What is Relay? How it Works? Types, Applications, Testing

 We use relays for a wide range of applications such as home automation, cars and bikes (automobiles), industrial applications, DIY Projects, test and measurement equipment, and many more. But what is Relay? How a Relay Works? What are the Applications of Relays? Let us explore more about relays in this guide. What is a Relay? A Relay is a simple electromechanical switch. While we use normal switches to close or open a circuit manually, a Relay is also a switch that connects or disconnects two circuits. But instead of a manual operation, a relay uses an electrical signal to control an electromagnet, which in turn connects or disconnects another circuit. Relays can be of different types like electromechanical, solid state. Electromechanical relays are frequently used. Let us see the internal parts of this relay before knowing about it working. Although many different types of relay were present, their working is same. Every electromechanical relay consists of an consists of an Elect...

Chlorine dioxide Analyzer Principle

 Chlorine dioxide measurement Chlorine dioxide (ClO2) is an instable, non-storable, toxic gas with a characteristic scent. The molecule consists of one chlorine atom and two oxygen atoms – represented in the chemical formula ClO2. It is very reactive. To avoid the risk of spontaneous explosions of gaseous chlorine dioxide or concentrated solutions, it is generally handled in dilution with low concentrations. ClO2 is soluble in water, but tends to evaporate quickly. Typically it is prepared on site, for example from hydrochloric acid and sodium chlorite. The procedure provides solutions with approx. 2 g/l ClO2 that can be safely handled and stored for several days. Image Credits : krohne Sensor Parts : Reference electrode Applied chlorine dioxide specific potential Current needed to maintain the constant potential Counter electrode Measuring electrode The disinfection effect of ClO2 is due to the transfer of oxygen instead of chlorine, so that no chlorinated byproducts are formed. C...