23: M
ODEM
M
ODE
O
PEN
N
ET
C
ONTROLLER
U
SER
’
S
M
ANUAL
23-5
More changes can also be made by entering required values to data registers D8245-D8269 or D8345-D8369. Store two
characters in one data register; the first character at the upper byte and the second character at the lower byte in the data
register. AT and
need not be stored in data registers. Use the MACRO instruction on
WindLDR
to set the initialization
string characters and ASCII value 0Dh for
at the end. Program the MACRO to replace the default values in D8245-
D8269 or D8345-D8369 stored in the first scan and execute the MACRO in a subsequent scan. For essential commands
which must be included in the initialization string, see page 23-9. After the new values are stored, do not change the values
stored in D8201/D8301 (modem initialization string selection). Turn on M8050/M8080 to send the new initialization
string to the modem.
When the initialization string has been sent successfully, internal relay M8060/M8090 is turned on. If the initialization
string fails, internal relay M8070/M8100 is turned on. When the subsequent commands of ATZ and dialing are also com-
pleted successfully, M8061/M8091 and M8062/M8092 will also be turned on.
The default initialization string or the modified initialization string stored in D8245-D8269 or D8345-D8369 is also used
for the initialization in the answer mode.
ATZ (Resetting the Modem) in Originate Mode
The default initialization string specifies to be stored in the non-volatile memory of the modem, using the &W command.
The initialization string is restored when the modem is powered up or when the ATZ command is issued. The
OpenNet
Controller
sends the ATZ command to the modem, following the initialization string when M8050/M8080 is turned on.
The ATZ command can also be issued separately by turning M8051/M8081 on, followed by the dial command to be exe-
cuted automatically.
ATZ Command: ATZ
When the ATZ command has been completed successfully, internal relay M8061/M8091 is turned on. If the ATZ com-
mand fails, internal relay M8071/M8101 is turned on. When the subsequent dialing is also completed successfully,
M8062/M8092 will also be turned on.
If the initialization string has been stored in the non-volatile memory of the modem, M8050/M8080 may be skipped. Start
with M8051/M8081 to send the ATZ command.
Dialing the Telephone Number
When the modem mode is enabled, data registers D8270-D8299 or D8370-D8399 are allocated to the telephone number.
Before turning on one of the start internal relays M8050-M8052 or M8080-M8082 for the originate mode, store the tele-
phone number in data registers starting with D8270/D8370. One data register stores two characters: the first character at
the upper byte and the second character at the lower byte in the data register. Since 30 data registers are allocated to the
telephone number, up to 60 characters can be stored, as many as the modem capacity allows. Use the MACRO instruction
on
WindLDR
to set the telephone number and execute the MACRO instruction before turning on start internal relays
M8050-M8052 or M8080-M8082.
Example of Dial Command: ATDT123
ATD and
are appended at the beginning and end of the dial command automatically by the system program and need
not be stored in data registers. To program the telephone number of the example above, store character T for touch-tone
phone or P for pulse or rotary phone, followed by the telephone number and ASCII value 0Dh for
to data registers start-
ing with D8270.
As described above, when start internal relay M8050/M8080 is turned on, the initialization string is sent, followed by the
ATZ command and the dial command. When start internal relay M8051/M8081 is turned on, the ATZ command is sent,
followed by the dial command. The dial command can also be sent separately by turning on start internal relay M8052/
M8082.
If retry cycles are set to data register D8209/D8309, the dial command is repeated at retry intervals specified by D8210/
D8310 (default 90 seconds) as many as the specified retry cycles (default 3 cycles) until the telephone line is connected.
LF
CR
CR LF
CR LF
LF
CR
5431h
D8270
3233h
D8271
0D00h
D8272
54h = “T”
31h = “1”
32h = “2”
33h = “3”
0Dh =
All characters subsequent to
CR
are ignored.
CR
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]