Answer Mode - IDEC FC4A-C10R2 User Manual

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

27: M
M
ODEM
ODE
Example of AT Command:
AT and
are appended at the beginning and end of the AT general command string automatically by the system program
LF
and need not be stored in data registers. To program the AT command string of the example above, store the command
characters and ASCII value 0Dh for
4530h
D8130
5130h
D8131
5631h
D8132
D8133
0D00h
When the AT general command has been completed successfully, internal relay M8064 is turned on. If the AT general
command fails, internal relay M8074 is turned on.
The AT general command is determined successful when result code
received.

Answer Mode

The answer mode is used to send an initialization string to the modem and to issue the ATZ command to reset the modem.
To execute a command, turn on one of start internal relays M8055 or M8056. If two or more start internal relays are turned
on simultaneously, an error will result and error code 61 is stored in modem mode status data register D8111 (see page
27-7). When a start internal relay is turned on, a corresponding sequence of commands is executed once as described
below.
M8055:
Send initialization string and send the ATZ command
M8056:
Send the ATZ command
Initialization String in Answer Mode
When the modem mode is enabled as described on page 27-1 and the
string is stored to data registers D8145-D8169 at the END processing of the first scan. To send the initialization string from
the data registers to the modem, turn M8055 on; then the ATZ command is issued subsequently.
Default Initialization String:
As described in the Originate Mode, the initialization string can be modified to match your modem. For details of modify-
ing the initialization string, see page 27-3.
When the initialization string has been sent successfully, internal relay M8065 is turned on. If the initialization string fails,
internal relay M8075 is turned on. When the subsequent ATZ command is also completed successfully, M8066 will also be
turned on.
ATZ (Resetting the Modem) in Answer 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 M8055 is turned on. The ATZ command
can also be issued separately by turning M8056 on.
ATZ Command:
When the ATZ command has been completed successfully, internal relay M8066 is turned on. If the ATZ command fails,
internal relay M8076 is turned on.
If the initialization string has been stored in the non-volatile memory of the modem, M8055 may be skipped. Start with
M8056 to send the ATZ command.
27-6
ATE0Q0V1
CR LF
to data registers starting with D8130.
CR
45h = "E"
30h = "0"
51h = "Q"
30h = "0"
56h = "V"
31h = "1"
0Dh =
CR
All characters subsequent to
ATE0Q0V1&D2&C1\V0X4&K3\A0\N5S0=2&W
ATZ
CR LF
« FC4A M
CR
OK
CR LF
MicroSmart
S
U
'
M
ICRO
MART
SER
S
ANUAL
are ignored.
returned from the modem is
CR LF
is started to run, the default initialization
CR LF
»
MicroSmart

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents