[Question]Is it possible to add in DWINOS Modbus ability to change slave ID
Is it possible to somehow modify the DWINOS code for Modbus UART4/5 in order to dynamically (or at least after restarting the DWIN kernel) change the slave id and baudrate? For example, so that the registers in RAM are 0x7000 and 0x7001, it is possible to write the current slave id and baudrate for UART4 or 5?I'm using DMG80480C070_15WTR. I am trying to work with OSBuild3.0.2.6. But I can try to work with C51.The COMSET command can be used to set the serial port baud rate. For example, to set the baud rate of serial port 4 to 9600, 2580 = 4800/9600 = 2688 (0x0A80), use the command: COMSET 0x40, 0x0A80.The slave ID is set in the instruction configuration, so you can directly modify the corresponding configuration. For example, if the first instruction starts at address 0x8000, you can simply change it to address 0x8000,5A 01 to 5A 02.
http://inforum.dwin.com.cn:20080/forum.php?mod=viewthread&tid=2809&highlight=modbus&_dsign=768a43dc
页:
[1]