We set up a connection with a TCP scale using character based messages.
The message delimiter is 'LGM ’ (minus the single quotes.) The problem starts when setting up the delimiter as there is a space after the M. This works fine until an operator clicks to manually enter a weight. (normally this is because they forgot to weigh a coil at the current station.) After the manual entry the delimiter loses the ‘space’ character and the tcp read stops working.
Is there a way to hard code a space into the delimiter field. Something that would look like this in python,maybe?
str1 = “LGM”
str2 =" "
str3 = str1+str2