??? 10/18/08 12:54 Read: times |
#159182 - Start in this way Responding to: ???'s previous message |
1.- Design your hardware for the slave:
a.- RS485 tranceiver (or RS232) b.- uC, reset, xtal, etc c.- I/O devices according to the function the slave has to perform. d.- Power supply, etc. 2.- Write the software using your choise (assembler, C, Pascal...) a.- RTU or ASCII modBus? b.- Select speed and parity. Normaly, 9600 Bd, even by default c.- Select what functions you need to implement. d.- Write the code. The uC should listen continuosly the Rx serial data, and if the message is OK (address, CRC, etc) should answer properly. At this point, I think you has to work a little and ask about specific difficulties. Daniel |
Topic | Author | Date |
modbus for 8051 controller/At89c52 | 01/01/70 00:00 | |
What help, exactly, do you require? | 01/01/70 00:00 | |
Modbus | 01/01/70 00:00 | |
Russel had code | 01/01/70 00:00 | |
modbus communication | 01/01/70 00:00 | |
Start in this way | 01/01/70 00:00 | |
modbus frame error | 01/01/70 00:00 | |
Post as code - or edit and correct | 01/01/70 00:00 | |
modbus RS485 | 01/01/70 00:00 | |
Source code | 01/01/70 00:00 | |
modbus frame error | 01/01/70 00:00 | |
Real results contra expected | 01/01/70 00:00 | |
modbus | 01/01/70 00:00 | |
Frame error![]() | 01/01/70 00:00 | |
board mạch | 01/01/70 00:00 |