Been a while since I posted here but I need some help with an S7-1200 and the CM1241 module.
I am sending commands to a weigh scale to get the weight so I can add a certain amount of water. It works ok when I ask the scale for repetitive weights as the buffer is constantly open, the issue I am having is with single commands.
I can get round it with a single weight reading and querying the scale to see if it's there but creating a routine that retries if the data buffer doesn't match what I am expecting. However when I send a Tare command, the buffer always seems to be 1 set(buffer) of data behind.
I have checked it with Tera Term and that always reads the correct data. What am I missing?
I am sending commands to a weigh scale to get the weight so I can add a certain amount of water. It works ok when I ask the scale for repetitive weights as the buffer is constantly open, the issue I am having is with single commands.
I can get round it with a single weight reading and querying the scale to see if it's there but creating a routine that retries if the data buffer doesn't match what I am expecting. However when I send a Tare command, the buffer always seems to be 1 set(buffer) of data behind.
I have checked it with Tera Term and that always reads the correct data. What am I missing?