About RS-485 port controlling?(one way or two way)
J.Y.
Posts: 34
Dear all,
I try to control a I/O sensing device called ADAM-4051
I must send command to 4051 via RS-485
But , the response is back via same RS-485 cord, too
How can I connect the pin between 4051(only D+ and D-) and AMX?
Thanks a lot.
I try to control a I/O sensing device called ADAM-4051
I must send command to 4051 via RS-485
But , the response is back via same RS-485 cord, too
How can I connect the pin between 4051(only D+ and D-) and AMX?
Thanks a lot.
0
Comments
In your code, make sure you use the right SEND_COMMAND to turn on RS485 on the port you're using. After that, you send and receive strings the same as you would with an RS232 device.
- Chip
thanks for your reply.
I connected pin 1 & 4 together
and pin 6 & 9 together ,
Am I right?
I send_command 4051,'set baud 9600,n,8,1 485 enable' on data_event's online
when I send_string to 4051
It works fail.
I don't know if this matters, but the syntax I always use is
'set baud 9600,n,8,1,485 enable'
note the additional comma.
Mind you, I've managed to avoid enabling 485 so far, so I may have the syntax wrong.
connect pins 1-9 and 4-6