-
I'm trying to use pycomm3 to write a single boolean value into a byte of a DINT. I tried treating the DINT as an array of booleans, but that did not work. The library returns the following error: I am writing this boolean as a part of writing several tags using the tuple method. I am using the LogixDriver on an A/B PLC. Please let me know if you need specifics on the PLC. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
What is the PLC and version you're using? This is supported and should work, there are tests for it and I just tried it myself without any issue. Also, check the permissions on the tag to make sure it's not None or Read Only.
|
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay in responding! I worked with my PLC programmer to test a couple of things out. With Pycomm3 I can write to a single bit of a DINT embedded within a UDT, as you stated above. The library is giving me the error I mentioned in my original post because RMT_IN is a UDT and CYL is an embedded UDT inside RMT_IN. Status is a DINT within CYL, i.e. attempting to read or write RMT_IN.CYL.Status.0 gives me the Destination unknown error. I was able to read RMT_IN.CYL.Status as a DINT. We are using an AllenBradley 1756-L83E PLC with Studio 5000 version 32 or 33. |
Beta Was this translation helpful? Give feedback.
-
Issue fixed in v1.2.3 |
Beta Was this translation helpful? Give feedback.
Issue fixed in v1.2.3