We have a thermo sensor to be connected with robot controller through COM connection. The process is to send a command from robot to sensor, e.g "00ms ", then a value wiill be returned. However, the questions are:
we can’t define string as "00ms ".
What functions can be used for com communication. We used the code below:
Open “com1:”, channelBin;
Writeanybin channel, rec; rec := ReadStrBin (channel, 10);
rec := ReadStrBin (channel, 10);
Close channel;
but it didn’t work to get any response from sensor.
Thanks for reply.
My sensor needs CR. I put command as “00msD”, and use your code. Still no response.
I connected sensor with PC. Program with c# to test sensor. Everything works fine to get data from sensor. I am confused about rapid code. How can I check what is wrong.