pycomm3 icon indicating copy to clipboard operation
pycomm3 copied to clipboard

SLCDriver writing Strings

Open mfastag opened this issue 1 year ago • 0 comments

When dealing with SLC writing Strings. Has anyone gotten this to work? I had to resolve the parse issue (in "def _slc_string_swap" append a zero byte if data length is odd)... but although I don't receive an error after that, the operation does not take...

with SLCDriver('192.168.0.170') as plc:
    plc.write(('ST16:0', 'write this'))

mfastag avatar Mar 07 '24 20:03 mfastag