home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 July / VPR9707B.ISO / DRIVER / OMRON / 6420DSU / MAC / ARA定義 / !OMRONFW.577 < prev    next >
Text File  |  1996-09-12  |  4KB  |  261 lines

  1. !
  2. ! "OMRON FW6420 9/12/96"
  3. !
  4. @ORIGINATE
  5. @ANSWER
  6. !
  7. @LABEL 1
  8. serreset 57600, 0, 8, 1
  9. !
  10. ! first recall the factory configuration
  11. !
  12. hsreset 0 1 0 0 0 0
  13. dtrclear
  14. pause 10
  15. dtrset
  16. pause 10
  17. matchclr
  18. settries 0
  19. matchstr 1 3 "OK\13\10"
  20. @LABEL 2
  21. write "ATZ\13"
  22. matchread 30
  23. inctries
  24. iftries 2 59
  25. jump 2
  26. !
  27. ! Next, Set up the configuration: Echo off
  28. !
  29. @LABEL 3
  30. matchstr 1 4 "OK\13\10"
  31. write "ATE0\13"
  32. matchread 30
  33. jump 59
  34. !
  35. ! Set result code is long form.
  36. !
  37. @LABEL 4
  38. matchstr 1 5 "OK\13\10"
  39. write "ATQ0V1\13"
  40. matchread 30
  41. jump 59
  42. !
  43. ! Set RS-CS flow control
  44. !
  45. @LABEL 5
  46. matchstr 1 6 "OK\13\10"
  47. write "AT&K3\13"
  48. matchread 30
  49. jump 59
  50. !
  51. ! Set the format of "connect xxxx" result code
  52. !
  53. @LABEL 6
  54. matchstr 1 7 "OK\13\10"
  55. write "ATX4\13"
  56. matchread 30
  57. jump 59
  58. !
  59. ! Set the format of "RING" result code
  60. !
  61. @LABEL 7
  62. matchstr 1 8 "OK\13\10"
  63. write "ATW0\13"
  64. matchread 30
  65. jump 59 
  66. !
  67. ! Set not PPP mode.
  68. !
  69. @LABEL 8
  70. matchstr 1 9 "OK\13\10"
  71. write "AT$N1=0\13"
  72. matchread 30
  73. jump 59
  74. !
  75. ! The modem is ready.  So enable answering, or originate a call
  76. !
  77. @LABEL 9
  78. note "FW6420 Ready"3
  79. ifANSWER 30
  80. !
  81. ! @ORIGINATE
  82. !
  83. note "Dialing ^1" 3
  84. ! localized note "Dialing ^1" 3
  85. write "ATS0=0D^1\13"
  86. !
  87. @LABEL 10
  88. matchstr  1 19 "CONNECT 57600\13\10"
  89. matchstr  2 50 "NO CARRIER\13\10"
  90. matchstr  3 51 "ERROR\13\10"
  91. matchstr  4 53 "BUSY\13\10"
  92. matchread 700
  93. jump 59
  94. !
  95. @LABEL 11
  96. note "Communicating at 1200 bps" 3
  97. ! localized note "Communicating at 1200 bps" 3
  98. jump 20
  99. !
  100. @LABEL 12
  101. note "Communicating at 2400 bps" 3
  102. ! localized note "Communicating at 2400 bps" 3
  103. jump 20
  104. !
  105. @LABEL 13
  106. note "Communicating at 4800 bps" 3
  107. ! localized note "Communicating at 4800 bps" 3
  108. jump 20
  109. !
  110. @LABEL 14
  111. note "Communicating at 9600 bps" 3
  112. ! localized note "Communicating at 4800 bps" 3
  113. jump 20
  114. !
  115. @LABEL 15
  116. note "Communicating at 14400 bps" 3
  117. ! localized note "Communicating at 14400 bps" 3
  118. jump 20
  119. !
  120. @LABEL 16
  121. note "Communicating at 19200 bps" 3
  122. ! localized note "Communicating at 19200 bps" 3
  123. jump 20
  124. !
  125. @LABEL 17
  126. note "Communicating at 28800 bps" 3
  127. ! localized note "Communicating at 28800 bps" 3
  128. jump 20
  129. !
  130. @LABEL 18
  131. note "Communicating at 38400 bps" 3
  132. ! localized note "Communicating at 38400 bps" 3
  133. jump 20
  134. !
  135. @LABEL 19
  136. note "Communicating at 57600 bps" 3
  137. ! localized note "Communicating at 57600 bps" 3
  138. jump 20
  139. !
  140. @LABEL 20
  141. ifANSWER 21
  142. pause 30
  143. !
  144. @LABEL 21
  145. exit 0
  146. !
  147. ! @ANSWER
  148. ! Set up the modem to answer
  149. @LABEL 30
  150. matchstr 1 31 "OK\13\10"
  151. write "ATS0=1\13"
  152. matchread 30
  153. jump 59
  154. !
  155. @LABEL 31
  156. matchstr 1  32 "RING\13\10"
  157. matchstr 2  11 "CONNECT 1200\13\10"
  158. matchstr 3  12 "CONNECT 2400\13\10"
  159. matchstr 4  13 "CONNECT 4800\13\10"
  160. matchstr 5  14 "CONNECT 9600\13\10"
  161. matchstr 6  15 "CONNECT 14400\13\10"
  162. matchstr 7  16 "CONNECT 19200\13\10"
  163. matchstr 8  17 "CONNECT 28800\13\10"
  164. matchstr 9  18 "CONNECT 38400\13\10"
  165. matchstr 10 19 "CONNECT 57600\13\10"
  166. matchstr 11 50 "NO CARRIER\13\10"
  167. matchstr 12 51 "ERROR\13\10"
  168. matchstr 13 53 "BUSY\13\10"
  169. matchread 700
  170. jump 59
  171. !
  172. @LABEL 32
  173. userhook 1
  174. note "Answering incoming call" 3
  175. ! localized note "Answering phoneノ" 2
  176. jump 31
  177. !
  178. ! 50: error messages
  179. !
  180. @LABEL 50
  181. exit -6021
  182. !
  183. @LABEL 51
  184. exit -6016
  185. !
  186. @LABEL 53
  187. exit -6022
  188. !
  189. @LABEL 59
  190. exit -6019
  191. !
  192. ! Hang up the modem
  193. !
  194. @HANGUP
  195. @LABEL 60
  196. settries 0
  197. matchclr
  198. matchstr 1 64 "OK\13\10"
  199. !
  200. @LABEL 61
  201. pause 15
  202. write "+++"
  203. pause 15
  204. matchread 15
  205. inctries
  206. ! no response, try three times
  207. iftries 3 62
  208. jump 61
  209. !
  210. ! No response from modem, toggle DTR
  211. !
  212. @LABEL 62
  213. dtrclear
  214. pause 10
  215. dtrset
  216. jump 63
  217.  
  218. @LABEL 63
  219. note "If the ACT LED of FW6420 is light,push DISC key or hang up the line." 3
  220.  
  221. @LABEL 64
  222. settries 0
  223. matchclr
  224. matchstr 1 66 "OK\13\10"
  225. write "ATH\13"
  226. matchread 15
  227. inctries
  228. iftries 3 66
  229. jump 64
  230. ! no response, try three times!
  231. !
  232. dtrclear
  233. pause 10
  234. dtrset
  235. pause 10
  236. write "AT\13"
  237. matchread 30
  238. jump 66
  239. matchstr 1 66 "OK\13\10"
  240. !
  241. @LABEL 66
  242. flush
  243. matchclr
  244. matchstr 1 68 "OK\13\10"
  245. !
  246. ! Recall the factory settings
  247. !
  248. @LABEL 67
  249. write "ATZ\13"
  250. matchread 30
  251. jump 59
  252. !
  253. @LABEL 68
  254. matchstr 1 69 "OK\13\10"
  255. write "ATS0=0\13"
  256. matchread 30
  257. jump 59
  258. !
  259. @LABEL 69
  260. exit 0
  261.