Unlock instant, AI-driven research and patent intelligence for your innovation.

Slave monitoring method and device on bus

A bus and monitoring command technology, applied in the field of control, can solve problems such as low efficiency and complexity, and achieve the effect of simple monitoring process

Active Publication Date: 2018-04-20
GREE ELECTRIC APPLIANCES INC
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the present invention provides a method and device for monitoring slaves on the bus to solve the existing priority-based control technology, which is too complicated and less efficient when monitoring slaves on the bus. question

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
  • Slave monitoring method and device on bus
  • Slave monitoring method and device on bus
  • Slave monitoring method and device on bus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0059] see figure 1 , figure 1 It is a flow chart of a method for monitoring a slave on a bus provided by an embodiment of the present invention. Such as figure 1 As shown, the method includes:

[0060] Step S101, obtaining a start monitoring command;

[0061] Specifically, firstly, the start monitoring instruction input by the user is acquired.

[0062] Step S102, judging whether the immediate command queue is empty;

[0063] Specifically, after the start monitoring instruction input by the user is acquired, it is judged whether the immediate command queue is empty, if yes, execute steps S103-S106, if not, execute steps S107-S109. The immediate command queue is used for first-in first-out access of immediate commands generated by user operation or control logic.

[0064] Step S103, sending the read command indicated by the current node in the circular linked list to the slave corresponding to the read command;

[0065] Specifically, the current node in the circular lin...

Embodiment 2

[0081] see figure 2 , figure 2 It is a flow chart of another method for monitoring a slave on a bus provided by an embodiment of the present invention. Such as figure 2 As shown, the method includes:

[0082] Step S201, creating a read command, initializing a circular linked list corresponding to the read command, and marking the current node of the circular linked list;

[0083] Specifically, for slaves based on different communication protocols on different buses, the types of variables used by the slaves and the size of the address space of each variable may be different. Below, the present invention takes the Modbus communication protocol on the RS485 bus as an example to illustrate.

[0084] In the Modbus standard protocol, the most commonly used monitoring variables are divided into several fixed types, such as coils (readable and writable discrete variables), input discrete quantities (readable only discrete variables), holding registers (readable and writable an...

Embodiment 3

[0108] see image 3 , image 3 It is a flow chart of another method for monitoring a slave on a bus provided by an embodiment of the present invention. Such as image 3 As shown, the method includes:

[0109] Step S301, obtaining a start monitoring command;

[0110] Step S302, judging whether the immediate command queue is empty;

[0111] Specifically, after the start monitoring instruction input by the user is acquired, it is judged whether the immediate command queue is empty, if yes, execute steps S303-S307, if not, execute steps S308-S311.

[0112] Step S303, sending the read command indicated by the current node in the circular linked list to the slave corresponding to the read command;

[0113] Specifically, the current node in the circular linked list indicates a read command to be issued by the circular linked list at present, and the read command is used to monitor the current state of the slave.

[0114] Step S304, controlling the circular linked list to automa...

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 discloses a bus slave computer monitor method and device; the method comprises the following steps: obtaining a start monitor order; determining an instant order queue is empty or not: if yes, sending a read order represented by a present node in a circular list to a corresponding slave computer matched with the read order, wherein the read order is used for monitoring present state of the slave computer, the circular list is controlled to automatically move backward to a next node of the present node, the circular list is connected end to end, first feedback information sent by the slave computer responding to the read order is received, and processed; if not, sending an instant order in the instant order queue to a slave computer matched with the instant order, receiving second feedback information sent by the slave computer responding to the instant order, and processing the second feedback information, wherein the instant order is used for controlling the slave computer to complete corresponding operations. The bus slave computer monitor method and device can improve slave computer monitoring efficiency on the bus.

Description

technical field [0001] The invention relates to the technical field of control, in particular to a method and a device for monitoring a slave on a bus. Background technique [0002] When monitoring and controlling the slaves on the bus, such as monitoring and controlling the Modbus slaves on the RS485 bus, it is necessary not only to continuously read the status of the slaves to monitor the slaves, but also to monitor the slaves according to the user's operation or the host computer monitoring program itself. The control logic controls the slave machine immediately. [0003] In the current technology, the monitoring method is generally a priority-based control method, that is, the priority is defined for each command or the priority is dynamically calculated according to some parameters, and then the control command is issued according to the priority level, and then read from the slave. state or control the slave. [0004] However, when the current priority-based control ...

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
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/403H04L12/26
CPCH04L12/403H04L43/12
Inventor 张宜宁宋海川刘继马丽王灵军罗晓邵世卓
Owner GREE ELECTRIC APPLIANCES INC