3/26/2019 3:59 PM | |
Posts: 76 Rating:
|
Hello colleagues, I have a similar problem. Connection and data transfer from PLC to SQL database works perfectly, except for string data which have different length. For example, In the PLC data block: the tag is defined as String[16] In the SQL database: same tag is defined as nvarchar(50) I guess that data transfer in this case doesn't work because of different length. But there is no possibility to change string length in the tag definition neither on PLC nor in SQL database. Any suggestions? ------------------------------------------------------------------------------------------ |
Last edited by: mrsaleksandra at: 3/26/2019 4:00:04 PMLast edited by: Jen_Moderator at: 3/27/2019 8:53:28 AMNew subject after splitting |
|
3/28/2019 9:00 AM | |
Joined: 11/14/2018 Last visit: 4/3/2025 Posts: 502 Rating:
|
Hello mrsaleksandra, currently I can't provide a solution to your problem, but maybe a thought to narrow down the problem. You said, that the you think the problem may be the different string length in PLC and Database. So, to conclude, the different string length should not be the problem. But if it unexpectedly is the problem though, couldn't you set up a HMI tag with fitting string length, have you tried this? Greetings, Nzett11 |
If I could help you, be so kind and rate my contribution. :) |
|
Follow us on