27: MODEM MODE27-6 « FC4A MICRO SMART USER ’S MANUAL »Example of AT Command: ATE0Q0V1AT and are appended at the beginning and end of the AT general command string automatically by the system programand need not be stored in data registers. To program the AT command string of the example above, store the commandcharacters 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 generalcommand fails, internal relay M8074 is turned on.The AT general command is determined successful when result code OK returned from the modem isreceived.Answer ModeThe 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 turnedon simultaneously, an error will result and error code 61 is stored in modem mode status data register D8111 (see page27-7). When a start internal relay is turned on, a corresponding sequence of commands is executed once as describedbelow.M8055: Send initialization string and send the ATZ commandM8056: Send the ATZ commandInitialization String in Answer ModeWhen the modem mode is enabled as described on page 27-1 and the MicroSmart is started to run, the default initializationstring is stored to data registers D8145-D8169 at the END processing of the first scan. To send the initialization string fromthe 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&WAs 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 beturned on.ATZ (Resetting the Modem) in Answer ModeThe 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 MicroSmartsends the ATZ command to the modem following the initialization string when M8055 is turned on. The ATZ commandcan also be issued separately by turning M8056 on.ATZ Command: ATZWhen 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 withM8056 to send the ATZ command.CR LFLFCR4530hD81305130hD81315631hD813245h = “E” 30h = “0”51h = “Q” 30h = “0”56h = “V” 31h = “1”0D00hD8133 0Dh = All characters subsequent toCR are ignored.CRCR LF CR LFCR LFCR LF