Supercharge Your Innovation With Domain-Expert AI Agents!

Multi-request processing method for Modbus serial port communication of programmable controller

A programming controller and serial communication technology, applied in program control, program control in sequence/logic controller, electrical program control, etc., can solve problems such as long data update cycle, communication timeout, complexity, etc., to facilitate application and maintenance , avoid communication overtime, improve the effect of cycle efficiency

Pending Publication Date: 2022-04-22
SHANDONG AIPU ELECTRICAL EQUIP
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

First, because the Modbus bus can only initiate one request to a slave station at each moment, and when multiple requests need to be initiated on the same bus, there will be a problem of orderly and efficient scheduling of each request; second, Under normal circumstances, it is often necessary to write a read / write function block for a request, which causes cumbersome and complicated programming problems; third, use or not use a time-sharing method to schedule requests, which is often used in practical applications. Problems such as communication timeout, communication termination or long data update cycle will occur; Fourth, if there is an abnormality in a certain slave station device on the communication line, it will affect the normal reading and writing of data of other slave stations

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Multi-request processing method for Modbus serial port communication of programmable controller
  • Multi-request processing method for Modbus serial port communication of programmable controller

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The present invention will be further described below in conjunction with accompanying drawing:

[0026] Such as figure 1 A multi-request processing method for PLC Modbus serial port communication shown, the method includes the following steps:

[0027] S1, set multi-request read data function block and multi-request write data function block, and carry out initialization setting to multi-request read data function block and multi-request write data function block; Described multi-request read data function block is used for Modbus master station Calling of multiple read data requests from different slave stations or the same slave station on the same channel; the multi-request write data function block is used for multiple write data of different slave stations or the same slave station by the Modbus master station on the same channel Request call; multi-request read data function block and multi-request write data function block support programmable controller CPU in...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a multi-request processing method for Modbus serial port communication of a programmable controller, which adopts a multi-request data reading function block and a multi-request data writing function block, supports a programmable controller CPU (Central Processing Unit) integrated serial port, and provides a multi-request data reading function block and a multi-request data writing function block for communication processing of a communication module and a serial port gateway through an Ethernet module. And processing of bit and word type data is supported. According to the method, the problems that the MODBUS can only initiate one request to one slave station at each moment, and request scheduling exists when a plurality of requests need to be initiated on the same bus are effectively solved; according to the method, the problem that programming of a read / write function block needs to be written for each request is tedious and complex is solved, and the problem that when a time-sharing mode is adopted or not adopted to schedule the requests, communication timeout and termination or a data updating period is long frequently is solved; the problem that normal reading and writing of data of other slave stations are affected when a certain slave station on a communication line is abnormal is completely eradicated.

Description

technical field [0001] The invention relates to the technical field of Modbus serial port communication of programmable controllers, in particular to a multi-request processing method for Modbus serial port communication of programmable controllers. Background technique [0002] When the communication module of the programmable controller is applied, one or two channels of the communication module are used as the Modbus master station, and often connect multiple slave stations or multiple read and write data requests. First, because the Modbus bus can only initiate one request to a slave station at each moment, and when multiple requests need to be initiated on the same bus, there will be a problem of orderly and efficient scheduling of each request; second, Under normal circumstances, it is often necessary to write a read / write function block for a request, which causes cumbersome and complicated programming problems; third, use or not use a time-sharing method to schedule ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G05B19/05
CPCG05B19/054G05B2219/1133
Inventor 王涛刘沛吴昊张力伟路龙陈振华王成梁
Owner SHANDONG AIPU ELECTRICAL EQUIP
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More