WO2023165075A1 - Mechanical limitation-based automatic slave controller addressing method - Google Patents
Mechanical limitation-based automatic slave controller addressing method Download PDFInfo
- Publication number
- WO2023165075A1 WO2023165075A1 PCT/CN2022/109252 CN2022109252W WO2023165075A1 WO 2023165075 A1 WO2023165075 A1 WO 2023165075A1 CN 2022109252 W CN2022109252 W CN 2022109252W WO 2023165075 A1 WO2023165075 A1 WO 2023165075A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- limit position
- mechanical limit
- motor
- angle
- mechanical
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40234—Local Interconnect Network LIN
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Definitions
- the supplier addresses the controller before leaving the factory, and gives the controller a different "identity" when it leaves the factory, which is equivalent to the controller itself having a different address;
- FIG. 1 shows a schematic diagram of an existing LIN bus automatic addressing system.
- the connection of each slave controller is actually connected in series, the input interface LIN in is connected to the previous node, and the output interface LIN out is connected to the next node.
- the internal switch can be turned on or off through software settings (usually it is turned on by default).
- Step 6 The pre-selected node detects the current on the sampling resistor Shunt again, which is called Ishunt_3. If the difference between Ishunt_3 and Ishunt_1 is less than a specific value Idiff, it means that this is the last unaddressed node, and the node will send the last address Save it to realize automatic addressing;
- Step 7 All nodes with automatic addressing function turn off the internal current sources I1 and I2, turn on the internal pull-up resistor R, and the bus returns to the normal communication state.
- An automatic addressing method for a slave controller based on a mechanical limit in an embodiment of the present invention is applied to a master controller and multiple slave controllers connected through a bus communication, and multiple slave controllers are in one-to-one correspondence with multiple The motors are electrically connected, and the automatic addressing method of the slave controllers includes the following steps: each slave controller receives an automatic addressing instruction broadcast by the master controller; each slave controller controls the corresponding motor to rotate counterclockwise to the first mechanical limit position and rotate clockwise to the second mechanical limit position, and obtain the angle ⁇ between the first mechanical limit position and the second mechanical limit position; each slave controller determines and The angle range that matches the angle ⁇ , and the node address corresponding to the angle range that matches the angle ⁇ is used as its own address; if no angle range that matches the angle ⁇ is found, addressing fails to be confirmed; Wherein, the first mechanical limit position and the second mechanical limit position of the plurality of motors are set so that the included angle ⁇ between the first mechanical limit position and the second mechanical limit position obtained from the controller
- mechanical limit is used to set the motor rotation angle range of the slave controller, and the addressing information is transmitted to the slave controller through the specific motor rotation angle range, so as to realize the automatic addressing of the slave controller.
- This method does not need to be changed
- the wiring method of the bus (for the LIN bus, there is no need to connect multiple slave controllers in series), and there is no need to increase the dedicated addressing connection and other hardware costs. It has low cost, high reliability, easy implementation, and addressing efficiency. high advantage;
- the embodiment of the present invention utilizes the broadcasting function of the bus and uses different mechanical limit angle ranges to represent different slave controller node addresses, thereby realizing simultaneous automatic addressing of multiple slave controllers and improving the efficiency of automatic addressing.
- FIG. 1 shows a schematic diagram of an existing LIN bus automatic addressing system.
- Fig. 2 shows a schematic diagram of the internal circuit structure of the input interface LIN in of the slave controller shown in Fig. 1 .
- Fig. 3 shows a schematic flow chart of a method for automatic addressing of a slave controller based on a mechanical limit according to an embodiment of the present invention.
- Fig. 4 shows a schematic diagram of a LIN bus automatic addressing system adopting the automatic addressing method of the slave controller according to the embodiment of the present invention.
- the slave controller communicates with the master controller through a bus and is electrically connected with the motor.
- the electrical connection mentioned here includes direct Current drive connection and communication connection
- the automatic addressing method of the slave controller based on the mechanical limit includes the following steps:
- control motor rotates counterclockwise to the first mechanical limit position and clockwise to the second mechanical limit position to obtain the distance between the first mechanical limit position and the second mechanical limit position.
- the included angle ⁇ specifically includes:
- the foregoing bus can be a LIN bus, a CAN bus or an RS485 bus, etc.
- Each tool housing 1 a is provided with a first limiting portion 101 and a second limiting portion 102 , and the first limiting portion 101 and the second limiting portion 102 may be pins, for example.
- the motor drives the swing arm to rotate counterclockwise to the first stop 101 (equivalent to the swing arm 1b reaching the first mechanical stop), as shown in Figure 6, the corresponding motor is at the first mechanical limit position.
- the motor drives the swing arm to rotate clockwise to reach the second limit portion 102 (equivalent to the swing arm 1b reaching the second mechanical dead point), as shown in FIG. 7 , the motor is at the second mechanical limit position.
- the included angles between the first limit part and the second limit part of the above three mechanical limit tooling 11, 12 and 13 are different from each other, and the first limit part and the second limit part of the mechanical limit tool 11 The included angle between them is 340°, the angle between the first limiting portion and the second limiting portion of the mechanical limiting tooling 12 is 310°, the first limiting portion and the second limiting portion of the mechanical limiting tooling 13 The angle between the parts is 280°.
- the mechanical limit is in the form of external tooling, through the automatic rotation of the motor and the automatic addressing of the tooling to limit the rotation of the motor.
- the addressing speed of a single motor from the controller is improved, and the required production time
- multiple motors can be addressed from the controller at the same time through multiple tooling, which further reduces the working time of workers in the addressing process, speeds up the production rhythm, reduces production costs, and can prevent errors caused by manual operation of the motor rotation angle. Error (i.e. exact addressing).
- the embodiment of the present invention defines the relationship between the mechanical limit angle range and the node addresses of different slave controllers.
- the slave controller can automatically detect the limit angle range during the automatic addressing process, and check the table to determine its own address. Since each slave controller has its own specific limit angle range, the automatic addressing method of this embodiment can address multiple slave controllers at one time, and the movement and addressing process do not interfere with each other.
- the automatic addressing method of the slave controller based on the mechanical limit does not need to change the wiring mode of the bus, nor does it need to increase the special addressing connection and other hardware costs, and has the advantages of low cost, high reliability, and easy implementation , The advantages of high addressing efficiency.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Control Of Multiple Motors (AREA)
Abstract
Description
本发明涉及总线技术,尤其涉及从控制器的编址方法。The invention relates to the bus technology, in particular to the addressing method of the slave controller.
在汽车的同一个LIN/CAN网络中往往有多个硬件完全相同的从控制器,因为它们有不同的地址,所以在总线中可以接收不同的命令,执行不同的功能。In the same LIN/CAN network of a car, there are often multiple slave controllers with identical hardware, because they have different addresses, so they can receive different commands and perform different functions in the bus.
市场上目前主要有两种方式对多个从控制器编址:There are two main ways to address multiple slave controllers in the market:
1、预编址方式1. Pre-addressing method
供应商出厂前对控制器进行编址,出厂时即赋予了控制器不同的“身份”,相当于生产的控制器本身就是具有不同地址的;The supplier addresses the controller before leaving the factory, and gives the controller a different "identity" when it leaves the factory, which is equivalent to the controller itself having a different address;
2、自动化编址2. Automatic addressing
控制器装车后,由总线的主控制器发送自动编址命令,使从控制器获得不同的地址。After the controller is loaded, the master controller of the bus sends an automatic addressing command to make the slave controllers obtain different addresses.
行业上通用的方法是不同的控制器具有不同的接线,控制器通过识别接线方式的不同来自动编址。The general method in the industry is that different controllers have different wiring, and the controller automatically addresses by identifying the different wiring methods.
下面以某商业化的LIN总线自动编址方式为例来说明自动编址方法。The following takes a commercialized LIN bus automatic addressing method as an example to illustrate the automatic addressing method.
图1示出了现有的LIN总线自动编址系统的示意图。对LIN总线来说,每个从控制器的连接实际上是串联的,输入接口LIN in连接到上一节点,输出接口LIN out连接到下一个节点。从控制器内部可以通过软件设置将内部开关开通或断开(一般是默认开通)。FIG. 1 shows a schematic diagram of an existing LIN bus automatic addressing system. For the LIN bus, the connection of each slave controller is actually connected in series, the input interface LIN in is connected to the previous node, and the output interface LIN out is connected to the next node. From inside the controller, the internal switch can be turned on or off through software settings (usually it is turned on by default).
图2示出了用于支持从控制器自动编址的输入接口LIN in(输出接口LIN out的内部电路结构与输入接口LIN in相同)的内部电路结构示意图。请结合图2所示,单个节点自动编址的过程包含以下七个步骤,整个过程在LIN总线主控制器的Break数据场中进行,在这个场中主控制器会将LIN总线的电平拉低。Figure 2 shows a schematic diagram of the internal circuit structure of the input interface LIN in (the internal circuit structure of the output interface LIN out is the same as that of the input interface LIN in) for supporting automatic addressing from the controller. As shown in Figure 2, the process of automatic addressing of a single node includes the following seven steps. The whole process is carried out in the Break data field of the LIN bus master controller. In this field, the master controller will pull the level of the LIN bus Low.
步骤1、所有具备自动编址功能的节点将内部电流源I1、I2和上拉电阻R都关闭,这时只有不具备自动编址功能的节点仍有输出电流;
步骤2、所有具备自动编址功能的节点检测采样电阻Shunt上的电流,作为初始值,称为Ishunt_1;Step 2. All nodes with automatic addressing function detect the current on the sampling resistor Shunt as the initial value, called Ishunt_1;
步骤3、所有具备自动编制功能并且没有地址的节点将内部的开关K1打开,其它节点保持内部电流源和上拉电阻都关闭。这些具备自动编址功能并且没有地址的节点被称为备选节点;Step 3. Turn on the internal switch K1 for all nodes that have automatic programming function and no address, and keep the internal current source and pull-up resistors closed for other nodes. These nodes with automatic addressing function and no address are called candidate nodes;
步骤4、备选节点通过检测运放U1的输出端电压值VI来获得采样电阻Shunt的电流,称为Ishunt_2,如果一些节点检测到的Ishunt_2和Ishunt_1的差值小于特定值,则说明这些节点可能是最远端的未编址节点,这些节点被选中,称为预选节点;Step 4. The candidate node obtains the current of the sampling resistor Shunt by detecting the voltage value VI of the output terminal of the operational amplifier U1, which is called Ishunt_2. If the difference between Ishunt_2 and Ishunt_1 detected by some nodes is less than a specific value, it means that these nodes may is the farthest unaddressed node, these nodes are selected, called pre-selected nodes;
步骤5、所有未被选中的节点关闭开关K1,预选节点保持开关K1打开并打开开关K2;Step 5, all unselected nodes close the switch K1, the pre-selected nodes keep the switch K1 open and open the switch K2;
步骤6、预选节点再次检测采样电阻Shunt上的电流,称为Ishunt_3,如果Ishunt_3和Ishunt_1之差小于特定值Idiff则表示这是最末端的未编址的节点,该节点将上次发来的地址保存下来,实现自动编址;Step 6. The pre-selected node detects the current on the sampling resistor Shunt again, which is called Ishunt_3. If the difference between Ishunt_3 and Ishunt_1 is less than a specific value Idiff, it means that this is the last unaddressed node, and the node will send the last address Save it to realize automatic addressing;
步骤7、所有具备自动编址功能的节点关闭内部电流源I1、I2,开启内部上拉电阻R,总线恢复到正常通信状态。Step 7. All nodes with automatic addressing function turn off the internal current sources I1 and I2, turn on the internal pull-up resistor R, and the bus returns to the normal communication state.
商业化的CAN总线的自动编址的原理与上述的LIN总线的自动编址原理大同小异。The principle of automatic addressing of the commercialized CAN bus is similar to the principle of automatic addressing of the above-mentioned LIN bus.
采用现有的LIN总线自动编址系统的串联接线方式实现从控制器自动编址的方法具有以下两个明显缺点:The method of adopting the serial connection mode of the existing LIN bus automatic addressing system to realize the automatic addressing of the slave controller has the following two obvious disadvantages:
1、增加了LIN总线总的连接端点,增加了接插件的成本;1. The total connection endpoint of the LIN bus is increased, which increases the cost of the connector;
2、串联方式降低了产品可靠性,如果某一个连接端点断开,会使得后续的所有节点都无法正常工作。2. The series mode reduces the reliability of the product. If a certain connection endpoint is disconnected, all subsequent nodes will not work properly.
商业化的CAN总线自动编址方式虽然采用了专用的编址连线,避免了上述的第二个缺点,但是增加了更多的线束成本。Although the commercial CAN bus automatic addressing method adopts a dedicated addressing connection, which avoids the second shortcoming above, it increases more wiring harness costs.
发明内容Contents of the invention
本发明所要解决的技术问题在于提供一种成本低、可靠性高、易于实现、编址效率高的从控制器的编址方法。The technical problem to be solved by the present invention is to provide a slave controller addressing method with low cost, high reliability, easy implementation and high addressing efficiency.
本发明实施例的一种基于机械限位的从控制器自动编址方法,从控制器通过总线与主控制器通信连接,并与电机电连接,该基于机械限位的从控制器自动编址方法包括以下步骤:接收主控制器发送的编址指令;控制电机分别逆时针转动到第一机械限位位置和顺时针转动到第二机械限位位置,获取第一机械限位位置与第二机械限位位置之间的夹角α;根据预先存储的角度范围和节点地址对应表确定与夹角α相匹配的角度范围,并将与夹角α相匹配的角度范围所对应的节点地址作为自身的地址;如找不到与夹角α相匹配的角度范围,则确认编址失败。In the embodiment of the present invention, a slave controller based on mechanical limit automatic addressing method, the slave controller communicates with the master controller through the bus, and is electrically connected with the motor, and the slave controller based on mechanical limit automatically addresses The method includes the following steps: receiving an addressing instruction sent by the main controller; controlling the motor to rotate counterclockwise to the first mechanical limit position and clockwise to the second mechanical limit position, and obtain the first mechanical limit position and the second mechanical limit position. The angle α between the limit positions; determine the angle range matching the angle α according to the pre-stored angle range and the node address correspondence table, and use the node address corresponding to the angle range matching the angle α as itself address; if no angle range matching the included angle α is found, addressing confirmation fails.
本发明实施例的一种基于机械限位的从控制器自动编址方法,应用于通过总线通信连接的主控制器和多个从控制器,多个从控制器一一对应地分别与多个电机电连接,该从控制器自动编址方法包括以下步骤:各从控制器接收主控制器广播的自动编址指令;各从控制器控制对应的电机分别逆时针转动到第一机械限位位置和顺时针转动到第二机械限位位置,并获取第一机械限位位置与第二机械限位位置之间的夹角α;各从控制器根据预先存储的角度范围和节点地址对应表确定与夹角α相匹配的角度范围,并将与夹角α相匹配的角度范围所对应的节点地址作为自身的地址;如找不到与夹角α相匹配的角度范围,则确认编址失败;其中,多个电机的第一机械限位位置与第二机械限位位置被设置成使多个从控制器所获取的第一机械限位位置与第二机械限位位置之间的夹角α分别处于不同的角度范围中,在角度范围和节点地址对应表中,不同的角度范围对应不同的节点地址。An automatic addressing method for a slave controller based on a mechanical limit in an embodiment of the present invention is applied to a master controller and multiple slave controllers connected through a bus communication, and multiple slave controllers are in one-to-one correspondence with multiple The motors are electrically connected, and the automatic addressing method of the slave controllers includes the following steps: each slave controller receives an automatic addressing instruction broadcast by the master controller; each slave controller controls the corresponding motor to rotate counterclockwise to the first mechanical limit position and rotate clockwise to the second mechanical limit position, and obtain the angle α between the first mechanical limit position and the second mechanical limit position; each slave controller determines and The angle range that matches the angle α, and the node address corresponding to the angle range that matches the angle α is used as its own address; if no angle range that matches the angle α is found, addressing fails to be confirmed; Wherein, the first mechanical limit position and the second mechanical limit position of the plurality of motors are set so that the included angle α between the first mechanical limit position and the second mechanical limit position obtained from the controller They are respectively in different angle ranges, and in the angle range and node address correspondence table, different angle ranges correspond to different node addresses.
根据本发明实施例的基于机械限位的从控制器自动编址方法的优点包括:The advantages of the automatic addressing method of the slave controller based on the mechanical limit according to the embodiment of the present invention include:
1、本发明实施例用机械限位来设置从控制器的电机转角范围,通过特定的电机转角范围向从控制器传递编址信息,实现了从控制器的自动编址,这种方式不用改变总线的接线方式(对LIN总线而言无需将多个从控制器串联连接),也不需要增加专用的编址连线以及其它硬件成本,具有成本低、可靠性高、易于实现、编址效率高的优点;1. In the embodiment of the present invention, mechanical limit is used to set the motor rotation angle range of the slave controller, and the addressing information is transmitted to the slave controller through the specific motor rotation angle range, so as to realize the automatic addressing of the slave controller. This method does not need to be changed The wiring method of the bus (for the LIN bus, there is no need to connect multiple slave controllers in series), and there is no need to increase the dedicated addressing connection and other hardware costs. It has low cost, high reliability, easy implementation, and addressing efficiency. high advantage;
2、本发明实施例利用总线的广播功能,并用不同的机械限位角度范围代表不同的从控制器节点地址,实现了多个从控制器的同时自动编址,提高了自动编址的效率。2. The embodiment of the present invention utilizes the broadcasting function of the bus and uses different mechanical limit angle ranges to represent different slave controller node addresses, thereby realizing simultaneous automatic addressing of multiple slave controllers and improving the efficiency of automatic addressing.
附图概述Figure overview
下面结合附图对本发明作进一步说明。The present invention will be further described below in conjunction with accompanying drawing.
图1示出了现有的LIN总线自动编址系统的示意图。FIG. 1 shows a schematic diagram of an existing LIN bus automatic addressing system.
图2示出了图1中所示的从控制器的输入接口LIN in的内部电路结构示意图。Fig. 2 shows a schematic diagram of the internal circuit structure of the input interface LIN in of the slave controller shown in Fig. 1 .
图3示出了根据本发明实施例的一种基于机械限位的从控制器自动编址方法的流程示意图。Fig. 3 shows a schematic flow chart of a method for automatic addressing of a slave controller based on a mechanical limit according to an embodiment of the present invention.
图4示出了采用本发明实施例的从控制器自动编址方法的LIN总线自动编址系统的示意图。Fig. 4 shows a schematic diagram of a LIN bus automatic addressing system adopting the automatic addressing method of the slave controller according to the embodiment of the present invention.
图5示出了根据本发明从控制器自动编址方法的一个具体实施方式的工作过程示意图。Fig. 5 shows a schematic diagram of the working process of a specific embodiment of the automatic addressing method of the slave controller according to the present invention.
图6示出了根据本发明一个具体实施方式的三个机械限位工装的摆臂转动到预定的第一限位位置时的状态示意图。Fig. 6 shows a schematic diagram of the state when the swing arms of the three mechanical limit tooling rotate to the predetermined first limit position according to a specific embodiment of the present invention.
图7示出了根据本发明一个具体实施方式的三个机械限位工装的摆臂转动到预定的第二限位位置时的状态示意图。Fig. 7 shows a schematic diagram of the state when the swing arms of the three mechanical limit tooling rotate to the predetermined second limit position according to a specific embodiment of the present invention.
请参阅图3。根据本发明实施例的一种基于机械限位的从控制器自动编址方法,其中,从控制器通过总线与主控制器通信连接,并与电机电连接,此处所说的电连接包括直接的电流驱动连接以及通信连接,该基于机械限位的从控制器自动编址方法包括以下步骤:See Figure 3. According to an automatic addressing method of a slave controller based on mechanical limit according to an embodiment of the present invention, the slave controller communicates with the master controller through a bus and is electrically connected with the motor. The electrical connection mentioned here includes direct Current drive connection and communication connection, the automatic addressing method of the slave controller based on the mechanical limit includes the following steps:
接收主控制器发送的编址指令;Receive addressing instructions sent by the master controller;
控制电机分别逆时针转动到第一机械限位位置和顺时针转动到第二机械限位位置,获取第一机械限位位置与第二机械限位位置之间的夹角α;转动顺序没有限制,可以先顺时针转动再逆时针转动,也可以先逆时针转动再顺时针转动;Control the motor to rotate counterclockwise to the first mechanical limit position and clockwise to the second mechanical limit position to obtain the angle α between the first mechanical limit position and the second mechanical limit position; the rotation sequence is not limited, You can first turn clockwise and then counterclockwise, or you can first turn counterclockwise and then clockwise;
根据预先存储的角度范围和节点地址对应表确定与夹角α相匹配的角度范围,并将与夹角α相匹配的角度范围所对应的节点地址作为自身的地址;如 找不到与夹角α相匹配的角度范围,则确认编址失败。Determine the angle range matching the angle α according to the pre-stored angle range and node address correspondence table, and use the node address corresponding to the angle range matching the angle α as its own address; If α matches the angular range, addressing failure is confirmed.
在本实施例中,上述的电机与一执行工件直接或间接相连,该执行工件具有运动部件,该运动部件在执行工件中具有预定的第一限位位置和预定的第二限位位置;当电机逆时针转动驱动运动部件运动至第一限位位置时,电机处于第一机械限位位置,当电机顺时针转动驱动运动部件运动至第二限位位置时,电机处于第二机械限位位置。In this embodiment, the above-mentioned motor is directly or indirectly connected to an execution workpiece, the execution workpiece has a moving part, and the movement part has a predetermined first limit position and a predetermined second limit position in the execution workpiece; when When the motor rotates counterclockwise to drive the moving parts to move to the first limit position, the motor is in the first mechanical limit position; when the motor rotates clockwise to drive the moving parts to move to the second limit position, the motor is in the second mechanical limit position .
在本实施例中,所述的控制电机分别逆时针转动到第一机械限位位置和顺时针转动到第二机械限位位置、获取第一机械限位位置与第二机械限位位置之间的夹角α具体包括:In this embodiment, the control motor rotates counterclockwise to the first mechanical limit position and clockwise to the second mechanical limit position to obtain the distance between the first mechanical limit position and the second mechanical limit position. The included angle α specifically includes:
控制电机逆时针转动到第一机械限位位置,记录当前的电机转子角度A;Control the motor to rotate counterclockwise to the first mechanical limit position, and record the current motor rotor angle A;
控制电机顺时针转动到第二机械限位位置,记录当前的电机转子角度B;Control the motor to rotate clockwise to the second mechanical limit position, and record the current motor rotor angle B;
通过计算获得第一机械限位位置与第二机械限位位置之间的夹角α,α=|A-B|。The angle α between the first mechanical limit position and the second mechanical limit position is obtained through calculation, α=|A-B|.
检测电机转子角度的方式包括通过转子位置传感器检测、基于电机线圈的反电动势检测等,本申请对此不做限制,上述的转子位置传感器例如为编码器、霍尔传感器等。Ways to detect the rotor angle of the motor include detection by the rotor position sensor, detection based on the back electromotive force of the motor coil, etc., and the present application does not limit this. The above-mentioned rotor position sensor is, for example, an encoder, a Hall sensor, and the like.
前述的总线可以是LIN总线、CAN总线或RS485总线等。The foregoing bus can be a LIN bus, a CAN bus or an RS485 bus, etc.
图4示出了采用本发明实施例的从控制器自动编址方法的LIN总线自动编址系统的示意图。从图中可以看出,所有的总线节点均挂接在LIN总线上,这也是常规的LIN总线连接方式,这种连接方式可以保证任意一个从控制器的连接不良不会影响主控制器与其它从控制器的通信。Fig. 4 shows a schematic diagram of a LIN bus automatic addressing system adopting the automatic addressing method of the slave controller according to the embodiment of the present invention. It can be seen from the figure that all bus nodes are connected to the LIN bus, which is also a conventional LIN bus connection method. This connection method can ensure that any poor connection of any slave controller will not affect the relationship between the master controller and other controllers. communication from the controller.
图4所示出的LIN总线自动编址系统的自动编址的工作过程如图5所示,具体如下:The working process of the automatic addressing of the LIN bus automatic addressing system shown in Figure 4 is shown in Figure 5, specifically as follows:
用机械限位来设置每个从控制器电机的运动范围,用不同的机械限位角度范围代表不同的从控制器节点地址;对于n个从控制器而言,n个电机的第一机械限位位置与第二机械限位位置应被设置成使多个从控制器所获取的第一机械限位位置与第二机械限位位置之间的夹角α分别处于不同的角度范围中,在预先存储的角度范围和节点地址对应表中,不同的角度范围对应不同的节点地址;Use mechanical limit to set the motion range of each slave controller motor, and use different mechanical limit angle ranges to represent different slave controller node addresses; for n slave controllers, the first mechanical limit of n motors The first mechanical limit position and the second mechanical limit position should be set so that the included angles α between the first mechanical limit position and the second mechanical limit position obtained from the controller are respectively in different angle ranges. In the pre-stored angle range and node address correspondence table, different angle ranges correspond to different node addresses;
各从控制器接收主控制器广播的自动编址指令;Each slave controller receives the automatic addressing instruction broadcast by the master controller;
各从控制器控制对应的电机逆时针转动,直到遇到机械限位无法继续转动(即到达第一机械限位位置),记录当前的电机转子角度A;Each slave controller controls the corresponding motor to rotate counterclockwise until it encounters the mechanical limit and cannot continue to rotate (that is, reaches the first mechanical limit position), and records the current motor rotor angle A;
各从控制器控制对应的电机顺时针转动,直到遇到机械限位无法继续转动(即到达第二机械限位位置),记录当前的电机转子角度B;Each slave controller controls the corresponding motor to rotate clockwise until it encounters the mechanical limit and cannot continue to rotate (that is, reaches the second mechanical limit position), and records the current motor rotor angle B;
各从控制器计算上述两个机械限位之间的角度α:α=|A-B|;Each slave controller calculates the angle α between the above two mechanical limits: α=|A-B|;
各从控制器根据预先存储的角度范围和节点地址对应表确定与夹角α相匹配的角度范围(图5中示出了角度范围a、b、c、x),并将与夹角α相匹配的角度范围所对应的节点地址作为自身的地址;如找不到与夹角α相匹配的角度范围,则确认编址失败。Each slave controller determines the angle range that matches the angle α according to the pre-stored angle range and node address correspondence table (the angle ranges a, b, c, x are shown in Figure 5), and will correspond to the angle α The node address corresponding to the matched angle range is used as its own address; if no angle range matching the included angle α is found, the addressing confirmation fails.
在一种具体的实施方式中,通过LIN总线通信连接的从控制器的数量为三个,每个从控制器均为带有电机的执行器的控制器,每个从控制器的电机分别与一机械限位工装连接。图6示出了该实施方式中分别与三个从控制器的电机相连的三个机械限位工装11、12和13的示意图。其中,每个机械限位工装均包括工装壳体1a和摆臂1b,摆臂1b的一端可转动地设置于工装壳体1a,并与对应电机的输出轴相连。每个工装壳体1a设有第一限位部101和第二限位部102,第一限位部101和第二限位部102例如可以是销柱等。当电机驱动摆臂逆时针转动至与第一限位部101相抵时(相当于摆臂1b到达第一个机械止点),如图6所示,对应电机处于第一机械限位位置,当电机驱动摆臂顺时针转动至与第二限位部102相抵时(相当于摆臂1b到达第二个机械止点),如图7所示,电机处于第二机械限位位置。上述三个机械限位工装11、12和13的第一限位部与第二限位部之间的夹角互不相同,机械限位工装11的第一限位部与第二限位部之间的夹角为340°,机械限位工装12的第一限位部与第二限位部之间的夹角为310°,机械限位工装13的第一限位部与第二限位部之间的夹角为280°。In a specific embodiment, the number of slave controllers connected through LIN bus communication is three, and each slave controller is a controller of an actuator with a motor, and the motor of each slave controller is connected with A mechanical limit tooling connection. FIG. 6 shows a schematic diagram of three
三个从控制器接收到主控制器广播的自动编址指令时,分别控制对应电机逆时针运行到图5中所示的第一机械限位位置,此时摆臂1b被第一限位部101挡住,各从控制器记录当前的电机转子角度A;然后,三个从控制器控制对应电机顺时针运行到图6中所示的第二机械限位位置,此时摆臂1b被第二限位 部102挡住,各从控制器记录当前的电机转子角度B。When the three slave controllers receive the automatic addressing instruction broadcast by the master controller, they respectively control the corresponding motors to run counterclockwise to the first mechanical limit position shown in Figure 5, at this time the
各从控制器计算上述两个机械限位位置之间的角度α:α=|A-B|,然后根据预先存储的角度范围和节点地址对应表确定与夹角α相匹配的角度范围:Each slave controller calculates the angle α between the above two mechanical limit positions: α=|A-B|, and then determines the angle range matching the included angle α according to the pre-stored angle range and node address correspondence table:
控制工装11的从控制器计算出角度α等于340°(α角是指电机转动的角度范围),处于预定的角度范围335°~345°内,则将自己的节点地址设置为与335°~345°相对应的001;The angle α calculated by the controller of the
控制工装12的从控制器计算出角度α等于310°,处于预定的角度范围305°~315°内,则将自己的节点地址设置为与305°~315°相对应的002;The slave controller of the
控制工装13的从控制器计算出角度α等于280°,处于预定的角度范围275°~285°内,则将自己的节点地址设置为与275°~285°相对应的003。The slave controller of the
设置完地址后,自动编址结束。After setting the address, automatic addressing ends.
在前述实施例中,电机集成在执行器中。在编址时,电机通过执行器与工装间接相连。在某些实施例中,也可以将电机与工装直接相连。In the preceding embodiments, the electric motor is integrated in the actuator. When addressing, the motor is indirectly connected to the tooling through the actuator. In some embodiments, it is also possible to connect the motor directly to the tooling.
在前述实施例中,机械限位为外部工装形式,通过电机自动旋转、工装限制电机的转动自动编址,相比手动编址,单个电机从控制器的编址速度得到提高、所需生产时间降低,此外通过多个工装可以实现多个电机从控制器的同时编址,进一步降低编址工序的工人作业时间、加快了生产节奏、降低了生产成本,并可以预防人工操作电机旋转角度导致的错误(即精确编址)。In the aforementioned embodiments, the mechanical limit is in the form of external tooling, through the automatic rotation of the motor and the automatic addressing of the tooling to limit the rotation of the motor. Compared with manual addressing, the addressing speed of a single motor from the controller is improved, and the required production time In addition, multiple motors can be addressed from the controller at the same time through multiple tooling, which further reduces the working time of workers in the addressing process, speeds up the production rhythm, reduces production costs, and can prevent errors caused by manual operation of the motor rotation angle. Error (i.e. exact addressing).
在另一实施例中,多个电机分别与多个不同的车载部件集成在一起,车载部件具有机械限位从而限制其行程,多个不同的车载部件的行程不同。车载部件可以是阀、泵、进气格栅、自动加油盖/充电盖等含有电机的车载部件中的一种或多种。多个不同的车载部件由其自身结构或其应用环境形成相应的机械限位(即预定的第一限位位置和预定的第二限位位置由车载部件本身或车载部件的安装环境形成),例如,三个电机分别与三个不同的阀集成在一起,由于不同的阀的结构、安装环境不同,由三个不同阀本身的结构或安装环境形成了三种不同的机械限位,即电机安装到该三个不同的阀上后所能旋转的角度(行程)是不同的,从而,通过车载部件提供具有特定角度的机械限位,通过上述方法步骤可以对需要编址的电机的从控制器实现自动编址。由于减少了使用工装的步骤,直接由车载部件提供机械限位,可以进一步降低编址工序的作业时间、 加快了生产节奏、降低了生产成本,并可以进一步避免人工操作失误导致的错误。In another embodiment, a plurality of motors are integrated with a plurality of different on-vehicle components respectively, the on-vehicle components have mechanical stops to limit their strokes, and the strokes of the multiple different on-vehicle components are different. The on-vehicle components may be one or more of valves, pumps, air intake grills, automatic fuel caps/charging caps and other on-vehicle components containing motors. A plurality of different vehicle-mounted components form corresponding mechanical limits by their own structures or their application environments (that is, the predetermined first limit position and the predetermined second limit position are formed by the vehicle-mounted components themselves or the installation environment of the vehicle-mounted components), For example, three motors are integrated with three different valves. Due to the different structures and installation environments of different valves, three different mechanical limits are formed by the structures or installation environments of the three different valves. The angles (strokes) that can be rotated after being installed on the three different valves are different, thus, the mechanical limit with a specific angle is provided by the on-board components, and the slave control of the motor that needs to be addressed can be controlled through the above method steps The device realizes automatic addressing. Due to the reduction of the steps of using tooling, the mechanical limit is directly provided by the on-board components, which can further reduce the working time of the addressing process, speed up the production rhythm, reduce the production cost, and further avoid errors caused by manual operation errors.
本发明实施例定义了机械限位角度范围和不同从控制器节点地址之间的关系,从控制器可以在自动编址过程中自动检测限位角度范围,并查表确定自己的地址。由于每个从控制器都有自己特定的限位角度范围,因此本实施例的自动编址方法可以一次性对多个从控制器编址,运动和编址过程互不干扰。The embodiment of the present invention defines the relationship between the mechanical limit angle range and the node addresses of different slave controllers. The slave controller can automatically detect the limit angle range during the automatic addressing process, and check the table to determine its own address. Since each slave controller has its own specific limit angle range, the automatic addressing method of this embodiment can address multiple slave controllers at one time, and the movement and addressing process do not interfere with each other.
工业应用性Industrial Applicability
根据本发明实施例的基于机械限位的从控制器自动编址方法不用改变总线的接线方式,也不需要增加专用的编址连线以及其它硬件成本,具有成本低、可靠性高、易于实现、编址效率高的优点。According to the embodiment of the present invention, the automatic addressing method of the slave controller based on the mechanical limit does not need to change the wiring mode of the bus, nor does it need to increase the special addressing connection and other hardware costs, and has the advantages of low cost, high reliability, and easy implementation , The advantages of high addressing efficiency.
Claims (11)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210195760.7 | 2022-03-02 | ||
| CN202210195760.7A CN114584418B (en) | 2022-03-02 | 2022-03-02 | Automatic addressing method of slave controller based on mechanical limit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023165075A1 true WO2023165075A1 (en) | 2023-09-07 |
Family
ID=81772130
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/109252 Ceased WO2023165075A1 (en) | 2022-03-02 | 2022-07-29 | Mechanical limitation-based automatic slave controller addressing method |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN114584418B (en) |
| WO (1) | WO2023165075A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114584418B (en) * | 2022-03-02 | 2023-08-01 | 科博达技术股份有限公司 | Automatic addressing method of slave controller based on mechanical limit |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030052180A1 (en) * | 2001-09-19 | 2003-03-20 | Trw Inc. | Method and apparatus for establishing addresses for plural actuators connected to a bus |
| US20080177919A1 (en) * | 2006-09-07 | 2008-07-24 | Denso Corporation | Communication system and method for assigning addresses |
| CN111226177A (en) * | 2018-12-27 | 2020-06-02 | 深圳市大疆创新科技有限公司 | Control method, motor driving device, control device and movable platform |
| CN113162831A (en) * | 2021-02-03 | 2021-07-23 | 太原向明智控科技有限公司 | Cascadable self-addressing tilt angle sensor and addressing method thereof |
| CN114584418A (en) * | 2022-03-02 | 2022-06-03 | 科博达技术股份有限公司 | Slave controller automatic addressing method based on mechanical limit |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103246627A (en) * | 2012-02-03 | 2013-08-14 | 施耐德电器工业公司 | Multi-stage subordinate serial communication system and method capable of automatically allocating addresses |
| CN102627231B (en) * | 2012-03-29 | 2014-03-26 | 中国科学院自动化研究所 | An amplitude limiting device and method |
| CN107294430A (en) * | 2017-07-28 | 2017-10-24 | 浙江大学 | A kind of New-type electric machine control system |
| CN112217702B (en) * | 2019-07-11 | 2022-06-10 | 郑州宇通集团有限公司 | Automatic addressing method for cascade master-slave module, master control module and slave control module |
| CN113557165A (en) * | 2020-02-24 | 2021-10-26 | 东莞新能安科技有限公司 | Battery management system and addressing method |
| CN112068479B (en) * | 2020-08-31 | 2024-08-16 | 中国船舶重工集团应急预警与救援装备股份有限公司 | Automatic leveling control system based on servo electric cylinder and inclination sensor |
-
2022
- 2022-03-02 CN CN202210195760.7A patent/CN114584418B/en active Active
- 2022-07-29 WO PCT/CN2022/109252 patent/WO2023165075A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030052180A1 (en) * | 2001-09-19 | 2003-03-20 | Trw Inc. | Method and apparatus for establishing addresses for plural actuators connected to a bus |
| US20080177919A1 (en) * | 2006-09-07 | 2008-07-24 | Denso Corporation | Communication system and method for assigning addresses |
| CN111226177A (en) * | 2018-12-27 | 2020-06-02 | 深圳市大疆创新科技有限公司 | Control method, motor driving device, control device and movable platform |
| CN113162831A (en) * | 2021-02-03 | 2021-07-23 | 太原向明智控科技有限公司 | Cascadable self-addressing tilt angle sensor and addressing method thereof |
| CN114584418A (en) * | 2022-03-02 | 2022-06-03 | 科博达技术股份有限公司 | Slave controller automatic addressing method based on mechanical limit |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114584418B (en) | 2023-08-01 |
| CN114584418A (en) | 2022-06-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI554022B (en) | Method for setting identification code of smart motor and multi-axis control apparatus using the same | |
| CN107420608A (en) | A kind of valve control system and control method | |
| CN109849046A (en) | A method for returning to zero of a steering gear rotor, a zero returning system, a steering gear and a robot | |
| WO2004039010A1 (en) | Electronic device system | |
| JPWO2017081792A1 (en) | Detection device abnormality determination system, detection device, detection device abnormality determination device, and detection device abnormality determination method | |
| WO2023165075A1 (en) | Mechanical limitation-based automatic slave controller addressing method | |
| JP2010268624A (en) | Servo motor control circuit | |
| CN113138578A (en) | Air valve control execution device and control method thereof | |
| CN106471729A (en) | The diagnosis of drive system and drive system | |
| CN205105136U (en) | Motor drive | |
| CN105035158B (en) | Electric power steering method and system | |
| CN118611524B (en) | Motor position verification method, electronic equipment, vehicle suspension and vehicle | |
| CN108104957B (en) | An automobile electronic throttle control system and its control method | |
| CN105403190A (en) | Displacement detection system of stepping machine | |
| CN114938314B (en) | Automatic addressing method of slave controller based on position time sequence | |
| KR20160012602A (en) | System for Motion Control and Setting Method thereof | |
| CN101290521A (en) | Automobile air conditioner control system air door self-calibration method | |
| CN115051886B (en) | Automatic addressing method of slave controller based on external load time sequence | |
| CN208040543U (en) | A kind of automotive electronics air throttle control system | |
| CN104834270B (en) | Rotate the 4th axis and CNC machining centers on-line control system and control method | |
| WO2020248160A1 (en) | Fault detection method and device for encoder of movable platform, and storage medium | |
| CN112904793A (en) | Intelligent servo system integrating PLC (programmable logic controller) and vision or force feedback | |
| JP2018068044A (en) | LIN Motor Actuator for Vehicle | |
| CN114900095A (en) | Servo driver and angle detection method, device and storage medium thereof | |
| CN219493213U (en) | Step driver and rotary valve control system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22929508 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22929508 Country of ref document: EP Kind code of ref document: A1 |