Serial screen (touch screen) configuration Software + 51 single-chip Modbus RTU Multi-machine serial communication program source code

Source: Internet
Author: User

Serial screen (touch screen) configuration Software + 51 single-chip Modbus RTU Multi-machine serial communication program source code
Realization of the touch screen (serial screen) and SCM communication, mainly to solve the problem of communication protocols. This paper uses the open Modbus Communication protocol to Guangzhou Hmimaker touch screen as host (master), single chip microcomputer as Slave (slaver). Hmimaker touch screen itself support Modbus communication protocol, as long as the single-chip microcomputer in accordance with the Modbus protocol to send and receive data, you can communicate. Touch screen and single-chip microcomputer using RS-485 standard interface directly connected with more than 51 single-chip Modbus RTU Multi-machine serial communication
One, including the following examples:

Second, the serial screen (touch screen) configuration software Hmimaker realize the function: 01, to 4 51 single-chip computer 4 digital input to realize the read operation, through the Modbus RTU 02 function code realization; 02, 4 51 MCU 4-way relay output for read operation, via Modbus RTU 01 function Code Implementation, 03, 4 51 single-chip computer 4-way analog input to achieve the read operation, through the Modbus RTU 04 function Code Realization, 04, 4 51 single-chip computer 4 analog output to achieve read operation, through the Modbus RTU 03 function code implementation; 05, 4 sets of 51 single-chip microcomputer 4 relay output to achieve write operation, through the Modbus RTU 05 function code Implementation, 06, 4 51 single-chip computer 4 analog output to achieve write operation, through the Modbus RTU 06 function code implementation; 07, Configuration Engineering to the serial screen (touch screen) configuration software Hmimaker as an example, as follows:

Three, single-chip microcomputer from the support of the Modbus RTU function code: 01, Function code 01: This function can be single-chip computer 4 (or even more, expandable) digital output multi-channel read operation; 02, function code 02: This function can be single-chip computer 4 (or more, expandable) digital input multi-channel read operation; Function Code 03: This function can be used for single-chip microcomputer 4 (or more, expandable) analog output multi-channel read operation, 04, function code 04: This function can be single-chip computer 4 (or more, expandable) analog input multiplexing read operation, 05, function code 05: This function can be on the microcontroller 4 (or more, Scalable) Digital output all the way to write operations, 06, function code 06: This function can be single-chip computer 4 (or even more, expandable) analog output of a write operation, 07, function code 15: This function can be single-chip computer 4 (or more, expandable) digital output multi-channel write operation; 08. Function Code 16: This feature can be used for single-chip microcomputer 4-way (or even more, expandable) analog output multi-channel write operation. 09, SCM program as follows




Four, the communication parameters are as follows:
01. Starting bit: 1 bits;
02, Data bits: 8 bits;
03, check bit: even check;
04, stop bit: 1 bits;
05, baud rate: 9600bps;
06, Physical layer: RS485;
07, Communication protocol: standard Modbus RTU serial communication protocol;
08, the Serial Port choice: uses the single-chip computer serial port 1 or the serial port 2;
09, MODBUS RTU Main station: Configuration software Hmimaker;
10, MODBUS Rtu from the station: single-chip microcomputer.

1, single chip microcomputer TTL level communication, RS232 serial port, RS485 serial communication, can interface, support audio playback function, support 90 degree inverted display

2, supporting the HMI configuration software hmimaker, "0" code, "0" Programming, "WYSIWYG", such as the production of PPT simple and fast

3, support a variety of single-chip computer use, support Mitsubishi, Siemens,, Delta, letter Jie and other PLC communication use, support Modbus communication

4, single-chip or plc drive control 4.3-inch, 5-inch, 7-inch, 8-inch, 10-inch, 12-inch, 15-inch, 42-inch touch screen, monitor, TV

5, Industrial touch screen, IPC motherboard, HMI configuration software free custom development, large-scale project company price unconditional support.






Serial screen (touch screen) configuration Software + 51 single-chip Modbus RTU Multi-machine serial communication program source code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.