×

Subscribe to newsletter

subscribe to our weekly newsletter to get notified with latest story and article Subscribe now!




PLC BLOG | Introduction to DELTA PLC Counter

Share on Facebook Share On Twitter Share on LinkedIn Share on Whatsapp


Introduction to DELTA PLC Counter

In Delta Plc counter is a important instruction in PLC. in delta plc have two types of counter CNT is 16 bit Counter instruction. DCNTis 32 bit counter instruction. counter increment or decrement current value by 1 each time when input of counter is changed from OFF to ON. Counter assigned with counter number, preset value. counter number like C0, C1 C2 etc. counter number also have different type which depend on processor. for example if you have ES/EX/EC Series CPU counter
  • C0 to C111 16 bit, non-latched up counter
  • C112 to C127 are 16 bit latched up counter
  • C235 to C238, C241, C242, C244, 32 bit latched high speed up/down counter.
  • C246, C247, C249 32 bit latched high speed up/down counter
  • C251, C252, C254,32 bit latched high speed up/down counter
always read manual of plc to know counter number if you delta plc controller is changed counter number also changed.counter preset value is numerical value of counter it depend on plc type if your plc is 16 bit than preset value is 0 to 32,767, for 32 bit counter preset range is -2,147,483,648 to +2,147,483,647. range is very important for preset value according to your plc and program select proper counter to save controller memory space. in preset value use constant value or used data register. in delta plc counter also latched or non latched. latched is depend on controller type.


Delta plc 16 bit latched and non latched up counter

CNT is 16 bit counter in delta plc. Counter Up is a incremental counter, counter current value is increment by 1 when input bit of counter is changed from off to ON. each change of input bit increment counter current value by 1. when counter current value reached counter preset value than counter done coil is set to ON. below is the example of latched and none latched counter in delta plc.

Delta plc 16 bit latched and non latched up counter

this example use ES/EX/EC Series CPU so C0 is non latched general purpose up counter and C127 is latched up counter. in this example preset value for both counter(C0 and C127) is constant value and X1 and X2 is input of counter and Y1 and Y2 is output coil of counter.C0 and C127 is Up counter when counter input(X1 and X2) is changed from Off to ON than counter value is increment by 1. counter increment it's current value until to reach preset value once preset value and counter current value is equal than counter coil(C0 and C127) is set to ON. once counter coil is set and input bit of counter is changed than counter current value not increment.

Delta plc 32 bit latched and non latched counter

DCNT is a 32 bit counter in delta plc. when input of DCNT instruction is set from OFF to ON, the Current value in the counter will count up (plus 1) or count down (minus 1) according to the modes set in special relay M1200 to M1234(any one).turned on any one relay(M1200 to M1234) for use DCNT as decrement counter. Preset value is much larger than 16 bit counter and counter number(depend on plc type). in delta PLC 32 bit counter are up or down counter.


Delta plc 32 bit Up counter

DCNT generally operates as 32 bit up counter if special relay M1200-M1234(any one) is turned OFF. below is the example of delta plc 32 bit up counter

Delta plc 32 bit Up counter

Delta plc 32 bit Down counter

DCNT use as Down or decrement counter when any special relay of M1200 to M1234(any one) is set to ON. down counter decrement current value by 1 when input of counter is changed from OFF to ON. Below is the example Of DCNT as decrement counter with special relay M1200.

Delta plc 32 bit Down counter

How to reset delta plc counter

Reset (RST) instruction reset counter current value to zero. below is the example of reset counter in delta plc. when input of reset instruction(RST) changed from OFF to ON than counter C0 reset counter value to zero.

How to reset delta plc counter

set counter preset value with data register

using data register you can set your own preset value during program execution. declare data register to change preset value during program run. in below example D0 is a set preset value of counter C0.

set counter preset value with data register
Share on Facebook Share On Twitter Share on LinkedIn Share on Whatsapp


Suggested Post


 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

comment