Dear friends
I am am trying to programm the com1 & com2. Read from com2 some ascii word updating each sec
and send it to com1 in a specific format. I ve written the part for com1
I wonder how i could directly send input from com2 to a variable
and send it to com1. The com1 progr is very simple
20 OPEN "COM1:9600,E,7,,CS,DS,CD" AS #1
30 CLS
40 FOR X=1 TO 20 : PRINT#1, CHR$(0);:NEXT
50 A$ = CHR$(1)+"Z00"+CHR$(2)+"AA"+CHR$(27)+" b"+STR$(Y)+CHR$(4)
60 PRINT #1, A$
70 PRINT:PRINT" ";Y
I want the Y to be imported from com2 every sec.Should I try
to assign directly y-> com2 input? is it possible and what is the format ?
Thnx for the time!
------------------
I am am trying to programm the com1 & com2. Read from com2 some ascii word updating each sec
and send it to com1 in a specific format. I ve written the part for com1
I wonder how i could directly send input from com2 to a variable
and send it to com1. The com1 progr is very simple
20 OPEN "COM1:9600,E,7,,CS,DS,CD" AS #1
30 CLS
40 FOR X=1 TO 20 : PRINT#1, CHR$(0);:NEXT
50 A$ = CHR$(1)+"Z00"+CHR$(2)+"AA"+CHR$(27)+" b"+STR$(Y)+CHR$(4)
60 PRINT #1, A$
70 PRINT:PRINT" ";Y
I want the Y to be imported from com2 every sec.Should I try
to assign directly y-> com2 input? is it possible and what is the format ?
Thnx for the time!
------------------
Comment