RS232 output from a BS2 is different then RS232 from a computer??? PLEASE HELP!
Grant_O
Posts: 36
Ok so most of my projects that involve RS232 ASCII communications work great, but IV been beating my head agents the desk on this project.
·
What I have is a Yaskawa linier stage controller that is controlled by RS232 ASCII. When I connect it to the Com port on my computer and type in the commands through HyperTerminal it works fine. But when I connect it to the APPmod RS232 port on the BS2 and send the exact same code, it doesn’t respond. I also plugged the BS2's port into my computer and I see the ASCII code as it’s supposed to be. is there a difference in the signal / noise. it is on a transformer power supply and the ocilliscope says its a little noisey when improperly grounded.·but yea Iv also tried tuneing the baud rates of the BS2·from 70 -to- 90 but i think 84 is the best and i cant change the baud on the Yaskawa, well... i can go up in speed with it but 9600 is as low as it goes. man this is bugging the heck outa me!
·
Code Iv tried:
·
SEROUT 2, 84, [noparse]/noparse][color=red]"SH"[/color], [color=purple]CR[/color
·
"and/or"
·
SEROUT 2, 84, [noparse]/noparse][color=red]"SH"[/color], [color=black]13[/color
·
and iv tried
·
SEROUT 2, 84,· [noparse]/noparse] [color=red]"S"[/color
PAUSE 100
SEROUT 2, 84, [noparse]/noparse][color=red]"H"[/color
PAUSE 100
SEROUT 2, 84, [noparse]/noparse][color=purple]CR[/color
·
nothing seems to work!!!!!!!!!
Please Help, i dont want to have to buy a whole nother computer just for this reason ··
·
Post Edited (Grant_O) : 4/24/2006 11:53:41 PM GMT
·
What I have is a Yaskawa linier stage controller that is controlled by RS232 ASCII. When I connect it to the Com port on my computer and type in the commands through HyperTerminal it works fine. But when I connect it to the APPmod RS232 port on the BS2 and send the exact same code, it doesn’t respond. I also plugged the BS2's port into my computer and I see the ASCII code as it’s supposed to be. is there a difference in the signal / noise. it is on a transformer power supply and the ocilliscope says its a little noisey when improperly grounded.·but yea Iv also tried tuneing the baud rates of the BS2·from 70 -to- 90 but i think 84 is the best and i cant change the baud on the Yaskawa, well... i can go up in speed with it but 9600 is as low as it goes. man this is bugging the heck outa me!
·
Code Iv tried:
·
SEROUT 2, 84, [noparse]/noparse][color=red]"SH"[/color], [color=purple]CR[/color
·
"and/or"
·
SEROUT 2, 84, [noparse]/noparse][color=red]"SH"[/color], [color=black]13[/color
·
and iv tried
·
SEROUT 2, 84,· [noparse]/noparse] [color=red]"S"[/color
PAUSE 100
SEROUT 2, 84, [noparse]/noparse][color=red]"H"[/color
PAUSE 100
SEROUT 2, 84, [noparse]/noparse][color=purple]CR[/color
·
nothing seems to work!!!!!!!!!
Please Help, i dont want to have to buy a whole nother computer just for this reason ··
·
Post Edited (Grant_O) : 4/24/2006 11:53:41 PM GMT
Comments
Another think, the Yaskawa to the PC is via a serial extension, right (male to female), right?
In that event, using the DCE AppMod, you'll need a Null Terminal cable (with pin2 on A going to pin3 on B, pin3 on A going to pin 2 on B.)· Yes?
[noparse][[/noparse] A Null Modem is a female-to-female, swapped as above, a Null Terminal is a male-to-male cable as above.· Others may not dig the difference.· They'll call it a "male-to-male null modem." ]
So, what's the story, morning glory?
Post Edited (PJ Allen) : 4/25/2006 12:20:17 AM GMT
i was thinking though.... i used the default settings in Hyperterminal minus the hardware flow control. but is the serial output of the Bs2 truly:
9600 baud
8 data bits
no parity
1 stop bits
no flow control?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Yea i guess i should have used a constant for the baud rate. But you say to use "inverted mode". What is that exactly? And how is it different from what im doing?
thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax