Paradigm1999
Member
Hi, I am writing a function block to process some boolean algebra and the result with be processed. I am using a Omron CX programmer and under the function block, I can only choose the output as UINT (unsigned integer) and cannot choose Hex. My functional block result will be the SV of my timer TIM. However, when i transfer the value from the functional block in UINT to the SV of TIM, it convert the int to hexidecimal value which become incorrect for the timer SV.
e.g. The functional block result is 50 and when transferring to the TIM, the SV become #32 and therefore become wrong timing.
My question will be. Is there a way to transfer the 50 UNIT and become #50 for my timer function instead of letting the CX programmer converting from Int to Hex?
Or is there a formula to convert int = 50 to 80 (50H) and so on. So i can write another function block to covert any int to it hex. Thanks a lot
e.g. The functional block result is 50 and when transferring to the TIM, the SV become #32 and therefore become wrong timing.
My question will be. Is there a way to transfer the 50 UNIT and become #50 for my timer function instead of letting the CX programmer converting from Int to Hex?
Or is there a formula to convert int = 50 to 80 (50H) and so on. So i can write another function block to covert any int to it hex. Thanks a lot