IDEC FC4A-C10R2 User Manual page 430

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

27: M
M
ODEM
ODE
AT and
are appended at the beginning and end of the initialization string automatically by the system program and are
LF
not stored in data registers.
DR
8145
AT
E0
Depending on your modem and telephone line, the initialization string may have to be modified. Consult the manual for
your modem.
Changes can be made by entering required values to data registers D8145-D8169. Store two characters in one data regis-
ter; the first character at the upper byte and the second character at the lower byte in the data register. AT and
be stored in data registers. Use the MOV (move) instructions on
ASCII value 0Dh for
CR
the first scan and execute the MOV instructions in a subsequent scan. For essential commands which must be included in
the initialization string, see page 27-8. After the new values are stored, turn on M8050 to send the new initialization string
to the modem.
When the initialization string has been sent successfully, internal relay M8060 is turned on. If the initialization string fails,
internal relay M8070 is turned on. When the subsequent commands of ATZ and dialing are also completed successfully,
M8061 and M8062 will also be turned on.
The default initialization string or the modified initialization string stored in D8145-D8169 is also used for the initializa-
tion 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
sends the ATZ command to the modem, following the initialization string when M8050 is turned on. The ATZ command
can also be issued separately by turning M8051 on, followed by the dial command to be executed automatically.
ATZ Command:
When the ATZ command has been completed successfully, internal relay M8061 is turned on. If the ATZ command fails,
internal relay M8071 is turned on. When the subsequent dialing is also completed successfully, M8062 will also be turned
on.
If the initialization string has been stored in the non-volatile memory of the modem, M8050 may be skipped. Start with
M8051 to send the ATZ command.
Dialing the Telephone Number
Data registers D8170-D8199 are allocated to the telephone number. Before turning on one of the start internal relays
M8050-M8052 for the originate mode, store the telephone number in data registers starting with D8170. 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 MOV (move) instructions on
tions before turning on start internal relays M8050-M8052.
Example of Dial Command:
ATD and
are appended at the beginning and end of the dial command automatically by the system program and need
LF
not be stored in data registers. To program the telephone number of the example above, store the telephone number and
ASCII value 0Dh for
CR
or P for pulse or rotary phone.
3132h
D8170
3334h
D8171
D8172
0D00h
27-4
8146
8147
8148
8149
8150
Q0
V1
&D
2&
C1
at the end. Program the MOV instructions to replace the default values in D8145-D8169 stored in
ATZ
CR LF
ATD1234
CR LF
to data registers starting with D8170. It is also possible to store character T for touch-tone phone
31h = "1"
32h = "2"
33h = "3"
34h = "4"
0Dh =
All characters subsequent to
CR
« FC4A M
8151
8152
8153
8154
8155
\V
0X
4&
K3
\A
to set the initialization string characters and
WindLDR
to set the telephone number and execute the MOV instruc-
WindLDR
S
U
'
M
ICRO
MART
SER
S
ANUAL
8156
8157
8158
8159
8160
0\
N5
S0
=2
&W
0D00
are ignored.
CR
»
8161
LF
need not
LF
MicroSmart

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents