Ok i always use the built in timing functions in Pdiag for alarms. But if i had to work with messagebits i would have created a FB for each valve type and use a sfb timer as multiple instance inside the FB. Another approach is to use the clockbit and count up an integer
When u want to change a time value, then u need to recompile FB44... ?
Bratt said:
Ok i always use the built in timing functions in Pdiag for alarms. But if i had to work with messagebits i would have created a FB for each valve type and use a sfb timer as multiple instance inside the FB. Another approach is to use the clockbit and count up an integer
I always build my own timers using the Cycle/Clock Memory Pulse bits from the CPU, it has any pulse resolution for any time period.
U can build your own timer block.All u do is create your own time registers in a Data blocks for example.U can then increment decrement where neccesary...
i didnt ue the correct phrase, multi instance timers is the correct phrase.
essentially you have a block with as many SFB4 timers as you like, and have a DB associated with your block that holds all the enable/preset/done information