Replies: 1 comment
-
Simplified data types mostly refers to strings and BOOL arrays, if you've worked with other libraries those usually have to be handled differently than all other tags. pycomm3 will automatically convert the string structure tags (.LEN and .DATA) to/from a python So if you're trying |
Beta Was this translation helpful? Give feedback.
-
I don't have access to a PLC to test this on right now or I would check myself but I am writing some code to read/write tags and am curious if the library can take tag values as strings in the write function when the PLC tag is an INT, DINT, REAL, etc. or if I need to have the type match up to the PLC tag type I am writing? I see that you had highlighted the simplified data types as a feature but wasn't sure if this was only for the more complex reasons that were stated or not. For example, to write to a DINT type in the PLC, would I need to ensure that the value I pass to the function is an int or can I pass a string (what my code currently would try to do) and have it handle that internally?
Beta Was this translation helpful? Give feedback.
All reactions