![IDEC OpenNet series Скачать руководство пользователя страница 319](http://html.mh-extra.com/html/idec/opennet-series/opennet-series_user-manual_617384319.webp)
23: M
ODEM
M
ODE
23-12
O
PEN
N
ET
C
ONTROLLER
U
SER
’
S
M
ANUAL
When originating the modem communication, turn on M8050/M8080 to send the initialization string, the ATZ command,
and the dial command. If the initialization string has been stored in the non-volatile memory of the modem, turn on
M8051/M8081 to start with the ATZ command followed by the dial command.
When answering an incoming call, turn on M8055/M8085 to send the initialization string and the ATZ command. If the
initialization string has been stored in the non-volatile memory of the modem, turn on M8056/M8086 to send the ATZ
command only.
5.
Transmit or receive communication through the modem.
6.
Turn on start internal relay M8053/M8083 to disconnect the telephone line.
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 at RS232C port 1, initialize the modem, dial the telephone number, and disconnect the telephone line. While
the telephone line is connected, user communication instruction TXD1 sends a character string “Connect.”
Note:
The MACRO instruction is not included in the OpenNet Controller instruction set, but can be programmed using
WindLDR to move data to consecutive data registers using the MOV instructions.
M8120 is the initialize pulse special internal relay.
MOV instructions store values to data registers for the
modem mode at RS232C port 1.
1
→
D8200 to enable the modem mode for port 1.
1
→
D8201 to select a predetermined initialization string.
1
→
D8203 to enable user protocol after telephone line is
connected.
MACRO sets a dial command ATDT123
.
“T1” (5431h)
→
D8270 to designate touch tone and tele-
phone number.
“23” (3233h)
→
D8271 to designate telephone number.
0D00h
→
D8272 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, TXD1 sends seven characters
“Connect.” See the next page for the
WindLDR
dialog.
When input I2 is turned on, M8053 (disconnect line) is
turned on to disconnect the telephone line.
CR LF
CR
M8120
REP
S1 –
1
D1 –
D8200
MOV(W)
M8120
SOTD
REP
S1 –
1
D1 –
D8201
MOV(W)
M8120
D2
D8272
S1
5
D1
D8270
MACRO
M8120
REP
S1 –
1
D1 –
D8203
MOV(W)
I0
I1
M8077
SOTU
D2
D0
S1
7
D1
M0
TXD
1
I2
M8050
M8053
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]