CN107479531A - The access device communication protocol frame format information of Embedded PLC remotely determines method - Google Patents

The access device communication protocol frame format information of Embedded PLC remotely determines method Download PDF

Info

Publication number
CN107479531A
CN107479531A CN201710639474.4A CN201710639474A CN107479531A CN 107479531 A CN107479531 A CN 107479531A CN 201710639474 A CN201710639474 A CN 201710639474A CN 107479531 A CN107479531 A CN 107479531A
Authority
CN
China
Prior art keywords
frame
embedded
port
test
embedded plc
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
Application number
CN201710639474.4A
Other languages
Chinese (zh)
Other versions
CN107479531B (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.)
Hangzhou Dianzi University
Hangzhou Electronic Science and Technology University
Original Assignee
Hangzhou Electronic Science and Technology University
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 Hangzhou Electronic Science and Technology University filed Critical Hangzhou Electronic Science and Technology University
Priority to CN201710639474.4A priority Critical patent/CN107479531B/en
Publication of CN107479531A publication Critical patent/CN107479531A/en
Application granted granted Critical
Publication of CN107479531B publication Critical patent/CN107479531B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0256Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults injecting test signals and analyzing monitored process response, e.g. injecting the test signal while interrupting the normal operation of the monitored system; superimposing the test signal onto a control signal during normal operation of the monitored system
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Communication Control (AREA)

Abstract

The present invention provides a kind of access device communication protocol frame format information of Embedded PLC and remotely determines method.Methods described includes:Obtain test frame;The test frame is sent to Embedded PLC, wherein, the test frame is sent to access device by the Embedded PLC, and the access device is according to the test frame feedback test result;Within the very first time, it is determined whether the correct test result is got from the Embedded PLC, wherein, at the time of the initial time of the very first time is completes to the Embedded PLC transmission test frame;If getting correct test result from the Embedded PLC, correct frame format information is determined according to the test frame.The present invention realizes the long-range determination to the access device communication protocol frame format information of Embedded PLC, improves the efficiency for determining frame format information.

Description

The access device communication protocol frame format information of Embedded PLC remotely determines method
Technical field
The present invention relates to the access device communication protocol frame format of industrial control technology, more particularly to a kind of Embedded PLC The long-range determination method of information.
Background technology
In order to improve the development efficiency of program, fully with reference to programmable controller (Programmable Logic Controller, PLC) and nonshared control unit advantage, embedded PLC develops rapidly.Embedded PLC is to special Controller uses the patterned development tools of PLC, takes full advantage of the powerful processing function of existing embeded processor, fixed on demand All kinds of nonshared control units are made, and software development is carried out to nonshared control unit using pattern development platform.Possesses special control The customizable feature of device processed, but also with the patterned development tools of PLC.Existing Embedded PLC is widely used as monitoring system In monitoring host computer, and by way of interface or bus by all kinds of smart machines access Embedded PLC.The smart machine of access Such as gate inhibition, air-conditioning, UPS, oil machine, humiture.Need to carry out by communication protocol between these smart machines and Embedded PLC Monitoring or the interaction of control information.
In existing monitoring system, the smart machine of Embedded PLC is accessed according to type or the difference of model, may be all right Answer different communication protocol.All communication protocol is all stored in as the embedded of monitoring host computer in existing monitoring system In PLC, protocol configuration is carried out according to the equipment situation of actual use when Embedded PLC accesses new equipment, therefore it is required that technology Station carries out port initialization, protocol verification and the field operation such as writes under personnel.
However, with the fast development of Modern wireless communication cause, a large amount of monitoring systems continue to bring out and dilatation construction, embedding Enter formula PLC infield Relative distribution extensively and mutual distance farther out, the communication protocols of existing Embedded PLC and access device It is low to discuss make efficiency so that the access of new equipment is difficult.
The content of the invention
In a first aspect, the present invention provides a kind of the long-range true of access device communication protocol frame format information of Embedded PLC Determine method, applied to exploitation main frame, including:
Obtain test frame;
The test frame is sent to embedded programmable controller PLC, wherein, the test frame is by the Embedded PLC Access device is sent to, the access device is according to the test frame feedback test result;
Within the very first time, it is determined whether the correct test result is got from the Embedded PLC, wherein, institute At the time of the initial time of the very first time is stated to complete to the Embedded PLC transmission test frame;
If getting correct test result from the Embedded PLC, correct frame lattice are determined according to the test frame Formula information.
Alternatively, in addition to:
If not getting correct test result from the Embedded PLC, generation error prompt message, described in execution Obtain test frame.
Alternatively, it is described correct frame format information is determined according to the test frame after, in addition to:
The Communication Protocol Model of outside input is obtained, the Communication Protocol Model is embedded with N number of first kind submodel, described First kind submodel is embedded with pictorial symbolization and the protocol frame according to the correctly frame format information editor, the N be more than Or the integer equal to 1;
Compile the Communication Protocol Model and obtain executable code, and the executable code is sent to described embedded PLC。
Alternatively, after the Communication Protocol Model of the acquisition outside input, in addition to:
Recognizable debugging source code is obtained according to the Communication Protocol Model;
Debugging is carried out to the recognizable debugging source code and obtains debugging protocol frame, and the debugging protocol frame is sent to institute State Embedded PLC;
The response message for receiving and being sent according to the Embedded PLC obtains debugging result.
Alternatively, it is described that recognizable debugging source code is obtained according to the Communication Protocol Model, including:
N number of first kind submodel is obtained from the Communication Protocol Model;
The recognizable debugging source code is obtained, the recognizable debugging source code is as described in replacing default recognizable variable N number of first kind submodel of pictorial symbolization.
Alternatively, before the test frame to Embedded PLC transmission, in addition to:
Port configuration information is obtained, the end after being set according to port configuration information setting port initialization model Mouth initialization model, wherein, the port configuration information includes port and reads buffer address and port write buffer address, the port It is the address that the Embedded PLC presets reading buffer to read buffer address, and the port write buffer address is the Embedded PLC The address of default writing buffer;
The port initialization model after the setting is sent to the Embedded PLC.
Second aspect, the present invention also provide a kind of the long-range of the access device communication protocol frame format information of Embedded PLC Method is determined, applied to Embedded PLC, including:
Receive the test frame that exploitation main frame is sent;
The test frame is sent to the access device,
The test result that the access device is sent is received, and the test result is sent to the exploitation main frame, institute It is the result that the access device feeds back according to the test frame to state test result.
Alternatively, the test result is sent to the exploitation main frame described, in addition to:
The executable code that the exploitation main frame is sent is received and loads, wherein, the executable code is exploitation main frame The code obtained to Communication Protocol Model compiling, the Communication Protocol Model are embedded with N number of first kind submodel, the first kind Submodel is embedded with pictorial symbolization and the protocol frame according to correct frame format information editor, and the N is whole more than or equal to 1 Number.
Alternatively, the test result is sent to the exploitation main frame described, in addition to:
The debugging protocol frame that the exploitation main frame is sent is received, and the debugging protocol frame is sent to the access and set It is standby, wherein, the access device is according to the debugging protocol frame feedback response message;
The response message is received, and the response message is sent to the exploitation main frame.
Alternatively, before the test frame for receiving exploitation main frame and sending, in addition to:
The port initialization model after the setting that the exploitation main frame is sent is received, and according at the beginning of the port after the setting Beginningization model is to port initial configuration;
Wherein, the port allocation models after the setting is the port allocation models after write-in port configuration information, described Port configuration information includes port and reads buffer address and port write buffer address, and it is described embedded that buffer address is read in the port PLC presets the address of reading buffer, and the port write buffer address is the address that the Embedded PLC presets writing buffer.
Method provided by the invention is by obtaining test frame;The test frame is sent to Embedded PLC, wherein, the survey Examination frame is sent to access device by the Embedded PLC, and the access device is according to the test frame feedback test result; In one time, it is determined whether the correct test result is got from the Embedded PLC, wherein, the very first time At the time of initial time is completes to the Embedded PLC transmission test frame;If got correctly from the Embedded PLC Test result, then correct frame format information is determined according to the test frame, realizes and the access device of Embedded PLC is led to Believe the long-range determination of protocol frame format information, user can be on exploitation main frame to multiple access devices of each Embedded PLC Frame checking is carried out, frame format can be modified adjustment according to the test result of feedback, improves determination frame format information Efficiency.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description simply to introduce one by one, it should be apparent that, drawings in the following description are this hairs Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of long-range determination of the access device communication protocol frame format information of Embedded PLC provided by the invention Method flow diagram;
Fig. 2 is a kind of example communications system developed between main frame and Embedded PLC;
Fig. 3 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine method flow diagram;
Fig. 4 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine method flow diagram;
Fig. 5 is a kind of example of Communication Protocol Model;
Fig. 6 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine method flow diagram;
Fig. 7 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine method flow diagram;
Fig. 8 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine method flow diagram;
Fig. 9 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine method flow diagram;
Figure 10 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine method flow diagram;
Figure 11 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine method flow diagram;
Figure 12 is a kind of long-range determination of the access device communication protocol frame format information of Embedded PLC provided by the invention Device;
Figure 13 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine device;
Figure 14 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine device;
Figure 15 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine device;
Figure 16 is a kind of long-range determination of the access device communication protocol frame format information of Embedded PLC provided by the invention Device;
Figure 17 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine device.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Fig. 1 is a kind of long-range determination of the access device communication protocol frame format information of Embedded PLC provided by the invention Method flow diagram.Alternatively, the executive agent of this method is exploitation main frame, and the exploitation main frame can be computer, server etc., It is not limited herein.
Embodiment as shown in Figure 1 includes:
S110, obtain test frame.
The test frame can be the test frame of the outside input of user or the frame lattice according to user's outside input Formula information and generate test frame, can also be the test frame selected according to the outside input of user in existing resources bank, this Invention not limited to this.The test frame can be the protocol frame for including test instruction, and access device is received comprising the test The protocol frame of instruction, then return to test result.
Table 1 is a kind of frame format information embodiment.
The test frame can be that user can be determined according to as defined in the service manual of access device with frame format information 's.Frame format information as shown in table 1 includes:Initial code (start code information, SOI), communication protocol version Number (version number, VER), access device address (Access device address, ADR), access device identification code (customer identification, CID1), control identification code (code identification, CID2), command information Length and verification (The length and check of the command information, LENGTH), command information (commandinfomation, INFO), verification and code (checksum code, CHECKSUM), end code (epilog Codeinformation, EOI).Command information in the test frame can be that the test instructs.
It is the version number of agreement in the industry using air-conditioning as a kind of embodiment of access device, the VER, is preset as 21H. ADR is the address of air-conditioning, such as air-conditioning address is 1, is converted to sexadecimal digit 01H.According to agreement in the industry, CID1 field It is fixed as 60H (60H is the code of " scattered air-conditioning type ").CID2 is control identification code when making command frame;Believe as response It is return code RTN during breath.
Table 1
S120, the test frame is sent to Embedded PLC, wherein, the test frame is sent to by the Embedded PLC and connect Enter equipment, the access device is according to the test frame feedback test result.
Specifically, S120 can be between exploitation main frame and Embedded PLC, access device, pass through the method for data-driven Communicated, realize the transmitting-receiving test of test frame, so as to verify whether the frame format of the test frame meets the logical of access device Believe protocol requirement.
Fig. 2 is a kind of example communications system developed between main frame and Embedded PLC.The system includes:Develop main frame, embedding Enter formula PLC, access device.The exploitation main frame connects the Embedded PLC by Ethernet, and the Embedded PLC passes through logical Believe that port connects the access device.Multiple memory blocks, such as shown X areas, Y areas and D areas are included in the Embedded PLC, Wherein, reading buffer (Read Buffer, RB) and writing buffer (Write Buffer, WB) are comprised at least in the D areas.It is embedding The COM1 for entering formula is configured with port reading buffer address 1 and port write buffer address 1.Access device is configured with port and reads buffering Address 2 and port write buffer address 2.
Port reading buffer address 1 is configured to described by the COM1 of the Embedded PLC during port initialization The RB in D areas address;Port write buffer address 1 is configured to the WB in D areas address.Thus, the COM1 is from connecing Enter the address that the data that equipment receives are directly stored in the RB in the D areas, and the data of the WB in D areas renewals also will be described Access device corresponding to COM1 write-in.In a kind of realization side that the test frame is sent to Embedded PLC as shown in Figure 2 In formula, exploitation main frame is communicated by Ethernet with Embedded PLC, and is developed main frame and read or set by the connection of the Ethernet Put the data in the D areas of Embedded PLC.
Alternatively, the exploitation main frame includes memory block, is preset with the memory block and writes data buffer zone and reading data Buffering area.The exploitation main frame is inserted in write data buffering area after obtaining the test frame, in addition, exploitation main frame by with Too test frame is issued in the WB of the Embedded PLC by net.In the Embedded PLC, COM1 is according to the test The access device address descriptor included in frame, the test frame in the WB is sent to access device.If the frame of the test frame Format information is all correct, then the access device can have correctly received the test frame and parse and obtain in the test frame The information such as test instruction.
The access device can include gate inhibition, air-conditioning, intelligent power supply module, oil machine, humiture sensing device further, elevator system System or industrial automation machine.
S130, within the very first time, it is determined whether the correct test result is got from the Embedded PLC, its In, at the time of the initial time of the very first time is completes to the Embedded PLC transmission test frame.
The speed and situation that the very first time communicates according to specific network condition, Embedded PLC with access device come It is determined that such as the very first time can be set as 10s.
S130, which is specifically contained, to be determined whether to get test result from the Embedded PLC, and determines what is got Whether test result is correct.
In each circuit correct wiring, port configuration is correct, in the case of working specification, and a kind of S130 implementation can be with It is:Within the very first time (such as 10s), every the second time (such as 0.5s), the RB inquiries to the Embedded PLC are once It is no to have data renewal.If very first time built-in type PLC RB has the data of renewal, the reading data for getting exploitation main frame are delayed Rush in area, exploitation main frame further determines that whether the test result got correct, enters S141 if correct, if wrong after Whether the continuous RB inquiries to the Embedded PLC every the second time once have data renewal, until getting correct test As a result the frame format information mistake of the test frame or at the end of the very first time is determined.If institute is determined at the end of the very first time The frame format information mistake of test frame is stated, then generation error prompt message, perform the acquisition test frame, and this is shown to user The frame format information of test frame is wrong prompt message.If very first time built-in type PLC RB without renewal data, The frame format information mistake of the test frame is determined, generation error prompt message, performs the acquisition test frame, and show to user The frame format information for showing the test frame is the prompt message of mistake.
Wherein, it is described to check the one kind for once whether thering are data to update to the RB of the Embedded PLC every the second time Implementation can be:Every second time, exploitation main frame sends a read command, the read command bag to Embedded PLC Include the RB of Embedded PLC address and read data length.The Embedded PLC is responded in the read command retrieval RB Whether the data that meet the reading data length are stored with, if being sent to the exploitation main frame in the presence of if.
It is described to check another realization for once whether thering are data to update to the RB of the Embedded PLC every the second time Mode can be:Every second time, exploitation main frame sends a read command to Embedded PLC, and the read command includes institute State the RB of Embedded PLC address.The Embedded PLC responds in the read command retrieval RB whether be stored with data, if having Data are then sent to the exploitation main frame and empty the storage in RB.
If the frame format information of the test frame is all correct, the access device obtains correct according to the test frame Test result, and the correct test result is fed back into the Embedded PLC.The COM1 of the Embedded PLC is connected to During the correct test result, buffer address 1 is read according to port and reads the correctly test result to the RB in the D areas In.The exploitation host supervision have updated data into the RB and then obtain the data, and exploitation main frame determines the data of renewal For correct test result.
S141 is correct according to the test frame acknowledgment if getting correct test result from the Embedded PLC Frame format information.
Whether the test result is correct, can whether have feedback information automatically according to Embedded PLC by exploitation main frame To determine, or whether correctly determine automatically according to Embedded PLC feedack content;Can also be according to insertion by user Whether whether formula PLC has feedback information to determine, or correctly determined according to Embedded PLC feedack content.
It is described to determine that correct frame format information develop the frame format that main frame acquisition generation test frame is applied to be The correct frame format information, exploitation main frame it is determined that correctly can be saved into memory after frame format information, Can be that correct frame format information is shown or be sent to other-end to user by exploitation main frame, the invention is not restricted to this.
The method that the present embodiment provides is by obtaining test frame;The test frame is sent to Embedded PLC, wherein, it is described Test frame is sent to access device by the Embedded PLC, and the access device is according to the test frame feedback test result; In the very first time, it is determined whether the correct test result is got from the Embedded PLC, wherein, the very first time Initial time for complete to the Embedded PLC send the test frame at the time of;If got just from the Embedded PLC True test result, then correct frame format information is determined according to the test frame, realize the access device to Embedded PLC The long-range determination of communication protocol frame format information, multiple accesses that user can be to each Embedded PLC on exploitation main frame are set It is standby to carry out frame checking, frame format can be modified adjustment according to the test result of feedback, improve determination frame format information Efficiency.
Fig. 3 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine method flow diagram.Table 2 is a kind of embodiment of return code.
On the basis of embodiment illustrated in fig. 1, the embodiment shown in Fig. 3 also includes:
S142, if not getting correct test result from the Embedded PLC, generation error prompt message, hold The row S110.
It is described that not get correct test result can not get return information or get different Normal return information, such as abnormal conditions are described with return code in the test result of acquisition.Access device is according to the survey received Frame feedback test result is tried, test result includes the return code, and a kind of embodiment of return code is referring to the table 2.Such as:Institute When to state the return code included in test result be 00H, the test result is correct test result, and other return codes are all mistake Test result, is not limited by mistake herein, can also be by other marking codes.
After the test result of mistake is got, the frame format information that the test frame can also be shown to user is mistake Miscue information, and the return code is write in the miscue information, or write-in determines according to the return code Error type information, the error type information can include " VER mistakes ", " CHECKSUM mistakes ", " CID2 is invalid " or, " invalid data ".Wherein, described " invalid data " corresponding parameter setting carried out in the power-offstate outside " start ", or start The parameter set under state goes beyond the scope, or data frame format mistake.
Table 2
Return code Represent meaning
00H Fed back when frame format information is correct
01H Fed back during VER mistakes
02H Fed back during CHECKSUM mistakes
04H Fed back when CID2 is invalid
06H Fed back during invalid data
Performing the S110 can be specifically, and user believes after it with reference to the prompt message according to the type of error Breath have modified former frame format information, and a new test frame is generated with new frame format information.S110 is performed again until obtaining just True test result, correct frame format information is determined according to test frame corresponding to correct test result.
If the present embodiment from the Embedded PLC by not getting correct test result, generation error prompting Information, the S110 is performed, realize and new test frame is obtained in frame authentication error, user can know that frame format information has Mistake, the then frame format information for changing script re-start checking, and the present embodiment enters one by providing a user miscue information Step improves the efficiency for determining frame format information.
Fig. 4 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine method flow diagram.
On the basis of Fig. 1 or embodiment illustrated in fig. 3, the embodiment described in Fig. 4 after S141, in addition to:
S151, obtains the Communication Protocol Model of outside input, and the Communication Protocol Model is embedded with N number of first kind submodule Type, the first kind submodel are embedded with pictorial symbolization and the protocol frame according to the correctly frame format information editor, the N For the integer more than or equal to 1.
S152, compile the Communication Protocol Model and obtain executable code, and the executable code is sent to described Embedded PLC.
After test frame corresponding to correct test result is determined, user believes according to the frame format that the test frame uses Breath carries out the editor of Communication Protocol Model.The Communication Protocol Model can be specially the PLC program write with trapezoid figure language Code, and C programmer is embedded in graphic language.The first kind submodel can be to include pictorial symbolization and agreement The C programmer of frame.Be written with M protocol frame in the first kind submodel of Communication Protocol Model, each protocol frame be according to According to correct frame format information editor, M is the integer more than or equal to 1.
Fig. 5 is a kind of example of Communication Protocol Model.In Communication Protocol Model shown in Fig. 5, X1, X2, X3, X4, X5, X6 All it is trigger condition.After X1 closures or X2, X3 trigger condition meet after X1 trigger conditions satisfaction, then in X4 or X5 triggering bars Detect whether X6 meets when part meets, if X6 also meets, send data frame.
Exploitation main frame is compiled acquisition to the Communication Protocol Model of acquisition can for what is run in Embedded PLC Code is performed, and executable code is downloaded in the Embedded PLC, if during the Communication Protocol Model editor Implement by standard, the Embedded PLC can be with Communication Protocol Model described in normal operation.
The present embodiment compiles Communication Protocol Model and obtains executable generation by obtaining the Communication Protocol Model of outside input Code, executable code is sent to Embedded PLC, completes Embedded PLC for the long-range of the Communication Protocol Model of access device Structure.
Fig. 6 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine method flow diagram.On the basis of embodiment illustrated in fig. 4, the embodiment shown in Fig. 6 is after the S151, in addition to debugging Process:
S160, recognizable debugging source code is obtained according to the Communication Protocol Model.
S170, debugging is carried out to the recognizable debugging source code and obtains debugging protocol frame, and protocol frame hair is debugged by described Deliver to the Embedded PLC.
S180, the response message for receiving and being sent according to the Embedded PLC obtain debugging result.
The exploitation main frame can be computer (personal computer, PC) end, in the prior art existing a variety of PC ends Develop software, but pel and pictorial symbolization in the PLC program write by graphic language of these exploitation software None- identifieds, nothing Method is directly debugged to the Communication Protocol Model for including graphic language.The present embodiment is according to the Communication Protocol Model Obtain the recognizable debugging source code, the recognizable debugging source code can be showing a C language with equipment communication agreement Code, wherein the pictorial symbolization that can be included is developed corresponding to default Embedded PLC instrument in main frame is recognized and converted into Recognizable variable.In exploitation host side using common C programmer exploitation software to recognizable debugging source code compiling and operation. Thus the debugging such as single step, breakpoint, variable modification are carried out to the recognizable debugging source code.
In the above-described embodiments, S160 can further include:Described N number of first is obtained from the Communication Protocol Model Class submodel;Obtain the recognizable debugging source code, the recognizable debugging source code is replaces institute by default recognizable variable State N number of first kind submodel of pictorial symbolization.
Specifically, can be that exploitation main frame will be carried in the Communication Protocol Model by the first submodel of C language editor Take out, such as " transmission data frame " functional block in Fig. 5, it is achieved in first kind submodel in the Communication Protocol Model Debugging prepare.
The first kind submodel includes pictorial symbolization, such as contact X0, X1 etc., because software is developed at common PC ends Comprising C programmer exploitation software can not identify pictorial symbolization, develop host computer side Embedded PLC instrument need in advance by this A little pictorial symbolizations are converted to recognizable information.The recognizable information can meet can recognize that for C language programming standard Variable.The default corresponding relation includes the one-to-one relationship between variable and pictorial symbolization.
Main frame is developed in debugging process, the debugging protocol frame that the recognizable debugging source code operation is sent is sent to embedding Enter formula PLC, and the composition of protocol frame, transmission process, protocol frame acknowledgement frame and Embedded PLC running status can be looked into The debugging such as see, edit.The debugging protocol frame refers to the protocol frame for being used to debug sent in debugging process.
In a kind of implementation of the corresponding relation, the data storage of the pictorial symbolization Embedded PLC in Fig. 2 Memory cell in, the data storage of the recognizable variable in the default memory block of exploitation main frame, the corresponding relation Conversion realizes Embedded PLC memory block and replaces with the memory cell of exploitation main frame and mutually mapping.Specifically, Embedded PLC X areas, Y areas, the D areas of memory block mutually map with developing Xm areas, Ym areas and the Dm areas of main frame respectively.The mutually mapping, refers to The data of renewal are sent when the X areas of Embedded PLC memory block, Y areas or D areas data variation to exploitation main frame;Or exploitation main frame The data of renewal are sent when middle Xm areas, Ym areas or Dm areas data variation to Embedded PLC.
In the corresponding relation, the mapping in D areas and Dm areas further comprises, the Dm areas include reading data map section RBm maps with the mapping of data map section WBm, RBm and RB data, WBm is write with WB data;Develop the recognizable debugging source of main frame operation During code, the protocol frame of transmission is written to WBm, and WBm new data is sent to WB by Ethernet;Embedded PLC detects WB numbers According to changing, new data (debugging protocol frame) is sent to access device.
The process that the data updated in WBm are sent to the WB by Ethernet specifically includes:It is described exploitation main frame according to The data updated in WBm are encapsulated and packed by Ethernet host-host protocol, will be encapsulated packed data and are transmitted by Ethernet to institute Embedded PLC is stated, Embedded PLC obtains the data updated in WBm from the packed data of encapsulation and is stored in the WB.
The present embodiment from the Communication Protocol Model by obtaining N number of first kind submodel;It can know described in acquisition Source code is not debugged, and the recognizable debugging source code is N number of first kind that the pictorial symbolization is replaced by default recognizable variable Submodel, conversion of the graphic language program to C programmer is realized, unrecognizable Communication Protocol Model, which is converted to, to be known Source code is not debugged.
Fig. 7 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine method flow diagram.On the basis of any embodiment shown in Fig. 1~Fig. 6, the embodiment shown in Fig. 7 before the S120, Also include port initialization model setting up procedure:
S111, port configuration information is obtained, set port initialization model to be set according to the port configuration information Port initialization model afterwards, wherein, the port configuration information includes port and reads buffer address 1 and port write buffer address 1, It is the address that the Embedded PLC presets reading buffer that buffer address 1 is read in the port, and the port write buffer address 1 is institute State the address that Embedded PLC presets writing buffer.
S112, the port initialization model after the setting is sent to the Embedded PLC.
The port configuration information also includes the description of the ports such as traffic rate, data bit, stop position.The Embedded PLC The initial configuration of COM1 is carried out by the port initialization model after the setting.The port initialization model is specially One program code for configuring COM1, the method that port initialization model is set according to the port configuration information It is specifically as follows in the port configuration information write-in hardware register for configuring COM1.
The present embodiment sets port initialization model to obtain by obtaining port configuration information, according to the port configuration information Port initialization model after to setting, wherein, the port configuration information includes port and reads buffer address 1 and port Write post The address that buffer address 1 is the default reading buffer of the Embedded PLC, the port write buffer address are read in address 1, the port 1 is the address that the Embedded PLC presets writing buffer;The port initialization after the setting is sent to the Embedded PLC Model.The read/write address of the COM1 of the Embedded PLC is determined, with the port initialization model realization after setting pair The COM1 initial configuration of Embedded PLC.
Fig. 8 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine method flow diagram.The executive agent of method shown in Fig. 8 can be Embedded PLC.Embodiment as shown in Figure 8 includes:
S810, receives the test frame that exploitation main frame is sent, and the test frame is the protocol frame for including test instruction.
The frame format information of the test frame is referring to table 1.The D areas of Embedded PLC are a default read-write buffering area, including Reading buffer (Read Buffer, RB) and writing buffer (Write Buffer, WB).Wherein, the communication of the Embedded PLC Port during port initialization, by port reading buffer address 1 be configured to the D areas reading buffer (Read Buffer, RB address);Port write buffer address 1 is configured to the address of the writing buffer (Write Buffer, WB) in the D areas.By This, the data that the COM1 receives from access device are directly stored in the RB in D areas address, and the WB in the D areas The data of renewal also will by the COM1 write corresponding to access device.
The exploitation main frame includes memory block, is preset with the memory block and writes data buffer zone and reading data buffering Area.Exploitation main frame is inserted in write data buffering area after obtaining the test frame, and exploitation main frame is issued to described by network Embedded PLC, Embedded PLC receives the test frame from exploitation main frame, and writes in WB.
S820, the test frame is sent to the access device.
In the Embedded PLC, COM1 sends the test frame in the WB;Included in the test frame The access device address, the access device equal with the end device address can be handled the test frame.If The frame format information of the test frame is all correct, then the access device correctly can parse and obtain the survey in the test frame The information such as examination instruction.
S830, the test result that the access device is sent is received, and the test result is sent to the exploitation and led Machine, the test result are the result that the access device feeds back according to the test frame.
Specifically, whether access device is correct according to the frame format of test frame, returns to corresponding return code, the class of return code Type is referring to table 2.When the return code included in the test result is 00H, the test result is correct test result, other Return code is all the test result of mistake.
The test result, which is sent to a kind of implementation for developing main frame, to be:The very first time (such as In 10s), every the second time (such as 0.5s), whether the RB inquiries to the Embedded PLC once have data more to exploitation main frame Newly.
If very first time built-in type PLC RB there are the data of renewal, the read data buffer of exploitation main frame is got In RBm.
If very first time built-in type PLC RB determines the frame of the test frame without the data of renewal, exploitation main frame Format information mistake.
Wherein, it is described to check the one kind for once whether thering are data to update to the RB of the Embedded PLC every the second time Implementation can be:Every second time, exploitation main frame sends a read command, the read command bag to Embedded PLC Include the RB of Embedded PLC address and read data length.The Embedded PLC responds the read command, by RB Data in read range are sent to the exploitation main frame;Exploitation main frame stores data into RBm and data is checked and entered One step is tried.
It is described to check another realization for once whether thering are data to update to the RB of the Embedded PLC every the second time Mode can be:Every second time, exploitation main frame sends a read command to Embedded PLC, and the read command includes institute State the RB of Embedded PLC address.The Embedded PLC responds in the read command retrieval RB whether have new data, if having new Data are then sent to the exploitation main frame and empty the storage in RB.
If the frame format information of the test frame is all correct, the access device obtains correct according to the test frame Test result, and the correct test result is fed back into the Embedded PLC.The COM1 of the Embedded PLC is connected to During the correct test result, buffer address 1 is read according to port and reads the correctly test result to the RB in the D areas In.The exploitation host supervision have updated data into the RB and then obtain the new data, and exploitation main frame further can be true Determine whether new data is correct test result.
The test frame that the present embodiment is sent by receiving exploitation main frame;The test frame is sent to the access device, is connect The test result that the access device is sent is received, and the test result is sent to the exploitation main frame, the test result The result fed back for the access device according to the test frame, realize the access device communication protocol frame to Embedded PLC The long-range determination of format information, user can be tested multiple access devices progress frame of each Embedded PLC on exploitation main frame Card, frame format can be modified adjustment according to the test result of feedback, improve the efficiency of determination frame format information.
Fig. 9 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine method flow diagram.On the basis of Fig. 8, the embodiment shown in Fig. 9 after the S830, in addition to:
S841, the executable code that the exploitation main frame is sent is received and loads, wherein, the executable code is exploitation Main frame compiles the code obtained to Communication Protocol Model, and the Communication Protocol Model is embedded with N number of first kind submodel, and described the A kind of submodel is embedded with pictorial symbolization and the protocol frame according to correct frame format information editor, and the N is more than or equal to 1 Integer
The executable code that the present embodiment is sent by receiving and loading the exploitation main frame, is realized to Embedded PLC Access device communication protocol remotely construct, improve communication protocol construction efficiency.
Figure 10 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine method flow diagram.On the basis of any embodiment shown in Fig. 8 or Fig. 9, the embodiment shown in Figure 10 after the S830, Also include debugging process:
S842, the debugging protocol frame that the exploitation main frame is sent is received, and the debugging protocol frame is sent to described and connect Enter equipment, wherein, the access device is according to the debugging protocol frame feedback response message.
Specifically, the Communication Protocol Model is embedded with N number of first kind submodel, and the first kind submodel is embedded with figure Shape marks and the protocol frame according to correct frame format information editor;Exploitation main frame obtains described N number of from Communication Protocol Model First kind submodel;The recognizable debugging source code is obtained, the recognizable debugging source code is by default recognizable variable generation For N number of first kind submodel of the pictorial symbolization;The debugging protocol frame is sent in recognizable source code debugging process.Open Main frame is sent out in debugging process, the protocol frame embedded in the Communication Protocol Model is sent to Embedded PLC.
Wherein, memory block includes D areas in Embedded PLC, and Dm area data of the D areas also with the exploitation main frame map.It is described Dm areas include reading data map section RBm and write data map section WBm, D areas including reading data map section RBm and writing data map section WBm, RBm and RB data map, and WBm maps with WB data.
Wherein, the WBm and WB realizes that the mode of data mapping includes:Main frame is developed when updating WBm data, to insertion Formula PLC sends new data to update WB data.
The process that the data updated in WBm are sent to the WB by Ethernet specifically includes:It is described exploitation main frame according to The data updated in WBm are encapsulated and packed by Ethernet host-host protocol, will be encapsulated packed data and are transmitted by Ethernet to institute Embedded PLC is stated, Embedded PLC obtains the data updated in WBm from the packed data of encapsulation and is stored in the WB.In WB The data of deposit are sent to access device by the COM1 of Embedded PLC.In debugging process, updated in the WBm The data being stored in data and WB are exactly the debugging protocol frame.
S843, the response message is received, and the response message is sent to the exploitation main frame.
The data that access device is sent to Embedded PLC are write in the RB by COM1, and the data of RB renewals pass through Ethernet writes the RBm.In debugging process, the data of RBm renewal are exactly access device according to the debugging agreement The response message of frame feedback.The present embodiment passes through S843 described in the RBm and the RB data Mapping implementation.Developing main frame can be with By the debug command in software development environment, the transmission process of control debugging protocol frame and the receive process of response message, So as to realize the debugging to Communication Protocol Model.
Debugging process can be performed after S830 or find that Embedded PLC can not after the S841 Performed described in normal operation during Communication Protocol Model, the invention is not restricted to this.
The debugging protocol frame that Embedded PLC is sent by receiving the exploitation main frame in the present embodiment, and by the debugging Protocol frame is sent to the access device, wherein, the access device is according to the debugging protocol frame feedback response message;Receive The response message, and the response message is sent to the exploitation main frame.Realize the tune of exploitation host computer side debugging process Try protocol frame to send, receive and handle, and then realize in debugging of the exploitation main frame to recognizable debugging source code.
Figure 11 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine method flow diagram.On the basis of any illustrated embodiments of Fig. 8~Figure 10, embodiment shown in Figure 11 the S810 it Before, in addition to:
S800, receive it is described exploitation main frame send setting after port initialization model, and according to the setting after Port initialization model is to port initial configuration;
Wherein, the port allocation models after the setting is the port allocation models after write-in port configuration information, described Port configuration information includes port and reads buffer address and port write buffer address, and it is described embedded that buffer address is read in the port PLC presets the address of reading buffer, and the port write buffer address is the address that the Embedded PLC presets writing buffer.
The port configuration information also includes the description of the ports such as traffic rate, data bit, stop position.The Embedded PLC The initial configuration of COM1 is carried out by the port initialization model.The port initialization model is specially one for matching somebody with somebody Put the program code of COM1.
The port initialization model that the present embodiment is sent by receiving the exploitation main frame, and according to the port initialization Program, there is provided the read/write address of the COM1 of the Embedded PLC, is realized to embedded to port initial configuration PLC COM1 initial configuration.
Figure 12 is a kind of long-range determination of the access device communication protocol frame format information of Embedded PLC provided by the invention Device.Device as described in Figure 12 includes:
First acquisition module 11, for obtaining test frame;
First sending module 12, for sending the test frame to Embedded PLC, wherein, the test frame is by described embedding Enter formula PLC and be sent to access device, the access device is according to the test frame feedback test result;
First receiving module 13, within the very first time, it is determined whether get correct institute from the Embedded PLC State test result, wherein, the initial time of the very first time for complete to the Embedded PLC send the test frame when Carve;
Second acquisition module 14, if for getting correct test result from the Embedded PLC, according to the survey Examination frame determines correct frame format information.
The device of embodiment illustrated in fig. 12, which accordingly can be used for performing, develops what main frame performed in embodiment of the method shown in Fig. 1 Step, its implementing principle and technical effect is similar, and here is omitted.
Figure 13 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine device.On the basis of embodiment illustrated in fig. 12, also include as shown for example in fig.13:
Miscue module 15, if for not getting correct test result from the Embedded PLC, generation is wrong Prompt message by mistake.
The device of embodiment illustrated in fig. 13 accordingly can be used for performing in embodiment of the method shown in Fig. 1 or Fig. 3 developing main frame The step of execution, its implementing principle and technical effect is similar, and here is omitted.
Figure 14 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine device.On the basis of Figure 12 or embodiment illustrated in fig. 13, embodiment as shown in figure 14 also includes:
3rd acquisition module 16, for it is described correct frame format information is determined according to the test frame after, obtain The Communication Protocol Model of outside input, the Communication Protocol Model are embedded with N number of first kind submodel, the first kind submodel Pictorial symbolization and the protocol frame according to the correctly frame format information editor are embedded with, the N is whole more than or equal to 1 Number.
Collector 18, executable code is obtained for compiling the Communication Protocol Model.
First sending module 12, it is additionally operable to by network send the executable code to the Embedded PLC.
The device of embodiment illustrated in fig. 14 accordingly can be used for performing developing in embodiment of the method shown in Fig. 1 or Fig. 3 or Fig. 4 The step of main frame performs, its implementing principle and technical effect is similar, and here is omitted.
Figure 15 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine device.On the basis of embodiment illustrated in fig. 14, embodiment as shown in figure 15 also includes:
Debugging module 17, for it is described acquisition outside input Communication Protocol Model after, according to the communication protocol Model obtains recognizable debugging source code;Debugging is carried out to the recognizable debugging source code and obtains debugging protocol frame.
First sending module 12, it is additionally operable to send the debugging protocol frame to the Embedded PLC.
First receiving module 13, the response message for being additionally operable to receive and sent according to the Embedded PLC are adjusted Test result.
In the above-described embodiments, the debugging module 17 is further used for:The N is obtained from the Communication Protocol Model Individual first kind submodel;The recognizable debugging source code is obtained, the recognizable debugging source code is by default recognizable variable Instead of N number of first kind submodel of the pictorial symbolization.
The debugging module 17 extracts the first kind submodel from the Communication Protocol Model;According to default right It should be related to, pictorial symbolization described in the first kind submodel is replaced with into recognizable variable;Pictorial symbolization is obtained to have been replaced with The first kind submodel of recognizable variable is the recognizable debugging source code.
In the above-described embodiments, first acquisition module 11 is additionally operable to:Described the test is sent to Embedded PLC Before frame, port configuration information is obtained, the end after being set according to port configuration information setting port initialization model Mouth initialization model, wherein, the port configuration information includes port and reads buffer address and port write buffer address, the port It is the address that the Embedded PLC presets reading buffer to read buffer address, and the port write buffer address is the Embedded PLC The address of default writing buffer;
First sending module 12 is additionally operable to:The port initialization mould after the setting is sent to the Embedded PLC Type.
The device of embodiment illustrated in fig. 15 accordingly can be used for performing method implementation shown in Fig. 1, Fig. 3, Fig. 4, Fig. 6 or Fig. 7 The step of main frame performs is developed in example, its implementing principle and technical effect is similar, and here is omitted.
Figure 16 is a kind of long-range determination of the access device communication protocol frame format information of Embedded PLC provided by the invention Device.In embodiment as shown in figure 16, including:
Second receiving module 21, the test frame sent for receiving exploitation main frame.
Sending module 22, for sending the test frame to the access device, and test result is sent to described and opened Main frame is sent out, the test result is the result that the access device feeds back according to the test frame.
3rd receiving module 23, the test result sent for receiving the access device.
The device of embodiment illustrated in fig. 16 accordingly can be used for performing Embedded PLC execution in embodiment of the method shown in Fig. 8 The step of, its implementing principle and technical effect is similar, and here is omitted.
Figure 17 is the long-range true of the access device communication protocol frame format information of another Embedded PLC provided by the invention Determine device.On the basis of embodiment illustrated in fig. 16, embodiment as shown in figure 17 also includes program load-on module 24;
Second receiving module 21, it is additionally operable to send the test result to the exploitation main frame described, The executable code that the exploitation main frame is sent, wherein, the executable code compiles for exploitation main frame to Communication Protocol Model The code of acquisition, the Communication Protocol Model are embedded with N number of first kind submodel, and the first kind submodel is embedded with figure mark Note and the protocol frame according to correct frame format information editor, the N are the integer more than or equal to 1;
Described program load-on module 24, for loading the executable code.
In the above-described embodiments, second receiving module 21, it is additionally operable to send the test result to institute described After stating exploitation main frame, the debugging protocol frame that the exploitation main frame is sent is received;
The sending module 22, it is additionally operable to send the debugging protocol frame to the access device, and by response message Send to the exploitation main frame, wherein, the access device feeds back the response message according to the debugging protocol frame;
3rd receiving module 23, it is additionally operable to receive the response message.
In the above-described embodiments, second receiving module 21, it is additionally operable in the test for receiving exploitation main frame and sending Before frame, the port initialization model after the setting that the exploitation main frame is sent is received;
Described program load-on module 24, it is additionally operable to match somebody with somebody port initialization according to the port initialization model after the setting Put;Wherein, the port allocation models after the setting is the port allocation models after write-in port configuration information, and the port is matched somebody with somebody Confidence breath includes port and reads buffer address and port write buffer address, and it is that the Embedded PLC is pre- that buffer address is read in the port If the address of reading buffer, the port write buffer address is the address that the Embedded PLC presets writing buffer.
The device of embodiment illustrated in fig. 17 accordingly can be used for performing insertion in any shown embodiments of the method for Fig. 8~Figure 11 The step of formula PLC is performed, its implementing principle and technical effect is similar, and here is omitted.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to The technical scheme described in foregoing embodiments can so be modified, either which part or all technical characteristic are entered Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology The scope of scheme.

Claims (10)

1. a kind of long-range determination method of the access device communication protocol frame format information of Embedded PLC, applied to exploitation main frame, It is characterised in that it includes:
Obtain test frame;
The test frame is sent to embedded programmable controller PLC, wherein, the test frame is sent by the Embedded PLC To access device, the access device is according to the test frame feedback test result;
Within the very first time, it is determined whether the correct test result is got from the Embedded PLC, wherein, described the At the time of the initial time of one time is completes to the Embedded PLC transmission test frame;
If getting correct test result from the Embedded PLC, determine that correct frame format is believed according to the test frame Breath.
2. according to the method for claim 1, it is characterised in that also include:
If not getting correct test result from the Embedded PLC, generation error prompt message, the acquisition is performed Test frame.
3. according to the method for claim 1, it is characterised in that correct frame format is determined according to the test frame described After information, in addition to:
The Communication Protocol Model of outside input is obtained, the Communication Protocol Model is embedded with N number of first kind submodel, and described first Class submodel is embedded with pictorial symbolization and the protocol frame according to the correctly frame format information editor, and the N is to be more than or wait In 1 integer;
Compile the Communication Protocol Model and obtain executable code, and the executable code is sent to the Embedded PLC.
4. according to the method for claim 3, it is characterised in that it is described acquisition outside input Communication Protocol Model it Afterwards, in addition to:
Recognizable debugging source code is obtained according to the Communication Protocol Model;
Debugging is carried out to the recognizable debugging source code and obtains debugging protocol frame, and the debugging protocol frame is sent to described embedding Enter formula PLC;
The response message for receiving and being sent according to the Embedded PLC obtains debugging result.
5. according to the method for claim 4, it is characterised in that described that recognizable adjust is obtained according to the Communication Protocol Model Source code is tried, including:
N number of first kind submodel is obtained from the Communication Protocol Model;
The recognizable debugging source code is obtained, the recognizable debugging source code is to replace the figure by default recognizable variable N number of first kind submodel of mark.
6. according to the method for claim 1, it is characterised in that before the test frame to Embedded PLC transmission, Also include:
Port configuration information is obtained, at the beginning of the port after being set according to port configuration information setting port initialization model Beginningization model, wherein, the port configuration information includes port and reads buffer address and port write buffer address, and the port is read slow The address that address presets reading buffer for the Embedded PLC is rushed, the port write buffer address is that the Embedded PLC is preset The address of writing buffer;
The port initialization model after the setting is sent to the Embedded PLC.
7. a kind of long-range determination method of the access device communication protocol frame format information of Embedded PLC, applied to it is embedded can Programmable controller PLC, it is characterised in that including:
Receive the test frame that exploitation main frame is sent;
The test frame is sent to the access device;
The test result that the access device is sent is received, and the test result is sent to the exploitation main frame, the survey Test result is the result that the access device feeds back according to the test frame.
8. according to the method for claim 7, it is characterised in that led in described send the test result to the exploitation After machine, in addition to:
The executable code that the exploitation main frame is sent is received and loads, wherein, the executable code is exploitation main frame to logical Believe the code that protocol model compiling obtains, the Communication Protocol Model is embedded with N number of first kind submodel, the first kind submodule Type is embedded with pictorial symbolization and the protocol frame according to correct frame format information editor, and the N is the integer more than or equal to 1.
9. according to the method for claim 7, it is characterised in that led in described send the test result to the exploitation After machine, in addition to:
The debugging protocol frame that the exploitation main frame is sent is received, and the debugging protocol frame is sent to the access device, its In, the access device is according to the debugging protocol frame feedback response message;
The response message is received, and the response message is sent to the exploitation main frame.
10. according to the method for claim 7, it is characterised in that before the test frame for receiving exploitation main frame and sending, Also include:
The port initialization model after the setting that the exploitation main frame is sent is received, and according to the port initialization after the setting Model is to port initial configuration;
Wherein, the port allocation models after the setting for write-in port configuration information after port allocation models, the port Configuration information includes port and reads buffer address and port write buffer address, and it is the Embedded PLC that buffer address is read in the port The address of default reading buffer, the port write buffer address are the address that the Embedded PLC presets writing buffer.
CN201710639474.4A 2017-07-31 2017-07-31 The access device communication protocol frame format information of Embedded PLC remotely determines method Active CN107479531B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710639474.4A CN107479531B (en) 2017-07-31 2017-07-31 The access device communication protocol frame format information of Embedded PLC remotely determines method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710639474.4A CN107479531B (en) 2017-07-31 2017-07-31 The access device communication protocol frame format information of Embedded PLC remotely determines method

Publications (2)

Publication Number Publication Date
CN107479531A true CN107479531A (en) 2017-12-15
CN107479531B CN107479531B (en) 2019-08-20

Family

ID=60598539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710639474.4A Active CN107479531B (en) 2017-07-31 2017-07-31 The access device communication protocol frame format information of Embedded PLC remotely determines method

Country Status (1)

Country Link
CN (1) CN107479531B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737389A (en) * 2018-05-02 2018-11-02 杭州句力科技有限公司 A kind of amending method and device of elevator outer calling display board communication protocol
CN110205479A (en) * 2019-06-13 2019-09-06 浦项(张家港)不锈钢股份有限公司 A kind of stainless steel annealing pickling line PLC network communication diagnosis and processing method
CN111756858A (en) * 2020-07-03 2020-10-09 潍柴动力股份有限公司 Remote development processing system, method and device of embedded equipment
CN112565026A (en) * 2021-02-20 2021-03-26 支付宝(杭州)信息技术有限公司 Test frame generation method, device and equipment
CN114556243A (en) * 2019-09-20 2022-05-27 诺信公司 Flexible mapping with application data identifiers for PLC communications

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404596A (en) * 2008-11-17 2009-04-08 福建星网锐捷网络有限公司 Multi-topological environmental test method, system and equipment
CN101542863A (en) * 2006-09-01 2009-09-23 功率监视器公司 Method and apparatus for a power line communications test system
CN105763392A (en) * 2016-02-19 2016-07-13 中国人民解放军理工大学 Industrial control protocol fuzzing test method based on protocol state
CN205490608U (en) * 2016-03-01 2016-08-17 上海铁路通信有限公司 Automatic test equipment of railway signal controlgear
CN106680578A (en) * 2017-02-22 2017-05-17 中国电子信息产业集团有限公司第六研究所 High-precision PLC analog quantity output module tool testing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101542863A (en) * 2006-09-01 2009-09-23 功率监视器公司 Method and apparatus for a power line communications test system
CN101404596A (en) * 2008-11-17 2009-04-08 福建星网锐捷网络有限公司 Multi-topological environmental test method, system and equipment
CN105763392A (en) * 2016-02-19 2016-07-13 中国人民解放军理工大学 Industrial control protocol fuzzing test method based on protocol state
CN205490608U (en) * 2016-03-01 2016-08-17 上海铁路通信有限公司 Automatic test equipment of railway signal controlgear
CN106680578A (en) * 2017-02-22 2017-05-17 中国电子信息产业集团有限公司第六研究所 High-precision PLC analog quantity output module tool testing method and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737389A (en) * 2018-05-02 2018-11-02 杭州句力科技有限公司 A kind of amending method and device of elevator outer calling display board communication protocol
CN110205479A (en) * 2019-06-13 2019-09-06 浦项(张家港)不锈钢股份有限公司 A kind of stainless steel annealing pickling line PLC network communication diagnosis and processing method
CN114556243A (en) * 2019-09-20 2022-05-27 诺信公司 Flexible mapping with application data identifiers for PLC communications
CN114556243B (en) * 2019-09-20 2024-06-04 诺信公司 Flexible mapping with application data identifiers for PLC communications
CN111756858A (en) * 2020-07-03 2020-10-09 潍柴动力股份有限公司 Remote development processing system, method and device of embedded equipment
CN112565026A (en) * 2021-02-20 2021-03-26 支付宝(杭州)信息技术有限公司 Test frame generation method, device and equipment

Also Published As

Publication number Publication date
CN107479531B (en) 2019-08-20

Similar Documents

Publication Publication Date Title
CN107479531A (en) The access device communication protocol frame format information of Embedded PLC remotely determines method
CN104067186B (en) Assisting system, record have record medium and the method for generation executable program of support program
CN100386743C (en) Debugging method of embedded system and its system
CN110134415A (en) A kind of controller and its method for upgrading software and device
CN103178996B (en) Distributed packet-switching chip model verification system and method
CN100565472C (en) A kind of adjustment method that is applicable to multiprocessor karyonide system chip
CN107562937A (en) Method and apparatus for managing process data
CN103942080B (en) Electronic device information transmission method
CN108139745A (en) The automatic loop test of process control loop
CN106707848A (en) Control program organization structure of control system and download method
CN103136107A (en) Variable debugging method of embedded program dynamic storage allocation
CN102736938A (en) Burning method of FPGA (Field Programmable Gate Array) configuration program
CN108351859A (en) Direct memory access (DMA) for endpoint device
CN101706860B (en) Card reader and intelligent card
CN106444610A (en) A PLC remote code updating system and method
CN103065166A (en) Open type frequency identification device (RFID) experiment platform and tag
CN108469961A (en) One kind is based on micromation embedded platform remote update system and method
CN105791032A (en) Method and device for testing transmission protocol between intelligent household appliance and mobile terminal
CN106598885B (en) A kind of working method of configurable multiport general data bridge system
CN207164210U (en) A kind of test device of smart card
CN106651650A (en) Joint debugging measurement and control device and electric power Internet of things joint debugging measurement and control system applying same
CN102193860B (en) Microcontroller online debugging circuit and method as well as microcontroller
CN113821440A (en) VxWorks application software testing method, system and simulator
CN106331183B (en) Internet of things implementation method, Internet of things control equipment and Internet of things system
CN101197959A (en) Terminal control method, system and equipment

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
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20171215

Assignee: TEDERIC Machinery Co.,Ltd.

Assignor: Hangzhou Electronic Science and Technology Univ

Contract record no.: X2019330000055

Denomination of invention: Method for remotely determining frame format information of access device communication protocol of embedded PLC

Granted publication date: 20190820

License type: Common License

Record date: 20191226