(2)| 3/21/2015 12:23 PM | |
|
Posts: 5225 Rating:
|
Several solutions are possible. My base assumption is that you already have access to the received (raw) data in bytes. If that is so then you could have:
Where MB10x is each declared as a BYTE tag and "#Byte_x" is the received data. Next use MD100 declared as a REAL tag. Maybe you have the source data in a DB as array variable.. for example something looking like: #data_DB.reading[12] Another variation done in TIA13: (rename TXT file as SCL extension as to be able to import into TIA as external source file) The above example uses "AT overlay" and "Slicing" methods. Please review the S7-1200 technical manual for a full description. The above example can also be modified to deconstruct / construct / reconstruct other than bytes. Star worthy (wink) / helpful? Attachmentswap_bytes_real.txt (1316 Downloads) |
This contribution was helpful to
|
|
| 3/21/2015 12:42 PM | |
|
Posts: 16 Rating:
|
Thanks, I will try this soon! best regards Fredrik |
Follow us on