Sample Program For Modem Originate Mode - IDEC FC4A-C10R2 User Manual

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

27: M
M
ODEM
ODE

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."
M8120
M8120
I0
SOTU
I1
M8077
I2
The TXD2 instruction in the sample program for the modem originate mode is programmed using
ters shown below:
27-12
MOV(W)
S1 –
D1 –
1
D8103
MOV(W)
S1 –
D1 –
12594
D8170
MOV(W)
S1 –
D1 –
13108
D8171
MOV(W)
S1 –
D1 –
3328
D8172
TXD
S1
D1
2
7
M0
« FC4A M
M8120 is the initialize pulse special internal relay.
REP
The MOV instruction stores 1 to D8103 to enable user
protocol after telephone line is connected.
MOV instructions set a dial command ATD1234
REP
"12" (3132h = 12594) → D8170
"34" (3334h = 13108) → D8171
REP
"CR" (0D00h = 3328) → D8172 to enter
the telephone number.
REP
When input I0 is turned on, M8050 (initialization string) is
turned on to send the initialization string, ATZ, and dial
M8050
command to the modem.
M8077 (line connection status) is on while telephone line
D2
is connected.
D0
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.
M8053
S
U
'
M
ICRO
MART
SER
S
ANUAL
WindLDR
»
CR LF
.
CR
at the end of
with parame-

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents