| Bug: LINT_TO_TIME, ULINT_TO_TIME, Signed Data Down Counters [message #1754959]
||Fri, 24 February 2017 14:38
| yuvaraj velumani
Registered: April 2016
I was trying to test some of the function blocks and noticed few of them are really not working as per their functional requirement states.
1) F_SINT_TO_TIME, F_INT_TO_TIME, F_DINT_TO_TIME, F_LINT_TO_TIME:
As these are used to convert a signed data variable to TIME data type, what is the real use case in converting negative value to TIME?
Since it is converting 8 byte to TIME and the maximum OUT value which I receive is T#922372036000ms. But the maximum 8 byte data range is actually from 0 to 18,446,744,073,709,551,615 and shouldn't be the OUT range from T#0ms to T#18446744073709551615ms.
3) signed data down counters:
The Q output turns TRUE when CV become less than or equal to zero. So for all negative ranges the output remains TRUE. What is the purpose of having signed down counters? Shouldn't it be counting till its minimum value and then make Q output TRUE?
Powered by FUDForum
. Page generated in 0.01955 seconds