User`s manual
165
CHAPTER 3 COMMUNICATIONS BY THE MODEM FUNCTION
3
3.5 Sample Programs
3.5.1 Sample program for data communication-1
(1) Sample program system configuration
The configuration of a system using this sample program is shown below.
(2) Connection request station side (QJ71C24-R2 1)) sample program
The modem connected to the CH1 side interface is initialized, the line is connected, data are transmitted by the
non-procedure protocol and the line is disconnected through commands from the user.
Perform the following settings before running this program.
(a) GX Developer switch settings ( Page 131, Section 3.4.2)
(b) Settings by GX Configurator-SC ( Page 131, Section 3.4.2)
Perform the following settings in each setting screen.
Use the default settings in screens and setting items other than those listed below.
• Modem function system settings
• Modem connection data registration
*1 Specify the external party's telephone No.
Switch No. Setting value
Switch 1 07E2
Switch 2 0006
Switch 5 0000
"Modem function system setting" screen setting items Setting value
Modem connection channel designation 1CH
Data No. for initialization designation 07D5
Data No. for connection designation 0BB8
"Data for modem connection" screen setting item Setting value
Data for modem connection 1
(H0BB8)
Telephone number
*1
0123456789
Modem Modem
1) Line connection
2) Communications by the non-procedure protocol
3) Line disconnection
QJ71C24-R2 2) QJ71C24-R2 1)