206
7 COMMUNICATIONS BY THE MODEM FUNCTION
7.5 Sample program
7.5 Sample program
Program for data communication
The following shows sample programs to test the connection between C24s.
Each program contains a minimum set of processing necessary for performing a communication test.
Modify the data for initialization and data for connection in accordance with the system. When adding error-handling
procedures, add them separately by referring to the following explanations.
System configuration
The system configuration used in this program is shown below.
Connection request station side (RJ71C24-R2) program example
Perform the initialization of the modem connected to the CH1 side interface, line connection, data communication using the
nonprocedural protocol, and line disconnection by the command from the user.
■Parameter list
The following shows the parameters of this sample program.
• Module parameter
• Module extended parameter
Category Setting item Setting content
Basic settings Communication protocol setting Nonprocedural protocol
Communication speed setting 19200 bps
Transmission setting Data bit 8
Parity bit None
Odd/even parity Odd
Stop bit 1
Sum check code Yes
Online change Enable
Setting change Enable
Station number setting (CH1, 2 in common: 0 to 31) 0
Application
settings
Modem function
setting
Modem function
specification 1
Modem connection CH specification 1CH
Data No. for initialization designation 07D5H
Data No. for connection designation 0BB8H
Category Setting item Setting contents
Modem
connection data
Modem connection
data No.3000
Telephone number 0123456789
RJ71C24-R2 Ó RJ71C24-R2 Ò
Ò Line connection
Ó Communications by
the non-procedure protocol
Ô Line disconnection
Modem
Modem