Category Archives: Timers

On delay, off delay, interval, timing charts are discussed.

BRX Do-More PLC High-Speed Input Timer


The High-Speed discrete inputs can be configured to measure the amount of time between pulses. When you want a scaled value representing a speed or rate, the high-speed input timer is a better option for pulse rates below 5 kHz. This is compared to using the high-speed input pulse counting selection.
BRX Do-More PLC High-Speed Input Timer
The BRX Do-More series of programmable logic controllers have built-in high-speed inputs. These inputs can function in Counter, Timer, or Pulse Catch modes. Every CPU will have either 6 or 10 high-speed inputs (HSI) available depending on the model. These inputs can be used for input frequencies from 0 to 250Khz. 250Khz represents 250000 input counts per second that can be coming from devices connected to your PLC like an encoder. Due to the speed of the inputs, they function on the BRX Do-More PLC asynchronous with the PLC scan time.
We will continue looking at the high-speed inputs on our BRX Do-More PLC, by looking at the pulse timer mode. Previously we looked at the high-speed count mode of the PLC. We scaled the count to display RPM (Revolutions per Minute). Scaling the edge trigger timer from our incremental encoder, we will scale and compare the RPM from last time. Let’s get started. Continue Reading!

Click Plus Real Time Clock Setup and Use


The real-time clock on the Click Plus can now be more accurate. A network time service (NTP or SNTP) has been added to the Click Plus controller. This will allow the time to be synchronized with an internet time server or local network. Daylight savings time is quickly implemented with just a memory retentive bit that we can turn on and off based on the time change in the area.
Click Plus Real Time Clock Setup and Use
We will be setting up the network time service on our Click Plus. The real-time clock (RTC) will be updated via the internet time service. Daylight savings time and the RTC will also be programmed. This will be based on our previous Click Real-Time Clock post. Let’s get started. Keep on Reading!

Click PLC Real Time Clock (RTC) – Ladder Logic


The click plc has a real-time clock that will allow us to control outputs based on a date or time of day. This real-time clock (RTC) can be set from the click programming software or through the program of the controller. Our programs in the click can use the following calendar and clock values:
SD19 – RTC Year – 4 digits (2021)
SD20 – RTC Year – 2 digits (21)
SD21 – RTC Month – (00 to 12)
SD22 – RTC Day – (00 to 31)
SD23 – RTC Day of the Week – 1 Sunday to 7 Saturday
SD24 – RTC Hour – (00 to 23)
SD25 – RTC Minute – (00 to 59)
SD26 – RTC Second – (00 to 59)
click plc real time clock
We will be using the RTC – Real Time Clock in a sample program. This program will turn on an output Monday to Friday from noon until 1 pm. It will also adjust for daylight savings time. Let’s get started. Keep on Reading!

P1AM Industrial Arduino Watchdog Timer


A watchdog is a piece of code that will timeout when an error occurs in our program. It will usually cause the CPU (program/sketch) to stop or reset.
p1am arduino watchdog timer
We will now look at the instructions for the watchdog timer in productivity blocks. This includes the Configure Watchdog, Start Watchdog, Stop Watchdog, and Pet Watchdog.
p1am arduino watchdog timer
Our sample sketch will modify the P1000 Expansion Digital Inputs and Outputs Part 2 program by adding a watchdog timer.
Let’s get started. Continue Reading!

Productivity Open P1AM Arduino Time Instructions


Time instructions in our productivity blocks programming (Arduino sketches) consist of runtime (ms), runtime (us), delay ms, and delay microseconds us.
arduino time instructions
We will be looking at each of these instructions that are available for our program using productivity blocks. Delay instructions in our sketches should be used with caution. They will pause our program for the delayed time, not allowing other parts of the program to function. We will be looking at this and the method to do the exact same delay functions without pausing your program.
arduino time instructions
A sample program will be discussed to demonstrate the time functions in our program. Let’s get started. Continue Reading!

PLC Fiddle Timer Challenge – Timing Instructions

Timers are present in just about every PLC program that I have seen. A timing chart is a secret behind understanding the timer that you need in your application. Making a timing chart before writing the program will ensure that all of the information will be accounted for. The secret to using timers is a good review of using these timing charts.
PLC Fiddle Timer Challenge - Timing Instructions - On delay Off delay Pulse output
PLC Fiddle has three different timing instructions for us to use in our programs. On-Delay, Off-Delay, and Retentive Timers. We will discuss the timer parameters and the three different instructions. Our timer challenges will help you gain a good understanding of how timers work in the PLC. Let’s get started. Continue Reading!