|
@@ -6,6 +6,22 @@ All_RAM Control2EPN {
|
|
|
Composite schedule {
|
|
|
{Contains} Failure failure {}
|
|
|
{Contains} Success success {}
|
|
|
+ {Contains} ForAll finish {
|
|
|
+ LHS {
|
|
|
+ Pre_Encapsulated_PetriNet/Port {
|
|
|
+ label = "0"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ RHS {
|
|
|
+ Post_Encapsulated_PetriNet/Port {
|
|
|
+ label = "0"
|
|
|
+ value_name = $
|
|
|
+ String function value(model : Element, name : String, mapping : Element):
|
|
|
+ return string_join("control/", read_attribute(model, name, "name"))!
|
|
|
+ $
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
{Contains} Atomic init_ports {
|
|
|
LHS {}
|
|
|
RHS {
|
|
@@ -24,7 +40,7 @@ All_RAM Control2EPN {
|
|
|
label = "10"
|
|
|
value_name = $
|
|
|
String function value(model : Element, name : String, mapping : Element):
|
|
|
- return "control/cmdDown"!
|
|
|
+ return "cmdDown"!
|
|
|
$
|
|
|
}
|
|
|
Post_Encapsulated_PetriNet/PortPlace (post_ports_10, post_ports_00) {
|
|
@@ -46,7 +62,7 @@ All_RAM Control2EPN {
|
|
|
label = "11"
|
|
|
value_name = $
|
|
|
String function value(model : Element, name : String, mapping : Element):
|
|
|
- return "control/cmdNeutral"!
|
|
|
+ return "cmdNeutral"!
|
|
|
$
|
|
|
}
|
|
|
Post_Encapsulated_PetriNet/PortPlace (post_ports_11, post_ports_01) {
|
|
@@ -67,7 +83,7 @@ All_RAM Control2EPN {
|
|
|
label = "12"
|
|
|
value_name = $
|
|
|
String function value(model : Element, name : String, mapping : Element):
|
|
|
- return "control/cmdUp"!
|
|
|
+ return "cmdUp"!
|
|
|
$
|
|
|
}
|
|
|
Post_Encapsulated_PetriNet/PortPlace (post_ports_12, post_ports_02) {
|
|
@@ -88,7 +104,7 @@ All_RAM Control2EPN {
|
|
|
label = "13"
|
|
|
value_name = $
|
|
|
String function value(model : Element, name : String, mapping : Element):
|
|
|
- return "control/objDetected"!
|
|
|
+ return "objDetected"!
|
|
|
$
|
|
|
}
|
|
|
Post_Encapsulated_PetriNet/PortPlace (post_ports_13, post_ports_03) {
|
|
@@ -109,7 +125,7 @@ All_RAM Control2EPN {
|
|
|
label = "14"
|
|
|
value_name = $
|
|
|
String function value(model : Element, name : String, mapping : Element):
|
|
|
- return "control/no_objDetected"!
|
|
|
+ return "no_objDetected"!
|
|
|
$
|
|
|
}
|
|
|
Post_Encapsulated_PetriNet/PortPlace (post_ports_14, post_ports_04) {
|
|
@@ -141,7 +157,7 @@ All_RAM Control2EPN {
|
|
|
label = "15"
|
|
|
value_name = $
|
|
|
String function value(model : Element, name : String, mapping : Element):
|
|
|
- return "control/up"!
|
|
|
+ return "up"!
|
|
|
$
|
|
|
}
|
|
|
Post_Encapsulated_PetriNet/PortPlace (post_ports_15, post_ports_05) {
|
|
@@ -173,7 +189,7 @@ All_RAM Control2EPN {
|
|
|
label = "16"
|
|
|
value_name = $
|
|
|
String function value(model : Element, name : String, mapping : Element):
|
|
|
- return "control/neutral"!
|
|
|
+ return "neutral"!
|
|
|
$
|
|
|
}
|
|
|
Post_Encapsulated_PetriNet/PortPlace (post_ports_16, post_ports_06) {
|
|
@@ -205,7 +221,7 @@ All_RAM Control2EPN {
|
|
|
label = "17"
|
|
|
value_name = $
|
|
|
String function value(model : Element, name : String, mapping : Element):
|
|
|
- return "control/down"!
|
|
|
+ return "down"!
|
|
|
$
|
|
|
}
|
|
|
Post_Encapsulated_PetriNet/PortPlace (post_ports_17, post_ports_07) {
|
|
@@ -227,7 +243,7 @@ All_RAM Control2EPN {
|
|
|
label = "18"
|
|
|
value_name = $
|
|
|
String function value(model : Element, name : String, mapping : Element):
|
|
|
- return "control/interrupt"!
|
|
|
+ return "interrupt"!
|
|
|
$
|
|
|
}
|
|
|
Post_Encapsulated_PetriNet/PortPlace (post_ports_18, post_ports_08) {
|
|
@@ -801,12 +817,14 @@ All_RAM Control2EPN {
|
|
|
OnSuccess (create_transitions, check_object) {}
|
|
|
OnSuccess (check_object, fix_interrupt) {}
|
|
|
OnSuccess (fix_interrupt, fix_interrupt_self) {}
|
|
|
- OnSuccess (fix_interrupt_self, success) {}
|
|
|
+ OnSuccess (fix_interrupt_self, finish) {}
|
|
|
+ OnSuccess (finish, success) {}
|
|
|
|
|
|
OnFailure (init_ports, create_states) {}
|
|
|
OnFailure (create_states, create_transitions) {}
|
|
|
OnFailure (create_transitions, check_object) {}
|
|
|
OnFailure (check_object, fix_interrupt) {}
|
|
|
OnFailure (fix_interrupt, fix_interrupt_self) {}
|
|
|
- OnFailure (fix_interrupt_self, success) {}
|
|
|
+ OnFailure (fix_interrupt_self, finish) {}
|
|
|
+ OnFailure (finish, failure) {}
|
|
|
}
|