
Chapter 8 Exercising program
8-29
4) GMWIN programming
After frame edit and download are completed, prepare program in GMWIN to save TX/RX data of TX frames.
Next figure shows GMWIN program for TX/RX communication with MJ71UC24. With 1 sec. timer, ‘RD_REQ’
frame is transmitted in a cycle of 1 sec. and 24 bytes of data received are saved in variable area of ‘RD1’ if
‘RD_DATA’ frame is received.
RX data is saved in variable defined to
RD1 of RCV_MSG Function Block with
variable allocation set to %MB100 and with
25 ARRAY variables reserved to receive
24 bytes data.
As a RX checking flag of
RD_DATA frame, it turns on
if the frame registered as
No.1 frame is received via
RS-422 channel of No.0 slot
Cnet I/F module.