6/26/2024 2:40 PM | |
Joined: 7/7/2010 Last visit: 8/16/2024 Posts: 15092 Rating:
|
Refer to this link for UDINT range: https://support.industry.siemens.com/cs/mdm/109747174?c=85665065099&lc=en-AO [largest base 10 value on s7-1200] Refer to this link for ULINT range: https://support.industry.siemens.com/cs/mdm/109747174?c=85665151371&lc=en-AO [largest base 10 value on s7-1500] ULINT does not come close to a 40-digit base 10 value. Custom UDT / operator library required for handling entire data at once, and it will need to be processed on the PLC since your basic panel cannot handle base 10 values that large unless they are string[40] - and you offload the validation in the PLC logic - verifying every character is numeric from 0..9 (assuming no leading +/-, and no thousands separators and only positive whole numbers are allowed, including 40 0's.
|
science guy |
|
6/28/2024 6:46 AM | |
Joined: 9/23/2005 Last visit: 8/13/2024 Posts: 4660 Rating:
|
I missed this topic initially. What a pity. Anyway, even though it is to some extent solved I decided to answer. But the answer didn't fit the available char count. And for unknown reason I couldn't post it in few consecutive posts too. So, it is attached. Happy reading. "What is confusing you is the fact that you never see a number but always its digit representation." - I couldn't resist. AttachmentHex string to dec string.pdf (39 Downloads) |
Regards, |
|
This contribution was helpful to
2 thankful Users |
Follow us on