anthr4x
04-05-2010, 10:56 PM
Hello, I'm new to the world of Basic Stamps and am having some trouble getting my BS2 to communicate with my PLC over RS485.
When I send this:
SEROUT 6,baud, [DEC 48,DEC 49,DEC 50,DEC 51,DEC 52,DEC 53,DEC 54,DEC 55]
My PLC is receiving:
83 83 d0 b0 90 70 50
If I send:
SEROUT 6,baud, [HEX 48,HEX 49,HEX 50,HEX 51,HEX 52,HEX 53,HEX 54,HEX 55]
I receive this:
99 f0 83 06 2e
If I send:
SEROUT 6,baud, [48, 49, 50, 51, 52, 53, 54, 55]
I receive randomly:
f0 46 c6 19 93
a3 c6 19 93
46 c6 19 93
I am using this http://www.sparkfun.com/commerce/product_info.php?products_id=9083
It uses a MAX485 CSA chip.
Can anyone make sense of what I'm receiving?
When I send this:
SEROUT 6,baud, [DEC 48,DEC 49,DEC 50,DEC 51,DEC 52,DEC 53,DEC 54,DEC 55]
My PLC is receiving:
83 83 d0 b0 90 70 50
If I send:
SEROUT 6,baud, [HEX 48,HEX 49,HEX 50,HEX 51,HEX 52,HEX 53,HEX 54,HEX 55]
I receive this:
99 f0 83 06 2e
If I send:
SEROUT 6,baud, [48, 49, 50, 51, 52, 53, 54, 55]
I receive randomly:
f0 46 c6 19 93
a3 c6 19 93
46 c6 19 93
I am using this http://www.sparkfun.com/commerce/product_info.php?products_id=9083
It uses a MAX485 CSA chip.
Can anyone make sense of what I'm receiving?