
adccommunitymod (AutomationDirect) asked a question.
Click Timer
Created Date: January 04,2019
Created By: ray215
**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****
I want to use the timer function in my click PLC as a n.c. On Delay; as in signal on @ activation for x amount and turning off @ end of set point. Also want to be able to adjust set point from HMI. Any help would be greatly appreciated. BTW this is my first experience with PLCs.
Created Date: January 04,2019
Created by: ray215
I want to use the timer function in my click PLC as a n.c. On Delay; as in signal on @ activation for x amount and turning off @ end of set point. Also want to be able to adjust set point from HMI. Any help would be greatly appreciated. BTW this is my first experience with PLCs.
Created Date: January 04,2019
Created by: Garry
Hi Ray,
Here is an entire training series on the Click PLC.
https://accautomation.ca/series/click-plc/
This URL is just for the timer instruction:
https://accautomation.ca/click-plc-timers-and-counters/
Changing the timer value from the HMI is just a mater of changing the value in the register that you want the SV (set value) of the timer.
Here is a beginners guide that you might find helpful.
https://accautomation.ca/programming/plc-beginners-guide/
Hope this helps you out.
Regards,
Garry
Created Date: January 04,2019
Created by: Alexandru
two problems:
1. to adjust the set point from hmi , you need to:
1.1. setup a modbus network
1.1.1. if the network only contains the click and the hmi, then the hmi needs to be the master, in order to poll the plc and update plc data on request from machine operator
1.1.2. if the plc needs to be master in the modbus network, then the hmi can not directly poll the plc (only the master can poll). in this case, an extra consent (a plc digital input) needs wired to indicate the plc it needs to download updated data from hmi.
1.1.3. there is also a multimaster setup for modbus, I'm not sure how to make it work neither that click plc supports it.
1.2. program the hmi to accept data update and exchange
2. to program a on-delay timer
2.1. on-delay timer is used to delay turning on the timer output for the setup time delay- when the the timer is enabled. what you need:
2.1.1. an enable consent, coming from a control bit. what enables the control bit is your choice: directly from an input (in this case you may skip the use of a control bit), or ladder logic
2.1.2. this enable consent must remain on, because as soon as this is off, the timer output is off. what turns the timer on is the change of state from off to on of the control bit.
2.1.3. so as soon as this enable turns on, your timer start the delay. when the timer is up, the timer output will turn on. as you see, is called on-delay because it induces a delay between the moment the control bit turned on and moment the timer turned on. I believe it will remain on for as long as the enable is on; as soon as the enable turns off, the timer output turns off and it could either retain or reset the accumulated value in the timer, depending on how the timer block is configured.
I hope I didn't not make any mistake. also, I hope it helps.
Created Date: April 11,2019
Created by: bgmainttech
I am new to the click PLC, I am having a timer issue that I'm not sure if I 've induced but I can not figure it out. I have watched the video in Garry's post but sadly it did not help me with this situation. My problem is that when I take the timer enable input away the timer stays latched in and does not reset TD1. I 've tried to use retentive timers with a reset and again the timer stays latched. If anyone can point out what I am doing wrong with this I would appreciate the feedback.
{ "data-align ": "none ", "data-size ": "custom ", "height ": "262 ", "title ": "timer1.PNG ", "width ": "1000 ", "data-attachmentid ":121982}
Created Date: April 11,2019
Created by: RogerR
Are these rungs in a subroutine that is not running all the time?
Created Date: April 11,2019
Created by: Do-more PE
Timers have to be touched by the CPU every scan in order to work correctly. If the subroutine isn't being called every scan then it will be unpredictable.
Created Date: April 11,2019
Created by: Garry
Your timer is in a subroutine. You must ensure that it is always being called. Your image shows that the subroutine is not being scanned because the timer is active even though the input to it is off.
{ "data-align ": "none ", "data-size ": "full ", "title ": "click call.png ", "data-attachmentid ":121989}
Make the call to the timing circuit unconditional. The timer should then work as expected.
Regards,
Garry
Created Date: April 12,2019
Created by: kewakl
Been there - done that.
Have to relearn it too frequently!:o
Created Date: April 12,2019
Created by: bgmainttech
Thank you all for your input. I had set a condition on the call rungs for my subroutine, after removing that my timer issue was gone. I had to make some other changes to my program to get everything working the way I want after removing the conditions I had set on the call rung. I am still learning the ins and outs of this software but I enjoy these PLC's. Thank you all again, your help is greatly appreciated.