Hello all...
I want to try and program a PLC using QBasic. (Please do not ask why I do not want to use ladder logic. )
I am using OPEN "COM1: etc " FOR RANDOM AS #1 to initiate communication with PLC over COM1, and
to transmit: WRITE #1, "code for PLC"
to receive: INPUT$(1,#1) 'one character (byte)
however I am having some problems
1.its not working
2.its not working
Any suggestion?
-maybe easier program to do this?
-maybe other functions?
I appreciate all the ideas I can get.
Cheers
Mani
I want to try and program a PLC using QBasic. (Please do not ask why I do not want to use ladder logic. )
I am using OPEN "COM1: etc " FOR RANDOM AS #1 to initiate communication with PLC over COM1, and
to transmit: WRITE #1, "code for PLC"
to receive: INPUT$(1,#1) 'one character (byte)
however I am having some problems
1.its not working
2.its not working
Any suggestion?
-maybe easier program to do this?
-maybe other functions?
I appreciate all the ideas I can get.
Cheers
Mani