27: M
ODEM
M
ODE
27-4
« FC4A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
»
AT and
are appended at the beginning and end of the initialization string automatically by the system program and are
not stored in data registers.
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
need not
be stored in data registers. Use the MOV (move) instructions on
WindLDR
to set the initialization string characters and
ASCII value 0Dh for
at the end. Program the MOV instructions to replace the default values in D8145-D8169 stored in
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
MicroSmart
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:
ATZ
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
WindLDR
to set the telephone number and execute the MOV instruc-
tions before turning on start internal relays M8050-M8052.
Example of Dial Command:
ATD1234
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 the telephone number and
ASCII value 0Dh for
to data registers starting with D8170. It is also possible to store character T for touch-tone phone
or P for pulse or rotary phone.
LF
0D00
8161
Q0
8146
V1
8147
&D
8148
2&
8149
C1
8150
\V
8151
0X
8152
4&
8153
K3
8154
\A
8155
0\
8156
N5
8157
S0
8158
=2
8159
&W
8160
E0
8145
AT
DR
LF
LF
CR
CR LF
CR LF
LF
CR
3132h
D8170
3334h
D8171
0D00h
D8172
31h = “1”
32h = “2”
33h = “3”
34h = “4”
0Dh =
All characters subsequent to
CR
are ignored.
CR
Summary of Contents for FC4A-C10R2
Page 1: ...FC4A SERIES Micro Programmable Logic Controller User s Manual FC9Y B812 ...
Page 6: ...PREFACE 4 FC4A MICROSMART USER S MANUAL ...
Page 94: ...2 MODULE SPECIFICATIONS 2 74 FC4A MICROSMART USER S MANUAL ...
Page 184: ...6 ALLOCATION NUMBERS 6 20 FC4A MICROSMART USER S MANUAL ...
Page 218: ...8 ADVANCED INSTRUCTIONS 8 8 FC4A MICROSMART USER S MANUAL ...
Page 240: ...11 BINARY ARITHMETIC INSTRUCTIONS 11 8 FC4A MICROSMART USER S MANUAL ...
Page 244: ...12 BOOLEAN COMPUTATION INSTRUCTIONS 12 4 FC4A MICROSMART USER S MANUAL ...
Page 252: ...13 SHIFT ROTATE INSTRUCTIONS 13 8 FC4A MICROSMART USER S MANUAL ...
Page 274: ...15 WEEK PROGRAMMER INSTRUCTIONS 15 8 FC4A MICROSMART USER S MANUAL ...
Page 378: ...22 DUAL TEACHING TIMER INSTRUCTIONS 22 4 FC4A MICROSMART USER S MANUAL ...
Page 386: ...23 INTELLIGENT MODULE ACCESS INSTRUCTIONS 23 8 FC4A MICROSMART USER S MANUAL ...
Page 408: ...24 ANALOG I O CONTROL 24 22 FC4A MICROSMART USER S MANUAL ...
Page 426: ...26 COMPUTER LINK COMMUNICATION 26 6 FC4A MICROSMART USER S MANUAL ...