27: MODEM MODE
27-12 « FC4A MICROSMART USER’S MANUAL »
Sample Program for Modem Originate Mode
This program demonstrates a user program for the modem originate mode to move values to data registers assigned to the
modem mode, initialize the modem, dial the telephone number, and disconnect the telephone line. While the telephone line
is connected, user communication instruction TXD2 sends a character string “Connect.”
The TXD2 instruction in the sample program for the modem originate mode is programmed using
WindLDR with parame-
ters shown below:
M8120 is the initialize pulse special internal relay.
The MOV instruction stores 1 to D8103 to enable user
protocol after telephone line is connected.
MOV instructions set a dial command ATD1234 .
“12” (3132h = 12594) → D8170
“34” (3334h = 13108) → D8171
“CR” (0D00h = 3328) → D8172 to enter at the end of
the telephone number.
When input I0 is turned on, M8050 (initialization string) is
turned on to send the initialization string, ATZ, and dial
command to the modem.
M8077 (line connection status) is on while telephone line
is connected.
When I1 is turned on, TXD2 sends seven characters “Con-
nect.” See the WindLDR dialog box shown below.
When input I2 is turned on, M8053 (disconnect line) is
turned on to disconnect the telephone line.
CR LF
CR
M8120
REPS1 –
1
D1 –
D8103
MOV(W)
I0
I1 M8077
SOTU
D2
D0
S1
7
D1
M0
TXD
2
I2
M8050
M8053
M8120
REPS1 –
12594
D1 –
D8170
MOV(W)
REPS1 –
13108
D1 –
D8171
MOV(W)
REPS1 –
3328
D1 –
D8172
MOV(W)