1968neil
Senior Member
Hi Chaps,
I'm having a problem with controlling a bench psu via RS232.
If i send the command OUTPut 1 from terminal it works perfectly
If i send exactly the same from my 18M2 via a MAX232 it does nothing, i can see data but the data length looks to be much longer than the terminal version on the oscilloscope.
I've tried to keep it as simple as possible to get the basics working, can anyone enlighten me as to what i may not be doing quite right ?
Code :
Symbol Baud = T9600_8 ; Set Baud rate T9600
Symbol RS232RX = B.4 ; Define RS232 Receive Pin
Symbol RS232TX = B.5 ; Define RS232 Transmit Pin
High RS232TX
Pause 2000
MAIN:
Serout RS232TX,Baud,("OUTPut 1") ; Turn on psu
Pause 2000
Serout RS232TX,Baud,("OUTPut 0") ; Turn Off Psu
Pause 2000
Goto Main
I'm having a problem with controlling a bench psu via RS232.
If i send the command OUTPut 1 from terminal it works perfectly
If i send exactly the same from my 18M2 via a MAX232 it does nothing, i can see data but the data length looks to be much longer than the terminal version on the oscilloscope.
I've tried to keep it as simple as possible to get the basics working, can anyone enlighten me as to what i may not be doing quite right ?
Code :
Symbol Baud = T9600_8 ; Set Baud rate T9600
Symbol RS232RX = B.4 ; Define RS232 Receive Pin
Symbol RS232TX = B.5 ; Define RS232 Transmit Pin
High RS232TX
Pause 2000
MAIN:
Serout RS232TX,Baud,("OUTPut 1") ; Turn on psu
Pause 2000
Serout RS232TX,Baud,("OUTPut 0") ; Turn Off Psu
Pause 2000
Goto Main