Magelis XBTGC, XBTGT, XBTGK HMI Controller - Schneider Electric
Magelis XBTGC, XBTGT, XBTGK HMI Controller - Schneider Electric
Magelis XBTGC, XBTGT, XBTGK HMI Controller - Schneider Electric
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
XBT GC System Functions<br />
Example<br />
This example describes the three functions <strong>HMI</strong>_IsFirstMastCycle,<br />
<strong>HMI</strong>_IsFirstMastColdCycle and <strong>HMI</strong>_IsFirstMastWarmCycle used<br />
together:<br />
NOTE: The functions must be used in MAST task otherwise initialization actions<br />
might be performed more than once or never (an additional task might be called<br />
several times or not called during 1 MAST task cycle).<br />
IF <strong>HMI</strong>_IsFirstMastWarmCycle() THEN<br />
(*This is the first Mast Cycle after a Warm Start: all<br />
variables are set to their initialization values except the<br />
retained variables*)<br />
(*=> initialize the needed variables in order your application<br />
to run as expected in this case*)<br />
END_IF;<br />
IF <strong>HMI</strong>_IsFirstMastColdCycle() THEN<br />
(*This is the first Mast Cycle after a Cold Start: all<br />
variables are set to their initialization values including the<br />
Retains Variables*)<br />
(*=> initialize the needed variables in order your application<br />
to run as expected in this case*)<br />
END_IF;<br />
IF <strong>HMI</strong>_IsFirstMastCycle() THEN<br />
(*This is the first Mast Cycle after a Start, ie after a Warm<br />
or Cold Start as well as STOP/RUN commands*)<br />
(*=> initialize the needed variables in order your application<br />
to run as expected in this case*)<br />
END_IF;]<br />
30 EIO0000000626 06/2011