2/19/2010 8:13 AM | |
Posts: 19 Rating: (0) |
FieldRead and FieldWrite functions does not support input from string variable. As I can see the input has to be an array. |
10/1/2010 8:19 PM | |
Joined: 7/7/2010 Last visit: 11/19/2024 Posts: 15406 Rating: (2446) |
I ran into same problems with STRING->CHAR ARRAY and CHAR ARRAY->STRING. I wrote two functions to handle each case, and a 3rd to do single character->string conversion. They were customized to a max length of 20 characters (STRING[20]), but easily scale up to 254 (max length of a STRING). Attached is a more generalized version of the library along with a way to test it (assuming you have a development PLC available). AttachmentProject2.zip (1309 Downloads) |
science guy |
|
This contribution was helpful to2 thankful Users |
Follow us on