User`s manual

278
11.3.2 Application example for data reception using a combination
that specifies the first frame
In the description of this program example, conditions for data reception using a user frame are as follows.
(1) The Q series C24 I/O signals
The Q series C24 is installed at QCPU I/O signal addresses X/Y80 to X/Y9F.
(2) Q series C24 interface used in data communications with the external device
The Q series C24 CH1 side RS-232 interface is used.
(3) Data to be registered on the GX Configurator-SC "Transmission control and
other system settings" screen and "Non procedure system settings" screen
used for data communication using a user frame.
Change default values for the items listed in the table below.
Use default values for other items.
*1 This program example gives the registered contents of the user frame No. specified as the first frame No. and the last
frame No.
[When receiving with a combination that specifies the first frame]
Item Set contents
Buffer memory address to
store registration value
Remarks
Word/byte units designation Word/byte 96H Set to either one according to the example.
Receive transparent code
designation
Yes/No 120H
When Yes, Additional code: 10H (DLE),
Transparent code: 02H (STX)
ASCII-BIN conversion designation Do not convert 121H Select "Do not convert" in the example.
Received data count 6 to 511 A4H Set according to the example.
Receive complete code None A5H
User frame use enable/disable
designation
Use ADH
Page 279, Section 11.3.2 (3) (a) to
Page 283, Section 11.3.2 (3) (e)
First frame No. designation
Last frame No. designation
*1
Yes AEH to B5H
User frame receive format
designation
Format-0/ Format-1 2020H to 2023H
Exclusive format-1 received data
count designation
0H to FFFFH 2024H to 2027H
Item User frame No. Registration code Registered data contents
First frame No.
1st 3E8H 02H, 51H, 20H, 0AH, 3BH
STX, Q, (SP),
External device station No.,;
2nd 3E9H 02H, 41H, 3BH STX, A, ;
3rd 6H 06H ACK
4th 15H 15H NAK
Last frame No.
1st 41BH 03H, FFH, F0H ETX, Sum check code
2nd 0H (none)
3rd 0H (none)
4th 0H (none)