Answer mode, Answer mode -6 – IDEC MicroSmart User Manual

Page 432

Advertising
background image

27: M

ODEM

M

ODE

27-6

« FC4A M

ICRO

S

MART

U

SER

S

M

ANUAL

»

Example of AT Command:

ATE0Q0V1

AT and

are appended at the beginning and end of the AT general command string automatically by the system program

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

to data registers starting with D8130.

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

OK

returned from the modem is

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

MicroSmart

is started to run, the default initialization

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:

ATE0Q0V1&D2&C1\V0X4&K3\A0\N5S0=2&W

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

MicroSmart

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:

ATZ

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.

CR LF

LF

CR

4530h

D8130

5130h

D8131

5631h

D8132

45h = “E”

30h = “0”

51h = “Q”

30h = “0”

56h = “V”

31h = “1”

0D00h

D8133

0Dh =

All characters subsequent to

CR

are ignored.

CR

CR LF

CR LF

CR LF

CR LF

Advertising