Can I use it like: TYPE Convert_2_int_to_byte :UNION i: WORD; c:WORD; bytes: ARRAY [0..3] OF BYTE; END_UNION END_TYPE TYPE Convert_Real_to_byte :UNION a:REAL; bytes: ARRAY [0..3] OF BYTE; END_UNION END_TYPE
I have 2 different variable data types INT : 2 Bytes from the first var =INTA and 2 Bytes from the second var=INTB, and GLUE them to REALC-float
I am using MDLC. I want to glue the bytes together INTA , INTB to get REALC(Float)
I have 2 different variable data type INT I want to convert: 2 Bytes from the first var =INTA and 2 Bytes from the second var=INTB INTO REALC
Can I use it like: TYPE Convert_2_int_to_byte :UNION i: WORD; c:WORD; bytes: ARRAY [0..3] OF BYTE; END_UNION END_TYPE TYPE Convert_Real_to_byte :UNION a:REAL; bytes: ARRAY [0..3] OF BYTE; END_UNION END_TYPE
Hi, I want to convert 2 diff INT datatype TO 1 Real datatype. for example: int1: int int2:int real3:real How Can convert int1&int2 TO Real3? Thanks
Hi, I want to convert 2 diff INT datatype TO 1 Real datatype. for example: int1: int int2:int real3:real How Can convert int1&int2 TO Real3? Thanks
below is my ladder app in codesys.