![IDEC OpenNet series Скачать руководство пользователя страница 320](http://html.mh-extra.com/html/idec/opennet-series/opennet-series_user-manual_617384320.webp)
23: M
ODEM
M
ODE
O
PEN
N
ET
C
ONTROLLER
U
SER
’
S
M
ANUAL
23-13
The TXD1 instruction in the sample program for the modem originate mode is programmed using
WindLDR
with parame-
ters shown below:
Sample Program for Modem Answer Mode
This program demonstrates a user program for the modem answer mode to move values to data registers assigned to the
modem mode at RS232C port 1 and initialize the modem. While the telephone line is connected, user communication
instruction RXD1 is executed to receive an incoming communication.
The RXD1 instruction is programmed using
WindLDR
with parameters shown below:
Source S1: Data register D10, No conversion, 2 digits, Repeat 10
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 con-
nected.
M8125 is the in-operation output special internal relay.
Timer T0 (1-sec timer TML) starts to time down when the
Open-
Net Controller
is started to run.
When timer T0 times out 5 seconds, M8055 is turned on to send
the initialization string for the modem answer mode.
M8077 (line connection status) is on while telephone line is con-
nected.
RXD1 receives incoming communication and stores received data
to data registers starting with D10.
M8120
REP
S1 –
1
D1 –
D8200
MOV(W)
T0
M8120
REP
S1 –
1
D1 –
D8203
MOV(W)
M8077
D2
D0
S1
20
D1
M0
RXD
1
M8120
SOTD
REP
S1 –
1
D1 –
D8201
MOV(W)
M8125
TML
5
T0
SOTU
M8055
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]