![The Fredericks Company RS485 Скачать руководство пользователя страница 3](http://html.mh-extra.com/html/the-fredericks-company/rs485/rs485_operating-manual_1099801003.webp)
The Fredericks Company l 2400 Philmont Ave ● HuntingdonValley, PA 19006-0067
Tel: 215.947.2500 l Fax: 215.947.7464 l Email: [email protected] l www.frederickscom.com
1-6200-008_im Revision: B
Page 3 of 4
2.4 Data-bus connections
Before connecting the modules to the bus, make sure they all have different addresses (see 3.3
command 81). Connect all ‘A’ of each module and all ‘B’ of each module.
NOTE: RS485 cannot be connected to RS232 interface.
MASTER MODULE MODULE MODULE MODULE
]-------------------------A-------------A-------------A - - - - - - - - - A
]-------------------------B-------------B-------------B - - - - - - - - - B
Max 32 modules in one bus
If communication fails to work, switch A and B polarity at Master end
2.5 Communication setup
For communication, use e.g. Hyper-terminal software (standard in MS Windows). The following
parameters are either fixed or factory default for setting up the communications.
Function
Setting
Comments
Baud rate
9600
(factory default)
Settable from 1200 to 38400
Number of data bits
8
Fixed
No parity
N
Fixed
Number of stop bits
1
Fixed
3.
COMMANDS
3.1 Command format
The following is the command format to read the sensor output and board temperature
*XXYY#
(* = start of string, XX = address, YY = command, # = end of string)
a.
Data commands
Command description
Command
Output
X axis data
*9911#
ascii (16 bit)
Y axis data
*9921#
ascii (16 bit)
Board temperature
*9941#
ascii (10 bit) see note
NOTE: To convert the 10 bit data returned from the on board MCP9700 use the following formulas,
MCP9700 output voltage = 10 bit value / 1023 * supply voltage
Temperature C = (MCP9700 output voltage – 0.5) / 0.010
SUNSTAR传感与控制 http://www.sensor-ic.com/ TEL:0755-83376549 FAX:0755-83376182 E-MAIL:[email protected]
SUNSTAR传感与控制 http://www.sensor-ic.com/ TEL:0755-83376549 FAX:0755-83376182 E-MAIL:[email protected]