CN109634203A - The control system and corresponding method that the end IO is controlled based on CNC controller - Google Patents
The control system and corresponding method that the end IO is controlled based on CNC controller Download PDFInfo
- Publication number
- CN109634203A CN109634203A CN201811555933.1A CN201811555933A CN109634203A CN 109634203 A CN109634203 A CN 109634203A CN 201811555933 A CN201811555933 A CN 201811555933A CN 109634203 A CN109634203 A CN 109634203A
- Authority
- CN
- China
- Prior art keywords
- control system
- cnc controller
- cnc
- controller
- main website
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/054—Input/output
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Programmable Controllers (AREA)
- Numerical Control (AREA)
Abstract
The present invention relates to a kind of control systems and corresponding method controlled based on CNC controller the end IO, control system includes digital control system main website and CNC controller, wherein, digital control system main website includes hardware platform and the cnc system software in the hardware platform, it include the end IO in CNC controller, it include the mapping relations of preset programmable logic controller (PLC) logical address and the end IO in cnc system software, user can be by being arranged corresponding logical order to programmable logic controller (PLC) logical address, logical order is compiled by digital control system main website, and the logical order after compiling is sent to CNC controller, CNC controller controls the end IO according to the logical order after compiling.Using the control system and corresponding method of the invention controlled based on CNC controller the end IO, user only needs to instruct to system input logic, and the control to the end IO just can be performed in CNC controller, there is that high-efficient, applicability is good.
Description
Technical field
The present invention relates to cnc system software field, in particular to digital control system carries out aerial skill to input/output port
A kind of art field, and in particular to control system and corresponding method that the end IO is controlled based on CNC controller.
Background technique
Cnc system software in the prior art is usually to arrange in pairs or groups CNC controller realization to hardware input, output port
Logic control, and during controlling hardware output end, it needs to rely on the state of certain input ports, is just able to achieve control;
And in existing digital control system, hardware input, the logic control of output port are relatively single, are mainly used in logical relation
In fairly simple control system, but with the rapid development of digital control system, people input hardware, output end logical relation
Require with property with port responses timeliness it is higher and higher, it is existing hardware is inputted, the logic control of output port without
Method meets the needs of prior art.
For example, in the prior art, there is the requirement of timeliness for Y-axis alert process double in digital control system.Double Y-axis operations
In the process, when one of axis generates alarm stop motion, another axis also must be able to quick stop motion, prevent to workpiece
Or lathe generates damage.But the logic control mode of input/output port in the prior art is unable to satisfy the corresponding speed of equipment
It is required that.
Summary of the invention
The purpose of the present invention is overcoming at least one above-mentioned prior art, provides one kind and can more preferably meet and set
The logical relation of standby input/output terminal, improve digital control system control hardware output end the speed of response based on CNC controller pair
The control system and corresponding method that the end IO is controlled.
To achieve the goals above or other purposes, the control of the invention that the end IO is controlled based on CNC controller
System and corresponding method are as follows:
The control system that the end IO is controlled based on CNC controller, including digital control system main website and numerical control control
Device is mainly characterized by:
The digital control system main website includes hardware platform and the cnc system software in the hardware platform, described
Compiling and sending module of the digital control system main website as the programmable logic controller (PLC) logic in control system;
It include the end IO in the CNC controller, the end IO includes universal input end, general purpose outputs, axis phase
Close input/output terminal, execution of the CNC controller as the programmable logic controller (PLC) logic in control system
Module;
The digital control system main website is connected by communication line with the CNC controller, the CNC controller
In axis correlated inputs output end be connected by axis connection with external driver group, the universal input end is for connecing
Enter input signal, the general purpose outputs are used for output signal output;
It include preset programmable logic controller (PLC) logical address and the end IO in the cnc system software
Mapping relations, user can be described by the way that corresponding logical order is arranged to the programmable logic controller (PLC) logical address
Digital control system main website the logical order is compiled, and the logical order after compiling is sent to the numerical control control
Device processed, the CNC controller control the end IO according to the logical order after the compiling.
Preferably, the control system further includes exception processing module, the CNC controller further includes data inspection
It looks into module and data function checks module;
The digital control system main website respectively with the exception processing module, data review module and data function inspection
Module is connected.
More preferably, the system further include execute state monitoring module, the execution state monitoring module with it is described
CNC controller be connected.
This realizes the method controlled the end IO based on above system, is mainly characterized by, the method includes:
(1) the digital control system main website described in is compiled the logical order of user's input, and will be after compiling
Logical order is sent to the CNC controller;
(2) CNC controller described in is according to the state and the preset programmable logic control at the presently described end IO
The mapping relations of device logical address processed and the end IO, the logical order after executing the compiling, to the end IO into
Row control;
(3) end IO described in executes operation corresponding with the logical order after the compiling.
Preferably, the step (1) the following steps are included:
(11) logical order is directed into the cnc system software by the digital control system main website described in;
(12) cnc system software described in is compiled the logical order, by the logical order conversion two
System instruction, wherein the binary instruction is the logical order after the compiling;
(13) binary instruction is sent to the CNC controller by the cnc system software described in.
More preferably, the system includes exception processing module, between step (12) and step (13) the following steps are included:
(12.1) judge whether the compiling to the logical order succeeds;
(12.2) continue subsequent step (13) if to the compiling successfully of the logical order, otherwise determine described
The logical order is transmitted to the exception processing module by system exception.
Further, the system includes that data review module and data function check module, the step (13)
The following steps are included:
(131) whether the digital control system main website described in opens the system scan period for defaulting in internal system and system function
The mark used is sent to the CNC controller as configuration data packet;
(132) after the CNC controller described in receives the configuration data packet, by the data review module pair
Content in the configuration data packet is detected, and then the CNC controller will test result as the first feedback coefficient
The digital control system main website is sent to according to packet;
(133) after the digital control system main website described in receives first feedback data packet, when determining described first
After the correctness of feedback data packet, the digital control system main website continues to send reseting data packet to the CNC controller;
(134) after the CNC controller described in receives the reseting data packet, by the data review module pair
The reseting data packet is checked, after determining the correctness of the reseting data packet, the CNC controller hair
Send the second feedback data packet to the digital control system main website;
(135) after the digital control system main website described in receives second feedback data packet, when determining described second
After the correctness of feedback data packet, execute subsequent step (136)
(136) CNC controller of Xiang Suoshu sends one section of instruction segment in the binary instruction, wherein described
Instruction segment is in the instruction for be not issued in the binary instruction CNC controller near a preceding Duan Zhiling;
(137) after the CNC controller described in receives the instruction segment, third feedback data packet is sent to described
Digital control system main website;
(138) it after the digital control system main website described in receives the third feedback data packet, chooses last to described
The instruction segment that sends of CNC controller after one end instruct as new instruction segment, and execute above-mentioned steps (136),
Until all instructions Duan Jun in the binary instruction to be sent to the CNC controller.
Further, between the step (1) and step (2) the following steps are included:
(1.1) whether mistake occurs in the implementation procedure of step (13) described in the data function inspection module judgement described in
Accidentally;
(1.2) continue subsequent step (2) if mistake does not occur in the implementation procedure of the step (13), otherwise enable institute
The CNC controller stated stops working.
Further, the system includes executing state monitoring module, and the execution state monitoring module is to institute
The working condition for the system stated is monitored, and it is institute that the working condition of the system, which is fed back to the CNC controller,
The step of stating (1.1) provides judgment basis.
Preferably, further comprising the steps of before the step (1):
(0.1) user described in by the digital control system main website configure system scan period and system function whether
The mark of enabling;
(0.2) user described in inputs the logical order to the digital control system main website.
Using the control system and corresponding method of the invention controlled based on CNC controller the end IO, institute is utilized
The mapping relations of preset programmable logic controller (PLC) logical address and the end IO in the cnc system software stated, user is only
It need to instruct, be compiled the logical order by digital control system main website, CNC controller can root to system input logic
Execute control to the end IO according to the logical order after compiling, work efficiency is high for this control mode, it is easy to operate, can input and output
Logical relation it is more preferable with property and diversity, greatly improve output port response real-time, applicability is good.
Detailed description of the invention
Fig. 1 is being shown in one embodiment of the invention based on structure of the CNC controller to the control system that the end IO is controlled
It is intended to.
Fig. 2 is the mapping relations of the programmable logic controller (PLC) logical address and the end IO in one embodiment of the invention
Schematic diagram.
Fig. 3 is the workflow schematic diagram of the digital control system main website in one embodiment of the invention.
Fig. 4 is the workflow schematic diagram of the CNC controller in one embodiment of the invention.
Fig. 5 is the workflow of the control system controlled based on CNC controller the end IO in one embodiment of the invention
Cheng Tu.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, combined with specific embodiments below to the present invention
It is described in further detail.
The structure of the control system controlled based on CNC controller to the end IO is as shown in Figure 1, include digital control system
Main website and CNC controller, in which:
The digital control system main website includes hardware platform and the cnc system software in the hardware platform, described
Compiling and sending module of the digital control system main website as the programmable logic controller (PLC) logic in control system, i.e., by digital control system
Software sharing host computer, collector and sending module as PLC (programmable logic controller (PLC));
Include the end IO in the CNC controller, slave computer is constituted by CNC controller, it is (programmable to patrol as PLC
Volume controller) logic execution module.The end IO includes universal input end, general purpose outputs, axis correlated inputs output end,
Execution module of the CNC controller as the programmable logic controller (PLC) logic in control system;
The digital control system main website is connected by communication line with the CNC controller, the CNC controller
In axis correlated inputs output end be connected by axis connection with external driver group, the universal input end is for connecing
Enter input signal, the general purpose outputs are used for output signal output;
It include preset programmable logic controller (PLC) logical address and the end IO in the cnc system software
Mapping relations, mapping relations can as shown in Fig. 2, the corresponding end IO of PLC address bit input port or delivery outlet, use
Family can be by being arranged corresponding logical order, the digital control system main website to the programmable logic controller (PLC) logical address
The logical order is compiled, and the logical order after compiling is sent to the CNC controller, the number
Control controller controls the end IO according to the logical order after the compiling.
In this embodiment, the mapping relations at programmable logic controller (PLC) logical address and the end IO can by user into
Row is customized, and user can customize PLC logic content, and (i.e. user can refer to for each input/output terminal custom logic in the end IO
Enable content), the logical order of user's input can be by being that the PLC of standard is instructed, and the logic content of PLC is defined according to demand by user
?.
Above-mentioned mapping relations can be preset by user according to oneself, in system operation, be controlled using numerical control
Device directly operates the corresponding hardware register in the address PLC, and cnc system software is only needed to write PLC file and be compiled, is not required to
The specific execution for participating in port controlling function, may make the working efficiency of system higher in this way, user in operation into
Row modification PLC file can configure the port status of the axis correlated inputs output end in the end IO in CNC controller,
And when CNC controller executes operational motion, it is not necessary that port status is mapped in control system main website, it is only necessary to which reading is accordingly posted
The value of storage, in the execution PLC logic of controller intercycle property, when port status variation is the shape for changing output end immediately
State.Save the time of hardware and the transmission of upper computer software data.
In the above-described embodiments, CNC controller crosses axis connection and is connected with actuator assembly, can pass through driver group
Part realizes the motion control of axis, and actuator assembly can also be by the status information feedback of axis to CNC controller.
The operating procedure that logical order is input to CNC controller by the cnc system software in above-described embodiment can be such as Fig. 3
It is shown, i.e., first cnc system software is started, the PLC file (i.e. logical order) that user inputs then is directed into digital control system
PLC file is compiled into binary file (logical order after compiling) by cnc system software, finally again by numerical control by software
Binary file is sent to CNC controller by digital control system main website described in system software controls.
Workflow of the CNC controller within interrupt cycle in above-described embodiment is as shown in figure 4, work as the system
After interrupt cycle starts, the CNC controller first obtains the state of input port in the end IO, and it is defeated then to execute PLC logic
Enter and export control, then execute output port state, terminates until interrupt cycle.
In the above-described embodiments, the control system further includes exception processing module, and the CNC controller also wraps
It includes data review module and data function checks module;
The digital control system main website respectively with the exception processing module, data review module and data function inspection
Module is connected.
In the above-described embodiments, the system further includes executing state monitoring module, the execution status monitoring mould
Block is connected with the CNC controller.
In one embodiment, a kind of to realize that the method controlled the end IO includes: based on above system
(0.1) user described in by the digital control system main website configure system scan period and system function whether
The mark of enabling, wherein the system function refers to Programmadle logic control function, i.e. PLC function, and user can pass through volume
Logical order is collected, and then achievees the purpose that customize real-time control I/O port, whether control system can enable according to system function
Mark, determine whether the CNC controller executes the logical order;
(0.2) user described in inputs the logical order to the digital control system main website;
(1) the digital control system main website described in is compiled the logical order of user's input, and will be after compiling
Logical order is sent to the CNC controller, specifically includes the following steps:
(11) logical order is directed into the cnc system software by the digital control system main website described in;
(12) cnc system software described in is compiled the logical order, by the logical order conversion two
System instruction, wherein the binary instruction is the logical order after the compiling;
(12.1) judge whether the compiling to the logical order succeeds;
(12.2) continue subsequent step (13) if to the compiling successfully of the logical order, otherwise determine described
The logical order is transmitted to the exception processing module by system exception;
(13) binary instruction is sent to the CNC controller by the cnc system software described in, specific to wrap
Include following steps:
(131) whether the digital control system main website described in opens the system scan period for defaulting in internal system and system function
The mark used, which is sent to the CNC controller as configuration data packet, can be used RS485 protocol realization in this embodiment
The mark whether scan period of system and system function enable is allocated to the CNC controller, in other embodiments
Also other communication protocols can be selected and realize the function that configuration data packet is sent to the CNC controller;
(132) after the CNC controller described in receives the configuration data packet, by the data review module pair
Content in the configuration data packet is detected, and then the CNC controller will test result as the first feedback coefficient
The digital control system main website is sent to according to packet;
(133) after the digital control system main website described in receives first feedback data packet, when determining described first
After the correctness of feedback data packet, the digital control system main website continues to send reseting data packet to the CNC controller;
(134) after the CNC controller described in receives the reseting data packet, by the data review module pair
The reseting data packet is checked, after determining the correctness of the reseting data packet, the CNC controller hair
Send the second feedback data packet to the digital control system main website;
(135) after the digital control system main website described in receives second feedback data packet, when determining described second
After the correctness of feedback data packet, execute subsequent step (136)
(136) CNC controller of Xiang Suoshu sends one section of instruction segment in the binary instruction, wherein described
Instruction segment is in the instruction for be not issued in the binary instruction CNC controller near a preceding Duan Zhiling;
(137) after the CNC controller described in receives the instruction segment, third feedback data packet is sent to described
Digital control system main website;
(138) it after the digital control system main website described in receives the third feedback data packet, chooses last to described
The instruction segment that sends of CNC controller after one end instruct as new instruction segment, and execute above-mentioned steps (136),
Until all instructions Duan Jun in the binary instruction to be sent to the CNC controller;
(1.1) whether mistake occurs in the implementation procedure of step (13) described in the data function inspection module judgement described in
Accidentally;
(1.2) continue subsequent step (2) if mistake does not occur in the implementation procedure of the step (13), otherwise enable institute
The CNC controller stated stops working;
Wherein, the execution state monitoring module is monitored the working condition of the system, and will be described
It is that the step (1.1) provides judgment basis that the working condition of system, which feeds back to the CNC controller,;
(2) CNC controller described in is according to the state and the preset programmable logic control at the presently described end IO
The mapping relations of device logical address processed and the end IO, the logical order after executing the compiling, to the end IO into
Row control;
(3) end IO described in executes operation corresponding with the logical order after the compiling.
Corresponding side is combined using the control system controlled based on CNC controller the end IO in above-described embodiment
Method preferably extends the logical relation of input/output terminal, improves number by realizing a kind of new input and output logic control mode
The speed of response for controlling hardware output end in system software controls CNC controller, to meet customer need, in above-described embodiment
The control system and corresponding method controlled based on CNC controller to the end IO is a kind of to be realized based on CNC controller
High real-time PLC control method preferably extends the logical relation of input/output terminal, and it is defeated to improve cnc system software control hardware
The speed of response of outlet such as can solve the problem of double Y-axis alert process timeliness deficiencies in digital control system.
Further the method mentioned in above-described embodiment is illustrated below with reference to Fig. 5, as shown in Figure 5:
Firstly, cnc system software starts, then PLC file is compiled by PLC script compilation unit, if PLC file
Compiling failure, then be transmitted to exception processing module for PLC file and handle, if PLC file compiles successfully, by PLC number
Subsequent operation is carried out according to transmission unit, wherein is collectively formed by PLC script compilation unit and plc data transmission unit programmable
The compiling of logic controller logic and sending module;
Then after the success of PLC scan period, judge whether PLC functional switch is opened, first examined by data if opening
After looking into module execution plc data CRC check step, then by data function detection module execution subsequent step;If PLC function is opened
It closes, then subsequent step is directly executed by data function detection module;
Whether data function detection module detection PLC function executes, if not executing PLC function, closes PLC function,
Otherwise PLC function is executed;
In the course of work of entire control system, the execution interrupt cycle state for executing state monitoring module in system is anti-
Feedback provides related foundation for whether data function detection module detection PLC function executes.
As shown in figure 5, the execution step of the top half of dotted line is mainly executed by cnc system software in figure, under dotted line
The execution step of half part is mainly executed by CNC controller.
In method in Fig. 5, the system performs following steps:
1. first configuring the PLC scan period and whether PLC function enabling mark, then the configuration is sent out according to RS485 agreement
To the next machine controller.
2. whether detection messages are correct after the next machine controller receives configuration data packet, then feedback data packet is sent out
Give upper computer software.
After 3. upper computer software receives the feedback of configuration data packet, if feedback is correctly, to continue to send multiple
Position data packet.
4. after the next machine controller receives reseting data packet and detects its correctness, sending feedback data packet to upper
Machine software.
After 5. upper computer software receives the feedback of reseting data packet, if feedback is correctly, to send PLC logic
Data.
6. sending feedback data packet to after the next machine controller receives PLC logical data and detects correctness
Position machine software.
7. continuing to send PLC logical data, until PLC logic after upper computer software receives correctly feedback message
Data are sent completely.If centre is generated without mistake, issues enabled data packet and the next machine controller is notified to start to execute PLC
Function.
Note:
Wherein, the correctness for detecting plc data packet voice includes: type of message verification, CRC check, the scan period school PLC
It tests, whether PLC enables inspection and PLC timing inspection.
Data transmission blocks: performing all data packet sending steps in flow chart step, including configuration data packet, multiple
Position data packet, logical data packet and enabled data packet.
Plc data check module: for detecting the correctness for issuing data packet, comprising: type of message verification, CRC check,
The PLC scan period verifies, whether PLC enables inspection and PLC timing inspection.
PLC functional switch: decide whether to open PLC function.
The control system and corresponding method controlled based on CNC controller to the end IO in above-described embodiment is answered
When in digital control system, have following advantage:
A) input/output terminal logical relation with property: cnc system software is defeated when controlling hardware state output terminal
The logical relation for entering output end can be configured by modifying PLC file content.
B) diversity of input/output terminal logical relation: file content can be write according to user function demand.
C) output end response time real-time is higher: reducing cnc system software to input terminal state and state output terminal
Logic judgment process.PLC logical process function is executed in CNC controller intercycle property, when getting certain input ports
When state change, change state output terminal immediately.
D) state output terminal variation delay adjustability: the port responses time according to inside controller interruption control the time with
And the scan period of plc data.
Below with by the control system and corresponding method controlled based on CNC controller the end IO in the present invention
For solving the problems, such as double Y-axis (Y1 axis, Y2 axis) alarm timeliness deficiencies, operating procedure of the invention is carried out furtherly
It is bright:
When assuming that:
The Y1 axis alarm address ALM: 01201
Y1 axis servo enables SON PC control port: 90901
Y1 axis servo enables SON hardware output port 10901
The Y2 axis alarm address ALM: 01202
Y1 axis servo enables SON PC control port: 90902
Y1 axis servo enables SON hardware and mirrors port 10902
Step 1: user can input the following contents as logical order:
LD NOT 01202 //Y2 axis does not generate alarm
AND 90901 //Outmap packet control Y1 axis is enabled
It opens OUT 10901 //Y1 axis enable port
LD NOT 01201 //Y1 axis does not generate alarm
AND 90902 //Outmap packet control Y2 axis is enabled
It opens OUT 10902 //Y2 axis enable port;
Step 2: the cnc system software starting initialization in digital control system main website compiles above-mentioned logical order content;
Step 3: the binary file obtained after compiling is sent in CNC controller by cnc system software,
Last: CNC controller periodically acquires double Y-axis alarm conditions, executes (the i.e. execution user input of plc data content
Logical order).
The control system controlled based on CNC controller to the end IO and corresponding method in the present invention are in addition to can
It solves the above problems, moreover it is possible to solve the control problem of the component in other digital control systems with interaction relation.Such as general three axis
Software.If carrying out control to other two or more components for having friendly interaction relation is that the PLC program of input is in addition to input
Except some configurations of output port, it is also necessary to the station address of axis is configured, to inform which axis controller needs to configure.
Using the control system and corresponding method of the invention controlled based on CNC controller the end IO, institute is utilized
The mapping relations of preset programmable logic controller (PLC) logical address and the end IO in the cnc system software stated, user is only
It need to instruct, be compiled the logical order by digital control system main website, CNC controller can root to system input logic
Execute control to the end IO according to the logical order after compiling, work efficiency is high for this control mode, it is easy to operate, can input and output
Logical relation it is more preferable with property and diversity, greatly improve output port response real-time, applicability is good.
In this description, the present invention is described with reference to its specific embodiment.But it is clear that can still make
Various modifications and alterations are without departing from the spirit and scope of the invention.Therefore, the description and the appended drawings should be considered as illustrative
And not restrictive.
Claims (10)
1. a kind of control system controlled based on CNC controller the end IO, including digital control system main website and numerical control control
Device, it is characterised in that:
The digital control system main website includes hardware platform and the cnc system software in the hardware platform, the numerical control
Compiling and sending module of the system main website as the programmable logic controller (PLC) logic in control system;
It include the end IO in the CNC controller, the end IO includes that universal input end, general purpose outputs, axis correlation are defeated
Enter output end, execution mould of the CNC controller as the programmable logic controller (PLC) logic in control system
Block;
The digital control system main website is connected by communication line with the CNC controller, in the CNC controller
Axis correlated inputs output end is connected by axis connection with external driver group, and the universal input end is defeated for accessing
Enter signal, the general purpose outputs are used for output signal output;
It include preset programmable logic controller (PLC) logical address in the cnc system software and the end IO is reflected
Relationship is penetrated, user can be by being arranged corresponding logical order, the number to the programmable logic controller (PLC) logical address
The logical order is compiled by control system main website, and the logical order after compiling is sent to the numerical control and is controlled
Device, the CNC controller control the end IO according to the logical order after the compiling.
2. the control system according to claim 1 controlled based on CNC controller the end IO, which is characterized in that institute
The control system stated further includes exception processing module, and the CNC controller further includes data review module and data function inspection
Look into module;
The digital control system main website checks module with the exception processing module, data review module and data function respectively
It is connected.
3. the control system according to claim 2 controlled based on CNC controller the end IO, which is characterized in that institute
The system stated further includes executing state monitoring module, and the execution state monitoring module is connected with the CNC controller
It connects.
4. a kind of realize that the method controlled the end IO, feature exist based on system described in any one of claims 1 to 3
In the method includes:
(1) digital control system main website described in is compiled the logical order of user's input, and by the logic after compiling
Instruction is sent to the CNC controller;
(2) state and the preset programmable logic controller (PLC) of the CNC controller according to the presently described end IO described in
The mapping relations of logical address and the end IO, the logical order after executing the compiling, control the end IO
System;
(3) end IO described in executes operation corresponding with the logical order after the compiling.
5. according to claim 4 realize the method controlled the end IO, which is characterized in that step (1) packet
Include following steps:
(11) logical order is directed into the cnc system software by the digital control system main website described in;
(12) cnc system software described in is compiled the logical order, by the logical order conversion binary
Instruction, wherein the binary instruction is the logical order after the compiling;
(13) binary instruction is sent to the CNC controller by the cnc system software described in.
6. according to claim 5 realize the method controlled the end IO, which is characterized in that the system includes different
Normal processing module, between step (12) and step (13) the following steps are included:
(12.1) judge whether the compiling to the logical order succeeds;
(12.2) continue subsequent step (13) if to the compiling successfully of the logical order, otherwise determine the system
It is abnormal, the logical order is transmitted to the exception processing module.
7. according to claim 6 realize the method controlled the end IO, which is characterized in that the system includes number
According to checking that module and data function check module, the step (13) the following steps are included:
(131) what whether the digital control system main website described in enabled the system scan period for defaulting in internal system and system function
Indicate and is sent to the CNC controller as configuration data packet;
(132) after the CNC controller described in receives the configuration data packet, by the data review module to described
Configuration data packet in content detected, then the CNC controller will test result as the first feedback data packet
It is sent to the digital control system main website;
(133) after the digital control system main website described in receives first feedback data packet, when determining first feedback
After the correctness of data packet, the digital control system main website continues to send reseting data packet to the CNC controller;
(134) after the CNC controller described in receives the reseting data packet, by the data review module to described
Reseting data packet checked that after determining the correctness of the reseting data packet, the CNC controller sends the
Two feedback data packets give the digital control system main website;
(135) after the digital control system main website described in receives second feedback data packet, when determining second feedback
After the correctness of data packet, execute subsequent step (136)
(136) CNC controller of Xiang Suoshu sends one section of instruction segment in the binary instruction, wherein the instruction
Section is in the instruction for be not issued in the binary instruction CNC controller near a preceding Duan Zhiling;
(137) after the CNC controller described in receives the instruction segment, third feedback data packet is sent to the numerical control
System main website;
(138) it after the digital control system main website described in receives the third feedback data packet, chooses last to the number
One end after controlling the instruction segment that controller is sent is instructed as new instruction segment, and executes above-mentioned steps (136), until
All instructions Duan Jun in the binary instruction is sent to the CNC controller.
8. according to claim 7 realize the method that is controlled the end IO, which is characterized in that the step (1) with
Between step (2) the following steps are included:
(1.1) whether mistake occurs in the implementation procedure of step (13) described in the data function inspection module judgement described in;
(1.2) continue subsequent step (2) if mistake does not occur in the implementation procedure of the step (13), otherwise described in order
CNC controller stops working.
9. according to claim 8 realize the method controlled the end IO, which is characterized in that the system includes holding
Row state monitoring module, the execution state monitoring module are monitored the working condition of the system, and will be described
The working condition of system to feed back to the CNC controller be that the step (1.1) provides judgment basis.
10. according to claim 4 realize the method that is controlled the end IO, which is characterized in that the step (1) it
It is preceding further comprising the steps of:
(0.1) user described in configures the scan period of system by the digital control system main website and whether system function enables
Mark;
(0.2) user described in inputs the logical order to the digital control system main website.
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 true CN109634203A (en) | 2019-04-16 |
CN109634203B 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110968044A (en) * | 2019-12-17 | 2020-04-07 | 上海维宏电子科技股份有限公司 | System and method for realizing high-precision PLC control in numerical control system |
Citations (6)
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 |
-
2018
- 2018-12-19 CN CN201811555933.1A patent/CN109634203B/en active Active
Patent Citations (6)
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 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110968044A (en) * | 2019-12-17 | 2020-04-07 | 上海维宏电子科技股份有限公司 | System and method for realizing high-precision PLC control in numerical control system |
CN110968044B (en) * | 2019-12-17 | 2023-02-17 | 上海维宏电子科技股份有限公司 | System and method for realizing high-precision PLC control in numerical control system |
Also Published As
Publication number | Publication date |
---|---|
CN109634203B (en) | 2021-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102946325A (en) | Network diagnosis method, system and equipment based on software defined network | |
CN106844268A (en) | A kind of USB device test system, method of testing and test device | |
CN104238517B (en) | Communication method of PROFIBUS-DPV1 main communication station | |
CN101170438A (en) | A remote serial port debugging method and its system | |
CN105183575A (en) | Processor fault diagnosis method, device and system | |
CN108803577A (en) | A kind of diagnostic method, host computer and slave computer | |
CN109634256B (en) | Board level verification system of general CAN controller chip | |
CN106533793B (en) | Communication means and system based on CAN protocol | |
CN111901197B (en) | Ethernet interface mode detection device and detection method | |
CN110457744A (en) | A kind of SD/SDIO device emulation model framework and its design method | |
CN110708227A (en) | Automatic replay attack testing method in field bus | |
CN102216909A (en) | A network processor and a diagnostic method of procedures stored in the network process | |
WO2022267303A1 (en) | Serial port control system based on complex programmable logic device (cpld) and communication method therefor | |
CN109634203A (en) | The control system and corresponding method that the end IO is controlled based on CNC controller | |
CN109240964A (en) | A kind of diagnostic device communication means, diagnosis terminal and diagnosis box | |
US6868375B1 (en) | Emulation of dynamically reconfigurable computer system | |
CN104950880B (en) | Industrial control equipment debugging system and method | |
CN101136756B (en) | Electric self-checking method, system and BMC chip on network long-range control host machine | |
CN115982050A (en) | Multifunctional test system and method for IO-Link master station | |
JP2000049891A (en) | Programmable logic controller and communication condition setting method and communication condition setting device therefor | |
CN203243346U (en) | Command system network tester | |
CN110162499A (en) | A kind of PECI bus switch device, method and system | |
CN103051736B (en) | A kind of processing method of control information and I2C bus apparatus | |
KR20060003754A (en) | Test device of can telecommunication network on vehicle and method thereof | |
CN106681918B (en) | A kind of adjustment method and debugging apparatus of embedded device |
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 | ||
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 |
|
GR01 | Patent grant | ||
GR01 | Patent grant |