SlideShare a Scribd company logo
Modeling of PLC programs with High-level Coloured
Petri Nets
Ryabukhin D. A., Kuzmin E. V., Sokolov V. A.
Yaroslavl State University
2017
Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
Programmable Logic Controller (PLC) 2/12
INPUTS OUTPUTS
PROGRAM
EXECUTION
PLC characteristics.
Inputs: sensors, limit switches, buttons, meters . . . .
Outputs: electromagnetic relays, motors, light indicators . . . .
Working cycle: reading from inputs,
program execution,
writing to outputs.
Wide sphere of application.
Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
The approach to constructing programs 3/12
Proposed sequence of writing PLC-programs:
Creating LTL-specification
G X( ¬_V ∧ V ⇒ FiringCond )
G X( _V ∧ ¬V ⇒ FiringCond )
Translation to SMV language and verification
case{ ∼V & next(FiringCond ) : next(V ) := 1;
V & next(FiringCond ) : next(V ) := 0;
default : next(V ) := V ; }.
Translation to IEC 61131-3 standard lanuages
IF NOT _V AND FiringCond THEN V := 1 ;
ELSIF _V AND FiringCond THEN V := 0; END_IF.
Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
PLC-programming by LTL-specification 4/12
Conditions for program variables:
1 Each variable value must not change more than once per one
pass of PLC working cycle.
2 The value of each variable must change at only one place in
the program.
G X( V >_V ⇒ OldValCond ∧ FiringCond ∧ V = NewValExpr )
G X( V <_V ⇒ OldValCond ∧ FiringCond ∧ V = NewValExpr )
GX(V =_V ⇒ ¬(OldValCond ∧ FiringCond) ∧ ¬(OldValCond ∧ FiringCond ))
Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
Restrictions of the approach 5/12
Typical PLC Tasks:
Hydraulic system
Library lift
Installation for preparation of mixtures
Installation for lime dosage
The approach is applicable for discrete tasks of logical control,
requiring PLCs with binary inputs and outputs. SMV allows to build
models with 259 states.
Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
Translation to Petri net 6/12
LTL-specification:
G X( V >_V ⇒ OldValCond ∧ FiringCond ∧ V = NewValExpr );
G X( V <_V ⇒ OldValCond ∧ FiringCond ∧ V = NewValExpr ).
Common scheme of a transition of Petri net:
Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
Installation for preparation of mixtures 7/12
PVlv
LS0
LS1
LS2
Mtr
Tank 2
Tank 1
Vlv2
Vlv1
Tank 2 empty
Tank 1 empty
MS
EVlv
Emergency
valve
Pouring
valve
TS1
TS2
Level 2
Level 1
Level 0
Finished
Proper
Spoiled
Mixture
Component 2Component 1
Components in reservoir
Vlv1
Vlv2Working
On
Motor
Error
Motor
Valves
Vlv1
Vlv2
PVlvPVlv
EVlv
Control panelScheme of installation
Reservoir
Valves / lampsSwitches
PLC OutputsInputs
SBPVlv Open pouring valve Open pouring valve PVlv
Open valve 1
1 1
2 Vlv1SBVlv1 Open valve 1
2
SBVlv2 Open valve 2
3
SBMtr Start motor
5
Sensors
LS0 Level sensor 0
8
LS1 Level sensor 1
9
LS2 Level sensor 2
10
Open valve 2
3 Vlv2
Start motor
5 Mtr
MS Motor sensor
11
Open emergency valve
4 EVlvSBEVlv Open emergency valve
4
TS1 6
TS2 Tank sensor 2
7
States / lamps
Mixture is proper
6
7
Mixture is spoiled
8
Component 2 in mixture
10
Component 1 in mixture
9
11
MxIsFin
MxIsPrp
MxIsBad
C1InMx
C2InMx
MtrErr
Mixture is finishedTank sensor 1
Motor error
Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
Petri Net 8/12
Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
Consistent behaviour of sensors 9/12
Additional fine-tuning program model for corresponding to the
actual behaviour of the PLC programs
G( X( S) ⇒ Cond1 ),
G( X(¬S) ⇒ Cond1 ).
G( ¬S ∧ X( S) ⇒ Cond2 ),
G( S ∧ X(¬S) ⇒ Cond2 ).
These formulas are written in guard condition of Input transition.
Some examples:
(not p_TS1 orelse TS1 orelse p_Vlv1),
(not p_TS2 orelse TS2 orelse p_Vlv2),
(not MS orelse p_Mtr),
(LS0 orelse not LS1 andalso not LS2)
Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
Examples of temporal properties 10/12
“Overspending”. Components will never be added to the
spoiled mixture.
G(¬(MxIsBad ∧ (Vlv1 ∨ Vlv2)))
“Spoiled product”. The spoiled mixture will never be drained
through valve “PVlv”.
G(¬(MxIsBad ∧ PVlv))
“Spoiled mixture”. Spoiled mixture can not be proper or
finished.
G(¬(MxIsBad ∧ (MxIsPrp ∨ MxIsFin)))
Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
Conclusion 11/12
CPN Tools provides availabilities to:
show data flows from input variables to outputs
demonstrate dependences between inputs, outputs and
program variables
visualize possible concurrent blocks
modeling resources and timing with tokens
make simulation modeling for checking some class of properties
Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
Thank you!
Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets

More Related Content

PDF
TMPA-2017: Generating Cost Aware Covering Arrays For Free
PDF
ECAD lab manual
PDF
Verilog lab manual (ECAD and VLSI Lab)
PPT
Inside LoLA - Experiences from building a state space tool for place transiti...
PDF
Compiler Construction | Lecture 11 | Monotone Frameworks
PPT
Design and minimization of reversible programmable logic arrays and its reali...
DOCX
Programmable array-logic-and-programmable-logic-array
PDF
TMPA-2017: Static Checking of Array Objects in JavaScript
TMPA-2017: Generating Cost Aware Covering Arrays For Free
ECAD lab manual
Verilog lab manual (ECAD and VLSI Lab)
Inside LoLA - Experiences from building a state space tool for place transiti...
Compiler Construction | Lecture 11 | Monotone Frameworks
Design and minimization of reversible programmable logic arrays and its reali...
Programmable array-logic-and-programmable-logic-array
TMPA-2017: Static Checking of Array Objects in JavaScript

What's hot (20)

PDF
VLSI Lab manual PDF
PDF
ESL Anyone?
DOCX
VLSI & E-CAD Lab Manual
PPTX
Jax retrospective
PDF
Lec 08 - DESIGN PROCEDURE
PDF
Efficient Model Partitioning for Distributed Model Transformations
PDF
C046051216
PDF
Simulating Large-scale Aggregate MASs with Alchemist and Scala
PDF
Compiler Construction | Lecture 10 | Data-Flow Analysis
PDF
VLSI lab manual
PDF
Applying Model Checking Approach with Floating Point Arithmetic for Verificat...
PDF
Symbolic Execution (introduction and hands-on)
PPTX
Conditional Random Fields
PPT
EMBEDDED SYSTEMS 4&5
PDF
17443 microprocessor
PDF
From logistic regression to linear chain CRF
PDF
Control Flow Graphs
DOCX
EC6612 VLSI Design Lab Manual
PDF
ScilabTEC 2015 - KIT
PDF
Vlsi lab manual exp:1
VLSI Lab manual PDF
ESL Anyone?
VLSI & E-CAD Lab Manual
Jax retrospective
Lec 08 - DESIGN PROCEDURE
Efficient Model Partitioning for Distributed Model Transformations
C046051216
Simulating Large-scale Aggregate MASs with Alchemist and Scala
Compiler Construction | Lecture 10 | Data-Flow Analysis
VLSI lab manual
Applying Model Checking Approach with Floating Point Arithmetic for Verificat...
Symbolic Execution (introduction and hands-on)
Conditional Random Fields
EMBEDDED SYSTEMS 4&5
17443 microprocessor
From logistic regression to linear chain CRF
Control Flow Graphs
EC6612 VLSI Design Lab Manual
ScilabTEC 2015 - KIT
Vlsi lab manual exp:1
Ad

Viewers also liked (20)

PDF
TMPA-2017: Functional Parser of Markdown Language Based on Monad Combining an...
PDF
TMPA-2017: Stemming Architectural Decay in Software Systems
PDF
TMPA-2017: Layered Layouts for Software Systems Visualization
PDF
TMPA-2017: Dl-Check: Dynamic Potential Deadlock Detection Tool for Java Programs
PDF
TMPA-2017: Simple Type Based Alias Analysis for a VLIW Processor
PDF
TMPA-2017: Predicate Abstraction Based Configurable Method for Data Race Dete...
PDF
TMPA-2017: Extended Context-Free Grammars Parsing with Generalized LL
PDF
TMPA-2017: A Survey of High-Performance Computing for Software Verification
PDF
TMPA-2017: The Quest for Average Response Time
PDF
TMPA-2017: Regression Testing with Semiautomatic Test Selection for Auditing ...
PDF
TMPA-2017: Evolutionary Algorithms in Test Generation for digital systems
PDF
TMPA-2017: Technology and Tools for Developing Industrial Software Test Suite...
PDF
TMPA-2017: Conference Opening
PDF
TMPA-2017: 5W+1H Static Analysis Report Quality Measure
PDF
TMPA-2017: Using Functional Directives to Analyze Code Complexity and Communi...
PDF
TMPA-2017: Defect Report Classification in Accordance with Areas of Testing
PDF
TMPA-2017: Compositional Process Model Synthesis based on Interface Patterns
PDF
TMPA-2017: Live testing distributed system fault tolerance with fault injecti...
PDF
TMPA-2017: Distributed Analysis of the BMC Kind: Making It Fit the Tornado Su...
PDF
TMPA-2017: Unity Application Testing Automation with Appium and Image Recogni...
TMPA-2017: Functional Parser of Markdown Language Based on Monad Combining an...
TMPA-2017: Stemming Architectural Decay in Software Systems
TMPA-2017: Layered Layouts for Software Systems Visualization
TMPA-2017: Dl-Check: Dynamic Potential Deadlock Detection Tool for Java Programs
TMPA-2017: Simple Type Based Alias Analysis for a VLIW Processor
TMPA-2017: Predicate Abstraction Based Configurable Method for Data Race Dete...
TMPA-2017: Extended Context-Free Grammars Parsing with Generalized LL
TMPA-2017: A Survey of High-Performance Computing for Software Verification
TMPA-2017: The Quest for Average Response Time
TMPA-2017: Regression Testing with Semiautomatic Test Selection for Auditing ...
TMPA-2017: Evolutionary Algorithms in Test Generation for digital systems
TMPA-2017: Technology and Tools for Developing Industrial Software Test Suite...
TMPA-2017: Conference Opening
TMPA-2017: 5W+1H Static Analysis Report Quality Measure
TMPA-2017: Using Functional Directives to Analyze Code Complexity and Communi...
TMPA-2017: Defect Report Classification in Accordance with Areas of Testing
TMPA-2017: Compositional Process Model Synthesis based on Interface Patterns
TMPA-2017: Live testing distributed system fault tolerance with fault injecti...
TMPA-2017: Distributed Analysis of the BMC Kind: Making It Fit the Tornado Su...
TMPA-2017: Unity Application Testing Automation with Appium and Image Recogni...
Ad

Similar to TMPA-2017: Modeling of PLC-programs by High-level Coloured Petri Nets (20)

PDF
A04220106
PPT
Designing static CMOS logic circuits.ppt
PPT
Dynamic&p t-logic
DOC
Report-Implementation of Quantum Gates using Verilog
PDF
PDF
EFFINET - Initial Presentation
PPT
Combinational logic and digital circuit.ppt
PPT
digital electronics combinational slides4.ppt
PDF
A Comparative Studies of Cascaded Multilevel Inverters Having Reduced Number ...
PDF
C0181419International Journal of Engineering Inventions (IJEI)
PPT
Fundamentals of CMOS VLSI Design and Mos Transistors
PDF
Uncertain DC-DC Zeta Converter Control in Convex Polytope Model Based on LMI ...
PDF
Vlsi projects
PPTX
Domine specification section on VLSI.pptx
PDF
A low power cmos analog circuit design for acquiring multichannel eeg signals
PDF
EVOLUTION OF STRUCTURE OF SOME BINARY GROUP-BASED N-BIT COMPARATOR, N-TO-2N D...
PDF
Chapter 6 - Modelling and Control of Converters.pdf
PPT
Reza Talk En Kf 09
PDF
Hawaii Swnt Ao
A04220106
Designing static CMOS logic circuits.ppt
Dynamic&p t-logic
Report-Implementation of Quantum Gates using Verilog
EFFINET - Initial Presentation
Combinational logic and digital circuit.ppt
digital electronics combinational slides4.ppt
A Comparative Studies of Cascaded Multilevel Inverters Having Reduced Number ...
C0181419International Journal of Engineering Inventions (IJEI)
Fundamentals of CMOS VLSI Design and Mos Transistors
Uncertain DC-DC Zeta Converter Control in Convex Polytope Model Based on LMI ...
Vlsi projects
Domine specification section on VLSI.pptx
A low power cmos analog circuit design for acquiring multichannel eeg signals
EVOLUTION OF STRUCTURE OF SOME BINARY GROUP-BASED N-BIT COMPARATOR, N-TO-2N D...
Chapter 6 - Modelling and Control of Converters.pdf
Reza Talk En Kf 09
Hawaii Swnt Ao

More from Iosif Itkin (20)

PDF
Foundations of Software Testing Lecture 4
PPTX
QA Financial Forum London 2021 - Automation in Software Testing. Humans and C...
PDF
Exactpro FinTech Webinar - Global Exchanges Test Oracles
PDF
Exactpro FinTech Webinar - Global Exchanges FIX Protocol
PDF
Operational Resilience in Financial Market Infrastructures
PDF
20 Simple Questions from Exactpro for Your Enjoyment This Holiday Season
PDF
Testing the Intelligence of your AI
PDF
EXTENT 2019: Exactpro Quality Assurance for Financial Market Infrastructures
PDF
ClearTH Test Automation Framework: Case Study in IRS & CDS Swaps Lifecycle Mo...
PPTX
EXTENT Talks 2019 Tbilisi: Failover and Recovery Test Automation - Ivan Shamrai
PDF
EXTENT Talks QA Community Tbilisi 20 April 2019 - Conference Open
PDF
User-Assisted Log Analysis for Quality Control of Distributed Fintech Applica...
PPTX
QAFF Chicago 2019 - Complex Post-Trade Systems, Requirements Traceability and...
PDF
QA Community Saratov: Past, Present, Future (2019-02-08)
PDF
Machine Learning and RoboCop Testing
PDF
Behaviour Driven Development: Oltre i limiti del possibile
PDF
2018 - Exactpro Year in Review
PPTX
Exactpro Discussion about Joy and Strategy
PPTX
FIX EMEA Conference 2018 - Post Trade Software Testing Challenges
PDF
BDD. The Outer Limits. Iosif Itkin at Youcon (in Russian)
Foundations of Software Testing Lecture 4
QA Financial Forum London 2021 - Automation in Software Testing. Humans and C...
Exactpro FinTech Webinar - Global Exchanges Test Oracles
Exactpro FinTech Webinar - Global Exchanges FIX Protocol
Operational Resilience in Financial Market Infrastructures
20 Simple Questions from Exactpro for Your Enjoyment This Holiday Season
Testing the Intelligence of your AI
EXTENT 2019: Exactpro Quality Assurance for Financial Market Infrastructures
ClearTH Test Automation Framework: Case Study in IRS & CDS Swaps Lifecycle Mo...
EXTENT Talks 2019 Tbilisi: Failover and Recovery Test Automation - Ivan Shamrai
EXTENT Talks QA Community Tbilisi 20 April 2019 - Conference Open
User-Assisted Log Analysis for Quality Control of Distributed Fintech Applica...
QAFF Chicago 2019 - Complex Post-Trade Systems, Requirements Traceability and...
QA Community Saratov: Past, Present, Future (2019-02-08)
Machine Learning and RoboCop Testing
Behaviour Driven Development: Oltre i limiti del possibile
2018 - Exactpro Year in Review
Exactpro Discussion about Joy and Strategy
FIX EMEA Conference 2018 - Post Trade Software Testing Challenges
BDD. The Outer Limits. Iosif Itkin at Youcon (in Russian)

Recently uploaded (20)

PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Encapsulation theory and applications.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
Spectroscopy.pptx food analysis technology
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
KodekX | Application Modernization Development
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Cloud computing and distributed systems.
PDF
Approach and Philosophy of On baking technology
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Spectral efficient network and resource selection model in 5G networks
sap open course for s4hana steps from ECC to s4
Building Integrated photovoltaic BIPV_UPV.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Encapsulation theory and applications.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Encapsulation_ Review paper, used for researhc scholars
Spectroscopy.pptx food analysis technology
Advanced methodologies resolving dimensionality complications for autism neur...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Chapter 3 Spatial Domain Image Processing.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
KodekX | Application Modernization Development
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Big Data Technologies - Introduction.pptx
Unlocking AI with Model Context Protocol (MCP)
Diabetes mellitus diagnosis method based random forest with bat algorithm
Cloud computing and distributed systems.
Approach and Philosophy of On baking technology

TMPA-2017: Modeling of PLC-programs by High-level Coloured Petri Nets

  • 1. Modeling of PLC programs with High-level Coloured Petri Nets Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Yaroslavl State University 2017 Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
  • 2. Programmable Logic Controller (PLC) 2/12 INPUTS OUTPUTS PROGRAM EXECUTION PLC characteristics. Inputs: sensors, limit switches, buttons, meters . . . . Outputs: electromagnetic relays, motors, light indicators . . . . Working cycle: reading from inputs, program execution, writing to outputs. Wide sphere of application. Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
  • 3. The approach to constructing programs 3/12 Proposed sequence of writing PLC-programs: Creating LTL-specification G X( ¬_V ∧ V ⇒ FiringCond ) G X( _V ∧ ¬V ⇒ FiringCond ) Translation to SMV language and verification case{ ∼V & next(FiringCond ) : next(V ) := 1; V & next(FiringCond ) : next(V ) := 0; default : next(V ) := V ; }. Translation to IEC 61131-3 standard lanuages IF NOT _V AND FiringCond THEN V := 1 ; ELSIF _V AND FiringCond THEN V := 0; END_IF. Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
  • 4. PLC-programming by LTL-specification 4/12 Conditions for program variables: 1 Each variable value must not change more than once per one pass of PLC working cycle. 2 The value of each variable must change at only one place in the program. G X( V >_V ⇒ OldValCond ∧ FiringCond ∧ V = NewValExpr ) G X( V <_V ⇒ OldValCond ∧ FiringCond ∧ V = NewValExpr ) GX(V =_V ⇒ ¬(OldValCond ∧ FiringCond) ∧ ¬(OldValCond ∧ FiringCond )) Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
  • 5. Restrictions of the approach 5/12 Typical PLC Tasks: Hydraulic system Library lift Installation for preparation of mixtures Installation for lime dosage The approach is applicable for discrete tasks of logical control, requiring PLCs with binary inputs and outputs. SMV allows to build models with 259 states. Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
  • 6. Translation to Petri net 6/12 LTL-specification: G X( V >_V ⇒ OldValCond ∧ FiringCond ∧ V = NewValExpr ); G X( V <_V ⇒ OldValCond ∧ FiringCond ∧ V = NewValExpr ). Common scheme of a transition of Petri net: Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
  • 7. Installation for preparation of mixtures 7/12 PVlv LS0 LS1 LS2 Mtr Tank 2 Tank 1 Vlv2 Vlv1 Tank 2 empty Tank 1 empty MS EVlv Emergency valve Pouring valve TS1 TS2 Level 2 Level 1 Level 0 Finished Proper Spoiled Mixture Component 2Component 1 Components in reservoir Vlv1 Vlv2Working On Motor Error Motor Valves Vlv1 Vlv2 PVlvPVlv EVlv Control panelScheme of installation Reservoir Valves / lampsSwitches PLC OutputsInputs SBPVlv Open pouring valve Open pouring valve PVlv Open valve 1 1 1 2 Vlv1SBVlv1 Open valve 1 2 SBVlv2 Open valve 2 3 SBMtr Start motor 5 Sensors LS0 Level sensor 0 8 LS1 Level sensor 1 9 LS2 Level sensor 2 10 Open valve 2 3 Vlv2 Start motor 5 Mtr MS Motor sensor 11 Open emergency valve 4 EVlvSBEVlv Open emergency valve 4 TS1 6 TS2 Tank sensor 2 7 States / lamps Mixture is proper 6 7 Mixture is spoiled 8 Component 2 in mixture 10 Component 1 in mixture 9 11 MxIsFin MxIsPrp MxIsBad C1InMx C2InMx MtrErr Mixture is finishedTank sensor 1 Motor error Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
  • 8. Petri Net 8/12 Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
  • 9. Consistent behaviour of sensors 9/12 Additional fine-tuning program model for corresponding to the actual behaviour of the PLC programs G( X( S) ⇒ Cond1 ), G( X(¬S) ⇒ Cond1 ). G( ¬S ∧ X( S) ⇒ Cond2 ), G( S ∧ X(¬S) ⇒ Cond2 ). These formulas are written in guard condition of Input transition. Some examples: (not p_TS1 orelse TS1 orelse p_Vlv1), (not p_TS2 orelse TS2 orelse p_Vlv2), (not MS orelse p_Mtr), (LS0 orelse not LS1 andalso not LS2) Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
  • 10. Examples of temporal properties 10/12 “Overspending”. Components will never be added to the spoiled mixture. G(¬(MxIsBad ∧ (Vlv1 ∨ Vlv2))) “Spoiled product”. The spoiled mixture will never be drained through valve “PVlv”. G(¬(MxIsBad ∧ PVlv)) “Spoiled mixture”. Spoiled mixture can not be proper or finished. G(¬(MxIsBad ∧ (MxIsPrp ∨ MxIsFin))) Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
  • 11. Conclusion 11/12 CPN Tools provides availabilities to: show data flows from input variables to outputs demonstrate dependences between inputs, outputs and program variables visualize possible concurrent blocks modeling resources and timing with tokens make simulation modeling for checking some class of properties Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets
  • 12. Thank you! Ryabukhin D. A., Kuzmin E. V., Sokolov V. A. Modeling of PLC programs with High-level Coloured Petri Nets