[0020] Attached below Figure 1 to Figure 6 The present invention will be described in further detail with examples:
[0021] The embodiment is based on the motor control method of the DCS system. The computer sets the motor operation and control parameters through network communication to realize the operation and control of the motor. The DCS system includes a control motor and a host computer connected to the control motor. The host computer There is a switch between the control motor and the control motor. The control motor is connected with several different types of motors. The control motor is equipped with a standard motor module. The control method is to first carry out the equipment parameters, operating parameters, start and stop parameters, and fault alarms of each motor. After setting the parameters, call the motor subroutine, and realize the signal processing and control of different types of motors by calling the standard motor module. After the subroutine is processed, it returns to the main program that controls the motor. Control commands, current running status and fault information of each motor.
[0022] The equipment parameters and operating parameters are set first, specifically, the corresponding equipment parameters are set according to different motor types, and the operating parameters are set according to the connection signals of the MCC and the DCS and process requirements.
[0023] The device parameter settings include input locking mode setting, open-in-position termination output setup, close-in-position termination output setup, and single-feedback input setup.
[0024] The specific process of setting equipment parameters is as follows: each subroutine performs different logic processing according to different motor equipment configuration parameters (user-defined Motor data types). When setting the parameter configuration, you need to consider: whether the start/stop signal of the motor is a lock signal (the signal is not locked, the operator needs to keep pressing the start/stop button on the HMI), if it is a lock mode, set the corresponding configuration Parameter.DIC_Lock is 1; whether the motor is a single-output control signal or a dual-output control signal, if it is a dual-output control signal, it needs to set the open-in-position termination output parameter.DIC_OpenRst and close-in-position termination output parameter.DIC_CloseRst is 1, which means that when starting When the start/stop feedback signal comes, the start/stop signal stops output, and the local device has a self-locking function; whether the device is single feedback (only start feedback) or double feedback, if it is single feedback, it needs to set the device configuration parameter.DIC_SingFdb If it is 1, the subroutine will judge and process the fault information according to this parameter.
[0025] Motor types are divided into single feedback single output, single feedback double output, double feedback single output, double feedback double output. According to the above description of setting parameters, the equipment configuration parameters of different types of motors are shown in the following table:
[0026]
[0027] In the above chart, "1" means that the corresponding parameter is set to 1 in the program, and "0" means that the corresponding parameter is set to 0 in the program.
[0028] The operating parameter settings include electrical fault parameter settings, equipment maintenance parameter settings, start permission parameter settings, stop permission parameter settings, and running time parameter settings.
[0029] The specific process for setting the equipment parameters is: Electrical fault parameter (DI_ETR.): In many industries, the motor body protection has a higher level. The local motor body device will send some fault and protection signals, and these signals are connected to the DCS through cables. The control system requires the running equipment to stop immediately to protect the equipment. The electrical fault signal is one of the signals, and the digital input channel of the electrical fault signal of the motor is sent to the parameter Motor.DI_ETR (Motor represents the specific motor label). When the Motor.DI_ETR signal changes from 0 to 1, the Motor subroutine executes The program judges that a stop command is issued.
[0030] Equipment maintenance parameter (DI_ETR.): The equipment maintenance parameter is a safety parameter. When the equipment fails to be repaired on the spot, for safety reasons, the electrician can set DI_DevRepair to 1 and DI_DevRepair to the motor equipment maintenance button in the motor control window of the HMI. If it is 1, the Motor standard subroutine will not execute any output command, so as to prevent the operator from accidentally starting the device from the upper computer and causing personal injury when the local device is overhauled.
[0031] Manual/automatic start permission parameter (DI_OpenPerm): When this parameter is 1, it allows the operator to execute the start command on the upper computer. Many high-power devices in the field require many permit conditions when they are first started, such as temperature, pressure, sealing water, and the operation of some auxiliary motors. All these permit conditions are “ANDed” and sent to the parameter DI_OpenPerm .
[0032] Manual/automatic stop permission parameter (DI_ClosePerm): When this parameter is 1, it allows the operator to execute the stop command on the upper computer.
[0033]Running time parameter (.RunPre): The running time of this parameter refers to the time required from the start of the command to the feedback of the running signal. There are many soft-start devices on site. Soft-start is different from general motors. It takes a while from start-up to running. Simple time settings are made in the motor window of the upper computer (different from the traditional time modification in the lower computer program). parameter) can effectively protect the field equipment.
[0034] The start and stop parameter settings include stop command parameter settings and start command parameter settings, wherein the stop command parameter settings include equipment protection stop parameter settings, process protection stop parameter settings, HMI manual stop parameter settings, automatic stop parameter settings, and start command parameters. The settings include process protection start parameter settings, HMI manual stop parameter settings, and automatic start parameter settings.
[0035] For local motors, there are many signal sources for stop commands: stop commands executed by the upper computer operator, interlock stop commands in automatic state, protection stop commands of the equipment body, and process forced protection stop commands. In traditional motor control, the signal source of the stop command is generally "ORed" and sent to the parameters of the stop command. In this motor control program, the corresponding stop parameters are designed for the signal sources of different stop commands, so that the thinking in programming is clearer and the readability is stronger. There is a clear display of the currently stopped signal source.
[0036] Equipment protection stop parameter (.DI_CloseEquip): There are protection devices in the MCC cabinet of some important electrical equipment. When the equipment is overloaded, a signal of equipment protection stop will be sent, which is connected to the DCS system. In this program The corresponding input channel of this signal is connected to the protection stop parameter (.DI_CloseEquip), and the Motor standard subroutine will issue a stop command to stop the field running device according to the parameter Motor.DI_CloseEquip is 1.
[0037] Process protection stop parameter (.DI_CloseProc): When this parameter is 1, no matter in any mode (manual, automatic), the running equipment will stop immediately. Compared with the equipment protection stop parameter, the process protection stop parameter is a "soft" stop, and the Motor.DI_CloseProc parameter is set to 1 according to the chain protection condition of the process.
[0038] HMI manual stop parameter (.DI_CloseManual): When this parameter is 1, it means that the operator sends from the upper computer when the current device stop command is issued.
[0039] Automatic stop parameter (.DI_CloseAuto): When this parameter is 1, the motor equipment running in the automatic mode stops running. Like the process protection stop parameter, the Motor.DI_CloseProc parameter is set to 1 according to the chain protection condition of the process.
[0040] There are many signal sources for the start command as there are many signal sources for the stop command: the start command executed by the upper computer operator, the interlock start command in the automatic state, and the art forced protection start command.
[0041] Process protection start parameter (.DI_OpenProc): When this parameter is 1, no matter in any mode (manual, automatic), and the stop parameter is not 1, the stopped device will run immediately. The same number as the process protection stop parameter, the process protection start parameter is a "soft" start, which is to set the Motor.DI_OpenProc parameter to 1 according to the chain protection conditions of the process.
[0042] HMI manual start parameter (.DI_OpenManual): When this parameter is 1, it means that the operator sends the current device start command from the upper computer.
[0043] Automatic start parameter (.DI_OpenAuto): When this parameter is 1, in the automatic mode, and the stop parameter is not 1, the stopped motor equipment will run immediately, the same as the process protection open parameter, according to the chain protection conditions of the process. Set the Motor.DI_OpenAuto parameter to 1.
[0044] The specific method of calling the standard motor module is: after the initialization of each motor parameter setting is completed, the external feedback signal is connected accordingly and then the standard motor module is called. Type, and then process the program according to the start and stop signal sources, and finally output the control signal to the display window of the upper computer.
[0045] As mentioned above, each motor device occupies one Routine in the programming, and the programming of each device is divided into several parts: setup initialization, external feedback input, instruction execution, and instruction output. After the equipment initialization (parameter setting) is completed, the external feedback signal is connected accordingly and the motor standard subroutine is called.
[0046] The subprogram obtains the type of motor that calls the subprogram according to the set parameters, and then processes the program according to the start and stop signal sources and finally outputs the control signal. While realizing the correct control function, the motor standard program and this subroutine provide rich status information and fault information when the motor is started and running, so that the operator can intuitively observe the current running status of the motor in the HMI operation screen. When a fault occurs, the cause of the fault can be accurately determined.
[0047] In this technical solution, an effective motor control module is created according to the limited available signals, which not only adapts to different motor types, but also performs effective output control and provides a large amount of motor running status and fault information at the same time. Just do some simple parameter settings before. According to the digital signal collected by the digital input module from the MCC cabinet that controls the on-site motor, the CPU of the DCS system performs effective program operations in the motor control module according to the different motor types set, and finally generates the correct control signal through the digital output module. To the control executive elements of the MCC cabinet, and in the host computer, the operator can set the running time on the HMI screen, observe the motor running status in real time, and even find the cause of the fault and eliminate the fault.
[0048] In the instruction output stage, after the subroutine is executed, it returns to the Routine body program, and the corresponding output control instruction is obtained according to the operation result of the subroutine. The output command gives the corresponding output parameters according to the requirements of the field device. The dual output parameter refers to the stop parameter Motor.DO_Close and the start parameter Motor.DO_Open, and the single output parameter refers to the parameter Motor.DO_Out. When the parameter Motor.DO_Out is 1 for a single output command, it means start and 0 means stop.
[0049] The standard motor module in the present invention is suitable for different motor types in the current DCS system, and only needs to do some simple parameter settings before calling the subroutine, and there is no need to compile different motor control programs for different motor types. At the same time, this subroutine also provides a wealth of status information and fault information. The operator can directly observe the running status of the motor in each running stage on the HMI and can intuitively understand the cause of the fault, which reduces the fault finding time and ensures the maximum efficiency of the field equipment. continue to operate.
[0050] The list of parameters in the present invention is shown in the following table:
[0051] Motor (MOTOR) standard subroutine label definition:
[0052]
[0053]
[0054] In a word, the above are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the scope of the patent application of the present invention shall fall within the scope of the patent of the present invention.