Hi
i have a sub named write2plc will send data(count) to PLC and waiting respone. the inside loop will waiting util timeout up if plc don't respone.
I don't know how to implement sleep() let system message processing continue when i am waiting plc's respone ?
i have a sub named write2plc will send data(count) to PLC and waiting respone. the inside loop will waiting util timeout up if plc don't respone.
B4X:
sub write2plc(data() as byte,count as int,timeout as int) as int
;
end sub
I don't know how to implement sleep() let system message processing continue when i am waiting plc's respone ?