dmitrydrozdov / fb2smv Goto Github PK
View Code? Open in Web Editor NEWIEC 61499 Function blocks XML code to SMV converter
License: MIT License
IEC 61499 Function blocks XML code to SMV converter
License: MIT License
Let us start a proper documentation for FB2SMV
Add support for Adapters
VAR T2 : E_DELAY (T2_START, T2_STOP, T2_EO, T2_DT, T2_DI, T2_DO, T2_alpha, T2_beta);
init(T2_START):= FALSE;
init(T2_STOP):= FALSE;
init(T2_EO):= FALSE;
init(T2_DT):= 666;
init(T2_DI):= -1;
init(T2_DO):= -1;
init(T2_alpha):= FALSE;
init(T2_beta):= FALSE;
NuSMV complains about the double assignment of this variable because inside the E_DELAY module there is already such an assignment init(DO_):= -1;
MODULE E_DELAY(event_START, event_STOP, event_EO, DT_, DI_, DO_, alpha, beta)
ASSIGN
init(DO_):= -1;
next(DO_):= case
alpha & event_START : DT_;
alpha & event_STOP : -1;
alpha & DI_ = 0 : -1;
DI_ >= 0 : DI_;
TRUE: DO_; TRUE : DO_;
esac;
DEFINE event_START_reset:= alpha;
DEFINE event_STOP_reset:= (alpha & (event_START));
DEFINE event_EO_set:= (alpha & DI_=0);
DEFINE alpha_reset:= alpha;
DEFINE beta_set:= alpha;
FAIRNESS (alpha)
FAIRNESS (beta)
Besides, FB2SMV defines some variables of E_DELAY as integer
VAR T2_DT :integer;
VAR T2_DI : integer;
VAR T2_DO : integer;
I changed it manually to:
VAR T2_DT : -1..666;
VAR T2_DI : -1..666;
VAR T2_DO : -1..666;
Because I found later initialisation
init(T2_DT):= 666;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.