Hi,
I have a program, written in PB3.5, wich uses the com port for
communication with a PLC. This program works fine with DOS.
Now I've upgraded the computer and it's now running with Windos NT.
The communication doesn't work anymore, even nothing was changed.
Here is a snippet of the code, used in the program.
x%=freefile
OPEN "COM1:9600,E,8,1" AS #x% LEN = 1024
dle=&H10
stx=&H02
etx=&H03
ret=-99
start=timer
print #x%,chr$(2);
do 'dle lesen
loop until loc(x%)<>0 or timer-start>1
if timer-start<1 then sps$=input$(1,#x%)
if timer-start>1 then
close #x%
exit sub
end if
print #x%,chr$(0);
print #x%,chr$(0);
and so on...
I'm not quite shure what the problem is because some posts said
that progrtams using com ports should run with Windows NT.
But I have the feeling that it might have something to do with
the security philosophy of NT.
Can somebody help or clear the situation?
Best regards
Werner
------------------
Werner Lentz
[email protected]
I have a program, written in PB3.5, wich uses the com port for
communication with a PLC. This program works fine with DOS.
Now I've upgraded the computer and it's now running with Windos NT.
The communication doesn't work anymore, even nothing was changed.
Here is a snippet of the code, used in the program.
x%=freefile
OPEN "COM1:9600,E,8,1" AS #x% LEN = 1024
dle=&H10
stx=&H02
etx=&H03
ret=-99
start=timer
print #x%,chr$(2);
do 'dle lesen
loop until loc(x%)<>0 or timer-start>1
if timer-start<1 then sps$=input$(1,#x%)
if timer-start>1 then
close #x%
exit sub
end if
print #x%,chr$(0);
print #x%,chr$(0);
and so on...
I'm not quite shure what the problem is because some posts said
that progrtams using com ports should run with Windows NT.
But I have the feeling that it might have something to do with
the security philosophy of NT.
Can somebody help or clear the situation?
Best regards
Werner
------------------
Werner Lentz
[email protected]
Comment