User`s manual
250
10.5 Example of an On-Demand Data Transmission Program
Using User Frames
The following shows an example of a sequence program when sending on-demand data including user frames.
Perform the following settings via GX Developer and registration using GX Configurator-SC in advance.
(The Q series C24 I/O signals are X/Y00 to X/Y1F and are sent from the CH1 side interface.)
(1) Switch settings by GX Developer
Set the following setting values on the "Intelligent functional module switch setting" screen.
(2) Registration via GX Configurator-SC
• Registering the user frame to be transmitted: To register the user frame data to be transmitted on the "User
frame registration" screen, refer to Page 220, CHAPTER 9.
• Registering the user frame No. to be transmitted and the unit of the data length: Using the screens listed
below, register the user frame No. and the unit of the length of data to be transmitted, which have been
registered on the "User frame registration" screen.
• "Transmission control and others system setting" screen
• "MC protocol system setting" screen
Setting item Setting value Remarks
Switch 1
CH1 Transmission setting
Set according to the
external device.
CH1 Communication rate setting
Switch 2 CH1 Communication protocol setting 0001H MC protocol format 1
Switch 3
CH2 Transmission setting 0000H
Not usedCH2 Communication rate setting 0000H
Switch 4 CH2 Communication protocol setting 0001H
Switch 5 Station No. setting 0000H Q series C24 station No.
Registration screen Setting item
Setting
value
Remarks
"Transmission control and others system setting"
screen
Word/byte units designation 0000H Word unit
"MC protocol system setting" screen
On-demand buffer memory head address designation 0400H
On-demand data length designation 0000H
On-demand user frame
designation
First frame No. designation 1st 0002H
First frame No. designation 2nd 03EBH
Last frame No. designation 1st 0401H
Last frame No. designation 2nd 0000H (No designation)
Message wait time designation 0000H