CN106843007B - Modular power meter and addressing method thereof - Google Patents
Modular power meter and addressing method thereof Download PDFInfo
- Publication number
- CN106843007B CN106843007B CN201710130396.5A CN201710130396A CN106843007B CN 106843007 B CN106843007 B CN 106843007B CN 201710130396 A CN201710130396 A CN 201710130396A CN 106843007 B CN106843007 B CN 106843007B
- Authority
- CN
- China
- Prior art keywords
- module
- expansion
- address information
- stage
- interface
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 13
- 108010079923 lambda Spi-1 Proteins 0.000 claims 2
- 101000823106 Equus caballus Alpha-1-antiproteinase 2 Proteins 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 101000823089 Equus caballus Alpha-1-antiproteinase 1 Proteins 0.000 description 4
- 101000651211 Homo sapiens Transcription factor PU.1 Proteins 0.000 description 4
- 102100027654 Transcription factor PU.1 Human genes 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Arrangements For Transmission Of Measured Signals (AREA)
- Casings For Electric Apparatus (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种电力仪表,尤其是涉及一种采用模块化方式进行功能扩展的电力仪表以及该电力仪表的编址方法,属于电力仪器仪表技术领域。The invention relates to an electric power meter, in particular to a power meter with modularized function expansion and an addressing method of the power meter, belonging to the technical field of electric power instruments.
背景技术Background technique
目前,电力仪表功能扩展存在多种方式,如根据客户的需求由生产厂家直接将功能安装在仪表内,但是这种方式灵活性差、存在后续无法对其功能进行再扩展的问题; 或者功能扩展通过模块外接在仪表背部方式实现,这种方式存在因连接方式不合理而使得模块数量受限,同时因结构复杂需通过螺钉固定的问题,给用户在仪表功能的选择和仪表的安装带来不便;另外,常规的扩展方式,在进行功能扩展后需要人工对各个功能模块进行手动编址,从而导致其使用受限,未经培训的操作人员无法直接快速的根据企业需求对仪表功能进行扩展操作。At present, there are many ways to expand the functions of power meters. For example, according to the needs of customers, the manufacturer directly installs the functions in the meters. The module is externally connected to the back of the instrument. This method has the problem that the number of modules is limited due to the unreasonable connection method. At the same time, due to the complex structure, it needs to be fixed by screws, which brings inconvenience to the user in the selection of instrument functions and the installation of the instrument; In addition, the conventional expansion method requires manual addressing of each functional module after function expansion, resulting in limited use, and untrained operators cannot directly and quickly expand the instrument function according to the needs of the enterprise.
发明内容Contents of the invention
本发明的目的在于克服上述不足,提供一种扩展方便且能够对各扩展模块进行自动编码的模块化电力仪表及其编址方法。The object of the present invention is to overcome the above-mentioned shortcomings, and provide a modular electric meter and its addressing method which are convenient to expand and can automatically encode each expansion module.
本发明的目的是这样实现的:The purpose of the present invention is achieved like this:
一种模块化电力仪表,所述模块化电力仪表包含有仪表壳体以及多个扩展模块,所述扩展模块包含有模块本体,所述模块本体一侧前端设置有卡扣、后端设置有卡槽,且模块本体叠加级联时后一级模块本体的卡扣插入前一级模块本体的卡槽内,每一个扩展模块内均安装有扩展电路模块,所述仪表壳体内安装有主电路模块,所述扩展电路模块和主电路模块通过插接配合相连。A modularized power meter, the modularized power meter includes a meter housing and a plurality of expansion modules, the expansion modules include a module body, one side of the module body is provided with a buckle at the front end and a card at the rear end slot, and when the module bodies are superimposed and cascaded, the buckle of the latter module body is inserted into the card slot of the previous module body, and each expansion module is equipped with an expansion circuit module, and the main circuit module is installed in the instrument case , the expansion circuit module and the main circuit module are connected through plug-fitting.
本发明一种模块化电力仪表,所述模块本体另一侧的前端装置有按压式自锁结构、后端设置有倒槽,所述按压式自锁结构包含有一贴合在模块本体侧壁上的压板、且按压板的端部设置有倒钩,模块本体叠加级联时后一级模块本体的倒钩扣入前一级模块本体的倒槽内;所述仪表壳体的一侧设置有壳体卡槽,另一侧设置有壳体倒槽,位于最前端的模块本体的卡扣插入仪表壳体的壳体卡槽内,位于最前端的模块本体的倒钩扣入仪表壳体的壳体倒槽内。The invention is a modular electric meter, the front end device on the other side of the module body has a push-type self-locking structure, and the rear end is provided with an inverted groove, and the push-type self-locking structure includes a and the end of the pressing plate is provided with a barb. When the module bodies are stacked and cascaded, the barbs of the module body of the next stage are buckled into the inverted groove of the module body of the previous stage; one side of the instrument housing is provided with The housing card slot, the other side is provided with a housing inverted slot, the buckle of the module body at the front end is inserted into the housing card slot of the instrument housing, and the barb of the module body at the front end is buckled into the barb of the instrument housing In the housing pour tank.
本发明一种模块化电力仪表,所述扩展电路模块包含有处理器以及与处理器相连接的接口一和接口二,位于前一级的扩展模块内的扩展电路模块的接口二与位于前一级的扩展模块内的扩展电路模块的接口一插接配合;所述主电路模块包含有主处理器以及与主处理器相连接的接口二,所述仪表壳体内的主电路模块上的接口二与位于最前端的扩展模块内的扩展电路模块的接口一插接配合。The present invention is a modular electric meter, the expansion circuit module includes a processor and an
一种模块化电力仪表的编址方法,仪表壳体内的主处理器以及扩展模块的处理其内均存储有两个地址信息,其中第一地址信息存储的数字代表扩展电路模块的功能类别,第二地址信息存储的数字代表该扩展电路模块所具有的功能在本扩展电路模块前已有的数量;An addressing method for a modular power meter, the main processor in the meter housing and the processor of the expansion module both store two address information, wherein the number stored in the first address information represents the functional category of the expansion circuit module, and the second The number stored in the second address information represents the number of functions that the expansion circuit module has before the expansion circuit module;
后一级扩展模块接收前一级扩展模块发送的报文信息后,首先提取报文信息中的第一地址信息,并将第一地址信息与本扩展模块处理器内的第一地址信息位相比较;After receiving the message information sent by the previous expansion module, the subsequent expansion module first extracts the first address information in the message information, and compares the first address information with the first address information bit in the expansion module processor ;
如果前一级的报文信息中存在与本扩展模块相同的第一地址信息,则将前一级的报文信息中与该第一地址信息相对应的第二地址信息+1、并且将该+1后的第二地址信息写入本扩展模块的第二地址信息内中,并将修改后的第一地址信息和第二地址信息以报文形式发送至后一级扩展模块;If there is the same first address information as this expansion module in the message information of the previous level, then the second address information corresponding to the first address information in the message information of the previous level + 1, and the + Write the second address information after 1 into the second address information of the expansion module, and send the modified first address information and second address information to the subsequent expansion module in the form of a message;
如果前一级的报文信息中不存在与本扩展模块相同的第一地址信息,则将本扩展模块的第二地址信息内的数字置0,并且将本本扩展模块相同的第一地址信息和第二地址信息加入报文后向后一级扩展模块发送。If the message information of the previous level does not have the same first address information as this expansion module, set the number in the second address information of this expansion module to 0, and set the same first address information and After the second address information is added to the message, it is sent to the next-level expansion module.
与现有技术相比,本发明的有益效果是:Compared with prior art, the beneficial effect of the present invention is:
本发明在正面对扩展模块进行连接,不受场地限制;且通过卡槽和卡扣、以及按压式自锁结构的插接配合,使得整个级联过程方便快捷;而且通过自动编址的方式实现了对功能模块的自动化寻址,使得未经培训的使用者也能快速进行级联扩展操作。The present invention connects the expansion modules on the front, without being limited by the site; and through the plug-in cooperation of the card slot and the buckle, and the push-type self-locking structure, the whole cascading process is convenient and fast; and it is realized by the way of automatic addressing Automatic addressing of functional modules enables untrained users to quickly perform cascade expansion operations.
附图说明Description of drawings
图1为本发明一种模块化电力仪表的仪表模块的结构示意图。Fig. 1 is a schematic structural diagram of an instrument module of a modular electric meter according to the present invention.
图2为本发明一种模块化电力仪表的仪表模块的另一视角的结构示意图。Fig. 2 is a structural schematic diagram of another viewing angle of an instrument module of a modular electric meter according to the present invention.
图3为本发明一种模块化电力仪表在级联后的结构示意图。Fig. 3 is a schematic diagram of the structure of a modular power meter of the present invention after cascading.
图4为本发明一种模块化电力仪表的级联模块接口之间的示意图。Fig. 4 is a schematic diagram of interfaces between cascaded modules of a modular electric meter according to the present invention.
图5为本发明一种模块化电力仪表在级联后的电路状态示意图。Fig. 5 is a schematic diagram of a circuit state of a modular power meter of the present invention after cascading.
其中:in:
模块本体1、卡槽2、卡扣3、按压式自锁结构4、倒钩5、倒槽6、按压板7、仪表壳体8、扩展模块9。
具体实施方式Detailed ways
参见图1~5,本发明涉及的一种模块化电力仪表,所述模块化电力仪表包含有仪表壳体8以及多个扩展模块9,所述扩展模块9包含有模块本体1,所述模块本体1一侧前端设置有卡扣3、后端设置有卡槽2,且模块本体1叠加级联时后一级模块本体1的卡扣3插入前一级模块本体1的卡槽2内,所述模块本体1另一侧的前端装置有按压式自锁结构4、后端设置有倒槽6,所述按压式自锁结构4包含有一贴合在模块本体1侧壁上的按压板7、且按压板7的端部设置有倒钩5,模块本体1叠加级联时后一级模块本体1的倒钩5扣入前一级模块本体1的倒槽6内;所述仪表壳体8的一侧设置有壳体卡槽,另一侧设置有壳体倒槽,位于最前端的模块本体1的卡扣3插入仪表壳体8的壳体卡槽内,位于最前端的模块本体1的倒钩5扣入仪表壳体8的壳体倒槽内;Referring to Figures 1 to 5, the present invention relates to a modular power meter, the modular power meter includes a
使用时:先将位于最前端的扩展模块9安装于仪表壳体8上,通过卡槽2和卡扣3匹配定位,并通过扣入仪表壳体8的壳体倒槽内的倒钩5对两者进行锁紧;随后根据需求将多个扩展模块9依次级联安装在位于最前端的扩展模块9上即可;拆卸时:按住扩展模块9的按压式自锁结构4的按压板7,使得位于后一级扩展模块9上的倒钩5退出位于前一级扩展模块9(或仪表壳体8)上的倒槽6;When in use: first install the extension module 9 located at the front end on the
进一步的,每一个扩展模块9内均安装有扩展电路模块,所述扩展电路模块包含有处理器以及与处理器相连接的接口一SPI1和接口二SPI2,位于前一级的扩展模块9内的扩展电路模块的接口二SPI2与位于前一级的扩展模块9内的扩展电路模块的接口一SPI1插接配合(通过插针和插扣相插接配合);所述仪表壳体8内安装有主电路模块,所述主电路模块包含有主处理器以及与主处理器相连接的接口二SPI2,所述仪表壳体8内的主电路模块上的接口二SPI2与位于最前端的扩展模块9内的扩展电路模块的接口一SPI1插接配合;Further, each expansion module 9 is equipped with an expansion circuit module, and the expansion circuit module includes a processor and an interface one SPI1 and an interface two SPI2 connected to the processor. The interface two SPI2 of the expansion circuit module is mated with the interface one SPI1 of the expansion circuit module located in the expansion module 9 of the previous stage (through the insertion and cooperation of the pin and the buckle); the
一种编址方法:One addressing method:
仪表壳体8内的主处理器以及扩展模块9的处理其内均存储有两个地址信息,其中第一地址信息存储的数字代表扩展电路模块的功能类别(比如:1代表开关量模块、2代表模拟量输入输出模块、3代表通讯模块……以此类推),第二地址信息存储的数字代表该扩展电路模块所具有的功能在本扩展电路模块前已有的数量;The main processor in the
后一级扩展模块9接收前一级扩展模块发送的报文信息后,首先提取报文信息中的第一地址信息,并将第一地址信息与本扩展模块9处理器内的第一地址信息位相比较,After receiving the message information sent by the previous stage expansion module 9, the latter stage expansion module first extracts the first address information in the message information, and combines the first address information with the first address information in the processor of the expansion module 9 bit phase comparison,
如果前一级的报文信息中存在与本扩展模块9相同的第一地址信息,则将前一级的报文信息中与该第一地址信息相对应的第二地址信息+1、并且将该+1后的第二地址信息写入本扩展模块9的第二地址信息内中,并将修改后的第一地址信息和第二地址信息以报文形式发送至后一级扩展模块9;If there is the same first address information as the expansion module 9 in the message information of the previous level, the second address information corresponding to the first address information in the message information of the previous level is +1, and the The second address information after +1 is written into the second address information of the expansion module 9, and the modified first address information and second address information are sent to the subsequent expansion module 9 in the form of a message;
如果前一级的报文信息中不存在与本扩展模块9相同的第一地址信息,则将本扩展模块9的第二地址信息内的数字置0,并且将本本扩展模块9相同的第一地址信息和第二地址信息加入报文后向后一级扩展模块9发送;If there is no first address information identical to this expansion module 9 in the message information of the previous level, then the number in the second address information of this expansion module 9 is set to 0, and the same first address information of this expansion module 9 is set to 0. After the address information and the second address information are added to the message, they are sent to the next-level expansion module 9;
从而实现对地址的自动管理,当任意添加模块后能够快速自动进行地址编码;In this way, the automatic management of the address can be realized, and the address can be quickly and automatically encoded when any module is added;
比如:for example:
地址1(不可变)、地址2(可变)、说明;address 1 (immutable), address 2 (variable), description;
1、0、仪表中第一个开关量模块;1, 0, the first switch module in the instrument;
1、1、仪表中第二个开关量模块;1. 1. The second switch module in the instrument;
1、2、仪表中第三个开关量模块;1, 2, the third switch module in the instrument;
2、0 、仪表中第一个模拟量模块;2, 0, the first analog module in the instrument;
3、0、仪表中第一个通讯模块;3. 0. The first communication module in the instrument;
……、……、……;..., ..., ...;
后级扩展模块9的SPI1正确接收到前级扩展模块9的SPI2的报文后并进行解析,假设报文中模块信息的数据都为0,则说明前级只有主体模块,本模块存放名称2的地址写0;假设报文中检测到有其他模块但没有与本模块是相同种类的模块,则本模块存放名称2的地址写0;假设报文中检测到与一个与本模块种类相同的模块,其名称2的内容为0,本模块存放名称2的地址在0的基础上加1,如果报文中检测到有两个与本模块是相同种类的模块,其名称2的内容为分别为0和1,本模块存放名称2的地址在1的基础上加2,依此类推。The SPI1 of the subsequent expansion module 9 correctly receives the message of the SPI2 of the previous expansion module 9 and analyzes it. Assuming that the data of the module information in the message is all 0, it means that the previous stage only has the main module, and this module stores the
另外:需要注意的是,上述具体实施方式仅为本专利的一个优化方案,本领域的技术人员根据上述构思所做的任何改动或改进,均在本专利的保护范围之内。In addition: it should be noted that the above specific implementation is only an optimization solution of this patent, and any changes or improvements made by those skilled in the art based on the above ideas are within the scope of protection of this patent.
Claims (2)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710130396.5A CN106843007B (en) | 2017-03-07 | 2017-03-07 | Modular power meter and addressing method thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710130396.5A CN106843007B (en) | 2017-03-07 | 2017-03-07 | Modular power meter and addressing method thereof |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106843007A CN106843007A (en) | 2017-06-13 |
| CN106843007B true CN106843007B (en) | 2023-03-31 |
Family
ID=59137489
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710130396.5A Active CN106843007B (en) | 2017-03-07 | 2017-03-07 | Modular power meter and addressing method thereof |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106843007B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111323648B (en) * | 2020-05-07 | 2024-11-22 | 江苏安科瑞电器制造有限公司 | A RS485 cascade multi-user electric energy meter and its data transmission method |
Family Cites Families (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5148389A (en) * | 1988-04-05 | 1992-09-15 | Convergent Technologies, Inc. | Modular expansion bus configuration |
| JPH07212697A (en) * | 1994-01-11 | 1995-08-11 | Sony Corp | Electronic device and its addressing method |
| CN1719363A (en) * | 2005-07-27 | 2006-01-11 | 艾默生网络能源有限公司 | Hard ware extension method of programmable logic controller |
| CN201600391U (en) * | 2010-01-28 | 2010-10-06 | 江苏斯菲尔电气股份有限公司 | Extended module of measuring instrument |
| CN104301453A (en) * | 2014-10-21 | 2015-01-21 | 许继电气股份有限公司 | Intelligent device address coding method based on special setting communication |
| CN205067676U (en) * | 2015-10-27 | 2016-03-02 | 丰郅(上海)新能源科技有限公司 | Can cascade modularization photovoltaic arc detection ware of extension |
| CN206584179U (en) * | 2017-03-07 | 2017-10-24 | 江苏安科瑞电器制造有限公司 | A kind of Modularized power instrument |
-
2017
- 2017-03-07 CN CN201710130396.5A patent/CN106843007B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN106843007A (en) | 2017-06-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10409757B2 (en) | Hub | |
| US9287022B2 (en) | Cable with memory | |
| CN209072626U (en) | A kind of meeting touch one-piece machine with bluetooth and HDMI output function | |
| CN106169301B (en) | Disk module and disk placing system | |
| CN106843007B (en) | Modular power meter and addressing method thereof | |
| CN101499029B (en) | Cabinet recognizing method, computer and main board | |
| CN206584179U (en) | A kind of Modularized power instrument | |
| CN109753470A (en) | A control method, micro-control unit and computer storage medium | |
| CN213276640U (en) | Intelligent computing card, image processing equipment and intelligent computing system | |
| CN205584242U (en) | Communication switching interface and communication equipment | |
| CN216979751U (en) | Multifunctional docking station | |
| CN103647917B (en) | Expansion device of television input/output interface | |
| CN204030193U (en) | Connecting line with OTG function | |
| CN216486241U (en) | Raspberry pie expansion board | |
| US11983668B2 (en) | Systems and methods for inventory collection in a management controller | |
| CN102110068B (en) | Serial-connectable serial bus device and its management method and serial connection method | |
| CN201111845Y (en) | ARM chip control LED display screen U disk control system | |
| CN109240957A (en) | M.2 hard-disk interface turns usb circuit and conversion method to one kind | |
| US11509751B2 (en) | Self-describing system using single-source/multi-destination cable | |
| CN104331379B (en) | Storage device | |
| CN205179217U (en) | OTG adapter that will be VGA including smart mobile phone video output of MHL chip | |
| CN212726950U (en) | Power amplification circuit and device of voice chip and elevator | |
| CN201662743U (en) | Computer switch extension device | |
| CN220983880U (en) | Multi-program single-port burning circuit and device | |
| TW477949B (en) | Data processing system |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |