CN107479531B - 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
CN107479531B
CN107479531B CN201710639474.4A CN201710639474A CN107479531B CN 107479531 B CN107479531 B CN 107479531B CN 201710639474 A CN201710639474 A CN 201710639474A CN 107479531 B CN107479531 B CN 107479531B
Authority
CN
China
Prior art keywords
frame
embedded
port
sent
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.)
Active
Application number
CN201710639474.4A
Other languages
Chinese (zh)
Other versions
CN107479531A (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 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

Abstract

The access device communication protocol frame format information that the present invention provides a kind of Embedded PLC remotely determines method.The described method includes: obtaining 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 first time, it is determined whether get the correct test result from the Embedded PLC, wherein the initial time of the first time is at the time of completing to send the test frame to the Embedded PLC;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 of 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 industrial control technology more particularly to a kind of access device communication protocol frame formats of Embedded PLC The long-range determining method of information.
Background technique
In order to improve the development efficiency of program, programmable controller (Programmable Logic is sufficiently combined Controller, PLC) and nonshared control unit advantage, embedded PLC develops rapidly.Embedded PLC is to dedicated Controller uses the patterned development tool 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.Has dedicated control The customized feature of device processed, but also with the patterned development tool 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, temperature and humidity.It needs 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, it 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 operations such as writes under personnel.
However, a large amount of monitoring systems continue to bring out and dilatation construction, embedding with the fast development of Modern wireless communication cause Enter formula PLC infield Relative distribution extensively and mutual distance farther out, the communication protocols of existing Embedded PLC and access device Make inefficiency is discussed, so that the access of new equipment is difficult.
Summary of the invention
In a first aspect, the present invention provides a kind of the long-range true of the access device communication protocol frame format information of Embedded PLC Determine method, be applied to exploitation host, comprising:
Obtain test frame;
The test frame is sent to embedded programmable controller PLC, wherein the test frame is by the Embedded PLC It is sent to access device, the access device is according to the test frame feedback test result;
Within first time, it is determined whether get the correct test result from the Embedded PLC, wherein institute At the time of the initial time of first time is stated to complete to send the test frame to the Embedded PLC;
If getting correct test result from the Embedded PLC, correct frame lattice are determined according to the test frame Formula information.
Optionally, further includes:
If not getting correct test result from the Embedded PLC, generation error prompt information, described in execution Obtain test frame.
Optionally, after determining correct frame format information according to the test frame described, further includes:
Externally input Communication Protocol Model 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 correct frame format information editor, the N be greater than Or the integer equal to 1;
It compiles the Communication Protocol Model and obtains executable code, and the executable code is sent to described embedded PLC。
Optionally, after the externally input Communication Protocol Model of acquisition, further includes:
It is obtained according to the Communication Protocol Model and can recognize debugging source code;
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;
It receives and debugging result is obtained according to the response message that the Embedded PLC is sent.
Optionally, described obtained according to the Communication Protocol Model can recognize debugging source code, comprising:
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 preset recognizable variable replacement N number of first kind submodel of pictorial symbolization.
Optionally, before the test frame to Embedded PLC transmission, further includes:
Port configuration information is obtained, the end after port initialization model is arranged is arranged according to the port configuration information Mouth initialization model, wherein the port configuration information includes that buffer address and port write buffer address, the port are read in port Reading buffer address is the address that the Embedded PLC presets reading buffer, 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 provides a kind of the long-range of the access device communication protocol frame format information of Embedded PLC It determines method, is applied to Embedded PLC, comprising:
Receive the test frame that exploitation host 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 host, institute Stating test result is the result that the access device is fed back according to the test frame.
Optionally, the test result is sent to after the exploitation host described, further includes:
Receive and load the executable code that the exploitation host is sent, wherein the executable code is exploitation host To the code that Communication Protocol Model compiling obtains, the Communication Protocol Model is 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.
Optionally, the test result is sent to after the exploitation host described, further includes:
The debugging protocol frame that the exploitation host is sent is received, and the debugging protocol frame is sent to the access and is set It is standby, wherein the access device feeds back response message according to the debugging protocol frame;
The response message is received, and the response message is sent to the exploitation host.
Optionally, before the test frame for receiving exploitation host transmission, further includes:
Port initialization model after receiving the setting that the exploitation host is sent, 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 being written after port configuration information, described Port configuration information includes that buffer address and port write buffer address are read in port, 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 It tries frame and access device is sent to by the Embedded PLC, the access device is according to the test frame feedback test result;? In one time, it is determined whether get the correct test result from the Embedded PLC, wherein the first time Initial time is at the time of completing to send the test frame to the Embedded PLC;If being got correctly from the Embedded PLC Test result, then correct frame format information is determined according to the test frame, realized logical to the access device of Embedded PLC Believe the long-range determination of protocol frame format information, user can be on exploitation host to multiple access devices of each Embedded PLC Frame verifying is carried out, can be modified to frame format adjustment according to the test result of feedback, improve determining frame format information Efficiency.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description simply to introduce one by one, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these 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 host 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.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present 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.Optionally, the executing subject of this method is exploitation host, which can be computer, server etc., Herein with no restrictions.
Embodiment as shown in Figure 1 includes:
S110 obtains test frame.
The test frame can be the externally input test frame of user, be also possible to according to the externally input frame lattice of user Formula information and generate test frame, can also be the test frame selected in existing resources bank according to the external input of user, this It invents without being limited thereto.The test frame can be the protocol frame comprising 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 user and can be determined with frame format information according to as defined in the service manual of access device '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 instruct for the test.
Using air-conditioning as a kind of embodiment of access device, the VER is the version number of agreement in the industry, 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, the field of CID1 It is fixed as 60H (code that 60H is " dispersion air-conditioning type ").CID2 is control identification code when making command frame;Believe in response It is return code RTN when breath.
Table 1
S120 sends the test frame to Embedded PLC, wherein the test frame is sent to by the Embedded PLC and is connect Enter equipment, the access device is according to the test frame feedback test result.
Specifically, S120 can be between exploitation host and Embedded PLC, access device, pass through the method for data-driven It is communicated, realizes the transmitting-receiving test of test frame, so that whether the frame format for verifying the test frame meets the logical of access device Believe protocol requirement.
Fig. 2 is a kind of example communications system developed between host and Embedded PLC.The system includes: exploitation host, embedding Enter formula PLC, access device.The exploitation host connects the Embedded PLC by Ethernet, and the Embedded PLC passes through logical Believe that port connects the access device.In the Embedded PLC include multiple memory blocks, such as shown in the area X, the area Y and the area D, Wherein, reading buffer (Read Buffer, RB) and writing buffer (Write Buffer, WB) are included at least in the area D.It is embedding The communication port for entering formula reads buffer address 1 and port write buffer address 1 configured with port.Access device reads buffering configured with port Address 2 and port write buffer address 2.
The communication port of the Embedded PLC configures port reading buffer address 1 to described during port initialization The address of the RB in the area D;Configure port write buffer address 1 to the address of the WB in the area D.The communication port is from connecing as a result, Enter the address that the data that equipment receives are directly stored in the RB in the area D, and the data that the WB in the area D updates also will be described Corresponding access device is written in communication port.In a kind of realization side for sending the test frame to Embedded PLC as shown in Figure 2 In formula, exploitation host is communicated by Ethernet with Embedded PLC, and is developed host and read or set by the connection of the Ethernet Set the data in the area D of Embedded PLC.
Optionally, the exploitation host includes memory block, is preset in the memory block and writes data buffer zone and reading data Buffer area.The exploitation host is inserted in write data buffer area after obtaining the test frame, in addition, exploitation host by with Too test frame is issued in the WB of the Embedded PLC by net.In the Embedded PLC, communication port is according to the test Test frame in the WB is sent to access device by the access device address descriptor for including in frame.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 may include gate inhibition, air-conditioning, intelligent power supply module, oil machine, temperature and humidity sensing device, elevator system System or industrial automation machine.
S130, within first time, it is determined whether the correct test result is got from the Embedded PLC, In, the initial time of the first time is at the time of completing to send the test frame to the Embedded PLC.
The rate and situation that the first time is communicated with access device according to specific network condition, Embedded PLC come It determines, such as the first time can be set as 10s.
S130 is specifically contained determines whether to get test result from the Embedded PLC, and determines and get Whether test result is correct.
In each route correct wiring, port configuration is correct, working specification in the case where, a kind of implementation of S130 can be with Be: in (such as 10s) at the first time, the RB inquiry every the second time (such as 0.5s) Xiang Suoshu Embedded PLC is once It is no to have data update.If the RB of first time built-in type PLC has the data of update, the reading data for getting exploitation host are slow Rush in area, exploitation host further determines that whether the test result got correct, S141 is entered if correct, if mistake after It is continuous once whether to have data update to the RB of Embedded PLC inquiry every the second time, until getting correct test As a result the frame format information mistake of the test frame or at the end of first time is determined.If determining institute at the end of first time The frame format information mistake of test frame is stated, then generation error prompt information, executes the acquisition test frame, and show this to user The frame format information of test frame is the prompt information of mistake.If the data that the RB of first time built-in type PLC does not update, Determine that the frame format information mistake of the test frame, generation error prompt information execute the acquisition test frame, and aobvious to user The frame format information for showing the test frame is the prompt information of mistake.
Wherein, described that the one kind for once whether having data to update checked to the RB of the Embedded PLC every the second time Implementation may is that every second time, develops host to Embedded PLC and sends a read command, the read command packet It includes the address of the RB of the Embedded PLC and reads data length.The Embedded PLC responds in the read command retrieval RB Whether it is stored with and meets the data for reading data length, is then sent to the exploitation host if it exists.
It is described that another realization for once whether having data to update checked to the RB of the Embedded PLC every the second time Mode may is that every second time, develops host to Embedded PLC and sends a read command, the read command includes institute State the address of the RB of Embedded PLC.The Embedded PLC responds in the read command retrieval RB whether be stored with data, if having Data are then sent to the exploitation host 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 communication port of the Embedded PLC is connected to When the correct test result, buffer address 1 is read according to port and reads the correct test result to the RB in the area D In.The exploitation host supervision has updated data into the RB and then obtains the data, and exploitation host determines the data updated 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, and whether can be has feedback information automatically according to Embedded PLC by exploitation host It determines, or whether is correctly determined automatically according to the information content of Embedded PLC feedback;It is also possible to by user according to insertion Whether whether formula PLC have feedback information to determine, or correctly determined according to the information content of Embedded PLC feedback.
The correct frame format information of determination can be frame format applied by exploitation host acquisition generation test frame The correct frame format information, exploitation host can be after the correct frame format information of determination is saved into memory, It can be exploitation host and correct frame format information shown or be sent to other terminals to user, the invention is not limited thereto.
Method provided in this embodiment is by obtaining test frame;The test frame is sent to Embedded PLC, wherein 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 first time, it is determined whether get the correct test result from the Embedded PLC, wherein the first time Initial time be complete to the Embedded PLC send the test frame at the time of;If being got just from the Embedded PLC True test result then determines correct frame format information according to the test frame, realizes the access device to Embedded PLC The long-range determination of communication protocol frame format information, user can set multiple accesses of each Embedded PLC on exploitation host It is standby to carry out frame verifying, it can be modified to frame format adjustment according to the test result of feedback, improve determining 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 shown in Fig. 1, embodiment shown in Fig. 3 further include:
S142, if not getting correct test result from the Embedded PLC, generation error prompt information is held The row S110.
It is described do not get correct test result and can be do not get return information, be also possible to 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 is tried as a result, test result includes the return code, a kind of embodiment of return code is referring to the table 2.Such as: institute When to state the return code for including in test result be 00H, the test result is correct test result, other return codes are all wrong Test result accidentally herein with no restrictions can also be by other marking codes.
After the test result for getting mistake, it can also show that the frame format information of the test frame is mistake to user Miscue information, and the return code is written in the miscue information, or write-in is determined according to the return code Error type information, the error type information may include " VER mistake ", " CHECKSUM mistake ", " CID2 is invalid " or " invalid data ".Wherein, described " invalid data " corresponding parameter setting carried out except " booting " in the power-offstate, or booting The parameter being arranged under state goes beyond the scope or data frame format mistake.
Table 2
Return code Indicate meaning
00H It is fed back when frame format information is correct
01H It is fed back when VER mistake
02H It is fed back when CHECKSUM mistake
04H It is fed back when CID2 is invalid
06H It is fed back when invalid data
Executing the S110 specifically can be, and user believes after with reference to the prompt information according to the type of error Breath has modified former frame format information, generates a new test frame with new frame format information.S110 is executed again until obtaining just True test result determines correct frame format information according to the corresponding test frame of correct test result.
If the present embodiment, which passes through from the Embedded PLC, does not get correct test result, generation error prompt Information executes the S110, realizes and obtains new test frame in frame authentication error, and user can know that frame format information has Mistake, the then frame format information for replacing script re-start verifying, and the present embodiment is by providing a user miscue information, into one Step improves the efficiency of 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, Fig. 4 the embodiment described is after S141, further includes:
S151, obtains externally input Communication Protocol Model, 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 correct frame format information editor, the N For the integer more than or equal to 1.
S152 compiles the Communication Protocol Model and obtains executable code, and the executable code is sent to described Embedded PLC.
After the corresponding test frame of correct test result has been 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 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 It is all trigger condition.After X1 closure or X2, X3 trigger condition meet after X1 trigger condition satisfaction, item then is triggered in X4 or X5 It detects whether X6 meets when part meets, if X6 also meets, sends data frame.
Exploitation host is compiled acquisition to the Communication Protocol Model of acquisition can for what is run in Embedded PLC Code is executed, and executable code is downloaded in the Embedded PLC, if during the Communication Protocol Model editor Implement by standard, the Embedded PLC can operate normally the Communication Protocol Model.
The present embodiment compiles Communication Protocol Model and obtains executable generation by obtaining externally input Communication Protocol Model Code sends executable code to Embedded PLC, complete Embedded PLC for access device Communication Protocol Model it is long-range Building.
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 the embodiment shown in fig. 4, embodiment shown in fig. 6 further includes debugging after the S151 Process:
S160 is obtained according to the Communication Protocol Model and be can recognize debugging source code.
S170 carries out debugging to the recognizable debugging source code and obtains debugging protocol frame, and the debugging protocol frame is sent out It send to the Embedded PLC.
S180 is received and is obtained debugging result according to the response message that the Embedded PLC is sent.
The exploitation host can be the end computer (personal computer, PC), and there are many ends PC in the prior art Software is developed, however these exploitation softwares can not identify pel and pictorial symbolization in the PLC program write by graphic language, nothing Method directly debugs the Communication Protocol Model for including graphic language.The present embodiment is according to the Communication Protocol Model The recognizable debugging source code is obtained, the recognizable debugging source code can be the agreement communicated with equipment shown a C language Code, wherein the pictorial symbolization that may include be recognized and converted by Embedded PLC tool preset in exploitation host it is corresponding It can recognize variable.Recognizable debugging source code is compiled and run using common C programmer exploitation software in exploitation host side. 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 preset recognizable variable State N number of first kind submodel of pictorial symbolization.
Specifically, can be exploitation host will be mentioned in the Communication Protocol Model by the first submodel of C language editor It takes out, such as " sending data frame " functional block in Fig. 5, is achieved in first kind submodel in the Communication Protocol Model Debugging prepare.
It include pictorial symbolization, such as contact X0, X1 etc. in the first kind submodel, since software is developed at the common end PC The C programmer exploitation software for including cannot identify pictorial symbolization, and the Embedded PLC tool for developing host computer side needs in advance by this A little pictorial symbolizations are converted to identifiable information.The identifiable information, which can be, meets can recognize for C language programming standard Variable.The preset corresponding relationship includes the one-to-one relationship between variable and pictorial symbolization.
Host is developed in debugging process, the debugging protocol frame that the recognizable debugging source code operation issues is sent to embedding Enter formula PLC, and can composition, transmission process, protocol frame acknowledgement frame and Embedded PLC operating status to protocol frame look into The debugging such as see, edit.The debugging protocol frame refers to the protocol frame for debugging issued in debugging process.
In a kind of implementation of the corresponding relationship, the data of the pictorial symbolization are stored in Embedded PLC in Fig. 2 Storage unit in, the data of the recognizable variable be stored in exploitation the preset memory block of host in, the corresponding relationship Conversion realizes the storage unit that Embedded PLC memory block replaces with exploitation host and mutually mapping.Specifically, Embedded PLC Xm area, Ym area and Dm area of the area X, the area Y, the area D of memory block respectively with exploitation host mutually map.The mutual mapping, refers to The data updated are sent to exploitation host when the area X of Embedded PLC memory block, the area Y or the area D data variation;Or exploitation host The data updated are sent when the middle area Xm, the area Ym or the area Dm data variation to Embedded PLC.
In the corresponding relationship, the mapping in the area D and the area Dm further comprises that the area Dm includes reading data map section RBm is mapped with the mapping of data map section WBm, RBm and RB data, WBm and WB data are write;It develops host and runs recognizable debugging source When code, the protocol frame of transmission is written to WBm, and the new data of WBm is sent to WB by Ethernet;Embedded PLC detects WB number According to changing, new data (i.e. debugging protocol frame) is sent to access device.
The data updated in WBm are specifically included by the process that Ethernet is sent to the WB: the exploitation host according to The data updated in WBm are encapsulated and are packaged by Ethernet transport protocol, will be encapsulated packed data by Ethernet and are transmitted to institute Embedded PLC is stated, Embedded PLC is stored in the WB from the data for obtaining in packed data and updating in WBm are encapsulated.
The present embodiment from the Communication Protocol Model by obtaining N number of first kind submodel;It can know described in acquisition Not Tiao Shi source code, it is described it is recognizable debugging source code be by preset recognizable variable replace the pictorial symbolization N number of first kind Submodel realizes the conversion of graphic language program to C programmer, and unrecognizable Communication Protocol Model is converted to and can be known It Tiao Shi not source code.
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 to FIG. 6, embodiment shown in Fig. 7 before the S120, Further include port initialization model setting up procedure:
S111 obtains port configuration information, and port initialization model is arranged according to the port configuration information and is arranged Port initialization model afterwards, wherein the port configuration information includes that buffer address 1 and port write buffer address 1 are read in port, 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, Xiang Suoshu Embedded PLC send the port initialization model after the setting.
The port configuration information further includes the description of the ports such as traffic rate, data bit, stop position.The Embedded PLC The initial configuration of communication port is carried out by the port initialization model after the setting.The port initialization model is specially One for configuring the program code of communication port, the method that port initialization model is arranged according to the port configuration information Being specifically as follows will be in the hardware register that be used to configure communication port described in port configuration information write-in.
The present embodiment is arranged port initialization model according to the port configuration information and obtains by obtaining port configuration information Port initialization model after to setting, wherein the port configuration information includes that buffer address 1 and port Write post are read in port Address 1, it is the address that the Embedded PLC presets reading buffer, the port write buffer address that buffer address 1 is read in the port 1 presets the address of writing buffer for the Embedded PLC;The port initialization after the setting is sent to the Embedded PLC Model.The read/write address of the communication port of the Embedded PLC is determined, with the port initialization model realization after setting pair The communication port 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 executing subject of method shown in Fig. 8 can be Embedded PLC.Embodiment as shown in Figure 8 includes:
S810, receives the test frame that exploitation host 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 area D of Embedded PLC is a preset read-write buffer 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 area D reading buffer (Read Buffer, RB address);Configure port write buffer address 1 to the address of the writing buffer (Write Buffer, WB) in the area D.By This, the data that the communication port is received from access device are directly stored in the address of the RB in the area D, and the WB in the area D Also corresponding access device will be written by the communication port in the data of update.
The exploitation host includes memory block, is preset in the memory block and writes data buffer zone and reading data buffering Area.It develops after host obtains the test frame and inserts in write data buffer area, exploitation host is issued to described by network Embedded PLC, Embedded PLC receives the test frame from exploitation host, and is written in WB.
S820 sends the test frame to the access device.
In the Embedded PLC, communication port sends the test frame in the WB;Include 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 receives the test result that the access device is sent, and the test result is sent to the exploitation and is led Machine, the test result are the result that the access device is fed 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 for including in the test result is 00H, the test result is correct test result, other Return code is all the test result of mistake.
By the test result be sent to it is described exploitation host a kind of implementation may is that at the first time (such as In 10s), whether exploitation host once has data more every the RB inquiry of the second time (such as 0.5s) Xiang Suoshu Embedded PLC Newly.
If the RB of first time built-in type PLC there are the data of update, the read data buffer of exploitation host is got In RBm.
If the data that the RB of first time built-in type PLC does not update develop the frame that host determines the test frame Format information mistake.
Wherein, described that the one kind for once whether having data to update checked to the RB of the Embedded PLC every the second time Implementation may is that every second time, develops host to Embedded PLC and sends a read command, the read command packet It includes the address of the RB of the Embedded PLC and reads data length.The Embedded PLC responds the read command, will be in RB Data in read range are sent to the exploitation host;Exploitation host store data into RBm and to data carry out check and into The examination of one step.
It is described that another realization for once whether having data to update checked to the RB of the Embedded PLC every the second time Mode may is that every second time, develops host to Embedded PLC and sends a read command, the read command includes institute State the address of the RB of Embedded PLC.The Embedded PLC responds in the read command retrieval RB whether have new data, if having new Data are then sent to the exploitation host 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 communication port of the Embedded PLC is connected to When the correct test result, buffer address 1 is read according to port and reads the correct test result to the RB in the area D In.The exploitation host supervision has updated data into the RB and then obtains the new data, and exploitation host may further be true Determine whether new data is correct test result.
The test frame that the present embodiment is sent by receiving exploitation host;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 host, the test result For the access device according to the test frame feed back as a result, realizing the access device communication protocol frame to Embedded PLC The long-range determination of format information, user can carry out frame to multiple access devices of each Embedded PLC on exploitation host and test Card can modify to frame format adjustment according to the test result of feedback, improve the efficiency of determining 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, embodiment shown in Fig. 9 is after the S830, further includes:
S841 receives and loads the executable code that the exploitation host is sent, wherein the executable code is exploitation The code that host obtains Communication Protocol Model compiling, the Communication Protocol Model are 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 host, realizes 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, embodiment shown in Fig. 10 after the S830, Further include debugging process:
S842 receives the debugging protocol frame that the exploitation host is sent, and the debugging protocol frame is sent to described connect Enter equipment, wherein the access device feeds back response message according to the debugging protocol frame.
Specifically, the Communication Protocol Model is embedded with N number of first kind submodel, and the first kind submodel is embedded with figure Shape label and the protocol frame according to correct frame format information editor;Exploitation host 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 preset recognizable variable generation For N number of first kind submodel of the pictorial symbolization;The debugging protocol frame is issued in recognizable source code debugging process.It opens Host is sent out in debugging process, the protocol frame embedded in the Communication Protocol Model is sent to Embedded PLC.
Wherein, memory block includes the area D in Embedded PLC, and Dm area data of the area D also with the exploitation host map.It is described The area Dm includes reading data map section RBm and writing the data map section area WBm, D to include reading data map section RBm and writing data map section The mapping of WBm, RBm and RB data, WBm and WB data map.
Wherein, the WBm and WB realizes that the mode of data mapping includes: exploitation host when updating WBm data, to insertion Formula PLC sends new data to update the data of WB.
The data updated in WBm are specifically included by the process that Ethernet is sent to the WB: the exploitation host according to The data updated in WBm are encapsulated and are packaged by Ethernet transport protocol, will be encapsulated packed data by Ethernet and are transmitted to institute Embedded PLC is stated, Embedded PLC is stored in the WB from the data for obtaining in packed data and updating in WBm are encapsulated.In WB The data of deposit are sent to access device by the communication port 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 receives the response message, and the response message is sent to the exploitation host.
The data that access device is sent to Embedded PLC are written in the RB by communication port, and the data that RB updates pass through The RBm is written in Ethernet.In debugging process, the data that the RBm updates 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 host 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 to be executed after S830, is also possible to find that Embedded PLC can not after the S841 Execution when operating normally the Communication Protocol Model, the invention is not limited thereto.
The debugging protocol frame that Embedded PLC is sent by receiving the exploitation host in the present embodiment, and by the debugging Protocol frame is sent to the access device, wherein the access device feeds back response message according to the debugging protocol frame;It receives The response message, and the response message is sent to the exploitation host.Realize the tune of exploitation host computer side debugging process It tries protocol frame to send, receive and handle, and then realizes the debugging in exploitation host 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 Fig. 8~Figure 10 any illustrated embodiment, embodiment shown in Figure 11 the S810 it Before, further includes:
S800, receive it is described exploitation host 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 being written after port configuration information, described Port configuration information includes that buffer address and port write buffer address are read in port, 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 further includes the description of the ports such as traffic rate, data bit, stop position.The Embedded PLC The initial configuration of communication port is carried out by the port initialization model.The port initialization model is specially one for matching Set the program code of communication port.
The port initialization model that the present embodiment is sent by receiving the exploitation host, and according to the port initialization Program realizes to embedded port initial configuration, the read/write address of the communication port provided with the Embedded PLC The communication port initial configuration of PLC.
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 obtains 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 first time, it is determined whether get correct institute from the Embedded PLC State test result, wherein the initial time of the first time be complete to the Embedded PLC send the test frame when It carves;
Second obtains 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 executing, develops what host executed in embodiment of the method shown in Fig. 1 Step, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
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, as shown for example in fig.13 further include:
Miscue module 15, if generating mistake for not getting correct test result from the Embedded PLC Accidentally prompt information.
The device of embodiment illustrated in fig. 13, which accordingly can be used for executing in embodiment of the method shown in Fig. 1 or Fig. 3, develops host The step of execution, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
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 further include:
Third obtain module 16, for it is described correct frame format information is determined according to the test frame after, obtain Externally input Communication Protocol Model, the Communication Protocol Model are embedded with N number of first kind submodel, the first kind submodel It is embedded with pictorial symbolization and the protocol frame according to the correct frame format information editor, the N is whole more than or equal to 1 Number.
Collector 18 obtains executable code for compiling the Communication Protocol Model.
First sending module 12 is also used to the executable code being sent to the Embedded PLC by network.
The device of embodiment illustrated in fig. 14 accordingly can be used for executing to be developed in embodiment of the method shown in Fig. 1 or Fig. 3 or Fig. 4 The step of host executes, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
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 further include:
Debugging module 17 is used for after the externally input Communication Protocol Model of acquisition, according to the communication protocol Model, which obtains, can recognize debugging source code;Debugging is carried out to the recognizable debugging source code and obtains debugging protocol frame.
First sending module 12 is also used to the debugging protocol frame being sent to the Embedded PLC.
First receiving module 13 is also used to receive and adjusted according to the response message that the Embedded PLC is sent Test result.
In the above-described embodiments, the debugging module 17 is further used for: the N is obtained from the Communication Protocol Model A first kind submodel;The recognizable debugging source code is obtained, the recognizable debugging source code is by preset 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 preset 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 that can recognize variable is the recognizable debugging source code.
In the above-described embodiments, the first acquisition module 11 is also used to: sending the test to Embedded PLC described Before frame, port configuration information is obtained, the end after port initialization model is arranged is arranged according to the port configuration information Mouth initialization model, wherein the port configuration information includes that buffer address and port write buffer address, the port are read in port Reading buffer address is the address that the Embedded PLC presets reading buffer, and the port write buffer address is the Embedded PLC The address of default writing buffer;
First sending module 12 is also used to: Xiang Suoshu Embedded PLC sends the port initialization mould after the setting Type.
The device of embodiment illustrated in fig. 15 accordingly can be used for executing the implementation of method shown in Fig. 1, Fig. 3, Fig. 4, Fig. 6 or Fig. 7 The step of exploitation host executes in example, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
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, comprising:
Second receiving module 21, the test frame sent for receiving exploitation host.
Sending module 22 is sent to described open for sending the test frame to the access device, and by test result Host is sent out, the test result is the result that the access device is fed back according to the test frame.
Third 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 executing Embedded PLC in embodiment of the method shown in Fig. 8 and execute The step of, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
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 further includes program loading module 24;
Second receiving module 21 is also used to that the test result is sent to after the exploitation host described, The executable code that the exploitation host is sent, wherein the executable code is that exploitation host compiles 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 protocol frame according to correct frame format information editor, the N is integer more than or equal to 1;
Described program loading module 24, for loading the executable code.
In the above-described embodiments, second receiving module 21 is also used to that the test result is sent to institute described After stating exploitation host, the debugging protocol frame that the exploitation host is sent is received;
The sending module 22, is also used to for the debugging protocol frame being sent to the access device, and by response message It is sent to the exploitation host, wherein the access device feeds back the response message according to the debugging protocol frame;
The third receiving module 23, is also used to receive the response message.
In the above-described embodiments, second receiving module 21 is also used in the test for receiving exploitation host and sending Port initialization model before frame, after receiving the setting that the exploitation host is sent;
Described program loading module 24 is also used to match port initialization according to the port initialization model after the setting It sets;Wherein, the port allocation models after the setting is the port allocation models being written after port configuration information, and the port is matched Confidence breath includes that buffer address and port write buffer address are read in port, 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 executing to be embedded in any shown embodiment of the method for Fig. 8~Figure 11 The step of formula PLC is executed, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (8)

1. a kind of long-range determining method of the access device communication protocol frame format information of Embedded PLC is applied to exploitation host, It is characterised by comprising:
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 first time, it is determined whether get the correct test result from the Embedded PLC, wherein described the The initial time of one time is at the time of completing to send the test frame to the Embedded PLC;
If getting correct test result from the Embedded PLC, determine that correct frame format is believed according to the test frame Breath;
Wherein, after determining correct frame format information according to the test frame described, further includes:
Obtaining externally input Communication Protocol Model, 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 correct frame format information editor, and the N is to be greater than or wait In 1 integer;
It compiles the Communication Protocol Model and obtains executable code, and the executable code is sent to the Embedded PLC.
2. the method according to claim 1, wherein further include:
If not getting correct test result from the Embedded PLC, generation error prompt information executes the acquisition Test frame.
3. the method according to claim 1, wherein it is described obtain externally input Communication Protocol Model it Afterwards, further includes:
It is obtained according to the Communication Protocol Model and can recognize debugging source code;
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;
It receives and debugging result is obtained according to the response message that the Embedded PLC is sent.
4. according to the method described in claim 3, it is characterized in that, described obtained according to the Communication Protocol Model can recognize tune Try source code, comprising:
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 preset recognizable variable N number of first kind submodel of label.
5. the method according to claim 1, wherein it is described send the test frame to Embedded PLC before, Further include:
Port configuration information is obtained, at the beginning of the port after port initialization model is arranged is set according to the port configuration information Beginningization model, wherein the port configuration information includes that buffer address and port write buffer address are read in port, and the port is read slow Rushing address is the address that the Embedded PLC presets reading buffer, and the port write buffer address is default for the Embedded PLC The address of writing buffer;
The port initialization model after the setting is sent to the Embedded PLC.
6. a kind of long-range determining method of the access device communication protocol frame format information of Embedded PLC, be applied to it is embedded can Programmable controller PLC characterized by comprising
Receive the test frame that exploitation host 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 host, the survey Test result is the result that the access device is fed back according to the test frame;
Wherein, the test result is sent to after the exploitation host described, further includes:
Receive and load the executable code that the exploitation host is sent, wherein the executable code is exploitation host to logical Believe that the code that protocol model compiling obtains, the Communication Protocol Model are 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.
7. according to the method described in claim 6, it is characterized in that, the test result is sent to the exploitation master described After machine, further includes:
The debugging protocol frame that the exploitation host is sent is received, and the debugging protocol frame is sent to the access device, In, the access device feeds back response message according to the debugging protocol frame;
The response message is received, and the response message is sent to the exploitation host.
8. according to the method described in claim 6, it is characterized in that, it is described receive exploitation host send test frame before, Further include:
Port initialization model after receiving the setting that the exploitation host is sent, and according to the port initialization after the setting Model is to port initial configuration;
Wherein, the port initialization model after the setting is the port initialization model being written after port configuration information, described Port configuration information includes that buffer address and port write buffer address are read in port, 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.
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 CN107479531A (en) 2017-12-15
CN107479531B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737389B (en) * 2018-05-02 2021-12-10 杭州句力科技有限公司 Method and device for modifying communication protocol of elevator outbound display panel
CN110205479A (en) * 2019-06-13 2019-09-06 浦项(张家港)不锈钢股份有限公司 A kind of stainless steel annealing pickling line PLC network communication diagnosis and processing method
US20220326675A1 (en) * 2019-09-20 2022-10-13 Nordson Corporation Flexible map with application data identifiers for plc communications
CN111756858B (en) * 2020-07-03 2023-05-26 潍柴动力股份有限公司 Remote development processing system, method and device for embedded equipment
CN112565026B (en) * 2021-02-20 2021-06-04 支付宝(杭州)信息技术有限公司 Test frame generation method, device and equipment

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

Also Published As

Publication number Publication date
CN107479531A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN107479531B (en) The access device communication protocol frame format information of Embedded PLC remotely determines method
JP5942446B2 (en) Support device and support program
US5513324A (en) Method and apparatus using network variables in a multi-node network
US6446202B1 (en) Process control configuration system for use with an AS-Interface device network
JP2001202324A (en) Process control configuration system to be used together with profibus device network
WO1992016904A1 (en) Binder interface structure
CN108351859A (en) Direct memory access (DMA) for endpoint device
CN104679513A (en) Device driver architecture development method in intelligent terminal
CN110891005A (en) IOT equipment control method, cloud server and IOT equipment control system
EP2453391A1 (en) IC card, mobile electronic device and data processing method in IC card
CN102222017A (en) Methods and systems to implement non-ABI conforming features across unseen interfaces
CN110168456B (en) Control system, control device, and computer-readable storage medium
US20060184924A1 (en) Intelligent platform management interface firmware architecture and method of building the same
CN101706860B (en) Card reader and intelligent card
CN108647131B (en) Output system of running log
WO2010016332A1 (en) Communication device, communication method, and program
CN101702119A (en) Device oriented programming technology and method
CN106331183B (en) Implementation method, Internet of things control device and the Internet of things system of Internet of Things
CN113806282A (en) Heterogeneous control system and loading method thereof
KR101122418B1 (en) Protocol interface device, system and method using a text file
CN108932171A (en) Embedded software exchange method
CN114095303B (en) Communication device, data transmission method and electronic device
CN108537084B (en) Design method of multi-protocol and multi-tag simulation RFID reader
CN111309434B (en) Method for parameterizing a field device
CN103384997A (en) Programmable radio

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