Hi,
I want to compare the expired time of an IEC timer (preferred) or an S5 timer.
I want to check if a expired time value increases and then store it for later use.
But I see no easy way to compare IEC TIME values or S5TIME values.
You can only compare INTs, DINTs or REALs.
Right now I have made my own timer FB that works as I want, and I have the expired time in INT format.
But I would like to know if there is an easier or more elegant way using the built-in IEC or S5 timers.
I want to compare the expired time of an IEC timer (preferred) or an S5 timer.
I want to check if a expired time value increases and then store it for later use.
But I see no easy way to compare IEC TIME values or S5TIME values.
You can only compare INTs, DINTs or REALs.
Right now I have made my own timer FB that works as I want, and I have the expired time in INT format.
But I would like to know if there is an easier or more elegant way using the built-in IEC or S5 timers.