EasyManua.ls Logo

LS Industrial Systems GLOFA G7M-DR60U - Examples

LS Industrial Systems GLOFA G7M-DR60U
367 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 8. Communication Functions
8-87
8.4.4 Example
No Protocol Communication is useful to send or receive the unfixed data. This example assumes that an electrical weighing machine
sends unfixed data. GM7U can communicate with it using No Protocol Communication.
For No Protocol Communication, one of following end condition is designated. One is the size of the received data, and the other is the
the received data setting that is the some with pre-defined data.
This example assumes that the received data’s tail is EOT. If there is no tail in the received data, all of the received data must be
registered first in the DRCV function block.
Assume that the received data from a barcode is as follow.
“ENQ (1Byte) + Station No.(1Byte’) + Weighing data(1~10 Words) + EOT(1Byte)”
When the above frame is received, the receiving condition format is set as h0104, and the moment when EOT is received the received
framed is saved into the designated device. It checks the station and the data size and decides whether to use the received data. After
that, it sends the data using the DSND function block when it is needed to respond.
Assume that the sending data format is as follow.
“ACK (1Byte) + Station No.(1Byte’) + OK(2Bytes) + EOT(1Byte)”
In this example describes when the data range (1~10 word) is 1 word.
1) Communication parameter setting
Open a new project file from GMWIN, and select ‘GM7U’ for the PLC type.
Designate baud rate, data bit, parity bit, stop bit, and protocol in ‘Communication method’.
GM7U Main unit
Electrical weighing machine

Table of Contents

Related product manuals