[go: up one dir, main page]

CN116383110A - A kind of Modbus communication module and communication method - Google Patents

A kind of Modbus communication module and communication method Download PDF

Info

Publication number
CN116383110A
CN116383110A CN202211709975.2A CN202211709975A CN116383110A CN 116383110 A CN116383110 A CN 116383110A CN 202211709975 A CN202211709975 A CN 202211709975A CN 116383110 A CN116383110 A CN 116383110A
Authority
CN
China
Prior art keywords
entering
modbus
data
address
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211709975.2A
Other languages
Chinese (zh)
Inventor
程宏伟
熊冰明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Frecon Electric Shenzhen Co ltd
Original Assignee
Frecon Electric Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Frecon Electric Shenzhen Co ltd filed Critical Frecon Electric Shenzhen Co ltd
Priority to CN202211709975.2A priority Critical patent/CN116383110A/en
Publication of CN116383110A publication Critical patent/CN116383110A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/36Handling requests for interconnection or transfer for access to common bus or bus system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Communication Control (AREA)

Abstract

本发明公开了一种Modbus通讯模块及通讯方法,包括分别连接变频器和PLC/上位机的Modbus适配模块;Modbus适配模块包括处理模块和连接处理模块的键盘、原边RS485接口、副边RS485接口以及通讯指示灯;副边RS485接口上设置有连接PLC/上位机的信号隔离模块;本发明通过对原边以及副边地址的一个对应关系,完成了两个作用功能,1、将副边地址的数据进行解析,2、并转换为相对应原边地址的数据,然后写入到变频器中;将原边实时更新的数据对应的更新到副边;如此达到了一个数据交互的作用,并通过键盘的参数设置功能,可以按照各个场合的需求更改原副边的地址,使之能够适应各种不同的场合。

Figure 202211709975

The invention discloses a Modbus communication module and a communication method, including a Modbus adaptation module respectively connected to a frequency converter and a PLC/upper computer; the Modbus adaptation module includes a processing module and a keyboard connected to the processing module, an RS485 interface on the primary side, and a secondary side RS485 interface and communication indicator light; the secondary side RS485 interface is provided with a signal isolation module connected to the PLC/host computer; the present invention completes two functional functions through a corresponding relationship between the primary side and the secondary side address, 1. Analyze the data of the side address, 2, and convert it into data corresponding to the original side address, and then write it into the inverter; update the real-time updated data of the original side to the secondary side accordingly; thus achieving a data interaction function , and through the parameter setting function of the keyboard, the address of the original side and the side can be changed according to the needs of various occasions, so that it can adapt to various occasions.

Figure 202211709975

Description

一种Modbus通讯模块及通讯方法A kind of Modbus communication module and communication method

技术领域technical field

本发明涉及一种变频器的MODBUS通讯领域,具体涉及一种Modbus通讯模块及通讯方法,主要用于工控行业现场设备485总线处理方面,实现设备的更新替换,无需修改原有总线系统。The invention relates to the field of MODBUS communication of a frequency converter, in particular to a Modbus communication module and a communication method, which are mainly used in field equipment 485 bus processing in the industrial control industry to realize equipment update and replacement without modifying the original bus system.

背景技术Background technique

MODBUS通讯为一对多的通讯方式,即单个网段中,只存在1台主机,能够允许多台从机,但是要实现主从机的通讯,主机必须要知道从机设备的寄存器地址。MODBUS communication is a one-to-many communication method, that is, there is only one master in a single network segment, and multiple slaves can be allowed, but to achieve master-slave communication, the master must know the register address of the slave device.

对于某些变频的终端客户而言,他们对于车间的控制系统以及现场485总线设备仅仅处于会使用那一个层面,无法做到对系统中的主站设备进行修改,当设备损坏,急需新款替代时,寄存器地址的不同会导致无法使用。For some frequency conversion end customers, they are only at the level of using the workshop control system and field 485 bus equipment, and cannot modify the master station equipment in the system. When the equipment is damaged and a new replacement is urgently needed , the difference in the register address will make it unusable.

发明内容Contents of the invention

本发明所要解决的技术问题是提供了一种Modbus通讯模块及通讯方法;解决因新旧设备MODBUS寄存器地址的不同而导致的设备无法使用问题。The technical problem to be solved by the present invention is to provide a Modbus communication module and a communication method; to solve the problem that the equipment cannot be used due to the difference of the MODBUS register address of the new and old equipment.

本发明Modbus通讯模块是通过以下技术方案来实现的:包括分别连接变频器和PLC/上位机的Modbus适配模块;Modbus适配模块包括处理模块和连接处理模块的键盘、原边RS485接口、副边RS485接口以及通讯指示灯;副边RS485接口上设置有连接PLC/上位机的信号隔离模块;The Modbus communication module of the present invention is realized through the following technical solutions: comprise the Modbus adaptation module that respectively connects the frequency converter and PLC/host computer; Side RS485 interface and communication indicator light; secondary side RS485 interface is equipped with a signal isolation module connected to PLC/host computer;

Modbus适配模块上设置有MODBUS适配模块副边数据处理模块和MODBUS适配模块原边数据处理模块;MODBUS适配模块副边数据处理模块连接副边RS485接口;MODBUS适配模块原边数据处理模块连接原边RS485接口。The Modbus adapter module is equipped with a secondary side data processing module of the MODBUS adaptation module and a primary side data processing module of the MODBUS adaptation module; the secondary side data processing module of the MODBUS adaptation module is connected to the secondary side RS485 interface; the primary side data processing module of the MODBUS adaptation module The module is connected to the primary RS485 interface.

本发明Modbus通讯方法是通过以下技术方案来实现的:The Modbus communication method of the present invention is realized through the following technical solutions:

MODBUS适配模块副边数据处理模块具体包括以下步骤:The secondary data processing module of the MODBUS adapter module specifically includes the following steps:

S1、接收到PLC数据,进入S2;S1, receive PLC data, enter S2;

S2、判断设备站号是否正确,正确则进入S3,不正确则进入S13;S2. Determine whether the station number of the equipment is correct, if it is correct, enter S3, and if it is incorrect, enter S13;

S3、Modbus数据校验,进入S4;S3, Modbus data verification, enter S4;

S4、判断校验是否成功,成功则进入S5,不成功则进入S13;S4, judging whether the verification is successful, if successful, enter S5, and if unsuccessful, enter S13;

S5、查找副边匹配地址,进入S6;S5. Find the matching address of the secondary side, and enter S6;

S6、判断地址是否存在,存在则进入S7,不存在则进入S13;S6, judging whether the address exists, if it exists, enter S7, if it does not exist, enter S13;

S7、判断Modbus命令码,同时进行S8和S9以及S10;S7, judge Modbus command code, carry out S8 and S9 and S10 simultaneously;

S8、0x03命令,进入S11;S8, 0x03 command, enter S11;

S9、0x06命令,进入S14;S9, 0x06 command, enter S14;

S10、0x010命令;进入S11;S10, 0x010 command; enter S11;

S11、判断是否连续,S8连续则进入S12,S10连续则进入S14;S8和S10不连续则进入S13;S11. Determine whether it is continuous, if S8 is continuous, enter S12, if S10 is continuous, enter S14; if S8 and S10 are not continuous, enter S13;

S12、获取副边地址数据,进入S15;S12. Obtain the address data of the secondary side, and proceed to S15;

S13、准备故障应答数据,进入S15;S13. Prepare fault response data, and enter S15;

S14、数据写入到地址,置位原边对应地址写入事件标志位;S14. Data is written to the address, and the corresponding address write event flag of the original side is set;

S15、返回应答数据到上位机;S15, return the response data to the host computer;

MODBUS适配模块原边数据处理模块具体包括以下步骤:The primary side data processing module of the MODBUS adapter module specifically includes the following steps:

S1、发送忙位是否为1,不发送则进入S2,发送则进入S7;S1, whether the sending busy bit is 1, if not sending, enter S2, and send, enter S7;

S2、轮询地址写入事件地址位,进入S3;S2, the polling address is written into the event address bit, and enters S3;

S3、判断是否有写入事件;写入则进入S4,不写入则进入S5;S3, judging whether there is a writing event; if writing, enter S4, and if not writing, enter S5;

S4、将数据写入到变频器,进入S6;S4, write the data into the frequency converter, enter S6;

S5、循环读取变频器数据,进入S6;S5, cyclically read the frequency converter data, enter S6;

S6、忙位置为1,进入S7;S6, the busy position is 1, enter S7;

S7、判断是否有数据接收,是则进入S8,否则直接结束;S7, judging whether there is data reception, if yes, enter S8, otherwise end directly;

S8、判断数据是否校验成功,是则进入S9,否则直接结束S8. Determine whether the data verification is successful, if yes, enter S9, otherwise end directly

S9、判断是否写入命令,是则进入S10,否则进入S11;S9, judging whether to write the command, if yes, enter S10, otherwise enter S11;

S10、清除原边写入事件日志,并结束;S10, clear the original side and write the event log, and end;

S11、更新原边寄存器地址数据,进入S12;S11. Update the address data of the primary side register, and enter S12;

S12、更新对应副边寄存器地址数据,并结束。S12. Update the address data of the corresponding secondary register, and end.

本发明的有益效果是:通过对原边以及副边地址的一个对应关系,完成了两个作用功能:The beneficial effects of the present invention are: through a corresponding relationship between the addresses of the primary side and the secondary side, two functional functions are completed:

1、将副边地址的数据进行解析,并转换为相对应原边地址的数据,然后写入到变频器中;1. Analyze the data of the secondary side address and convert it into data corresponding to the primary side address, and then write it into the inverter;

2、将原边实时更新的数据对应的更新到副边。如此达到了一个数据交互的作用,并通过键盘的参数设置功能,可以按照各个场合的需求更改原副边的地址,使之能够适应各种不同的场合,很好的解决设备替换时寄存器地址不匹配的问题。2. Update the data updated in real time on the primary side to the secondary side. In this way, a function of data interaction is achieved, and through the parameter setting function of the keyboard, the address of the original and secondary sides can be changed according to the needs of various occasions, so that it can adapt to various occasions, and it is a good solution to the problem of register addresses when the equipment is replaced. matching problem.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为Modbus通讯模块的示意图;Fig. 1 is the schematic diagram of Modbus communication module;

图2为MODBUS适配模块副边数据处理模块的处理步骤示意图;Fig. 2 is a schematic diagram of the processing steps of the secondary side data processing module of the MODBUS adapter module;

图3为MODBUS适配模块原边数据处理模块的处理步骤示意图。Fig. 3 is a schematic diagram of the processing steps of the primary side data processing module of the MODBUS adaptation module.

具体实施方式Detailed ways

本说明书中公开的所有特征,或公开的所有方法或过程中的步骤,除了互相排斥的特征和/或步骤以外,均可以以任何方式组合。All features disclosed in this specification, or steps in all methods or processes disclosed, may be combined in any manner, except for mutually exclusive features and/or steps.

本说明书(包括任何附加权利要求、摘要和附图)中公开的任一特征,除非特别叙述,均可被其他等效或具有类似目的的替代特征加以替换。即,除非特别叙述,每个特征只是一系列等效或类似特征中的一个例子而已。Any feature disclosed in this specification (including any appended claims, abstract and drawings), unless expressly stated otherwise, may be replaced by alternative features which are equivalent or serve a similar purpose. That is, unless expressly stated otherwise, each feature is one example only of a series of equivalent or similar features.

如图1所示,本发明的一种Modbus通讯模块,包括分别连接变频器和PLC/上位机的Modbus适配模块;Modbus适配模块包括处理模块和连接处理模块的键盘、原边RS485接口、副边RS485接口以及通讯指示灯;副边RS485接口上设置有连接PLC/上位机的信号隔离模块;As shown in Figure 1, a kind of Modbus communication module of the present invention comprises the Modbus adaptation module that connects frequency converter and PLC/host computer respectively; Modbus adaptation module comprises processing module and the keyboard that connects processing module, primary side RS485 interface, The RS485 interface on the secondary side and the communication indicator light; the RS485 interface on the secondary side is equipped with a signal isolation module connected to the PLC/host computer;

Modbus适配模块上设置有MODBUS适配模块副边数据处理模块和MODBUS适配模块原边数据处理模块;MODBUS适配模块副边数据处理模块连接副边RS485接口;MODBUS适配模块原边数据处理模块连接原边RS485接口。The Modbus adapter module is equipped with a secondary side data processing module of the MODBUS adaptation module and a primary side data processing module of the MODBUS adaptation module; the secondary side data processing module of the MODBUS adaptation module is connected to the secondary side RS485 interface; the primary side data processing module of the MODBUS adaptation module The module is connected to the primary RS485 interface.

本实施例中,MODBUS适配模块有一个功能菜单结构,通过键盘设置模块的功能参数,包括原边和副边的需要对应的地址和原边和副边数据的小数点位数以及通讯格式以及站地址,在完成参数设置完成后,即可进行正常工作;主要涉及通讯格式参数,原边地址设置,副边地址设置。In this embodiment, the MODBUS adaptation module has a function menu structure, and the function parameters of the module are set through the keyboard, including the address corresponding to the primary side and the secondary side, the number of decimal points of the data of the primary side and the secondary side, the communication format and the station Address, after the parameter setting is completed, it can work normally; it mainly involves communication format parameters, primary side address setting, and secondary side address setting.

本发明的一种Modbus通讯方法,如图2所示:该流程为副边数据处理的流程,副边的角色为MODBUS从站;A kind of Modbus communication method of the present invention, as shown in Figure 2: this flow process is the flow process of secondary side data processing, and the role of secondary side is MODBUS slave station;

S1:副边RS485接口接收到来自于PLC/上位机的数据;S1: The RS485 interface on the secondary side receives data from the PLC/host computer;

S2:判断接收到的MODBUS站号与模块的站号是否匹配,若不匹配,跳转到S13步骤;S2: Determine whether the received MODBUS station number matches the station number of the module, if not, jump to step S13;

S3:将接收到的数据进行CRC16校验;S3: Perform CRC16 check on the received data;

S4:判断CRC校验是否成功;S4: judging whether the CRC check is successful;

S5:数据校验成功后,获取数据中的地址信息,与所有的副边地址进行对比;S5: After the data verification is successful, obtain the address information in the data and compare it with all secondary addresses;

S6:判断是否找到匹配地址,若未找到匹配地址,则跳转到S13步骤;S6: judging whether a matching address is found, if no matching address is found, jump to step S13;

S7:若找到匹配地址,则判断数据的功能命令(0x03,0x06,0x10);S7: If a matching address is found, judge the function command of the data (0x03, 0x06, 0x10);

S8:若功能命令为0x03(读取多个数据),跳转到S11步骤;S8: If the function command is 0x03 (read multiple data), jump to step S11;

S9:若功能命令为0x06(写单个数据),跳转到S14步骤;S9: if the function command is 0x06 (write single data), jump to step S14;

S10:若功能命令为0x10(写多个数据),进入下一步;S10: If the function command is 0x10 (write multiple data), go to the next step;

S11:判断连续读多个地址/连续写多个地址中的地址是否连续,若不连续,跳转到S13步骤;S11: Judging whether the addresses in the continuous reading of multiple addresses/continuous writing of multiple addresses are continuous, if not continuous, jump to step S13;

S12:获取副边地址中的数据,为数据应答做准备;S12: Obtain the data in the secondary address to prepare for the data response;

S13:准备故障应答数据,跳转到S15步骤;S13: prepare fault response data, jump to step S15;

S14:将接收到的PLC数据写入到副边地址中,更新原边对应地址的数据以及写入事件标志位;S14: Write the received PLC data into the address of the secondary side, update the data of the corresponding address of the primary side and write the event flag bit;

S15:将数据返回至PLC,流程结束;S15: Return the data to the PLC, and the process ends;

如图3所示,该流程原边的角色对应于变频器来说是MODBUS主站:As shown in Figure 3, the role of the original side of the process corresponds to the MODBUS master station for the inverter:

S1:判断发送的忙标志位是否为1,若为1,则跳转到步骤S7;S1: Determine whether the sent busy flag is 1, if it is 1, then jump to step S7;

S2:轮询原边所有地址的写入事件标志位;S2: Poll the write event flag bits of all addresses on the primary side;

S3:判断是否有写入事件,若无,则跳转到S5步骤;S3: judging whether there is a writing event, if not, then jump to step S5;

S4:若有写入事件,将有写入事件的原边地址数据写入到变频器;S4: If there is a write event, write the original address data of the write event to the inverter;

S5:若无写入事件,则循环读取变频器的数据来更新原边地址数据以及相应的副边地址数据;S5: If there is no write event, read the data of the frequency converter in a loop to update the address data of the primary side and the corresponding address data of the secondary side;

S6:数据发送完成后,将发送忙标志位置1;S6: After the data is sent, the send busy flag is set to 1;

S7:判断是否有数据接收,若无则程序结束;S7: judge whether there is data received, if not, the program ends;

S8:若有数据接收,判断数据校验是否成功,若校验失败则程序结束;S8: If there is data received, judge whether the data verification is successful, if the verification fails, the program ends;

S9:若数据校验成功,则判断是否为写入事件;S9: If the data verification is successful, determine whether it is a writing event;

S10:若为写入事件,清除原边相应地址的写入事件标志位,程序结束;S10: If it is a write event, clear the write event flag bit of the corresponding address on the original side, and the program ends;

S11:若为循环读取任务,则更新原边地址数据;S11: If it is a cyclic reading task, update the original address data;

S12:更新对应副边地址数据;S12: update the corresponding secondary side address data;

本发明可以用于适配任何厂家的MODBUS变频器寄存器地址的通讯装置,主要用于某些新款变频器替旧款时,对于某些PLC或者上位机程序无法更改的场合。通过该装置,可以很方便的将支持MODBUS通讯的新设备接入到通讯总线当中,不需要修改PLC或者上位机中原有的寄存器地址,并带有隔离信号隔离电路增强设备的抗干扰能力。The present invention can be used as a communication device adapted to register addresses of MODBUS frequency converters of any manufacturer, and is mainly used in occasions where certain PLC or upper computer programs cannot be changed when some new frequency converters replace old ones. Through this device, new devices that support MODBUS communication can be easily connected to the communication bus without modifying the original register address in the PLC or the upper computer, and it is equipped with an isolation signal isolation circuit to enhance the anti-interference ability of the device.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何不经过创造性劳动想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求书所限定的保护范围为准。The above is only a specific implementation of the present invention, but the scope of protection of the present invention is not limited thereto, and any changes or replacements that do not come to mind through creative work shall be covered within the scope of protection of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope defined in the claims.

Claims (2)

1. The utility model provides a Modbus communication module which characterized in that: the device comprises a Modbus adaptation module which is respectively connected with a frequency converter and a PLC/upper computer; the Modbus adaptation module comprises a processing module, a keyboard, a primary side RS485 interface, a secondary side RS485 interface and a communication indicator lamp, wherein the keyboard is connected with the processing module; a signal isolation module connected with a PLC/upper computer is arranged on the secondary side RS485 interface;
the Modbus adaptation module is provided with a secondary side data processing module of the ModBUS adaptation module and a primary side data processing module of the ModBUS adaptation module; the MODBUS adaptation module secondary side data processing module is connected with a secondary side RS485 interface; the MODBUS adaptation module primary side data processing module is connected with a primary side RS485 interface.
2. A Modbus communication module communication method is characterized in that: the secondary side data processing module of the MODBUS adaptation module specifically comprises the following steps:
s1, receiving PLC data, and entering S2;
s2, judging whether the equipment station number is correct, if so, entering S3, and if not, entering S13;
s3, modbus data verification, and entering S4;
s4, judging whether the verification is successful, if so, entering S5, and if not, entering S13;
s5, searching a secondary side matching address, and entering S6;
s6, judging whether the address exists, if so, entering S7, and if not, entering S13;
s7, judging Modbus command codes, and simultaneously carrying out S8, S9 and S10;
s8, 0x03 command (read multiple), and the process goes to S11;
s9, 0x06 command (write single), enter S14;
s10, 0x010 command (read multiple); entering S11;
s11, judging whether the continuous operation is carried out, if the continuous operation is carried out in S8, entering S12, and if the continuous operation is carried out in S10, entering S14; s8 and S10 are discontinuous, and S13 is entered;
s12, acquiring secondary side address data, and entering S15;
s13, preparing fault response data, and entering S15;
s14, writing data into the address, setting an address writing event flag bit corresponding to the primary side;
s15, returning response data to the upper computer;
the MODBUS adaptation module primary side data processing module specifically comprises the following steps:
s1, whether a transmission busy bit is 1 or not, entering S2 if not, and entering S7 if not;
s2, writing the polling address into an event address bit, and entering S3;
s3, judging whether a writing event exists or not; writing is performed, S4 is performed, and writing is performed, S5 is performed;
s4, writing the data into a frequency converter, and entering S6;
s5, circularly reading the data of the frequency converter, and entering S6;
s6, the busy position is 1, and S7 is entered;
s7, judging whether data are received or not, if yes, entering S8, and if not, directly ending;
s8, judging whether the data is successfully checked, if so, entering S9, otherwise, directly ending S9, judging whether to write in a command, if so, entering S10, otherwise, entering S11;
s10, clearing a primary side write event log, and ending;
s11, updating address data of a primary register, and entering S12;
s12, updating the address data of the corresponding secondary side register, and ending.
CN202211709975.2A 2022-12-29 2022-12-29 A kind of Modbus communication module and communication method Pending CN116383110A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211709975.2A CN116383110A (en) 2022-12-29 2022-12-29 A kind of Modbus communication module and communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211709975.2A CN116383110A (en) 2022-12-29 2022-12-29 A kind of Modbus communication module and communication method

Publications (1)

Publication Number Publication Date
CN116383110A true CN116383110A (en) 2023-07-04

Family

ID=86975618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211709975.2A Pending CN116383110A (en) 2022-12-29 2022-12-29 A kind of Modbus communication module and communication method

Country Status (1)

Country Link
CN (1) CN116383110A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5956523A (en) * 1996-08-09 1999-09-21 Advantech Co., Ltd. Method and apparatus for reducing the number of RS232/RS485 transmission converters required for communicating between a PC and a plurality of instruments
CN202077059U (en) * 2010-12-27 2011-12-14 深圳市正弦软件技术有限公司 Bus bridge capable of changing PROFIBUS protocol to MODBUS protocol
CN103533099A (en) * 2013-10-14 2014-01-22 威海麦科电气技术有限公司 Variable-frequency drive and address mapping method thereof under MODBUS communication protocol
KR20190122385A (en) * 2018-04-20 2019-10-30 엘에스산전 주식회사 Master-Slave communication system
JP2020161937A (en) * 2019-03-26 2020-10-01 バックス情報システム株式会社 Radio communication system and communication distance extension system
CN112087357A (en) * 2020-09-07 2020-12-15 中国石油化工股份有限公司 Oil field-based digital Modbus communication address conversion box and control method
WO2021072981A1 (en) * 2019-10-17 2021-04-22 广东绿腾新能源服务有限公司 Blockchain-based energy data linking method and apparatus
CN114422288A (en) * 2021-12-29 2022-04-29 厦门诚通达智能科技有限公司 Communication system based on Modbus protocol
CN114567672A (en) * 2022-03-09 2022-05-31 深圳市东力科创技术有限公司 Communication conversion device, method and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5956523A (en) * 1996-08-09 1999-09-21 Advantech Co., Ltd. Method and apparatus for reducing the number of RS232/RS485 transmission converters required for communicating between a PC and a plurality of instruments
CN202077059U (en) * 2010-12-27 2011-12-14 深圳市正弦软件技术有限公司 Bus bridge capable of changing PROFIBUS protocol to MODBUS protocol
CN103533099A (en) * 2013-10-14 2014-01-22 威海麦科电气技术有限公司 Variable-frequency drive and address mapping method thereof under MODBUS communication protocol
KR20190122385A (en) * 2018-04-20 2019-10-30 엘에스산전 주식회사 Master-Slave communication system
JP2020161937A (en) * 2019-03-26 2020-10-01 バックス情報システム株式会社 Radio communication system and communication distance extension system
WO2021072981A1 (en) * 2019-10-17 2021-04-22 广东绿腾新能源服务有限公司 Blockchain-based energy data linking method and apparatus
CN112087357A (en) * 2020-09-07 2020-12-15 中国石油化工股份有限公司 Oil field-based digital Modbus communication address conversion box and control method
CN114422288A (en) * 2021-12-29 2022-04-29 厦门诚通达智能科技有限公司 Communication system based on Modbus protocol
CN114567672A (en) * 2022-03-09 2022-05-31 深圳市东力科创技术有限公司 Communication conversion device, method and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王俊杰;徐建文;: "基于MODBUS-RTU通讯协议的变频器PLC控制设计", 工业控制计算机, no. 02 *

Similar Documents

Publication Publication Date Title
CN112653738B (en) Internet of things network debugging system and method
CN110941218B (en) A kind of CAN bus controller test method
CN105224362A (en) Host computer carries out the method and system of program upgrade to slave computer
CN111104272B (en) CAN bus controller testing method based on RX and TX
CN108923957B (en) Distribution network terminal DTU fault elimination method and device and terminal equipment
CN113220229B (en) Online I/O undisturbed configuration method for distributed control system
CN117111539B (en) Control method and device for Ethernet physical layer chip
CN115277882A (en) CAN message database establishing method and device, vehicle-mounted electronic equipment and storage medium
CN115665020B (en) Communication analysis method, device, equipment and storage medium
CN107294826B (en) CAN network-based TBOX parameter calibration method and device
CN116383110A (en) A kind of Modbus communication module and communication method
CN106919146A (en) A kind of cutter automatic recognition system for being applied to digital controlled processing central machine tool and its recognition methods
CN119052228A (en) WEB static file uploading method and device, electronic equipment and readable storage medium
US20240012831A1 (en) Data exchange method and apparatus, readable storage medium, and data exchange system
TW202236093A (en) Detect sequencing method for devices, configuration generating method and apparatus thereof for devices
CN108614491B (en) Communication system and method for programmable logic controller
CN207249466U (en) A kind of cutter automatic recognition system applied to digital controlled processing central machine tool
CN110489439B (en) Parameter processing method and power terminal
CN110929819B (en) Production line management method based on Kpeware OPC communication protocol
CN106789495A (en) A kind of online changing method of single controller master-slave network bus control unit
CN112929356A (en) Method and system for converting cclink protocol into modbus protocol
CN113938370B (en) Operation and maintenance debugging system for intelligent fusion terminal of power distribution area
CN119652991A (en) A water conservancy data analysis method adapted to multiple protocols
CN112711238B (en) Data replacement method, device, device and storage medium
CN219351748U (en) BLE production detection device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20230704

RJ01 Rejection of invention patent application after publication