9/9/2012 1:14 PM | |
Posts: 461 Rating: (29) |
Hi, You can use "convert function" that is present under BASIC INSTRUCTIONS Tree.Here u can convert data from one format to another. Regards, Nelliyan.G |
9/9/2012 6:33 PM | |
Joined: 1/28/2009 Last visit: 3/14/2024 Posts: 6836 Rating: (1358) |
Hello , The function"CONV" is used to convert data types of 1- assembly of bits (BYTE,WORD,DWORD) and 2-numerical values (SINT,DINT, INT,USINT,UINT,UDINT,REAL) to each other. For your application,please check this function to convert bit sequence "DT1" (BYTE,WORD,DWORD) to numerical values "DT2". See the attachment for more information. Best regards Hamid Hosseini AttachmentCONV.pdf (1859 Downloads) |
9/10/2012 4:10 PM |
|
Joined: 10/7/2005 Last visit: 3/28/2024 Posts: 3002 Rating: (1045) |
I might be missing something here, but surely the easiest solution would be to change the data type of the AI from WORD to INT in the symbol table, wouldn't it? |
Cheers |
|
Follow us on