![FabiaTech FX5201 Скачать руководство пользователя страница 49](http://html1.mh-extra.com/html/fabiatech/fx5201/fx5201_user-manual_3110308049.webp)
FabiaTech Corporation
40 RETURN
b. Send out one character to COM1
10
REM Enable transmitter by setting DTR ON
20
OUT &H3FC, (INP(&H3FC) OR &H01)
30
REM Send out one character
40
PRINT #1, OUTCHR$
50
REM Check transmitter holding register and shift register
60
IF ((INP(&H3FD) AND &H60) >0) THEN 60
70
REM Disable transmitter by resetting DTR
80
OUT &H3FC, (INP(&H3FC) AND &HEF)
90 RETURN
¾
c. Receive one character from COM1
10
REM Check COM1: receiver buffer
20
IF LOF(1)<256 THEN 70
30
REM Receiver buffer is empty
40 INPSTR$”
50 RETURN
60
REM Read one character from COM1: buffer
70 INPSTR$=INPUT$(1,#1)
80 RETURN
NOTE: The example of the above program is based on COM1 (I/O Address 3F8h).
The RS-485 of the FX5201 uses COM2. If you want to program it and
hardware setup, please refer to the BIOS Setup for COM2 address setup
and Chapter 5 “Technical Reference”: RS485 and RS422 Hardware Setup.
43
Содержание FX5201
Страница 6: ...vi...
Страница 12: ...FabiaTech Corporation 6...
Страница 50: ...FabiaTech Corporation 44...
Страница 64: ...FabiaTech Corporation Appendix Dimension a FX5201 DC12 24V OFF ON 2 1 LINK ACT 58...
Страница 65: ...FabiaTech Corporation 59 b FX5201K1 75 100 11 122 52 2 75 100 7 123...