The Craftmans Shop > New from Old

The Sequel - Oh Blimey I bought a CNC Lathe (Beaver TC 20)

<< < (89/260) > >>

seadog:
A quick Google seems to suggest that the defaults are 9600, no parity, 8 bits, 1 stop bit and xon/xoff. it suggests that you do not need to configure the handshake.

MODE COM2: 9600,n,8,2 should do the trick.

awemawson:
Thanks, but if you look at the last picture you will see it actually defaults to 7 bit 1 stop and even parity  :(

And with your command line it reverts to RTS & DTS with XON disabled but does set the baud rate etc OK as shown in picture 2 above where that is the mode command that I issued !

It wasn't until I looked at that picture I realised it actually told me what it was defaulting to !

seadog:
I appreciate that, Andrew. I was just commenting that xon/xoff seemed to be the default. I know you've already tried it, but the suggestion is that Device Manager is the best was to configure ports post Win 95. Very strange   :scratch:

russ57:
You could try this syntax

Serial port: MODE COMm[:] [BAUD=b] [PARITY=p] [DATA=d] [STOP=s] [to=on|off] [xon=on|off] [odsr=on|off] [octs=on|off] [dtr=on|off|hs] [rts=on|off|hs|tg] [idsr=on|off]





IE
Mode com2: BAUD=9600 PARITY =e DATA=8 STOP=1 xon=on




Russ

awemawson:
Russ you are a genius  :bow:

Yes that works and not only can I set the correct bits, baud rate and parity using Xon, but it actually remains unchanged having been into STEP5 and then out. I can't use the MODE command when actually running STEP5 as MODE complains that that port isn't available of course.

Today's plan was to connect up my Tektronix 834 RS232 analyser and try and watch the traffic between STEP5 and the 820T controller, having firstly re-taught myself how to use it after many years gathering dust.

First - set up it's interface to match the laptop - COPY CON COM3: and sure enough 'THE QUICK BROWN FOX . . . .' ends up on the analyser screen.

Next - connect the 834 to snoop on the line - now this requires a three way D-Type cable IDC cable. Male at one end (for the 820T), Female at the other (For the STEP5) , with a Male in the middle (to connect to the 834 Analyser). I used to be awash with these, and also the IDC plugs and sockets to make them - always useful on site to make up odd connections to printers, modems etc. Could I find one - of course not  :bang:

OK lets see what STEP5 is sending out on the interface even if we can't see what does or does not come back from the 820T controller as this just needs a simple male / female cable.

Answer:  STX NULL BRK NULL BRK STX NULL BRK

So what did I learn from that? Not a lot except that presumably it's polling the control and waiting for a response, then not getting what it expects it times out.

I still don't know what mode or state the 820T controller needs putting in for all this exchange to work. I've been assuming it needs to be in the Input/Output mode waiting to receive, but that is just guessing. But at least thanks to Russ the mode issue seems sorted.

Order for D-25 IDC plugs and sockets placed with RS-Components - should be here Tuesday  :ddb:

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version