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

Ferrules and Cross Ferruling

 Ferrules are identification labels provided for every wire terminations in an instrument, equipment, or electrical/instrumentation control panels. These tube-shaped sleeves can be inserted easily on each individual wire in a multi-core cable. In earlier days fixed digits/letters are used as ferrules, but now Instrumentation engineers/technicians prints out desired ferrules by using a ferrule printing machine. Typical Ferrule The numbers/ letters on the ferrules will be given as per the approved electrical hook up or loop diagrams. This helps technicians to easily identify a particular loop/wiring from a series of terminal blocks and to troubleshoot the desired terminal connection. Separate numbers on the ferrules distinguish the positive and negative polarities of wires, thus ensure the polarity protection of the instrument. Cross Ferruling  As a wire is connected on its both ends, it is quite useful to use a cross reference method for wire identification. Unlike normal ferru...

What is a Torbar? – Averaging Pitot Tubes

 The Torbar is employed for flow measurement of liquids, gases, or steam in circular, square, or rectangular section ducts for large flow rates. The Torbar is an insertion type multi-port self-averaging primary sensor for flow measurement. Torbar TORBAR is a set of Pitot tubes mounted on a bar across the pipeline with no moving parts. An averaging Pitot tube is a technology, while TORBAR is a manufacturing brand name. There are several brands available in the market with VERABAR, ANNUBAR, etc. Averaging Pitot Tube Principle Purpose Averaging Pitot tube can be employed when the average velocity of the flow profile, rather than the velocity in a specific point in the cross-section is desired. Averaging Pitot Tubes Principle It measures the differential pressure between the static pressure tap and the tap of full pressure of a stream. Thus such magnitude of differential pressure is directly proportional to the square of the flow rate. Working The TORBAR is designed in such a way that ...

Dissolved Oxygen Analyzer Working Principle

 What is dissolved oxygen ? Dissolved oxygen refers to oxygen dissolved in water. Its concentration is expressed as the amount of oxygen per unit volume and the unit is mg/L. Biologically, oxygen is an essential element for respiration of underwater life and also acts as a chemical oxidizer. The solubility of oxygen in water is affected by water temperature, salinity, barometric pressure, etc. and decreases as water temperature rises. Measurement of dissolved oxygen by the membrane electrode method The membrane electrode method measures a diffusion current or reduction current generated by the concentration of dissolved oxygen or partial pressure of oxygen to obtain the concentration of dissolved oxygen. This method is not affected by the pH value of water being measured, oxidation and reduction substances, color, turbidity, etc. and the measurement method offers good reproducibility. When a sensor is inserted into water, an air layer forms on the membrane (Teflon membrane). The ox...