User`s manual
293
CHAPTER 11 DATA COMMUNICATIONS USING USER FRAMES
11
11.5 Transmission Program
11.5 Transmission Program
The following are examples of a sequence program when the user frame (four) and transmission area data are
transmitted.
In the description of the sample programs, data transmission using user frames is described for the following
conditions case:
• The Q series C24 I/O signals: The Q series C24 installed at QCPU I/O signal addresses X/Y80 to X/Y9F.
• The Q series C24 interface used in data communications with the external device: The Q series C24 CH1
RS-232 interface
• Switch setting using GX Developer: Set the following setting values on the "intelligent functional module
switch setting" screen.
• Data to be registered on the GX Configurator-SC's "Transmission control and others system setting" screen
and the "Non procedure system settings" screen for data communication via user frames
• Change the default values for the items listed in the table below.
• Use default settings for other items.
• In example of Page 295, Section 11.5 (2), the transmission frame No. is not registered using the GX
Configurator-SC. (It is registered using a sequence program.)
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
0006H Nonprocedural protocol
Switch 3
CH2 Transmission setting
0000H
Not used
CH2 Communication rate setting
Switch 4
CH2 Communication protocol
setting
0000H
Switch 5 Station No. setting 0001H
Q series C24 station No.
(used in the user frame)
Item Set contents
Buffer memory address to
store registration value
Remarks
Word/byte units designation Byte 96H
Send transparent code designation No 11FH
Additional code: 10H (DLE),
Transparent code: 02H (STX)
ASCII-BIN conversion designation Disable 121H
Transmission frame No. designation
1st
3F2H BAH
Page 294, Section 11.5 (1)
Transmission frame No. designation
2nd
3F3H BBH
Transmission frame No. designation
3rd
8001H BCH
Transmission frame No. designation
4th
8000H BDH
Transmission frame No. designation
5th
41BH BEH