9/9/2012 1:14 PM | |
Posts: 461 Rating:
|
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: 8/5/2024 Posts: 6844 Rating:
|
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 (1940 Downloads) |
9/10/2012 4:10 PM |
|
Joined: 10/7/2005 Last visit: 8/9/2024 Posts: 3016 Rating:
|
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