A modular ship valve control system
Through the combination of modular design and high-performance CPU, the problems of low control accuracy and slow response speed of traditional ship valve control systems in harsh environments are solved, and high-precision and fast-response ship valve control is achieved, adapting to ship electrical automation and intelligence. requirements and improve the reliability and communication capabilities of the system.
Patent Information
- Application Number
- CN202011270888.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-13
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-11-13
AI Technical Summary
Traditional ship valve control systems have low control accuracy, slow response speed, and poor reliability in harsh environments, and cannot adapt to the needs of ship electrical automation and intelligence.
A modular ship valve control system is designed, including a valve control module and a communication module. It uses the valve main control CPU of the STM32F107RCT6 chip and the communication main control CPU of the STM32F407ZGT6 chip. It adopts a digital feedback collection interface and an analog feedback collection interface. Combined A variety of communication interfaces such as Ethernet, RS485 and CAN realize high-precision valve status collection and control.
It improves control accuracy and response speed, adapts to harsh environments, is small in size and low in cost, supports multiple communication methods, and is easy to connect to external devices. It has timeout and fault protection mechanisms to ensure stable and safe operation of the valve.
Smart Images

Figure CN112379622B
Abstract
Description
Technical Field
[0001] The invention relates to a ship valve control device, in particular to an embedded modular valve control device, belonging to the technical field of ship equipment. Background Art
[0002] Traditionally, ship valve status acquisition and control boxes are often bulky and use high-cost PLC as information processing and control system. However, with the continuous development and progress of ship electrical automation technology, the level of ship intelligence is constantly improving, and ship equipment is becoming smaller, smarter, and more modular. Traditional valve control equipment often cannot adapt to these new technical requirements. In addition, the existing technical solutions that use PLC as information processing and control system have relatively low control accuracy, slow response speed, and poor reliability. Especially in harsh environments, problems that are difficult to control often occur. Summary of the invention
[0003] The technical problem solved by the invention is to provide a modular ship valve control system which has high precision, good reliability, can adapt to harsh environments and has fast response speed.
[0004] In order to solve the above technical problems, the modular ship valve control system of the present invention includes a valve control module and a communication module. The valve control module includes a valve master CPU for processing received signals, logical judgment and sending instructions, a digital feedback acquisition interface connected to the valve master CPU that can detect the valve state or receive the corresponding valve control instructions and transmit the information to the valve master CPU, and an analog feedback acquisition interface for converting the current signal in the circuit into a voltage signal and transmitting the signal to the valve master CPU for calculating the percentage value of the valve opening or the opening instruction. The communication module includes a communication master CPU for processing received signals and sending and receiving instructions, and an RS485, 232, Ethernet and CAN communication interface connected to the communication master CPU and used to communicate with the standard protocol of external devices.
[0005] The valve master control CPU is also connected to a digital output interface for outputting a passive contact signal and an analog output interface for outputting a current signal.
[0006] The valve master control CPU is connected to the valve SWD download port for downloading module programs and online program debugging.
[0007] The valve master control CPU is connected to a valve device dial code for distinguishing modules and setting module numbers.
[0008] The valve main control CPU is connected to a valve indicator light for displaying the operation and communication status of the module.
[0009] The communication master control CPU is connected to a communication SWD download port for downloading module programs and online program debugging.
[0010] The communication main control CPU is connected to a communication indicator light for displaying the operation and communication status of the module.
[0011] The digital quantity feedback acquisition interface is connected to an optocoupler isolation circuit.
[0012] The analog feedback acquisition interface and the analog output interface use the AD8605 operational amplifier circuit supplemented by RC low-pass filtering to achieve accurate conversion of current and voltage.
[0013] The digital output interface uses an isolated relay dry contact output.
[0014] The advantages of the present invention are:
[0015] 1. It uses embedded technology, has a reasonable structure, small size, low cost, fast and stable operation, greatly improved control accuracy, good reliability, can adapt to harsh environments, fast response speed, can accurately and conveniently calculate the opening value or output the opening signal, and has multiple interfaces such as Ethernet and RS485, supports the current mainstream communication methods, and is convenient for communication and connection with external devices such as HMI. At the same time, it uses modular design, and the modules can be used alone or in combination. Different functions can be completed according to the situation, and it is easy to install and replace.
[0016] 2. The digital feedback acquisition interface and digital output interface use the TLP627 optocoupler switch circuit, with an isolation voltage of 2500Vrms, a wide operating temperature range, and strong anti-interference performance. There is no contact and the input and output are completely isolated electrically, which increases the stability of the module.
[0017] 3. Using embedded technology, small size, low cost, the main control CPU uses STM32F107RCT6 chip to run fast and stable.
[0018] 4. The analog feedback acquisition interface and analog output interface use the AD8605 high-precision operational amplifier circuit supplemented by RC low-pass filtering to achieve accurate conversion of current and voltage, which can accurately and conveniently calculate the opening value or output the opening signal.
[0019] 5. It has multiple interfaces such as Ethernet and RS485, supports the current mainstream communication methods, and is convenient for communication and connection with external devices such as HMI.
[0020] 6. The module interface mostly uses a latch and slot structure, making the module easy to install and replace.
[0021] 7. It has timeout and fault protection mechanism to avoid damage to the valve during the control process. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a principle block diagram of the valve control module in the present invention;
[0023] Figure 2 It is a principle block diagram of the communication module in the present invention;
[0024] Figure 3 This is a principle block diagram of the modular ship valve control system of the present invention;
[0025] Figure 4 This is a flow chart of valve remote control and control signal reception in the present invention;
[0026] Figure 5 This is a flow chart of a valve control method in the present invention;
[0027] Figure 6 This is a flow chart of the second valve control method in the present invention;
[0028] Figure 7 This is a flow chart of the valve control method in the present invention. DETAILED DESCRIPTION
[0029] The modular ship valve control system of the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0030] As shown in the figure, the modular ship valve control system of the present invention includes a valve control module and a communication module. The valve control module is used for valve state acquisition and valve switch (opening) control. The communication module has a variety of communication interfaces to facilitate communication with external devices. The valve states acquired by multiple (up to 64) valve control modules can be transmitted to external devices or the valve control instructions of external devices can be transmitted to the valve control module. The valve control module includes a valve module main control CPU, a digital feedback acquisition interface and an analog feedback acquisition interface connected to the valve control module main control CPU, a valve control module SWD download port, a valve control module power interface, a valve control module CAN communication slot interface, a valve control module indicator light, a valve control module dial code, and a digital output interface and an analog output interface. Among them, the valve control module main control CPU uses an STM32F107RCT6 chip for processing, judging and sending received valve state signals and valve control signals. The STM32F107RCT6 chip runs fast and stably, and has a built-in watchdog function to increase the reliability of the system; the digital feedback acquisition interface receives and detects high-level signals in the circuit. Specifically, the digital feedback acquisition interface receives and detects the switch closing signal in the circuit. When the switch is disconnected, the CPU receiving port is low due to the pull-down circuit. When the switch is closed, the CPU receiving port is high; the analog feedback acquisition interface receives the 4-20mA current signal in the circuit. Specifically, the analog feedback acquisition interface is responsible for converting the 4-20mA current signal in the circuit into a 0-3V voltage signal for the CPU ADC to collect; the valve control module main control CPU is used to process and send the received signal (used for processing the received signal, logical judgment and sending instructions); the valve control module SWD download port is used to read or download the module program and read the module data during online debugging. It has the advantages of small terminal size, few leads and offline download; The CAN slot interface uses the ADM3053 power-isolated controller area network (CAN) physical layer transceiver. When multiple modules are inserted into the same slot rail, this slot interface can be used to realize data communication between modules. The valve device dial code is used to distinguish modules and set the module number. The valve control module indicator light is used to display the operation and communication status of the module. In this embodiment, there are three diode indicator lights for displaying the current operation status, communication status and communication fault status of the module. The valve control module power supply interface is connected to a 24V power supply to power the module. The valve control module dial code is used to distinguish modules and set the module number. A 6-bit DIP switch can be used to distinguish 64 valve control modules.The digital output interface uses an isolated relay dry contact output to output a passive contact signal, and the analog output interface outputs a DC 4-20mA current signal. Specifically, the digital output interface is the same as the digital acquisition feedback interface. The interface has open position output terminals, closed position output terminals, remote control output terminals, fault output terminals and other terminals. Each terminal is connected to an optocoupler switch circuit. According to the control signal sent by the main control CPU, the control circuit is connected to output a circuit closure signal; the analog output interface has an opening feedback output terminal and an opening command output terminal. The AD420 in the module converts the opening percentage signal output by the main control CPU into a current signal (outputting a 4-20mA current signal) and transmits it to the valve controller. ;
[0031] Among them, the digital quantity feedback acquisition interface is used to receive and detect the digital quantity signal in the circuit. The interface has terminals such as open position receiving terminal, closed position receiving terminal, remote control receiving terminal, fault receiving terminal, etc. Each terminal connection module has an optocoupler switch circuit, and its output end is connected to the main control CPU chip pin. When the line where a certain terminal is located is connected, the optocoupler switch detects a high-level signal, indicating that this state of the monitored valve is activated (such as detecting a high-level signal at the open position terminal, indicating that the valve is in the open position state) or receiving the corresponding valve control instruction (such as detecting a high-level signal at the open instruction terminal, indicating that there is an external valve opening instruction), and sends the signal to the valve main control CPU. In this embodiment, the digital quantity feedback acquisition interface adopts the optocoupler isolation circuit of TLP627, the isolation voltage reaches 2500Vrms, the operating temperature range is wide, the anti-interference performance is strong, and the stability of the module is increased.
[0032] The analog feedback acquisition interface has an opening feedback receiving terminal and an opening command receiving terminal. The terminal receives the 4-20mA current signal in the circuit, converts the current signal into a voltage signal through the high-precision low-temperature drift sampling resistor in the module, and converts it into a voltage signal through the AD8605 operational amplifier circuit, which is transmitted to the main control CPU to calculate the percentage value of the valve opening or the opening command. In this embodiment, the analog feedback acquisition interface and the analog output interface use the AD8605 high-precision operational amplifier circuit supplemented by RC low-pass filtering to achieve accurate conversion of current and voltage, which can accurately and conveniently calculate the opening value or output the opening signal.
[0033] The communication module is used to integrate the data of the valve control module on the CAN bus, so that external devices can read it using a variety of different communication methods, or write valve control instructions written by external devices into the valve control module. It includes the communication module main control CPU and the RS485 communication interface, 232 communication interface, Ethernet communication interface, CAN communication interface, communication SWD download port, communication power interface, CAN communication slot interface, communication module indicator light and communication dial code connected to the communication module main control CPU. Among them, the communication module CAN communication slot interface is used for data communication between modules; in this embodiment, the communication CAN slot interface uses the ADM3053 isolated controller area network (CAN) physical layer transceiver, On the same slot rail, it can communicate with multiple control modules (up to 64 in one channel), read the valve status collected by each control module, or transmit the valve control instructions written by external devices to the control module; the communication device dial code is used to distinguish modules and set the module number; the communication module SWD download port is used to download module programs and read module data during online debugging; RS485, 232, Ethernet and CAN communication interfaces are used to communicate with external devices in standard protocols; RS485 communication interface, using isolated RS-485 / RS-422 transceiver, can perform 485, 422 communication, Ethernet communication interface, the main structure is RJ45 isolated network socket and LAN8720 transceiver, can perform MODBUS TCP communication; 232 communication interface, using SP3232 transceiver, can perform 232 communication; CAN communication interface, using ADM3053 isolated controller area network (CAN) physical layer transceiver, can perform CAN communication; communication master CPU is used to process and send received signals; communication power interface, connected to 24V power supply to power the module, supports dual-channel redundant power supply, communication master CPU uses STM32F407ZGT6 chip, for processing and forwarding communication data of each communication port (for processing received signals and sending and receiving instructions); communication module indicator light is used to display the operation and communication status of the module. In this embodiment, there are three diode indicator lights for displaying the current operation status, communication status and communication fault status of the module. The communication dial code uses a 6-bit DIP switch to distinguish 64 valve control modules (a maximum of 64 modules can be connected using a 6-bit setting).
[0034] Multiple valve control modules (up to 64) and communication modules can be connected to form a CAN bus through the CAN slot interface. Using the protocol characteristics of the CAN bus, the communication module can simultaneously read the valve status of up to 64 valve control modules or transmit control instructions written by external devices to them. It should be further explained that the valve control module and other valve control modules or communication modules can be connected to form a CAN bus through the CAN slot interface and exchange data. Therefore, external devices can quickly read the valve status data of multiple valve control modules (up to 64) through the various communication interfaces of the communication module, or write control instructions to multiple valve control modules at the same time.
[0035] The working process is as follows:
[0036] Valve status collection:
[0037] (1) Collection of valve switch status: When the valve is fully opened (fully closed), its limit switch is triggered and the collection circuit forms a loop. At this time, the open position (fully closed) terminal in the digital feedback collection interface receives the high-level signal when the circuit is closed and transmits the signal to the valve master control CPU. After processing, the valve master control CPU transmits the valve open position (fully closed) signal to the outside.
[0038] (2) Collection of valve opening percentage: The valve opening sensor transmits a 4-20mA current signal to the module, which is received by the opening feedback receiving terminal of the analog feedback acquisition interface. The current signal is converted into a voltage signal through AD and transmitted to the valve main control CPU. After processing, the valve control module main control CPU transmits the valve opening percentage signal to the outside.
[0039] (3) Valve remote control and fault signal acquisition: When the valve is in remote control or fault state, the corresponding connection circuit will be in a closed (open) state, and the corresponding terminal in the digital feedback acquisition interface will collect the corresponding high level (low level) signal and transmit the signal to the main control CPU of the valve control module. After processing, the main control CPU of the valve control module transmits the valve remote control or fault signal to the outside.
[0040] The outbound transmission described above can be done in the following ways:
[0041] (1) Output on / off signals to each indicator light through the digital output interface terminal, or output 4-20mA current signals to the indicator through the analog output interface.
[0042] (2) Connect the communication module with the CAN slot interface and transmit data to the outside through the Ethernet, RS485, 232 or CAN interface on the communication module. This process supports standard communication protocols.
[0043] Valve remote control method:
[0044] like Figure 4 As shown, when the valve is in the local state, the valve control module only receives the control instructions input locally by the valve control box, and does not respond to the communication control instructions of other external devices; conversely, when the valve is in the remote control state, the valve control module only sends the remote control instructions input by the external device to the valve controller, and does not respond to the local control instructions of the valve control box.
[0045] Valve control process:
[0046] (1) Valve switch status control:
[0047] like Figure 5 As shown in the figure, after judging the remote control status, the main control CPU of the valve control module processes the external control signal and transmits it to the digital output interface. The opening command (closing command) terminal of the digital output interface is closed, and the command signal is output to activate the valve controller to make an opening (closing) action. When the valve's open position (closed position) signal is received, the module stops outputting the opening command (closing command) signal.
[0048] (2) There are two methods to control valve opening:
[0049] 1. If Figure 6 As shown, after judging the remote control status, the main control CPU of the valve control module processes the opening setting signal input from the outside, and converts it into a current signal output to the valve controller through the opening feedback output terminal of the analog output interface, and the valve protection program can stop the signal output.
[0050] 2. If Figure 7 As shown in the figure, after judging the remote control status, the main control CPU of the valve control module receives and processes the opening setting signal input from the outside, and compares the setting value input from the outside with the opening status value received by the analog feedback acquisition interface. If it is larger than the acquisition value, the opening command terminal of the digital output interface outputs a closing signal, otherwise, the closing command terminal outputs a closing signal, and then continuously monitors the valve opening. When the opening feedback value is consistent with the setting value, the opening (closing) signal output is stopped or the valve protection program stops the signal output.
[0051] The external input in the above description can be in the following ways:
[0052] (1) The communication module is connected to the CAN slot interface, and the communication signal of the opening command, closing command or opening setting sent by the standard communication protocol is received by the Ethernet or RS485 interface on the communication module.
[0053] (2) The electrical signal received through the opening command receiving terminal, closing command receiving terminal of the digital feedback acquisition interface or the opening command receiving terminal of the analog feedback acquisition interface.
[0054] Valve protection:
[0055] (1) Timeout protection: It can be written directly when importing the valve control module program, or the timeout protection time can be set by connecting to the external device communication of the RS485 or Ethernet port on the communication module. When the valve opening or closing action time exceeds the set value of the timeout protection time and the valve has not reached the open limit or close limit, the control module will stop the opening and closing signal output.
[0056] (2) Fault protection: When the control module receives a valve fault signal, it will output the valve fault signal through the fault output terminal of the digital output interface or the communication module. At the same time, the control module will stop outputting the opening and closing command signals.
[0057] (3) Output protection: Output protection can be set for the output of the valve switch signal. When the valve control signal is consistent with the current state of the valve (such as the opening command and the fully opened state are consistent), the control module will not send a control command signal to the valve.
[0058] In addition to the above embodiments, the present invention may also have other implementation modes. Any technical solutions formed by equivalent replacement or equivalent transformation shall fall within the protection scope required by the present invention.
Claims
1. A modular ship valve control system, Features: It includes a valve control module and a communication module. The valve control module includes a valve control module main control CPU, a digital feedback acquisition interface and an analog feedback acquisition interface connected to the valve control module main control CPU, a valve control module SWD download port, a valve control module power interface, a valve control module CAN communication slot interface, a valve control module indicator light, a valve control module dial, and a digital output interface and an analog output interface. Among them, the valve control module main control CPU uses an STM32F107RCT6 chip for processing, judging and sending received valve status signals and valve control signals; the digital feedback acquisition interface receives and detects high-level signals in the circuit, and the digital feedback acquisition interface receives and detects switch closing signals in the circuit. When the switch is disconnected, due to the action of the pull-down circuit, the CPU receiving port is at a low level, and when the switch is closed, the CPU receiving port is at a high level; the analog feedback acquisition interface receives a 4-20mA current signal in the circuit, and is responsible for converting the 4-20mA current signal in the circuit The current signal is converted into a 0-3V voltage signal for the CPU's ADC to collect; the valve control module's main control CPU is used to process the received signal, make logical judgments, and send instructions; the valve control module's SWD download port is used to read or download the module program and read the module data during online debugging; the CAN slot interface uses the ADM3053 power-isolated controller area network physical layer transceiver. When multiple modules are inserted on the same slot rail, this slot interface can be used to achieve data communication between modules; the valve control module indicator light is used to display the module's operation and communication status. There are three diode indicator lights to display the module's current operation status, communication status, and communication fault status. The valve control module power interface is connected to a 24V power supply to power the module. The valve control module dial code is used to distinguish modules and set the module number. A 6-bit DIP switch can be used to distinguish 64 valve control modules; the digital output interface uses an isolated relay dry contact output to output a passive contact signal, and the analog output interface outputs DC 4-20mA current signal, the digital output interface has open position output terminal, closed position output terminal, remote control output terminal, fault output terminal, each terminal is connected to an optocoupler switch circuit, which connects the control circuit according to the control signal sent by the main control CPU and is used to output the circuit closing signal; the analog output interface has an opening feedback output terminal and an opening command output terminal. The AD420 in the module digitally converts the opening percentage signal output by the main control CPU into a current signal and transmits it to the valve controller; Among them, the digital quantity feedback acquisition interface is used to receive and detect the digital quantity signal in the circuit. The interfaces include: open position receiving terminal, closed position receiving terminal, remote control receiving terminal, and fault receiving terminal. Each terminal connection module has an optocoupler switch circuit, and its output end is connected to the main control CPU chip pin. When the line where a terminal is located is connected, the optocoupler switch detects a high-level signal, indicating that the state of the monitored valve is activated or the corresponding valve control instruction is received, and the signal is sent to the valve control module. The digital quantity feedback acquisition interface adopts the optocoupler isolation circuit of TLP627, and the isolation voltage reaches 2500Vrms; Analog feedback acquisition interface, which has an opening feedback receiving terminal and an opening command receiving terminal. The terminal receives the 4-20mA current signal in the circuit, converts the current signal into a voltage signal through a sampling resistor, and converts it into a voltage signal through an AD8605 op amp circuit, which is transmitted to the main control CPU to calculate the percentage value of the valve opening or the opening command. The analog feedback acquisition interface and the analog output interface use the AD8605 high-precision op amp circuit supplemented by RC low-pass filtering to achieve accurate conversion of current and voltage; The communication module is used to integrate the data of the valve control module on the CAN bus, so that external devices can read it using a variety of different communication methods, or write valve control instructions written by external devices to the valve control module. It includes the communication module main control CPU and the RS485 communication interface, 232 communication interface, Ethernet communication interface, CAN communication interface, communication SWD download port, communication power interface, CAN communication slot interface, communication module indicator light and communication dial code connected to the communication module main control CPU. Among them, the communication module CAN communication slot interface is used for data communication between modules; the CAN communication slot interface uses the ADM3053 isolated controller area network physical layer transceiver on the same root On the slot rail, it communicates with multiple control modules, reads the valve status collected by each control module, or transmits the valve control instructions written by external devices to the control module; the communication dial is used to distinguish modules and set the module number; the communication SWD download port is used to download module programs and read module data during online debugging; the RS485 communication interface, 232 communication interface, Ethernet communication interface and CAN communication interface are used to communicate with external devices in standard protocols; the RS485 communication interface uses an isolated RS-485 or RS-422 transceiver to perform 485 and 422 communications, and the Ethernet communication interface, the main structure of which is an RJ45 isolated network socket and a LAN8720 transceiver, can perform MODBUS TCP communication; 232 communication interface, using SP3232 transceiver, can perform 232 communication; CAN communication interface, using ADM3053 isolated controller area network physical layer transceiver, can perform CAN communication; communication module main control CPU is used to process and send received signals; communication power supply interface, connected to 24V power supply to power the module, supports dual-channel redundant power supply, communication module main control CPU uses STM32F407ZGT6 chip, used to process and forward communication data of each communication port; communication module indicator light is used to display the operation and communication status of the module, there are three diode indicator lights to display the current operation status, communication status and communication fault status of the module, communication dial code, using 6-bit DIP switch can distinguish 64 valve control modules.
