Library manual M238 system functions | 2 MB - BERGER - POSITEC
Library manual M238 system functions | 2 MB - BERGER - POSITEC
Library manual M238 system functions | 2 MB - BERGER - POSITEC
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
IsFirstMastCycle: Indicates if Cycle is the First MAST Cycle<br />
Function Description<br />
This function returns TRUE during the 1st MAST cycle after a start.<br />
Graphical Representation<br />
<strong>M238</strong> System Functions<br />
IL and ST Representation<br />
To see the general representation in IL or ST language, refer to the chapter Function<br />
and Function Block Representation (see page 71).<br />
I/O Variable Description<br />
Example<br />
Output Type Comment<br />
IsFirstMastCycle BOOL TRUE during the first MAST task cycle after<br />
a start.<br />
This example describes the three <strong>functions</strong> IsFirstMastCycle, IsFirstMast-<br />
ColdCycle and IsFirstMastWarmCycle used together.<br />
This example must be used in MAST task otherwise might be run several time or<br />
never (an additional task might be called several times or not called during 1 MAST<br />
task cycle):<br />
VAR<br />
MyIsFirstMastCycle : BOOL;<br />
MyIsFirstMastWarmCycle : BOOL;<br />
MyIsFirstMastColdCycle : BOOL;<br />
END_VAR<br />
MyIsFirstMastWarmCycle := IsFirstMastWarmCycle();<br />
MyIsFirstMastColdCycle := IsFirstMastColdCycle();<br />
MyIsFirstMastCycle := IsFirstMastCycle();<br />
IF (MyIsFirstMastWarmCycle) THEN<br />
(*This is the first Mast Cycle after a Warm Start: all<br />
variables are set to their initialization values except the<br />
Retains variables*)<br />
EIO0000000364 04/2012 43