Chapter 8 Communication Functions

8.4.4 Examples

Assume that a electrical weighing machine sends data which has unfixed size continuously. MASTER-K120S can communicates with it using no protocol.

MASTER-K120S Main unit

Electrical weighing machine

For no protocol communication, one of following ending condition is designated. One is size of received data and the other is whether it has some pre-defined data.

In this example, assume that received data is as following.

“ ENQ(1Byte) + Station No.(1Byte’) + Data(1~10 Words) + EOT(1Byte)”

When above frame is received, Received framed is saved to designated device If designated ‘Receiving Format(Cw)’ is h0104. and decides if use these data or not. After that, sends data which is in sending device if required.

Assume that the sending data format is as following.

ACK(1Byte) + Station No.(1Byte’) + OK(2Bytes) + EOT(1Byte)” In this example the size of received data is 1 word.

8-71

Page 261
Image 261
LG Electronics 120S user manual Communication Functions Examples