Saia-Burgess
Controls Ltd.
Manual Modem PCDxx7 Serie│Doc. 26/793; Ed. E2│30.04.2005
Example: Starting an application
5
5-3
Initialization of the Driver
In our case we are taking the string message for the selected modem.
intern_70
BYTE
B#16#B
! DO NOT EDIT !
OK_STRING
STRING[7]
‚OK‘
Configurable
intern_71
BYTE
B#16#1
! DO NOT EDIT !
OK_NUM
STRING[7]
‚0$R‘
! DO NOT EDIT !
intern_72
BYTE
B#16#1
! DO NOT EDIT !
CONNECT
STRING[7]
‚CONNECT‘
Configurable
intern_73
BYTE
B#16#2
! DO NOT EDIT !
RING
STRING[7]
‚RING‘
Configurable
intern_74
BYTE
B#16#3
! DO NOT EDIT !
NO_CARRIER
STRING[7]
‚NO CARR‘
Configurable
intern_75
BYTE
B#16#4
! DO NOT EDIT !
ERROR
STRING[7]
‚ERROR‘
Configurable
intern_76
BYTE
B#16#5
! DO NOT EDIT !
ERROR_NUM
STRING[7]
‚4$R‘
! DO NOT EDIT !
intern_77
BYTE
B#16#5
! DO NOT EDIT !
NO_DIAL_TONE
STRING[7]
‚NO DIAL‘
Configurable
intern_78
BYTE
B#16#7
! DO NOT EDIT !
BUSY
STRING[7]
‚BUSY‘
Configurable
intern_79
BYTE
B#16#8
! DO NOT EDIT !
NO_ANSWER
STRING[7]
‚NO ANSW‘
Configurable
intern_710
BYTE
B#16#9
! DO NOT EDIT !
BLACK_LISTED
STRING[7]
‚BLACK‘
Configurable
Intern_711
BYTE
B#16#A
! DO NOT EDIT !
DO NOT EDIT, system parameters
5.1.4 Initialize DB
When all the parameters of the DB100 have been set, you need now to initialize the
DB,
this is very important.
1.
In the menu View of the editor, select the option “Data view“.
2.
In the menu Edit, select the function “Initialize Data Block“.
Is this done, you can save your DB and close it.
5.2
Initialization of the Driver
In our example, all the modem functions including the modem driver are used in the
FC1. To insure a proper use of the modem, it’s necessary that the modem Driver
function is called every cycle after the initialization of it.
Usually we initialize the modem and its Driver after the POWER ON. If the POWER
ON of the PCD and the modem is done in the same time, then the initialization of the
modem should be delayed a little bit, to be sure that the modem is in order to answer.