Hello!
I was wondering if I was misusing the set_lreal function or there's something not working. This is the current implementation.
`
def setlreal(bytearray: bytearray, byte_index: int, lreal: float) -> bytearray:
Using the function as it is I got wrong results writing on PLC. I did a small change to make it work:
def setlreal(bytearray: bytearray, byte_index: int, lreal: float) -> bytearray:
Hello! I was wondering if I was misusing the set_lreal function or there's something not working. This is the current implementation. ` def setlreal(bytearray: bytearray, byte_index: int, lreal: float) -> bytearray:
Using the function as it is I got wrong results writing on PLC. I did a small change to make it work:
def setlreal(bytearray: bytearray, byte_index: int, lreal: float) -> bytearray:` Is this correct? Am I doing something wrong?
Thanks!