AlfredoQuintero
Lifetime Supporting Member
Hi. I am trying to generate a pulse every two msec in my PLC program. Thought I would be able to figure this out easily with TC2_HVAC.FB_HVACBlink, but the function does not seem to work properly for low values of tTimeON and tTimeOFF. The documentation has no information on the resolution for this function. Is there a "known" (as in "known to the very experts only") issue with this TC2_HVAC.FB_HVACBlink?
(And you can feel free to lecture/scold me on better ways to generate a pulse. Will trade my dignity for a good solution.)
Edit: The resolution is not so good so I quote the result: If tTimeON and tTimeOFF are 1 msec after 10 sec we get 2500 counts as opposed to 5000. In case of 5 msec setting the count is 834 as opposed to expected 1000. And for 1 sec setting the count is the expected 5 times. Thanks.
(And you can feel free to lecture/scold me on better ways to generate a pulse. Will trade my dignity for a good solution.)
Edit: The resolution is not so good so I quote the result: If tTimeON and tTimeOFF are 1 msec after 10 sec we get 2500 counts as opposed to 5000. In case of 5 msec setting the count is 834 as opposed to expected 1000. And for 1 sec setting the count is the expected 5 times. Thanks.
Last edited: