Smit
Can you help me by programming a ladder program which can be able to note the real time when a push button is pressed. For eg suppose consider our push button as the switch of fan which turn on the output which is fan and our task is to note the real time when the fan is on in the entire day.
Reply 0 0
thiagoralves
What do you mean by real time?
Reply 0 0
Smit
Real time means the Present time
Reply 0 0
prof.giovanni
I don't understand: who turns off the fan? Do you want to display the clock the entire time the fan is on? Or do you want to display only when the button is pressed?
Reply 0 0
Smit
Its just an example of fan I just want to log the time when input is applied to the system.
Reply 0 0
fg71
You could use Arduino extension to get RTC, when input is TRUE (your button is pressed), the output is the condition to covert current time RTC to DT.
I have made a example here in this forum with help of @thiagoralves how to make RTC in Arduino extension.
Reply 0 0
thiagoralves
To be able to log the current time, you first need to setup an RTC to count time. If your board has WiFi I've created an example you can use:
Reply 0 0
Reply