[go: up one dir, main page]

CN117938644A - A self-organizing communication electric roller controller conveying system - Google Patents

A self-organizing communication electric roller controller conveying system Download PDF

Info

Publication number
CN117938644A
CN117938644A CN202410089968.XA CN202410089968A CN117938644A CN 117938644 A CN117938644 A CN 117938644A CN 202410089968 A CN202410089968 A CN 202410089968A CN 117938644 A CN117938644 A CN 117938644A
Authority
CN
China
Prior art keywords
station
station equipment
state
frame
station device
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
CN202410089968.XA
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.)
Wenzhou University of Technology
Original Assignee
Wenzhou University of Technology
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 Wenzhou University of Technology filed Critical Wenzhou University of Technology
Priority to CN202410089968.XA priority Critical patent/CN117938644A/en
Publication of CN117938644A publication Critical patent/CN117938644A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B65CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
    • B65GTRANSPORT OR STORAGE DEVICES, e.g. CONVEYORS FOR LOADING OR TIPPING, SHOP CONVEYOR SYSTEMS OR PNEUMATIC TUBE CONVEYORS
    • B65G43/00Control devices, e.g. for safety, warning or fault-correcting
    • B65G43/10Sequence control of conveyors operating in combination
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5092Address allocation by self-assignment, e.g. picking addresses at random and testing if they are already in use
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0016Arrangements for synchronising receiver with transmitter correction of synchronization errors

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Automation & Control Theory (AREA)
  • Control Of Conveyors (AREA)

Abstract

The invention provides a self-organizing communication electric roller controller conveying system, which comprises a master station device and a plurality of slave station devices, wherein one end of the master station device is connected with an upstream controller through a communication interface, the other end of the master station device is connected with an initial slave station device through a communication interface, each slave station device is sequentially connected with a downstream slave station device through a communication interface, the master station device and the slave station devices are respectively provided with a driver, the left end and the right end of each driver are respectively connected with a photoelectric sensor through a photoelectric sensor interface, and after the system is started up and self-inspected, the system enters an initialization or running state according to commands received by a station. The invention has the self-organizing communication function, can realize automatic networking and addressing of the conveying line without additional configuration after hardware connection, automatically completes parameter configuration, has logic and realizes the zero-pressure power-up function of the conveying line. In addition, the invention has the function of monitoring the equipment state in real time, and can quickly locate the fault point and automatically restore the parameters when the station fails.

Description

一种自组织通信的电动辊筒控制器输送系统A self-organizing communication electric roller controller conveying system

技术领域Technical Field

本发明涉及通信控制技术领域,具体而言,涉及一种自组织通信的电动辊筒控制器输送系统。The present invention relates to the field of communication control technology, and in particular to a self-organizing communication electric roller controller conveying system.

背景技术Background technique

电动辊筒是一种用于输送线的内置电机的自动化执行元件,多个电动辊筒在输送线上协同运转,完成产品输送。在物流分拣或柔性生产线上,输送线上的物品数量和频次可能是随机的,输送线需要保证其在输送过程中物品不会相互挤压,即需要实现其零压力积放功能。常规的电动辊筒控制器有独立的和带总线通信两种,独立的辊筒控制器通常只有电机驱动与错误报警功能,需要额外在PLC控制下实现辊筒的调速与压力积放功能,无法实现自动配置与编址,当系统出现故障时,无法快速自动定位故障站点并自动进行参数恢复,给用户使用带来不便。The electric roller is an automated actuator with a built-in motor for a conveyor line. Multiple electric rollers work together on the conveyor line to complete product transportation. In logistics sorting or flexible production lines, the number and frequency of items on the conveyor line may be random. The conveyor line needs to ensure that the items do not squeeze each other during transportation, that is, it needs to realize its zero-pressure accumulation function. Conventional electric roller controllers are of two types: independent and with bus communication. Independent roller controllers usually only have motor drive and error alarm functions. The speed regulation and pressure accumulation functions of the rollers need to be realized under the control of PLC. Automatic configuration and addressing cannot be realized. When the system fails, it cannot quickly and automatically locate the fault site and automatically restore the parameters, which brings inconvenience to users.

有鉴于此,申请人在研究了现有的技术后特提出本申请。In view of this, the applicant filed this application after studying the existing technology.

发明内容Summary of the invention

本发明旨在提供一种自组织通信的电动辊筒控制器输送系统,实现系统各站点自动分配地址,无需人工额外配置,采用输送线自学习的方式,自动学习相关参数,实现零压力积放功能,当系统出现故障时,可快速自动定位故障站点并自动进行参数恢复。The present invention aims to provide a self-organizing communication electric roller controller conveying system, which can realize automatic address allocation of each station in the system without additional manual configuration. It adopts the self-learning method of the conveyor line to automatically learn relevant parameters and realize the zero-pressure accumulation function. When the system fails, it can quickly and automatically locate the faulty station and automatically restore the parameters.

为解决上述技术问题,本发明通过以下技术方案实现:In order to solve the above technical problems, the present invention is implemented through the following technical solutions:

一种自组织通信的电动辊筒控制器输送系统,包括主站设备和多个从站设备,所述主站设备的一端通过通信接口与上游控制器相连,另一端通过通信接口与起始从站设备相连,每个从站设备依次与下游从站设备通过通信接口连接,所述主站设备和从站设备分别设有驱动器;其中,A self-organizing communication electric roller controller conveying system, comprising a master station device and a plurality of slave station devices, one end of the master station device is connected to an upstream controller via a communication interface, and the other end is connected to an initial slave station device via a communication interface, each slave station device is sequentially connected to a downstream slave station device via a communication interface, and the master station device and the slave station device are respectively provided with a driver; wherein,

所述主站设备开机自检进入预备运行状态后,用于接收外部命令,进入初始化状态或运行状态,并发送相关命令帧给每个从站设备,直至最后一个从站设备,即尾站设备;After the master station device enters the preparatory operation state after the power-on self-test, it is used to receive external commands, enter the initialization state or the operation state, and send relevant command frames to each slave station device until the last slave station device, that is, the tail station device;

从站设备开机自检进入预备运行状态后,用于接收所述主站设备的命令,进入初始化状态或运行状态,并发送相关命令帧给下游从站设备,直至尾站设备;After the slave device enters the preparatory operation state after the power-on self-test, it is used to receive the command of the master device, enter the initialization state or the operation state, and send relevant command frames to the downstream slave devices until the tail station device;

所述尾站设备,用于接收上游从站设备的相关命令帧后,向所述主站设备方向回复相关命令确认帧,直至所述主站设备。The tail station device is used to reply a relevant command confirmation frame to the master station device after receiving the relevant command frame of the upstream slave station device, until the master station device.

优选地,每个驱动器的左右两端分别各设有1个光电传感器接口,第一个光电传感器接口与第一个光电传感器相连,第二个光电传感器接口与第二个光电传感器相连;每个驱动器至少设有一个电机驱动接口,通过所述电机驱动接口与电机相连,每个驱动器设有跳线开关装置,通过所述跳线开关装置控制驱动器所在站点的通断。Preferably, each driver is respectively provided with a photoelectric sensor interface at the left and right ends, the first photoelectric sensor interface is connected to the first photoelectric sensor, and the second photoelectric sensor interface is connected to the second photoelectric sensor; each driver is provided with at least one motor drive interface, which is connected to the motor through the motor drive interface, and each driver is provided with a jumper switch device, which controls the on and off of the station where the driver is located.

优选地,所述主站设备开机自检进入预备运行状态是通过读取存储在所述主站设备上的驱动器的状态参数进行开机自检,若所述状态参数为故障码,则进入故障处理状态,否则进入预备运行状态。Preferably, the master station device enters the preparatory operation state by performing a power-on self-check by reading the state parameters of the driver stored on the master station device. If the state parameter is a fault code, the fault handling state is entered, otherwise the preparatory operation state is entered.

优选地,所述从站设备开机自检进入预备运行状态是通过读取存储在所述从站设备上的驱动器的状态参数进行开机自检,若所述状态参数为故障码,则进入故障处理状态,否则进入预备运行状态。Preferably, the slave device performs a power-on self-check and enters a preparatory operation state by reading a status parameter of a driver stored on the slave device. If the status parameter is a fault code, the device enters a fault handling state, otherwise the device enters a preparatory operation state.

优选地,所述外部命令包括所述主站设备上的按键输入产生的命令或者所述上游控制器发出的命令。Preferably, the external command includes a command generated by a key input on the master station device or a command issued by the upstream controller.

优选地,所述主站设备进入初始化状态的具体操作为:Preferably, the specific operation of the master station device entering the initialization state is:

通过发送“编址”命令帧给相邻的从站设备进行编址,进入寻址状态;By sending an "addressing" command frame to address the adjacent slave device, it enters the addressing state;

收到相邻的从站设备回复的“编址确认”帧后,进入示教模式,各个站点设备通过连接的光电传感器检测运输物品进入和退出的时间,依据物品在输送线上设定的运行速度,估算出运输物品的相对位置;After receiving the "addressing confirmation" frame replied by the adjacent slave device, it enters the teaching mode. Each station device detects the entry and exit time of the transported items through the connected photoelectric sensor, and estimates the relative position of the transported items according to the set running speed of the items on the conveyor line;

收到相邻的从站设备回复的“示教完毕确认”帧后,进入“等待从站设备接收系统时钟”模式,并向下游从站设备发送“系统时钟”帧,所述“系统时钟”帧包含了当前时刻所述主站设备处理器的系统时钟;After receiving the "teaching completion confirmation" frame replied by the adjacent slave device, it enters the "waiting for the slave device to receive the system clock" mode, and sends a "system clock" frame to the downstream slave device. The "system clock" frame contains the system clock of the processor of the master device at the current moment;

收到相邻的从站设备回复的“系统时钟确认”帧后,将收到“系统时钟确认”帧的时间与前面发送“系统时钟”帧的时间相比较,得到时间差数值,所述时间差数值即为数据帧在网络中传递来回一趟的时间,并向下游从站设备发送“校准时钟”帧,所述“校准时钟”帧包含了所述时间差数值;After receiving the "system clock confirmation" frame replied by the adjacent slave station device, the time of receiving the "system clock confirmation" frame is compared with the time of sending the "system clock" frame before, and the time difference value is obtained. The time difference value is the time for the data frame to be transmitted back and forth in the network, and a "calibration clock" frame is sent to the downstream slave station device, and the "calibration clock" frame includes the time difference value;

收到相邻的从站设备回复的“校准时钟确认”帧后,初始化完毕,等待接收外部命令进入下一状态。After receiving the "calibration clock confirmation" frame replied by the adjacent slave device, initialization is completed and waits for receiving external commands to enter the next state.

优选地,所述从站设备进入初始化状态的具体操作为:Preferably, the specific operation of the slave device entering the initialization state is:

第一从站设备收到所述主站设备的“编址”命令后,将“编址”命令中的地址加1,并向下一个从站设备转发,直至最后一个从站设备,即尾站设备;After receiving the "addressing" command from the master station, the first slave station device adds 1 to the address in the "addressing" command and forwards it to the next slave station device until the last slave station device, i.e., the last station device;

从站设备收到所述尾站设备的“编址确认”帧后,进入示教状态,并将“编址确认”帧继续向所述主站设备方向转发,直至所述主站设备;After receiving the "addressing confirmation" frame from the tail station device, the slave station device enters the teaching state and continues to forward the "addressing confirmation" frame to the master station device until the master station device;

从站设备通过驱动器两端连接的光电传感器检测运输物品进入和退出的时间,依据物品在输送线上的运行速度,估算出运输物品的相对位置;The slave device detects the entry and exit time of the transported items through the photoelectric sensors connected to both ends of the driver, and estimates the relative position of the transported items based on the running speed of the items on the conveyor line;

从站设备收到所述尾站设备的“示教完毕确认”帧后,进入系统时钟模式,并将“示教完毕确认”帧继续向前转发,直至传到所述主站设备;After receiving the "teaching completion confirmation" frame from the tail station device, the slave station device enters the system clock mode and continues to forward the "teaching completion confirmation" frame until it reaches the master station device;

第一从站设备收到所述主站设备的“系统时钟”帧后,提取其时钟数据保存,并向后转发,直至所述尾站设备;After receiving the "system clock" frame from the master station, the first slave station device extracts the clock data and stores it, and forwards it backward to the tail station device;

从站设备收到所述尾站设备的“系统时钟确认”帧后,进入“等待校准时钟”状态,并向所述主站设备方向转发;After receiving the "system clock confirmation" frame of the tail station device, the slave station device enters the "waiting for calibration clock" state and forwards it to the master station device;

第一从站设备收到所述主站设备的“校准时钟”帧后,提取所述时间差数值,并向后转发,直至所述尾站设备;After receiving the "calibrate clock" frame from the master station, the first slave station device extracts the time difference value and forwards it backward to the tail station device;

从站设备收到所述尾站设备的“校准时钟确认”后,进入“初始化完毕”状态,并转发至所述主站设备。After receiving the "calibration clock confirmation" from the tail station device, the slave station device enters the "initialization completed" state and forwards it to the master station device.

优选地,所述尾站设备进入初始化状态的具体操作为:Preferably, the specific operation of the tail station device entering the initialization state is:

所述尾站设备收到上游从站设备的“编址”命令后,向所述主站设备方向回复“编址确认”帧;After receiving the "addressing" command from the upstream slave device, the tail station device replies with an "addressing confirmation" frame to the master station device;

所述尾站设备的最后一个光电传感器检测到物品的尾部经过时,所述尾站设备向上游从站设备发送“示教完毕确认”帧;When the last photoelectric sensor of the tail station device detects the tail of the article passing by, the tail station device sends a "teaching completion confirmation" frame to the upstream slave station device;

所述尾站设备收到上游从站设备的“系统时钟”帧后,提取时钟数据保存,并向主站设备方向回复“系统时钟确认”帧;After receiving the "system clock" frame from the upstream slave device, the tail station device extracts the clock data for storage and replies with a "system clock confirmation" frame to the master station device.

所述尾站设备收到上游从站设备的“校准时钟”帧后,提取所述时间差数值,并向主站设备方向回复“校准时钟确认”帧,并进入“初始化完毕”状态。After receiving the "calibration clock" frame from the upstream slave device, the tail station device extracts the time difference value, replies with a "calibration clock confirmation" frame to the master station device, and enters the "initialization completed" state.

优选地,所述主站设备、从站设备和所述尾站设备进入运行状态后,通过所在站点的光电传感器与输送物品的相对关系决定各个站点运行子状态的切换,每个站点以恒定周期向周围站点发送信息,设输送物品所在的站点为当前站点以及输送物品的输送速度恒定,步骤如下:Preferably, after the master station device, the slave station device and the tail station device enter the running state, the switching of the running sub-state of each station is determined by the relative relationship between the photoelectric sensor of the station and the conveyed object. Each station sends information to the surrounding stations at a constant period. It is assumed that the station where the conveyed object is located is the current station and the conveying speed of the conveyed object is constant. The steps are as follows:

当输送物品进入到当前站点的第一个光电传感器的感测范围,第一个光电传感器的信号向上跳变,记录当前系统时间;When the conveyed object enters the sensing range of the first photoelectric sensor of the current station, the signal of the first photoelectric sensor jumps upward and records the current system time;

根据输送物品恒定的输送速度和记录的系统时间,估算出输送物品前沿的实时位置;Estimate the real-time position of the front edge of the conveyed item based on the constant conveying speed of the conveyed item and the recorded system time;

根据当前站点接收到的前一站点的信息以及估算出的输送物品前沿实时位置,更新当前站点的运行状态,则当前站点的运行状态P由逻辑表达式决定,当P为1时,表示当前站点的电机运转,当P为0时,表示当前站点的电机停转,逻辑表达式为:According to the information received from the previous station and the estimated real-time position of the front of the conveyed items, the operation status of the current station is updated. The operation status P of the current station is determined by a logical expression. When P is 1, it means that the motor of the current station is running. When P is 0, it means that the motor of the current station is stopped. The logical expression is:

其中,A表示中间变量,表示各站点运行子状态运行与否的变量,取值1或0,1表示当前站点为预备运行状态,0表示当前站点为运行状态;Among them, A represents an intermediate variable, which indicates whether each station operation sub-state is running or not, and takes a value of 1 or 0. 1 indicates that the current station is in the pre-operation state, and 0 indicates that the current station is in the operation state;

L表示输送物品的前沿位置离当前站点第二个光电传感器的距离,TL为设定的距离阈值;L represents the distance between the front position of the conveyed item and the second photoelectric sensor at the current station, and TL is the set distance threshold;

B为中间变量,表示输送物品的前沿位置离当前站点第二个光电传感器的距离是否达到设定的距离阈值,当L>TL时,B为L>TL,否则为0;B is an intermediate variable, indicating whether the distance between the front position of the conveyed item and the second photoelectric sensor of the current station reaches the set distance threshold. When L>TL, B is L>TL, otherwise it is 0;

C为下一个站点发送来的信息,C取值为1或0,当C取1时,表示下一站点电机仍在运转,当C取0时,表示后一站点电机停止,尾站设备是输送线最后一个站点,它所接收的C是上游控制器或主站设备发送而来。C is the information sent from the next station. The value of C is 1 or 0. When C is 1, it means that the motor of the next station is still running. When C is 0, it means that the motor of the next station has stopped. The tail station equipment is the last station on the conveyor line. The C it receives is sent by the upstream controller or the master station equipment.

优选地,通过每个站点以恒定周期向周围站点发送信息来判断站点是否故障,当确认当前站点未收到前一站点的信息,当前站点自动跳出运行状态,进入故障状态,并向相邻站点传递故障码,直至到达所述主站设备,使整个系统处于故障处理状态中,其中所述故障码包含故障站点的信息,所述主站设备通过接收到的信息判断故障发生的站点和故障原因。Preferably, each site sends information to surrounding sites at a constant period to determine whether the site is faulty. When it is confirmed that the current site has not received information from the previous site, the current site automatically exits the running state and enters the fault state, and transmits the fault code to the adjacent site until it reaches the master site device, so that the entire system is in a fault processing state, wherein the fault code contains information about the faulty site, and the master site device determines the site where the fault occurred and the cause of the fault through the received information.

综上所述,与现有技术相比,本发明具有如下有益效果:In summary, compared with the prior art, the present invention has the following beneficial effects:

(1)本发明组成的输送线系统,包括主站设备和多个从站设备,主站设备的一端与上游控制器相连,另一端与起始从站设备相连,每个从站设备依次与下游从站设备连接,所述主站设备和从站设备分别设有驱动器。本发明具有自组织通信功能,只需要各站点设备物理连接完成,无需额外编程与配置,通过初始化后,即可为各个驱动器站点自动分配站点地址,实现输送器上的辊筒驱动器联网,进行通信。(1) The conveyor line system of the present invention comprises a master station device and a plurality of slave station devices, one end of the master station device is connected to an upstream controller, and the other end is connected to a starting slave station device, each slave station device is connected to a downstream slave station device in turn, and the master station device and the slave station device are respectively provided with a driver. The present invention has a self-organizing communication function, which only requires physical connection of each station device, without additional programming and configuration. After initialization, the station address can be automatically assigned to each driver station, so that the roller driver on the conveyor can be connected to the network and communicate.

(2)本发明通过驱动器两端连接的光电传感器检测运输物品进入和退出的时间,依据物品在输送线上设定的恒定运行速度,估算出运输物品的相对位置,并通过所在站点的光电传感器与输送物品的相对关系决定各个站点运行状态的切换,从而调整各站点状态,无需上游控制器控制即可实现零压力积放功能。(2) The present invention detects the entry and exit time of the transported items through the photoelectric sensors connected to the two ends of the driver, estimates the relative position of the transported items according to the constant running speed set for the items on the conveyor line, and determines the switching of the operating status of each station through the relative relationship between the photoelectric sensors at the station and the transported items, thereby adjusting the status of each station and realizing the zero-pressure accumulation function without the need for control by an upstream controller.

(3)本发明无需人工配置,采用输送线自学习的方式,自动学习相关参数。(3) The present invention does not require manual configuration and adopts a self-learning method of the conveyor line to automatically learn relevant parameters.

(4)本发明采用在主站设备与各从站设备传递系统时钟和校准时钟的方式,弥补通信传输的时延误差,从而可以更加精确的估计物品输送位置。(4) The present invention adopts a method of transmitting the system clock and the calibration clock between the master station device and each slave station device to compensate for the delay error of the communication transmission, so that the object delivery position can be estimated more accurately.

(5)本发明的每个站点以恒定周期向周围站点发送信息,通过各站点是否能够接收到前一站点的信息来判断站点是否故障,实现自动定位故障站点,而且,可在无需额外配置的情况下更换新站点,并自动进行参数恢复。(5) Each station of the present invention sends information to surrounding stations at a constant period, and determines whether the station is faulty by whether each station can receive information from the previous station, thereby automatically locating the faulty station. Moreover, a new station can be replaced without additional configuration, and parameters can be automatically restored.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施方式的技术方案,下面将对实施方式中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

附图1为本发明第一实施例提供的一种自组织通信的电动辊筒控制器输送系统的结构图。FIG1 is a structural diagram of a self-organizing communication electric roller controller conveying system provided by the first embodiment of the present invention.

附图2为本发明第一实施例提供的一种自组织通信的电动辊筒控制器输送系统的主站设备状态图。FIG2 is a state diagram of a master station device of a self-organizing communication electric roller controller conveying system provided by the first embodiment of the present invention.

附图3本发明第一实施例提供的一种自组织通信的电动辊筒控制器输送系统的从站设备状态图。FIG3 is a state diagram of a slave device of a self-organizing communication electric roller controller conveying system provided by the first embodiment of the present invention.

附图4本发明第一实施例提供的一种自组织通信的电动辊筒控制器输送系统的主站设备初始化状态流程示意图。FIG4 is a schematic diagram of the initialization state flow of a master station device of a self-organizing communication electric roller controller conveying system provided by the first embodiment of the present invention.

附图5本发明第一实施例提供的一种自组织通信的电动辊筒控制器输送系统的从站设备初始化状态流程示意图。FIG5 is a schematic diagram of the initialization state flow of a slave device of a self-organizing communication electric roller controller conveying system provided by the first embodiment of the present invention.

附图6本发明第一实施例提供的一种自组织通信的电动辊筒控制器输送系统的尾站设备初始化状态流程示意图。FIG6 is a schematic diagram of the initialization state flow of the tail station equipment of the self-organizing communication electric roller controller conveying system provided by the first embodiment of the present invention.

附图7本发明第一实施例提供的一种自组织通信的电动辊筒控制器输送系统的运行状态切换示意图。FIG7 is a schematic diagram of the operating state switching of a self-organizing communication electric roller controller conveying system provided by the first embodiment of the present invention.

附图8本发明第一实施例提供的一种自组织通信的电动辊筒控制器输送系统的运行状态示意图。FIG8 is a schematic diagram of the operating status of a self-organizing communication electric roller controller conveying system provided by the first embodiment of the present invention.

以下结合附图和具体实施例对本发明作进一步详述。The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.

具体实施方式Detailed ways

为使本发明实施方式的目的、技术方案和优点更加清楚,下面将结合本发明实施方式中的附图,对本发明实施方式中的技术方案进行清楚、完整地描述。显然,所描述的实施方式是本发明一部分实施方式,而不是全部的实施方式。基于本发明中的实施方式,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施方式,都属于本发明保护的范围。因此,以下对在附图中提供的本发明的实施方式的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施方式。基于本发明中的实施方式,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施方式,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the invention claimed for protection, but merely represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

实施例一、Embodiment 1

如图1所示,本发明实施例一提供了一种自组织通信的电动辊筒控制器输送系统,包括主站设备和多个从站设备,所述主站设备的一端通过通信接口与上游控制器相连,另一端通过通信接口与起始从站设备相连,每个从站设备依次与下游从站设备通过通信接口连接,所述主站设备和从站设备分别设有驱动器;其中,As shown in FIG1 , the first embodiment of the present invention provides a self-organizing communication electric roller controller conveying system, including a master station device and multiple slave station devices, one end of the master station device is connected to the upstream controller through a communication interface, and the other end is connected to the starting slave station device through a communication interface, and each slave station device is connected to the downstream slave station device through a communication interface in turn, and the master station device and the slave station device are respectively provided with a driver; wherein,

所述主站设备开机自检进入预备运行状态后,用于接收外部命令,进入初始化状态或运行状态,并发送相关命令帧给每个从站设备,直至最后一个从站设备,即尾站设备;After the master station device enters the preparatory running state after the power-on self-test, it is used to receive external commands, enter the initialization state or the running state, and send relevant command frames to each slave station device until the last slave station device, that is, the tail station device;

从站设备开机自检进入预备运行状态后,用于接收所述主站设备的命令,进入初始化状态或运行状态,并发送相关命令帧给下游从站设备,直至尾站设备;After the slave device enters the preparatory operation state after the power-on self-test, it is used to receive the command of the master device, enter the initialization state or the operation state, and send relevant command frames to the downstream slave devices until the tail station device;

所述尾站设备,用于接收上游从站设备的相关命令帧后,向所述主站设备方向回复相关命令确认帧,直至所述主站设备。The tail station device is used to reply a relevant command confirmation frame to the master station device after receiving the relevant command frame of the upstream slave station device, until the master station device.

在本实施例中,所述通信接口的物理层采用RS-232、RS-422串行通信接口,整个输送线系统通过点对点通信连接在一起,处于中间的为从站设备,其左右两个通信接口都与相邻的驱动器相连。In this embodiment, the physical layer of the communication interface adopts RS-232 and RS-422 serial communication interfaces. The entire conveyor line system is connected together through point-to-point communication. The slave device is in the middle, and its left and right communication interfaces are connected to adjacent drivers.

在本实施例中,每个驱动器的左右两端分别设有1个光电传感器接口,第一个光电传感器接口与第一个光电传感器(即图1中的光电传感器1)相连,第二个光电传感器接口与第二个光电传感器(即图1中的光电传感器2)相连。In this embodiment, each driver is provided with a photoelectric sensor interface at the left and right ends respectively, the first photoelectric sensor interface is connected to the first photoelectric sensor (i.e., photoelectric sensor 1 in Figure 1), and the second photoelectric sensor interface is connected to the second photoelectric sensor (i.e., photoelectric sensor 2 in Figure 1).

在本实施例中,每个驱动器至少设有一个电机驱动接口,通过电机驱动接口与电机相连,每个驱动器设有跳线开关装置,通过跳线开关装置控制驱动器所在站点的通断。In this embodiment, each driver is provided with at least one motor drive interface, which is connected to the motor through the motor drive interface, and each driver is provided with a jumper switch device, which controls the on and off of the station where the driver is located.

在本实施例中,所述跳线开关装置包括跳线和D IP开关。当系统上电开机后,驱动器会检测跳线开关装置,选择进入主站模式、从站模式或尾站模式。In this embodiment, the jumper switch device includes a jumper and a DIP switch. When the system is powered on, the driver will detect the jumper switch device and select to enter the master mode, slave mode or tail mode.

如图2所示,所述主站设备开机自检进入预备运行状态是通过读取存储在所述主站设备上的驱动器的状态参数进行开机自检,若所述状态参数为故障码,则进入故障处理状态,否则进入预备运行状态。As shown in FIG. 2 , the master station device enters the preparatory operation state by performing a power-on self-test by reading the state parameters of the driver stored on the master station device. If the state parameters are fault codes, the fault handling state is entered, otherwise the preparatory operation state is entered.

如图3所示,所述从站设备开机自检进入预备运行状态是通过读取存储在所述从站设备上的驱动器的状态参数进行开机自检,若所述状态参数为故障码,则进入故障处理状态,否则进入预备运行状态。As shown in FIG3 , the slave device enters the preparatory operation state after power-on self-test by reading the state parameters of the driver stored on the slave device. If the state parameters are fault codes, the fault handling state is entered; otherwise, the preparatory operation state is entered.

在本实施例中,所述电机包括BLDC和PMSM,每个驱动器能够驱动一路或多路BLDC和PMSM等电机,从而驱动控制电动辊筒。In this embodiment, the motors include BLDC and PMSM, and each driver can drive one or more BLDC and PMSM motors, thereby driving and controlling the electric roller.

在本实施例中,所述外部命令包括所述主站设备上的按键输入产生的命令或者所述上游控制器发出的命令。In this embodiment, the external command includes a command generated by a key input on the master station device or a command issued by the upstream controller.

整个输送系统可以被上游控制器视为一个ModBusRTU设备进行控制。The entire conveying system can be controlled by the upstream controller as a ModBusRTU device.

如图4所示,所述主站设备接收到初始化命令后,所述主站设备进入初始化操作,具体为:As shown in FIG4 , after the master station device receives the initialization command, the master station device enters the initialization operation, specifically:

通过发送“编址”命令帧给相邻的从站设备进行编址,进入寻址状态;By sending an "addressing" command frame to address the adjacent slave device, it enters the addressing state;

收到相邻的从站设备回复的“编址确认”帧后,进入示教模式,各个站点设备通过连接的光电传感器检测运输物品进入和退出的时间,依据物品在输送线上设定的运行速度,估算出运输物品的相对位置;After receiving the "addressing confirmation" frame replied by the adjacent slave device, it enters the teaching mode. Each station device detects the entry and exit time of the transported items through the connected photoelectric sensor, and estimates the relative position of the transported items according to the set running speed of the items on the conveyor line;

收到相邻的从站设备回复的“示教完毕确认”帧后,进入“等待从站设备接收系统时钟”模式,并向下游从站设备发送“系统时钟”帧,所述“系统时钟”帧包含了当前时刻所述主站设备处理器的系统时钟;After receiving the "teaching completion confirmation" frame replied by the adjacent slave device, it enters the "waiting for the slave device to receive the system clock" mode, and sends a "system clock" frame to the downstream slave device. The "system clock" frame contains the system clock of the processor of the master device at the current moment;

收到相邻的从站设备回复的“系统时钟确认”帧后,将收到“系统时钟确认”帧的时间与前面发送“系统时钟”帧的时间相比较,得到时间差数值,所述时间差数值即为数据帧在网络中传递来回一趟的时间,并向下游从站设备发送“校准时钟”帧,所述“校准时钟”帧包含了所述时间差数值;After receiving the "system clock confirmation" frame replied by the adjacent slave station device, the time of receiving the "system clock confirmation" frame is compared with the time of sending the "system clock" frame before, and the time difference value is obtained. The time difference value is the time for the data frame to be transmitted back and forth in the network, and a "calibration clock" frame is sent to the downstream slave station device, and the "calibration clock" frame includes the time difference value;

收到相邻的从站设备回复的“校准时钟确认”帧后,初始化完毕,等待接收外部命令进入下一状态。After receiving the "calibration clock confirmation" frame replied by the adjacent slave device, initialization is completed and waits for receiving external commands to enter the next state.

如图5所示,从站设备接收到所述主站设备初始化命令后,从站设备进入初始化操作,具体为:As shown in FIG5 , after the slave device receives the master device initialization command, the slave device enters the initialization operation, specifically:

第一从站设备收到所述主站设备的“编址”命令后,将“编址”命令中的地址加1,并向下一个从站设备转发,直至最后一个从站设备,即尾站设备;After receiving the "addressing" command from the master station, the first slave station device adds 1 to the address in the "addressing" command and forwards it to the next slave station device until the last slave station device, i.e., the last station device;

从站设备收到所述尾站设备的“编址确认”帧后,进入示教状态,并将“编址确认”帧继续向所述主站设备方向转发,直至所述主站设备;After receiving the "addressing confirmation" frame from the tail station device, the slave station device enters the teaching state and continues to forward the "addressing confirmation" frame to the master station device until the master station device;

从站设备通过驱动器两端连接的光电传感器检测运输物品进入和退出的时间,依据物品在输送线上的运行速度,估算出运输物品的相对位置;The slave device detects the entry and exit time of the transported items through the photoelectric sensors connected to both ends of the driver, and estimates the relative position of the transported items based on the running speed of the items on the conveyor line;

从站设备收到所述尾站设备的“示教完毕确认”帧后,进入系统时钟模式,并将“示教完毕确认”帧继续向前转发,直至传到所述主站设备;After receiving the "teaching completion confirmation" frame from the tail station device, the slave station device enters the system clock mode and continues to forward the "teaching completion confirmation" frame until it reaches the master station device;

第一从站设备收到所述主站设备的“系统时钟”帧后,提取其时钟数据保存,并向后转发,直至所述尾站设备;After receiving the "system clock" frame from the master station, the first slave station device extracts the clock data and stores it, and forwards it backward to the tail station device;

从站设备收到所述尾站设备的“系统时钟确认”帧后,进入“等待校准时钟”状态,并向所述主站设备方向转发;After receiving the "system clock confirmation" frame of the tail station device, the slave station device enters the "waiting for calibration clock" state and forwards it to the master station device;

第一从站设备收到所述主站设备的“校准时钟”帧后,提取所述时间差数值,并向后转发,直至所述尾站设备;After receiving the "calibrate clock" frame from the master station, the first slave station device extracts the time difference value and forwards it backward to the tail station device;

从站设备收到所述尾站设备的“校准时钟确认”后,进入“初始化完毕”状态,并转发至所述主站设备。After receiving the "calibration clock confirmation" from the tail station device, the slave station device enters the "initialization completed" state and forwards it to the master station device.

如图6所示,所述尾站设备接收到上游从站设备初始化命令后,尾站设备进入初始化操作,具体为:As shown in FIG6 , after the tail station device receives the initialization command from the upstream slave station device, the tail station device enters the initialization operation, which is specifically:

所述尾站设备收到上游从站设备的“编址”命令后,向所述主站设备方向回复“编址确认”帧;After receiving the "addressing" command from the upstream slave device, the tail station device replies with an "addressing confirmation" frame to the master station device;

所述尾站设备的最后一个光电传感器检测到物品的尾部经过时,所述尾站设备向上游从站设备发送“示教完毕确认”帧;When the last photoelectric sensor of the tail station device detects the tail of the article passing by, the tail station device sends a "teaching completion confirmation" frame to the upstream slave station device;

所述尾站设备收到上游从站设备的“系统时钟”帧后,提取时钟数据保存,并向主站设备方向回复“系统时钟确认”帧;After receiving the "system clock" frame from the upstream slave device, the tail station device extracts the clock data for storage and replies with a "system clock confirmation" frame to the master station device.

所述尾站设备收到上游从站设备的“校准时钟”帧后,提取所述时间差数值,并向主站设备方向回复“校准时钟确认”帧,并进入“初始化完毕”状态。After receiving the "calibration clock" frame from the upstream slave device, the tail station device extracts the time difference value, replies with a "calibration clock confirmation" frame to the master station device, and enters the "initialization completed" state.

如图7和图8所示,所述主站设备、从站设备和所述尾站设备进入运行状态后,通过所在站点的光电传感器与输送物品的相对关系决定各个站点运行子状态的切换,每个站点以恒定周期向周围站点发送信息,设输送物品所在的站点为当前站点以及输送物品的输送速度恒定,步骤如下:As shown in FIG7 and FIG8, after the master station device, the slave station device and the tail station device enter the running state, the switching of the running sub-state of each station is determined by the relative relationship between the photoelectric sensor of the station and the conveyed object. Each station sends information to the surrounding stations at a constant period. Assuming that the station where the conveyed object is located is the current station and the conveying speed of the conveyed object is constant, the steps are as follows:

当输送物品进入到当前站点的第一个光电传感器的感测范围,第一个光电传感器的信号向上跳变,记录当前系统时间;When the conveyed object enters the sensing range of the first photoelectric sensor of the current station, the signal of the first photoelectric sensor jumps upward and records the current system time;

根据输送物品恒定的输送速度和记录的系统时间,估算出输送物品前沿的实时位置;Estimate the real-time position of the front edge of the conveyed item based on the constant conveying speed of the conveyed item and the recorded system time;

根据当前站点接收到的前一站点的信息以及估算出的输送物品前沿实时位置,更新当前站点的运行状态,则当前站点的运行状态P由逻辑表达式决定,当P为1时,表示当前站点的电机运转,当P为0时,表示当前站点的电机停转,逻辑表达式为:According to the information received from the previous station and the estimated real-time position of the front of the conveyed items, the operation status of the current station is updated. The operation status P of the current station is determined by a logical expression. When P is 1, it means that the motor of the current station is running. When P is 0, it means that the motor of the current station is stopped. The logical expression is:

如表1所示,其中,A表示中间变量,表示各站点运行子状态运行与否的变量,取值1或0,1表示当前站点为预备运行状态,0表示当前站点为运行状态;As shown in Table 1, A represents an intermediate variable, which is a variable indicating whether each station operation sub-state is running or not, and takes a value of 1 or 0, 1 indicates that the current station is in the pre-operation state, and 0 indicates that the current station is in the operation state;

L表示输送物品的前沿位置离当前站点第二个光电传感器的距离,TL为设定的距离阈值;L represents the distance between the front position of the conveyed item and the second photoelectric sensor at the current station, and TL is the set distance threshold;

B为中间变量,表示输送物品的前沿位置离当前站点第二个光电传感器的距离是否达到设定的距离阈值,当L>TL时,B为L>TL,否则为0;B is an intermediate variable, indicating whether the distance between the front position of the conveyed item and the second photoelectric sensor of the current station reaches the set distance threshold. When L>TL, B is L>TL, otherwise it is 0;

C为下一个站点发送来的信息,C取值为1或0,当C取1时,表示下一站点电机仍在运转,当C取0时,表示后一站点电机停止,尾站设备是输送线最后一个站点,它所接收的C是上游控制器或主站设备发送而来。C is the information sent from the next station. The value of C is 1 or 0. When C is 1, it means that the motor of the next station is still running. When C is 0, it means that the motor of the next station has stopped. The tail station equipment is the last station on the conveyor line. The C it receives is sent by the upstream controller or the master station equipment.

表1Table 1

运行状态子状态Running status sub-state 中间变量AIntermediate variable A 中间变量BIntermediate variable B 运行子状态1Running substate 1 00 L>TLL>TL 运行子状态2Running substate 2 00 L>TLL>TL 运行子状态3Running substate 3 00 00 运行子状态4Running substate 4 11 L>TLL>TL 运行子状态5Running substate 5 00 00 运行子状态6Running substate 6 00 00 运行子状态7Running substate 7 00 00 运行子状态8Running substate 8 00 L>TLL>TL 运行子状态9Running substate 9 00 00

此外,本实施例的另一优选实施例中,每个站点在运行状态时,都会定期收到相邻站点的信息。通过每个站点以恒定周期向周围站点发送信息来判断站点是否故障,当确认当前站点未收到前一站点的信息,当前站点自动跳出运行状态,进入故障状态,并向相邻站点传递故障码,直至到达所述主站设备,使整个系统处于故障处理状态中,其中所述故障码包含故障站点的信息,所述主站设备通过接收到的信息判断故障发生的站点和故障原因。In addition, in another preferred embodiment of the present embodiment, each station will periodically receive information from adjacent stations when in operation. Each station sends information to surrounding stations at a constant period to determine whether the station is faulty. When it is confirmed that the current station has not received information from the previous station, the current station automatically exits the operation state and enters the fault state, and transmits the fault code to the adjacent station until it reaches the master station device, so that the entire system is in a fault processing state, wherein the fault code includes information about the faulty station, and the master station device determines the station where the fault occurs and the cause of the fault through the received information.

对于严重的故障,如需更换站点,则可以将新的驱动器设置成从站设备直接予以更换连接,根据图3的从站设备状态图,从站设备一上电就会向主站设备汇报当前状态。由于主站设备和从站设备正处于故障处理状态,所以主站设备就会立马识别出新的从站设备,主站设备会命令其也进入故障处理状态,并将保存的参数恢复到从站设备中,从而恢复整个系统。For serious faults, if a site needs to be replaced, the new driver can be set as a slave device to directly replace the connection. According to the slave device status diagram in Figure 3, the slave device will report the current status to the master device as soon as it is powered on. Since the master device and the slave device are in the fault handling state, the master device will immediately identify the new slave device, command it to enter the fault handling state, and restore the saved parameters to the slave device, thereby restoring the entire system.

综上所述,与现有技术相比,本发明具有如下有益效果:In summary, compared with the prior art, the present invention has the following beneficial effects:

(1)本发明组成的输送线系统,具有自组织通信功能,包括主站设备和多个从站设备,主站设备的一端与上游控制器相连,另一端与起始从站设备相连,每个从站设备依次与下游从站设备连接,所述主站设备和从站设备分别设有驱动器,只需要各站点设备物理连接完成,无需额外编程与配置,通过初始化后,即可为各个驱动器站点自动分配站点地址,实现输送器上的辊筒驱动器联网,进行通信。(1) The conveyor line system formed by the present invention has a self-organizing communication function, including a master station device and multiple slave station devices. One end of the master station device is connected to the upstream controller, and the other end is connected to the starting slave station device. Each slave station device is connected to the downstream slave station device in turn. The master station device and the slave station device are respectively provided with a driver. Only the physical connection of each station device is required. No additional programming and configuration are required. After initialization, the station address can be automatically assigned to each driver station, so that the roller drive on the conveyor can be connected to the network and communicate.

(2)本发明通过驱动器两端连接的光电传感器检测运输物品进入和退出的时间,依据物品在输送线上设定的恒定运行速度,估算出运输物品的相对位置,并通过所在站点的光电传感器与输送物品的相对关系决定各个站点运行状态的切换,从而调整各站点状态,无需上游控制器控制即可实现零压力积放功能。(2) The present invention detects the entry and exit time of the transported items through the photoelectric sensors connected to the two ends of the driver, estimates the relative position of the transported items according to the constant running speed set for the items on the conveyor line, and determines the switching of the operating status of each station through the relative relationship between the photoelectric sensors at the station and the transported items, thereby adjusting the status of each station and realizing the zero-pressure accumulation function without the need for control by an upstream controller.

(3)本发明无需人工配置,采用输送线自学习的方式,自动学习相关参数。(3) The present invention does not require manual configuration and adopts a self-learning method of the conveyor line to automatically learn relevant parameters.

(4)本发明采用在主站设备与各从站设备传递系统时钟和校准时钟的方式,弥补通信传输的时延误差,从而可以更加精确的估计物品输送位置。(4) The present invention adopts a method of transmitting the system clock and the calibration clock between the master station device and each slave station device to compensate for the delay error of the communication transmission, so that the object delivery position can be estimated more accurately.

(5)本发明的每个站点以恒定周期向周围站点发送信息,通过各站点是否能够接收到前一站点的信息来判断站点是否故障,实现自动定位故障站点,而且,可在无需额外配置的情况下更换新站点,并自动进行参数恢复。(5) Each station of the present invention sends information to surrounding stations at a constant period, and determines whether the station is faulty by whether each station can receive information from the previous station, thereby automatically locating the faulty station. Moreover, a new station can be replaced without additional configuration, and parameters can be automatically restored.

在本发明实施例所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置和方法实施例仅仅是示意性的,例如,附图中的流程图显示了根据本发明的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In several embodiments provided in the embodiments of the present invention, it should be understood that the disclosed apparatus and method can also be implemented in other ways. The apparatus and method embodiments described above are merely schematic. For example, the flowcharts in the accompanying drawings show the possible architecture, functions and operations of the apparatus, method and computer program product according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and/or flow chart, and the combination of boxes in the block diagram and/or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

另外,在本发明各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,电子设备,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk. It should be noted that, in this article, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.

在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and/or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character "/" in this article generally indicates that the associated objects before and after are in an "or" relationship.

取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”或“响应于检测”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

实施例中提及的“第一\第二”仅仅是是区别类似的对象,不代表针对对象的特定排序,可以理解地,“第一\第二”在允许的情况下可以互换特定的顺序或先后次序。应该理解“第一\第二”区分的对象在适当情况下可以互换,以使这里描述的实施例能够以除了在这里图示或描述的那些内容以外的顺序实施。The "first\second" mentioned in the embodiments is only to distinguish similar objects, and does not represent a specific order for the objects. It is understandable that the "first\second" can be interchanged with the specific order or sequence where permitted. It should be understood that the objects distinguished by "first\second" can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than those illustrated or described herein.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims (10)

1. The electric roller controller conveying system for self-organizing communication is characterized by comprising a master station device and a plurality of slave station devices, wherein one end of the master station device is connected with an upstream controller through a communication interface, the other end of the master station device is connected with an initial slave station device through a communication interface, each slave station device is sequentially connected with a downstream slave station device through a communication interface, and the master station device and the slave station devices are respectively provided with a driver; wherein,
After the master station equipment is started and self-checked to enter a preparation running state, the master station equipment is used for receiving an external command, entering an initialization state or a running state, and transmitting a relevant command frame to each slave station equipment until the last slave station equipment, namely the tail station equipment;
after the slave station equipment is started up and self-checked to enter a preparation running state, the slave station equipment is used for receiving a command of the master station equipment, entering an initialization state or a running state, and transmitting a relevant command frame to downstream slave station equipment until the tail station equipment;
and the tail station equipment is used for replying the relevant command confirmation frame to the main station equipment direction until the main station equipment after receiving the relevant command frame of the upstream slave station equipment.
2. The motorized pulley controller conveying system according to claim 1, wherein each of the left and right ends of each of the drivers is provided with 1 photosensor interface, the first photosensor interface being connected to the first photosensor, the second photosensor interface being connected to the second photosensor; each driver is provided with at least one motor driving interface, and is connected with a motor through the motor driving interface; each driver is provided with a jumper switch device, and the on-off of the site where the driver is positioned is controlled through the jumper switch devices.
3. The motorized pulley controller delivery system of claim 1, wherein the master station device power-on self-test enters a ready-to-run state by reading a state parameter of a driver stored on the master station device, and entering a fault handling state if the state parameter is a fault code, and otherwise entering the ready-to-run state.
4. The motorized pulley controller transport system of claim 1, wherein the slave station device power-on self-test to a ready-to-run state is performed by reading a state parameter of a driver stored on the slave station device, and entering a fault handling state if the state parameter is a fault code, and otherwise entering the ready-to-run state.
5. The motorized roller controller delivery system of claim 1, wherein the external command comprises a command generated by a key input on the master device or a command issued by the upstream controller.
6. The motorized pulley controller delivery system of claim 2, wherein the specific operation of the master station device into the initialized state is:
addressing the adjacent slave station equipment by sending an addressing command frame, and entering an addressing state;
after receiving the address confirmation frame replied by the adjacent slave station equipment, entering a teaching mode, detecting the time of entering and exiting the transported article by each station equipment through the connected photoelectric sensor, and estimating the relative position of the transported article according to the set running speed of the article on the transport line;
After receiving a 'teaching completion confirmation' frame replied by adjacent slave station equipment, entering a mode of waiting for the slave station equipment to receive a system clock, and sending a 'system clock' frame to downstream slave station equipment, wherein the 'system clock' frame comprises a system clock of a processor of the master station equipment at the current moment;
After receiving a system clock acknowledgement frame replied by adjacent slave station equipment, comparing the time for receiving the system clock acknowledgement frame with the time for transmitting the system clock frame before, so as to obtain a time difference value, wherein the time difference value is the time for transmitting a data frame back and forth in a network, and transmitting a calibration clock frame to downstream slave station equipment, and the calibration clock frame comprises the time difference value;
After receiving the calibration clock confirmation frame replied by the adjacent slave station equipment, finishing initialization, and waiting for receiving an external command to enter the next state.
7. The motorized pulley controller transport system of claim 6, wherein the specific operation of the slave station apparatus into the initialized state is:
after receiving an addressing command of the master station device, the first slave station device adds 1 to the address in the addressing command and forwards the address to the next slave station device until the last slave station device, namely the tail station device;
After receiving the address confirmation frame of the tail station equipment, the slave station equipment enters a teaching state, and forwards the address confirmation frame to the direction of the master station equipment until the master station equipment;
the secondary station equipment detects the time of entering and exiting of the transported objects through photoelectric sensors connected with the two ends of the driver, and estimates the relative position of the transported objects according to the running speed of the objects on the conveying line;
After receiving the frame of 'teaching completion confirmation' of the tail station equipment, the slave station equipment enters a system clock mode, and forwards the frame of 'teaching completion confirmation' until the frame is transmitted to the master station equipment;
After receiving the 'system clock' frame of the master station equipment, the first slave station equipment extracts clock data of the master station equipment, saves the clock data and forwards the clock data backwards until the tail station equipment;
after receiving the frame of 'system clock confirmation' of the tail station equipment, the slave station equipment enters a state of 'waiting for calibrating a clock', and forwards the frame to the master station equipment;
After the first slave station equipment receives the calibration clock frame of the master station equipment, the time difference value is extracted and is forwarded backwards until the tail station equipment;
After receiving the calibration clock confirmation of the tail station equipment, the slave station equipment enters an initialization finishing state and forwards the state to the master station equipment.
8. The motorized pulley controller transport system of claim 7, wherein the specific operation of the tail station apparatus into the initialized state is:
After receiving an addressing command of the upstream slave station equipment, replying an addressing confirmation frame to the direction of the master station equipment;
When the last photoelectric sensor of the tail station equipment detects that the tail of the article passes, a teaching completion confirmation frame is sent to the upstream slave station equipment;
after receiving the 'system clock' frame of the upstream slave station equipment, extracting clock data for storage, and replying a 'system clock confirmation' frame to the direction of the master station equipment;
And after receiving the calibration clock frame of the upstream slave station equipment, extracting the time difference value, replying a calibration clock confirmation frame to the direction of the master station equipment, and entering an initialization completion state.
9. The system according to claim 8, wherein after the master station device, the slave station device and the tail station device enter the operation state, the switching of the operation sub-states of each station is determined by the relative relation between the photoelectric sensor of the station and the transported object, each station sends information to the surrounding stations in a constant period, and the station where the transported object is located is the current station and the transportation speed of the transported object is constant, and the steps are as follows:
When the conveyed article enters the sensing range of the first photoelectric sensor of the current station, the signal of the first photoelectric sensor jumps upwards, and the current system time is recorded;
Estimating the real-time position of the front edge of the conveyed article according to the constant conveying speed of the conveyed article and the recorded system time;
According to the information of the previous station received by the current station and the estimated real-time position of the front edge of the conveyed article, updating the running state of the current station, wherein the running state P of the current station is determined by a logic expression, when P is 1, the running state P of the current station is represented by the running of a motor of the current station, when P is 0, the running state P of the motor of the current station is represented by the logic expression:
wherein A represents an intermediate variable, represents a variable of whether each site operates in an operation sub-state, takes a value of 1 or 0,1 represents that the current site is in a preparation operation state, and 0 represents that the current site is in an operation state;
L represents the distance between the front edge position of the conveyed article and the second photoelectric sensor of the current station, and TL is a set distance threshold;
B is an intermediate variable, which indicates whether the distance between the front edge position of the conveyed article and the second photoelectric sensor of the current station reaches a set distance threshold, when L > TL, B is L > TL, otherwise, B is 0;
C is information sent by the next station, the value of C is 1 or 0, when C takes 1, the motor of the next station is still running, when C takes 0, the motor of the next station is stopped, the tail station equipment is the last station of the conveying line, and the received C is sent by the upstream controller or the main station equipment.
10. The motorized pulley controller delivery system of claim 9, wherein each station sends information to surrounding stations at a constant period to determine if a station fails, and when it is determined that the current station has not received information from a previous station, the current station automatically jumps out of operation, enters a failure state, and transmits a failure code to adjacent stations until the master station is reached, such that the entire system is in a failure handling state, wherein the failure code contains information from the failed station, and the master station determines the station and the cause of the failure from the received information.
CN202410089968.XA 2024-01-22 2024-01-22 A self-organizing communication electric roller controller conveying system Pending CN117938644A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410089968.XA CN117938644A (en) 2024-01-22 2024-01-22 A self-organizing communication electric roller controller conveying system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410089968.XA CN117938644A (en) 2024-01-22 2024-01-22 A self-organizing communication electric roller controller conveying system

Publications (1)

Publication Number Publication Date
CN117938644A true CN117938644A (en) 2024-04-26

Family

ID=90755131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410089968.XA Pending CN117938644A (en) 2024-01-22 2024-01-22 A self-organizing communication electric roller controller conveying system

Country Status (1)

Country Link
CN (1) CN117938644A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118466164A (en) * 2024-07-09 2024-08-09 众信方智(苏州)智能技术有限公司 Automatic addressing method for distributed emulsification pump station control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118466164A (en) * 2024-07-09 2024-08-09 众信方智(苏州)智能技术有限公司 Automatic addressing method for distributed emulsification pump station control system
CN118466164B (en) * 2024-07-09 2024-10-01 众信方智(苏州)智能技术有限公司 Automatic addressing method for distributed emulsification pump station control system

Similar Documents

Publication Publication Date Title
CN117938644A (en) A self-organizing communication electric roller controller conveying system
US9037290B2 (en) Accumulation control
TWI430106B (en) Master - slave communication system and master - slave communication method
JP2004503002A (en) Automated configuration of communications for an ordered collection of devices
CN104932329B (en) Frequency converter control method and system, frequency converter
CA2558111A1 (en) Communication system and slave and repeater units therefor
WO2013141066A1 (en) Zone controller and conveyor device
CN108891830A (en) A kind of dispatch control method and automated guided vehicle of automated guided vehicle
US10715350B2 (en) Automatic addressing of networked nodes
AU2023203279B2 (en) Non-PLC-based conveyor controller
JPH0632883B2 (en) Manufacturing control method of goods
CN114384876A (en) Carrier control method, carrier, storage medium and computer program product
CN210479832U (en) Transmission control system
WO2023165453A1 (en) Single board processing method, upper computer, automatic board receiving machine, device, and storage medium
KR100867872B1 (en) Communication speed matching method between plural modules in PC
CN204791764U (en) Professional contest system of intelligence vision industrial robot letter sorting vanning
CN107155404B (en) Communication device and communication method
CN114475730A (en) Control method and device for changing running direction of train
EP3547051B1 (en) Conveyor system controller, conveyor system and method of data synchronisation
JP3899746B2 (en) Control method for automated production line
KR101886270B1 (en) Self driving roller control method using can communication
US20180083797A1 (en) Automatic addressing of networked nodes
JP4636257B2 (en) Filtering repeat function
CN120003954A (en) A conveying control method and system for a conveyor belt of a dry slag machine
CN119901059A (en) Air conditioning system detection method, device, storage medium and air conditioning 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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20240426