I'm trying to take a simulink stateflow chart, and use the PLC Code generator to transform my chart into a PLC code in ST.
Now, everytime I do this, a bunch of code lines, that have nothing to do with the original chart, are added.
The new variables added are:
Which afterwards in a case expression with two more newly
CASE ssMethodType OF
(* SystemInitialize for Chart: '<Root>/Chart' *)
is_active_c3_Chart := 0;
is_c3_Chart := Chart_IN_NO_ACTIVE_CHILD;
(* Chart: '<Root>/Chart' incorporates:
* Outport: '<Root>/Out1'
* Outport: '<Root>/Out2' *)
(* Gateway: Chart *)
(* During: Chart *)
IF is_active_c3_Chart = 0 THEN
(* Entry: Chart *)
is_active_c3_Chart := 1;
(* Entry Internal: Chart *)
is_c3_Chart := Chart_IN_State0
Now I don't understand any of this to be honest. What is the purpose of those "ss" variables and what is the meaning of this case expression? And what is "Chart_IN_NO_ACTIVE_CHILD;" supposed to mean? I'm new to Simulink, and couln't find the answer online.
Thank you very much