Closed lintamacar closed 6 years ago
I needed to write in the ASCII numbers like this:
operations = client.parse_operations(["TRM_ElementReject_Data.Production_Order.DATA[0-2]=(SINT)97,98,99"])
You can actually do ascii-to-number conversions and vice versa like ord('a')
and chr(97)
.
I'm trying to connect to my PLC and just read/write to a string tag. I've looked at the documentation and through all of the forum posts people have made on here for clues. Right now I'm able to read/write individual characters as DINTs, but that means I'll have to do an ascii translation for every character I want to read or write.
I've tried something like
operations = client.parse_operations(["TRM_ElementReject_Data.Production_Order[0]=(STRING)xyz"])
, but I haven't had any success. Help, please?