Posts

Showing posts with the label PLC

Difference between PLC and Microcontroller

What is the D ifference between PLC and Microcontroller? Hi Greeting, Today we will talk about the difference between Programmable Logic Controllers and Microcontrollers . There is lot of confusion about using PLC’s rather than microcontroller especially students doing their projects in PLC’s will be asked about why they are using PLC instead of microcontroller? Considering above point we will try to find out the solution. Let’s start with the definition of PLC Programmable Logic Controller (PLC) defined by NEMA as a digitally operating electronic apparatus that uses a programmable memory for internal storage of instructions for implementing specific functions such as LOGIC, SEQUENCING, TIMING, COUNTING and ARITHMETIC through digital or analog INPUT/OUTPUTMODULES. Definition of Microcontroller. Microcontroller is a microprocessor with internal input and output and memory i.e. RAM, ROM, PORTS. Good things about PLC’s     Its microprocessor based high end thoroughly develo...

Counters in PLC Types of PLC Counter

Image
Counters in PLC | Types of PLC Counter   Counters count rung transitions.   The CTU runs the accumulated value of the counter up on the false to true rung transition, and the CTD instruction runs the accumulated value down.   The CTU and CTD can be used in conjunction with each other. Counters consist of the following components: ACC Accumulated Value PRE Preset Value CD Count Down Bit CU Count Up bit OV Overflow Bit UN Underflow bit By default, data file C5 stores counters, however, other counter files can be added as well. Below is how the C5 Data file would appear: For the CTU instruction:   The CU bit is high when the CTU instruction is true.   The ACC value increments by the value of 1 each time the CU bit goes high.   When the ACC   reaches the PRE, the DN bit will be set.   The CTU will continue to increment the   accumulated value until it reaches the maximum possible value for a 16 bit signed integer   (32767).   If the ...