Saia-Burgess
Controls Ltd.
Manual Modem PCDxx7 Serie│Doc. 26/793; Ed. E2│30.04.2005
Example: Starting an application
5
5-1
Confi guring the modem parameters
5
Example: Starting an application
In this example we will show the necessary steps to integrate the modem functionality
into your application. We divide this in 4 phases:
1.
Configuring the modem parameters
2.
Initialization of the driver and the modem
3.
Starting a call
4.
Switching to protocol as RK512R
5.1
Configuring the modem parameters
In the first step, you need to integrate the Modem functions in your application. In this
case we will need the following ones:
●
FB70 and DB70 (Modem Driver) → it’s possible to change their number
●
FC700 (Modem Driver sub-function) → the number
can’t be changed
●
DB100 (DB_Modem) all modem parameters → the number can be changed
●
UDT100 (DB_Modem_sub_type) → the number can be changed, but you also
need to edit the DB100 and to change the UDT number in it.
●
FC701 ( Modem_Calling function) → the number can be changed
●
FC900 and DB900 (Protocol enable) → the number can be changed
When this is done, you need to edit the DB100 to adapt it for your modem type.
Be sure that you are in “Declaration View“
5.1.1 Parameter of the serial communication
In the structure
COM_parameter
you adjust the parameter of the serial communi-
cation port. This configuration of serial COM has to be adapted to communicate to the
modem and probably to communicate with the other subscriber after connection.
In the example we configure the serial COM port as it’s used most often:
Baud rate of 9600, 8 data bits, 1 stop bit, no parity bit. The ZVZ is adjusted for the
modem reply time to the commands given. This value (of 20 ms) works for the most
modems.The buffer size of 500 bytes, means that the serial COM will not be able to