AX10445 Module Series User
’
s Manual
Application
22
those for COM1 and COM2.
When you are using the AX10445 Series in transferring text
files, you only need to use 7 data bits because the letters or
any punctuation mark won
’
t require the 8th bit. By sending
only 7 bits, you slightly increase the speed of sending file.
But in transferring a program file you have to transmit all 8
bits, because the EOF mark cannot be used to signal the end
of the file. This is the reason why a count of the number of
bytes to be transferred must be sent to the receiver prior to
sending the file.
4.2 Demo Program for QB4.5
‘ TITLE : Demo program for QB4.5 at RS485 mode, two wire operation
‘
‘ JOB : Data sent by COM1 port, data received by COM2 port
‘
‘PROGRAM:
CLS
‘ open two communication ports
OPEN “com1:9600,n,8,1” FOR RANDOM AS #1 LEN = 256
OPEN “com2:9600,n,8,1” FOR RANDOM AS #2 LEN = 256
‘ turn off RTS
OUT &H3FC, 8
OUT &H2FC, 8
‘ main loop
DO
‘ send a string from com1
‘ turn on RTS and DTR
OUT &H3FC, 11
‘ write data to device
PRINT #1, “This is a string sent out through com1.”
‘ wait for complete
SLEEP 1
‘ turn off RTS and DTR
OUT &H3FC, 8
‘ check data received from com2
IF NOT EOF(2) THEN
Содержание AX10445 Series
Страница 1: ...AX10445 Series Isolated Dual Channel RS422 485 Interface Module User s Manual...
Страница 10: ...AX10445 Module Series User s Manual 4 This page does not contain any information...
Страница 20: ...AX10445 Module Series User s Manual Setting up the AX10445 14 This page does not contain any information...
Страница 41: ...AX10445 Module Series User s Manual Application 33 return 0 void Reset_Buf rear1 front1 rear2 front2 0...
Страница 46: ...AX10445 Module Series User s Manual 36 This page does not contain any information...
Страница 48: ...AX10445 Module Series User s Manual 38 This page does not contain any information...
Страница 50: ...AX10445 Module Series User s Manual 40 This page does not contain any information...
Страница 52: ...AX10445 Module Series User s Manual 42 This page does not contain any information...
Страница 54: ...AX10445 Module Series User s Manual 44 This page does not contain any information...
Страница 58: ...AX10445 Module Series User s Manual 48 This page does not contain any information...