Answer the question
In order to leave comments, you need to log in
Incorrect work with timers in calls of PLC blocks from different manufacturers?
I ran into a problem about a year or two ago.
The PLC used a timer in a block called under a specific condition (I don’t remember which one, but it doesn’t matter).
The LD language, but as far as I understand in other IEC languages, the same picture.
Something like this:
If the timer started working, and after that it was turned off by If_CALL (block call), oddities began.
The timer continued to count in the disabled block.
Moreover, even the enable input of the If_TMR timer did not affect it, thus causing a reasonable WTF.
Then we checked on Proficy (General Electric), Step7 (Siemens) and ISaGRAF - everywhere the picture was the same.
After that, they vetoed the use of such structures in their company.
But in general the situation is by no means the most pleasant.
And other solutions (the block is disabled and the timer stops, the block is disabled and the timer is reset) are also not very good.
An example of an error due to this solution A
block of some device, for example, the main one, is called when choosing from two - the main and the backup.
A signal is sent to the device from some kind of timer, for example, cutting off the bounce from the command button.
If, after giving the command, you switch to the reserve by turning off the main unit, then it will be impossible to remove the command from it.
We had something like that, it's good that it's on the stand.
In this connection, the question / request:
Is it possible to check the same design now on these and other PLCs?
At least roughly imagine how things are - suddenly it got better?
And then sometimes you have to work with different manufacturers and another solution could sometimes make life easier.
Post Scriptum
Not advertising or anti-advertising in any way.
And for both, this is too small a nuance :)
But important enough for programmers.
If something is wrong with the question, I beg your pardon, I'm new here and don't understand everything yet...
Post Post Scriptum
Or where should I go with this...
Maybe just move it to a post?
Answer the question
In order to leave comments, you need to log in
The timer in the PLC is an analogue of a blunt mechanical / pneumatic time relay. Those. you kicked it and it went. And there, at least turn off the power and pull it out of the rack (relay in the sense) - it will count to the end. So it's not a bug, it's a feature. That's why it's like that for everyone.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question