PLC program verification system based on intermediate language
An intermediate language program and intermediate language technology, applied in the field of program verification, can solve problems such as large conversion time and achieve the effect of improving verification efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
specific Embodiment 1
[0029] Specific embodiment one (intermediate language conversion of the sequential function chart of graphical language)
[0030] Such as figure 2 As shown, it is a schematic diagram of a traffic light sequence function diagram of an optional embodiment of the present invention, including initialization (Init), step 0 (Step0), step 1 (Step1), step 2 (Step2), and step 3 ( Step3) and Step 4 (Step4); the control of the SFC diagram is realized so that the red light, yellow light and green light are switched in a certain order in each cycle, and the switching sequence is: the green light is on for 1 second, and the yellow light is on for 1 second. seconds, the red light is on for 1 second, and the yellow light is on for 1 second. Among them, the variables DO_G, DO_R, and DO_Y represent the lighting signals of the green light, red light, and yellow light, respectively, and the variables TON_G, TON_R, and TON_Y1 represent the timer for the lighting time of the green light, the time...
Embodiment 2
[0048] Embodiment 2 (intermediate language conversion of instruction list of form language)
[0049] In this embodiment, the process of converting the IEC 61131-3 language to the intermediate language ICIL will be described by using the instruction list conversion rules. The instruction table is shown in Table 1 below,
[0050] Table 1
[0051]
[0052] The present invention converts the above instruction list table 1 into an intermediate language program by adopting the conversion rules shown in Table 2. The process is as follows: first, the instruction list language is translated according to the conversion rules in Table 2, and then the instruction list language is translated into The program segment corresponding to the mark (Error and End in this example) is converted into the process in the intermediate language ICIL program; finally, the jump between the instruction list language program segments is converted into the call execution of the intermediate language ICIL...
Embodiment 1
[0059] Embodiment one intermediate language program
[0060] Step0:
[0061] TON_G(IN:=DO_GANDISwitch,
[0062] py:=T#IS);
[0063] TON_R(IN:=DO_R, PY:=T#IS);
[0064] TON_Y1(IN:=DO_Y, PY:=T#IS);
[0065] TON_Y2(IN:=DO_Y, PY:=T#IS);
[0066] ElapseTime:=TON_G.ET;
[0067] Step1:
[0068] DO_G:=TRUE;
[0069] DO_R:=FALSE;
[0070] DO_Y:=FALSE;
[0071] Step2:
[0072] DO_G:=FALSE;
[0073] DO_R:=FALSE;
[0074] DO_Y:=TRUE;
[0075] Step3:
[0076] DO_G:=FALSE;
[0077] DO_R:=TRUE;
[0078] DO_Y:=FALSE;
[0079] Step4:
[0080] DO_G:=FALSE;
[0081] DO_R:=FALSE;
[0082] DO_Y:=TRUE;
[0083] Embodiment 2 intermediate language program
[0084]
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com