CN109634203B - Control system for controlling IO terminal based on numerical control controller and corresponding method - Google Patents

Control system for controlling IO terminal based on numerical control controller and corresponding method Download PDF

Info

Publication number
CN109634203B
CN109634203B CN201811555933.1A CN201811555933A CN109634203B CN 109634203 B CN109634203 B CN 109634203B CN 201811555933 A CN201811555933 A CN 201811555933A CN 109634203 B CN109634203 B CN 109634203B
Authority
CN
China
Prior art keywords
numerical control
control system
controller
instruction
logic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811555933.1A
Other languages
Chinese (zh)
Other versions
CN109634203A (en
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.)
Shanghai Weihong Intelligent Technology Co ltd
SHANGHAI WEIHONG ELECTRONIC TECHNOLOGY CO LTD
Original Assignee
Shanghai Weihong Intelligent Technology Co ltd
SHANGHAI WEIHONG ELECTRONIC TECHNOLOGY CO LTD
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 Shanghai Weihong Intelligent Technology Co ltd, SHANGHAI WEIHONG ELECTRONIC TECHNOLOGY CO LTD filed Critical Shanghai Weihong Intelligent Technology Co ltd
Priority to CN201811555933.1A priority Critical patent/CN109634203B/en
Publication of CN109634203A publication Critical patent/CN109634203A/en
Application granted granted Critical
Publication of CN109634203B publication Critical patent/CN109634203B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/054Input/output

Abstract

The invention relates to a control system for controlling an IO terminal based on a numerical control controller and a corresponding method, wherein the control system comprises a numerical control system main station and the numerical control controller, the numerical control system main station comprises a hardware platform and numerical control system software positioned in the hardware platform, the numerical control controller comprises the IO terminal, the numerical control system software comprises a preset mapping relation between a logic address of a programmable logic controller and the IO terminal, a user can set a corresponding logic instruction for the logic address of the programmable logic controller, the numerical control system main station compiles the logic instruction and sends the compiled logic instruction to the numerical control controller, and the numerical control controller controls the IO terminal according to the compiled logic instruction. By adopting the control system and the corresponding method for controlling the IO terminal based on the numerical control controller, a user only needs to input a logic instruction to the system, and the numerical control controller can execute the control of the IO terminal, so that the control system and the control method have the advantages of high efficiency and good applicability.

Description

Control system for controlling IO terminal based on numerical control controller and corresponding method
Technical Field
The invention relates to the field of numerical control system software, in particular to the technical field of air operation of an input/output port by a numerical control system, and specifically relates to a control system for controlling an IO (input/output) end based on a numerical control controller and a corresponding method.
Background
In the prior art, numerical control system software is generally matched with a numerical control controller to realize logic control on hardware input and output ports, and in the process of controlling the hardware output port, the control can be realized only by depending on the states of some input ports; in the existing numerical control system, the logic control of the hardware input and output ports is relatively single, and the system is mainly applied to a control system with a relatively simple logic relationship, but with the rapid development of the numerical control system, the requirements of the compatibility of the logic relationship of the hardware input and output ports and the timeliness of the port response are higher and higher, and the existing logic control of the hardware input and output ports cannot meet the requirements of the prior art.
For example, in the prior art, there is a requirement for timeliness in the processing of double Y-axis alarms in a numerical control system. In the double-Y-axis operation process, when one axis generates alarm stop motion, the other axis also needs to be capable of rapidly stopping motion so as to prevent damage to a workpiece or a machine tool. However, the logic control mode of the input/output port in the prior art cannot meet the corresponding speed requirement of the equipment.
Disclosure of Invention
The invention aims to overcome at least one of the defects of the prior art and provides a control system and a corresponding method for controlling an IO end based on a numerical control controller, which can better meet the logic relation of an input end and an output end of equipment and improve the response rate of a numerical control system for controlling a hardware output end.
In order to achieve the above or other objects, the control system and the corresponding method for controlling the IO terminal based on the numerical control controller of the present invention are as follows:
this control system based on numerical control controller carries out control to IO end, including numerical control system main website and numerical control controller, its key feature is:
the numerical control system master station comprises a hardware platform and numerical control system software positioned in the hardware platform, and is used as a compiling and sending module of the logic of a programmable logic controller in the control system;
the numerical control controller comprises an IO end, the IO end comprises a general input end, a general output end and a shaft-related input and output end, and the numerical control controller is used as an execution module of the logic of the programmable logic controller in the control system;
the numerical control system master station is connected with the numerical control controller through a communication line, the shaft-related input and output ends in the numerical control controller are connected with an external driver group through shaft communication lines, the general input end is used for accessing input signals, and the general output end is used for outputting output signals;
the numerical control system software comprises a mapping relation between a preset logic address of a programmable logic controller and the IO end, a user can set a corresponding logic instruction for the logic address of the programmable logic controller, the numerical control system master station compiles the logic instruction and sends the compiled logic instruction to the numerical control controller, and the numerical control controller controls the IO end according to the compiled logic instruction.
Preferably, the control system further comprises an exception handling module, and the numerical control controller further comprises a data checking module and a data function checking module;
and the numerical control system master station is respectively connected with the exception handling module, the data checking module and the data function checking module.
Preferably, the system further comprises an execution state monitoring module, and the execution state monitoring module is connected with the numerical control controller.
The method for controlling the IO terminal based on the system is mainly characterized by comprising the following steps:
(1) the numerical control system master station compiles the logic instruction input by the user and sends the compiled logic instruction to the numerical control controller;
(2) the numerical control controller executes the compiled logic instruction according to the current state of the IO end and the mapping relation between the preset logic address of the programmable logic controller and the IO end, and controls the IO end;
(3) and the IO end executes the operation corresponding to the compiled logic instruction.
Preferably, the step (1) comprises the following steps:
(11) the numerical control system master station leads the logic instruction into the numerical control system software;
(12) the numerical control system software compiles the logic instruction and converts the logic instruction into a binary instruction, wherein the binary instruction is the compiled logic instruction;
(13) and the numerical control system software sends the binary instruction to the numerical control controller.
Preferably, the system comprises an exception handling module, and the following steps are included between the step (12) and the step (13):
(12.1) judging whether the compiling of the logic instruction is successful;
(12.2) if the compiling of the logic instruction is successful, continuing the subsequent step (13), otherwise, judging the system is abnormal, and transmitting the logic instruction to the abnormal processing module.
Further, the system comprises a data checking module and a data function checking module, and the step (13) comprises the following steps:
(131) the numerical control system master station sends a mark which is preset in the system and is used for judging whether a system scanning period and a system function are started or not to the numerical control controller as a configuration data packet;
(132) after the numerical control controller receives the configuration data packet, the data inspection module detects the content in the configuration data packet, and then the numerical control controller sends a detection result as a first feedback data packet to the numerical control system master station;
(133) after the numerical control system master station receives the first feedback data packet and the correctness of the first feedback data packet is determined, the numerical control system master station continues to send a reset data packet to the numerical control controller;
(134) after the numerical control controller receives the reset data packet, the data inspection module inspects the reset data packet, and after the correctness of the reset data packet is determined, the numerical control controller sends a second feedback data packet to the numerical control system main station;
(135) after the numerical control system main station receives the second feedback data packet and the correctness of the second feedback data packet is determined, the subsequent steps (136) are executed
(136) Sending a section of instruction segment in the binary instruction to the numerical control controller, wherein the instruction segment is the most front section of instruction in the binary instruction which is not sent to the numerical control controller;
(137) after receiving the instruction segment, the numerical control controller sends a third feedback data packet to the numerical control system main station;
(138) and after receiving the third feedback data packet, the numerical control system master station selects an end instruction behind the instruction segment sent to the numerical control controller last time as a new instruction segment, and executes the step (136) until all instruction segments in the binary instructions are sent to the numerical control controller.
Further, the following steps are included between the step (1) and the step (2):
(1.1) the data function checking module judges whether an error occurs in the execution process of the step (13);
(1.2) if no error occurs in the execution process of the step (13), continuing the subsequent step (2), otherwise, stopping the numerical control controller from working.
Furthermore, the system comprises an execution state monitoring module, wherein the execution state monitoring module monitors the working state of the system and feeds the working state of the system back to the numerical control controller to provide a judgment basis for the step (1.1).
Preferably, the step (1) further comprises the following steps:
(0.1) the user configures the scanning period of the system and the mark whether the system function is started or not through the numerical control system master station;
(0.2) the user inputs the logic instruction to the numerical control system main station.
By adopting the control system and the corresponding method for controlling the IO end based on the numerical control controller, the mapping relation between the logical address of the programmable logic controller preset in the numerical control system software and the IO end is utilized, a user only needs to input a logical instruction to the system, the logical instruction is compiled by the main station of the numerical control system, and the numerical control controller can execute the control on the IO end according to the compiled logical instruction.
Drawings
Fig. 1 is a schematic structural diagram of a control system for controlling an IO terminal based on a numerical control controller in an embodiment of the present invention.
Fig. 2 is a schematic diagram illustrating a mapping relationship between a logic address of a programmable logic controller and the IO terminal in an embodiment of the present invention.
Fig. 3 is a schematic view of a work flow of a master station of the numerical control system according to an embodiment of the present invention.
Fig. 4 is a schematic view of a working flow of the numerical controller according to an embodiment of the present invention.
Fig. 5 is a flowchart of a control system for controlling an IO terminal based on a numerical control controller according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to specific embodiments.
The structure of the control system for controlling the IO terminal based on the numerical control controller is shown in fig. 1, and the control system comprises a numerical control system main station and the numerical control controller, wherein:
the numerical control system main station comprises a hardware platform and numerical control system software positioned in the hardware platform, and is used as a compiling and sending module of the logic of a programmable logic controller in a control system, namely, the numerical control system software forms an upper computer which is used as a compiling module and a sending module of a PLC (programmable logic controller);
the numerical control controller comprises an IO end, and a lower computer formed by the numerical control controller is used as an execution module of PLC (programmable logic controller) logic. The IO end comprises a general input end, a general output end and a shaft-related input and output end, and the numerical control controller is used as an execution module of the logic of the programmable logic controller in the control system;
the numerical control system master station is connected with the numerical control controller through a communication line, the shaft-related input and output ends in the numerical control controller are connected with an external driver group through shaft communication lines, the general input end is used for accessing input signals, and the general output end is used for outputting output signals;
the numerical control system software comprises a preset mapping relation between a logic address of a programmable logic controller and the IO end, the mapping relation can be as shown in fig. 2, a PLC address bit corresponds to an input port or an output port of the IO end, a user can set a corresponding logic instruction for the logic address of the programmable logic controller, the numerical control system master station compiles the logic instruction and sends the compiled logic instruction to the numerical control controller, and the numerical control controller controls the IO end according to the compiled logic instruction.
In this embodiment, the mapping relationship between the logic address of the PLC and the IO port may be customized by a user, the user may customize the PLC logic content (that is, the user may customize the logic instruction content for each input/output port in the IO port), the logic instruction input by the user may be a standard PLC instruction, and the logic content of the PLC may be defined by the user as required.
The mapping relation can be preset by a user according to the needs of the user, when the system runs, the hardware register corresponding to the address of the PLC is directly operated by using the numerical control controller, the numerical control system software only needs to compile and compile a PLC file without participating in the specific execution of the port control function, so that the working efficiency of the system is higher, the user can configure the port state of the shaft-related input and output end in the IO end in the numerical control controller by modifying the PLC file in the operation process, when the numerical control controller executes the operation action, the port state does not need to be mapped to the master station of the control system, only the value of the corresponding register needs to be read, the PLC logic is periodically executed in the controller, and when the state change of the port is the state of the output end immediately. The time for transmitting the data of the hardware and the upper computer software is saved.
In the above embodiment, the numerical control controller is connected to the driver assembly through the axis communication line, the motion control of the axis can be realized through the driver assembly, and the driver assembly can also feed back the state information of the axis to the numerical control controller.
The operation steps of the numerical control system software inputting the logic instruction into the numerical control controller in the above embodiment may be as shown in fig. 3, that is, the numerical control system software is started first, then the PLC file (i.e., the logic instruction) input by the user is imported into the numerical control system software, the numerical control system software compiles the PLC file into a binary file (i.e., the compiled logic instruction), and finally the numerical control system software controls the numerical control system master station to send the binary file to the numerical control controller.
The work flow of the numerical control controller in the interrupt period in the above embodiment is as shown in fig. 4, and after the system starts in the interrupt period, the numerical control controller first obtains the state of the input port in the IO port, then executes the PLC logic input/output control, and then executes the state of the output port until the interrupt period is finished.
In the above embodiment, the control system further includes an exception handling module, and the numerical control controller further includes a data checking module and a data function checking module;
and the numerical control system master station is respectively connected with the exception handling module, the data checking module and the data function checking module.
In the above embodiment, the system further includes an execution state monitoring module, and the execution state monitoring module is connected to the numerical control controller.
In an embodiment, a method for controlling an IO end based on the above system includes:
(0.1) the user configures a scanning period of the system and a mark indicating whether a system function is enabled or not through the numerical control system master station, wherein the system function refers to an editable logic control function, namely a PLC function, the user can edit a logic instruction to further achieve the purpose of customizing a real-time control IO port, and the control system can determine whether the numerical control controller executes the logic instruction or not according to the mark indicating whether the system function is enabled or not;
(0.2) the user inputting the logic instruction to the numerical control system main station;
(1) the numerical control system master station compiles the logic instruction input by the user and sends the compiled logic instruction to the numerical control controller, and the method specifically comprises the following steps:
(11) the numerical control system master station leads the logic instruction into the numerical control system software;
(12) the numerical control system software compiles the logic instruction and converts the logic instruction into a binary instruction, wherein the binary instruction is the compiled logic instruction;
(12.1) judging whether the compiling of the logic instruction is successful;
(12.2) if the compiling of the logic instruction is successful, continuing the subsequent step (13), otherwise, judging that the system is abnormal, and transmitting the logic instruction to the abnormal processing module;
(13) the numerical control system software sends the binary instruction to the numerical control controller, and the method specifically comprises the following steps:
(131) the numerical control system master station sends a mark of whether a system scanning period and a system function which are preset in the system are started or not to the numerical control controller as a configuration data packet, in the embodiment, an RS485 protocol can be adopted to realize the configuration of the mark of whether the system scanning period and the system function are started or not to the numerical control controller, and in other embodiments, other communication protocols can be adopted to realize the function of sending the configuration data packet to the numerical control controller;
(132) after the numerical control controller receives the configuration data packet, the data inspection module detects the content in the configuration data packet, and then the numerical control controller sends a detection result as a first feedback data packet to the numerical control system master station;
(133) after the numerical control system master station receives the first feedback data packet and the correctness of the first feedback data packet is determined, the numerical control system master station continues to send a reset data packet to the numerical control controller;
(134) after the numerical control controller receives the reset data packet, the data inspection module inspects the reset data packet, and after the correctness of the reset data packet is determined, the numerical control controller sends a second feedback data packet to the numerical control system main station;
(135) after the numerical control system main station receives the second feedback data packet and the correctness of the second feedback data packet is determined, the subsequent steps (136) are executed
(136) Sending a section of instruction segment in the binary instruction to the numerical control controller, wherein the instruction segment is the most front section of instruction in the binary instruction which is not sent to the numerical control controller;
(137) after receiving the instruction segment, the numerical control controller sends a third feedback data packet to the numerical control system main station;
(138) after receiving the third feedback data packet, the numerical control system master station selects an instruction at one end behind the instruction segment sent to the numerical control controller last time as a new instruction segment, and executes the step (136) until all instruction segments in the binary instructions are sent to the numerical control controller;
(1.1) the data function checking module judges whether an error occurs in the execution process of the step (13);
(1.2) if no error occurs in the execution process of the step (13), continuing the subsequent step (2), otherwise, stopping the numerical control controller from working;
the execution state monitoring module monitors the working state of the system and feeds the working state of the system back to the numerical control controller to provide a judgment basis for the step (1.1);
(2) the numerical control controller executes the compiled logic instruction according to the current state of the IO end and the mapping relation between the preset logic address of the programmable logic controller and the IO end, and controls the IO end;
(3) and the IO end executes the operation corresponding to the compiled logic instruction.
The control system for controlling the IO terminal based on the numerical control controller in the embodiment is combined with a corresponding method, the logical relation of the input and output terminals is better expanded by realizing a new input and output logical control mode, the response rate of the hardware output terminal in the numerical control system software control numerical control controller is improved, and the customer requirements are met.
The method mentioned in the above embodiment is further described with reference to fig. 5, as shown in fig. 5:
firstly, starting numerical control system software, compiling a PLC file by a PLC script compiling unit, transmitting the PLC file to an exception processing module for processing if the PLC file is compiled unsuccessfully, and carrying out subsequent operation by a PLC data transmitting unit if the PLC file is compiled successfully, wherein the PLC script compiling unit and the PLC data transmitting unit jointly form a compiling and transmitting module of a programmable logic controller logic;
then, after the PLC scanning period is successful, judging whether a PLC function switch is started, if so, executing a PLC data CRC (cyclic redundancy check) step by a data checking module, and then executing subsequent steps by a data function detecting module; if the PLC function switch is closed, the subsequent steps are directly executed by the data function detection module;
the data function detection module detects whether the PLC function is executed, if the PLC function is not executed, the PLC function is closed, otherwise, the PLC function is executed;
in the working process of the whole control system, the execution state monitoring module executes state feedback in the interrupt period of the system, and provides relevant basis for the data function detection module to detect whether the PLC function is executed.
As shown in fig. 5, the steps executed in the upper half of the dotted line in the figure are mainly executed by the nc system software, and the steps executed in the lower half of the dotted line are mainly executed by the nc controller.
In the method of fig. 5, the system performs the following steps:
1. firstly, the PLC scanning period and the PLC function whether to start the mark are configured, and then the configuration is sent to the lower computer controller according to an RS485 protocol.
2. And the lower computer controller detects whether the message is correct after receiving the configuration data packet, and then sends the feedback data packet to the upper computer software.
3. And after the upper computer software receives the feedback of the configuration data packet, if the feedback is correct, the reset data packet is continuously sent.
4. And after receiving the reset data packet and detecting the correctness of the reset data packet, the lower computer controller sends a feedback data packet to the upper computer software.
5. And after the upper computer software receives the feedback of the reset data packet, if the feedback is correct, sending PLC logic data.
6. And after receiving the PLC logic data and detecting the correctness, the lower computer controller sends a feedback data packet to the upper computer software.
7. And after the upper computer software receives the correct feedback message, continuously sending the PLC logic data until the PLC logic data is sent. If no error is generated in the middle, the enabling data packet is issued to inform the lower computer controller to start to execute the PLC function.
Note that:
the method for detecting the correctness of the PLC data packet message comprises the following steps: message type checking, CRC checking, PLC scanning period checking, PLC starting checking and PLC time sequence checking.
A data sending module: all of the packet sending steps in the flow chart steps are performed, including configuration packets, reset packets, logic packets, and enable packets.
PLC data inspection module: the method is used for detecting the correctness of the issued data packet and comprises the following steps: message type checking, CRC checking, PLC scanning period checking, PLC starting checking and PLC time sequence checking.
PLC function switch: and determining whether to start the PLC function.
When the control system and the corresponding method for controlling the IO terminal based on the numerical control controller in the above embodiment are applied to the numerical control system, the following advantages are provided:
a) input and output end logic relationship allowability: when the numerical control system software controls the state of the output end of the hardware, the logic relation of the input end and the output end can be configured by modifying the content of the PLC file.
b) Diversity of input-output logical relationships: the file content can be written according to the functional requirements of the user.
c) The output end response time is higher in real-time performance: the logic judgment process of the numerical control system software on the input end state and the output end state is reduced. And periodically executing a PLC logic processing function in the numerical control controller, and immediately changing the state of an output end when acquiring the state change of some input ports.
d) Output end state change delay adjustability: the port response time is based on the interrupt control time inside the controller and the scan period of the PLC data.
The following will further explain the operation steps of the present invention by taking the case that the control system and the corresponding method for controlling the IO terminal based on the numerical control controller in the present invention are used for solving the problem of insufficient timeliness of the double Y-axis (Y1 axis, Y2 axis) alarm:
when it is assumed that:
y1 axis alarm ALM address: 01201
Y1 axis servo enables SON upper computer control port: 90901
Y1 Axis Servo Enable SON hardware output port 10901
Y2 axis alarm ALM address: 01202
Y1 axis servo enables SON upper computer control port: 90902
Y1 axis servo-enabled SON hardware mapping port 10902
The first step is as follows: the user may enter the following as logical instructions:
LD NOT 01202// Y2 axis does NOT generate alarm
AND 90901// Outmap packet controls Y1 Axis Enable
OUT 10901// Y1 shaft enable port open
LD NOT 01201// Y1 axis does NOT generate alarm
AND 90902// Outmap packet controls Y2 Axis Enable
The OUT 10902// Y2 shaft enable port is open;
the second step is that: the numerical control system software in the numerical control system master station starts initialization and compiles the logic instruction content;
the third step: the numerical control system software sends the binary file obtained after compiling to a numerical control controller,
and finally: the numerical control controller periodically acquires the double Y-axis alarm state and executes PLC data content (namely executing logic instructions input by a user).
The control system and the corresponding method for controlling the IO terminal based on the numerical control controller can solve the problems and can also solve the control problem of components with linkage relation in other numerical control systems. Such as universal tri-axial software. If two or more other components in a coordinated relationship are controlled, the input PLC program needs to configure the station address of the axis in addition to some configurations of the input/output ports so as to inform the controller which axis needs to be configured.
By adopting the control system and the corresponding method for controlling the IO end based on the numerical control controller, the mapping relation between the logical address of the programmable logic controller preset in the numerical control system software and the IO end is utilized, a user only needs to input a logical instruction to the system, the logical instruction is compiled by the main station of the numerical control system, and the numerical control controller can execute the control on the IO end according to the compiled logical instruction.
In this specification, the invention has been described with reference to specific embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.

Claims (9)

1. The utility model provides a control system based on numerical control controller carries out control to IO end, includes numerical control system main website and numerical control controller, its characterized in that:
the numerical control system master station comprises a hardware platform and numerical control system software positioned in the hardware platform, and is used as a compiling and sending module of the logic of a programmable logic controller in the control system;
the numerical control controller comprises an IO end, the IO end comprises a general input end, a general output end and a shaft-related input and output end, and the numerical control controller is used as an execution module of the logic of the programmable logic controller in the control system;
the numerical control system master station is connected with the numerical control controller through a communication line, the shaft-related input and output ends in the numerical control controller are connected with an external driver group through shaft communication lines, the general input end is used for accessing input signals, and the general output end is used for outputting output signals;
the numerical control system software comprises a mapping relation between a preset logic address of a programmable logic controller and the IO end, a user can set a corresponding logic instruction for the logic address of the programmable logic controller, the numerical control system master station compiles the logic instruction and sends the compiled logic instruction to the numerical control controller, and the numerical control controller controls the IO end according to the compiled logic instruction;
the control system also comprises an exception handling module, and the numerical control controller also comprises a data checking module and a data function checking module;
the numerical control system master station is respectively connected with the exception handling module, the data checking module and the data function checking module;
the mapping relation between the logic address of the programmable logic controller and the IO end is self-defined,
when the system runs, the numerical control controller is used for directly operating a hardware register corresponding to the PLC address, and a PLC file is modified in the operation process to configure the port state of a shaft-related input/output end in an IO end in the numerical control controller; when the numerical control controller executes operation action, the value of the corresponding register is read, PLC logic is periodically executed in the controller, and the state of the output end is changed when the state of the port is changed.
2. The control system for controlling the IO terminal based on the numerical control controller according to claim 1, further comprising an execution state monitoring module, wherein the execution state monitoring module is connected to the numerical control controller.
3. A method for controlling an IO port based on the system of any one of claims 1 to 2, the method comprising:
(1) the numerical control system master station compiles the logic instruction input by the user and sends the compiled logic instruction to the numerical control controller;
(2) the numerical control controller executes the compiled logic instruction according to the current state of the IO end and the mapping relation between the preset logic address of the programmable logic controller and the IO end, and controls the IO end;
(3) and the IO end executes the operation corresponding to the compiled logic instruction.
4. The method for controlling the IO terminal according to claim 3, wherein the step (1) includes the following steps:
(11) the numerical control system master station leads the logic instruction into the numerical control system software;
(12) the numerical control system software compiles the logic instruction and converts the logic instruction into a binary instruction, wherein the binary instruction is the compiled logic instruction;
(13) and the numerical control system software sends the binary instruction to the numerical control controller.
5. The method for controlling the IO terminal according to claim 4, wherein the system includes an exception handling module, and the following steps are included between step (12) and step (13):
(12.1) judging whether the compiling of the logic instruction is successful;
(12.2) if the compiling of the logic instruction is successful, continuing the subsequent step (13), otherwise, judging the system is abnormal, and transmitting the logic instruction to the abnormal processing module.
6. The method for controlling the IO terminal according to claim 5, wherein the system includes a data checking module and a data function checking module, and the step (13) includes the following steps:
(131) the numerical control system master station sends a mark which is preset in the system and is used for judging whether a system scanning period and a system function are started or not to the numerical control controller as a configuration data packet;
(132) after the numerical control controller receives the configuration data packet, the data inspection module detects the content in the configuration data packet, and then the numerical control controller sends a detection result as a first feedback data packet to the numerical control system master station;
(133) after the numerical control system master station receives the first feedback data packet and the correctness of the first feedback data packet is determined, the numerical control system master station continues to send a reset data packet to the numerical control controller;
(134) after the numerical control controller receives the reset data packet, the data inspection module inspects the reset data packet, and after the correctness of the reset data packet is determined, the numerical control controller sends a second feedback data packet to the numerical control system main station;
(135) after the numerical control system master station receives the second feedback data packet, and after the correctness of the second feedback data packet is determined, the subsequent step (136) is executed;
(136) sending a section of instruction segment in the binary instruction to the numerical control controller, wherein the instruction segment is the most front section of instruction in the binary instruction which is not sent to the numerical control controller;
(137) after receiving the instruction segment, the numerical control controller sends a third feedback data packet to the numerical control system main station;
(138) and after receiving the third feedback data packet, the numerical control system master station selects an end instruction behind the instruction segment sent to the numerical control controller last time as a new instruction segment, and executes the step (136) until all instruction segments in the binary instructions are sent to the numerical control controller.
7. The method for controlling the IO terminal according to claim 6, wherein the following steps are included between the step (1) and the step (2):
(1.1) the data function checking module judges whether an error occurs in the execution process of the step (13);
(1.2) if no error occurs in the execution process of the step (13), continuing the subsequent step (2), otherwise, stopping the numerical control controller from working.
8. The method for controlling the IO terminal according to claim 7, wherein the system includes an execution state monitoring module, and the execution state monitoring module monitors the operating state of the system and feeds the operating state of the system back to the numerical control controller to provide a judgment basis for the step (1.1).
9. The method for controlling the IO terminal according to claim 3, wherein the step (1) is further preceded by the steps of:
(0.1) the user configures the scanning period of the system and the mark whether the system function is started or not through the numerical control system master station;
(0.2) the user inputs the logic instruction to the numerical control system main station.
CN201811555933.1A 2018-12-19 2018-12-19 Control system for controlling IO terminal based on numerical control controller and corresponding method Active CN109634203B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811555933.1A CN109634203B (en) 2018-12-19 2018-12-19 Control system for controlling IO terminal based on numerical control controller and corresponding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811555933.1A CN109634203B (en) 2018-12-19 2018-12-19 Control system for controlling IO terminal based on numerical control controller and corresponding method

Publications (2)

Publication Number Publication Date
CN109634203A CN109634203A (en) 2019-04-16
CN109634203B true CN109634203B (en) 2021-12-17

Family

ID=66075395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811555933.1A Active CN109634203B (en) 2018-12-19 2018-12-19 Control system for controlling IO terminal based on numerical control controller and corresponding method

Country Status (1)

Country Link
CN (1) CN109634203B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968044B (en) * 2019-12-17 2023-02-17 上海维宏电子科技股份有限公司 System and method for realizing high-precision PLC control in numerical control system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5978578A (en) * 1997-01-30 1999-11-02 Azarya; Arnon Openbus system for control automation networks
CN102236337A (en) * 2011-04-18 2011-11-09 大连吉润高新技术机械有限公司 Control and design of programmable logic controller (PLC) for electrical remolding of machine tool
CN102331733A (en) * 2010-07-14 2012-01-25 中国科学院沈阳计算技术研究所有限公司 Numerical control system logic controller on basis of system on programmable chip and implementing method thereof
CN102955460A (en) * 2011-08-31 2013-03-06 上海三一精机有限公司 Control system of numerical control system master station over input/output (IO) terminal slave station
CN105511815A (en) * 2015-12-14 2016-04-20 中国电子信息产业集团有限公司第六研究所 Segment table based PLC (programmable logic controller) runnable file storage and analysis method and storage system
CN107291444A (en) * 2017-05-11 2017-10-24 广东卓信环境科技股份有限公司 PLC instructs generation method and device and PLC programmed methods

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5978578A (en) * 1997-01-30 1999-11-02 Azarya; Arnon Openbus system for control automation networks
CN102331733A (en) * 2010-07-14 2012-01-25 中国科学院沈阳计算技术研究所有限公司 Numerical control system logic controller on basis of system on programmable chip and implementing method thereof
CN102236337A (en) * 2011-04-18 2011-11-09 大连吉润高新技术机械有限公司 Control and design of programmable logic controller (PLC) for electrical remolding of machine tool
CN102955460A (en) * 2011-08-31 2013-03-06 上海三一精机有限公司 Control system of numerical control system master station over input/output (IO) terminal slave station
CN105511815A (en) * 2015-12-14 2016-04-20 中国电子信息产业集团有限公司第六研究所 Segment table based PLC (programmable logic controller) runnable file storage and analysis method and storage system
CN107291444A (en) * 2017-05-11 2017-10-24 广东卓信环境科技股份有限公司 PLC instructs generation method and device and PLC programmed methods

Also Published As

Publication number Publication date
CN109634203A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
US8793366B2 (en) Method and arrangement for diagnosing networks including field bus systems
CN104965700A (en) Method and system for implementing driving on SPI equipment under VxWorks operating system
CN115794313B (en) Virtual machine debugging method, system, electronic device and storage medium
CN111698268A (en) Equipment communication protocol converter
CN109634203B (en) Control system for controlling IO terminal based on numerical control controller and corresponding method
CN112398897B (en) Wireless remote-controlled robot system based on Socket communication
EP3439235B1 (en) Configuring and operating a system with building automation devices
CN107526681B (en) Robot test system and test method
CN106533793B (en) Communication means and system based on CAN protocol
CN110995533A (en) Ethernet streaming test system
CN113377701B (en) Serial port control system based on complex programmable logic device CPLD and communication method thereof
CN111866020B (en) Communication card and communication method
CN104950880A (en) Industrial control equipment debugging system and method
CN113138779B (en) FPGA (field programmable Gate array) online program updating device and method based on multifunctional interface
CN110687854B (en) PA bus controller and PA bus control system
CN113556210A (en) Upper computer and method for establishing communication connection
CN112152753A (en) Method and device for transmitting data with lower computer
JP3870890B2 (en) Operation board, remote I / O communication control method
CN113050554B (en) Man-machine interactive multi-protocol communication method and medium
CN212305381U (en) Equipment communication protocol converter
US20180052805A1 (en) Microcontroller with a diagnosis module and method for accessing said module of said microcontroller
CN115766802A (en) Controller control system, method, equipment and medium
JPH07191922A (en) Programmable controller
CN116257257A (en) Chip burning method and device, upper computer and storage medium
CN106708759A (en) Method and processor for controlling digital input and output

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
CB02 Change of applicant information

Address after: 201108 4th floor, 29 Lane 1277, zhuanxing East Road, Minhang District, Shanghai

Applicant after: SHANGHAI WEIHONG ELECTRONIC TECHNOLOGY Co.,Ltd.

Applicant after: Shanghai Weihong Intelligent Technology Co., Ltd

Address before: No. 1590 Shanghai-Hangzhou Highway, Fengxian District, Shanghai, 2010

Applicant before: SHANGHAI WEIHONG ELECTRONIC TECHNOLOGY Co.,Ltd.

Applicant before: Shanghai Weihong Intelligent Technology Co., Ltd

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant