{"searchBar":{"inputPlaceholder":"Search by keyword or ask a question","searchBtn":"Search","error":"Please enter a keyword to search"}}
{}

Welcome to the Schneider Electric Website

Welcome to our website.

Select your location

Welcome the the Schneider Electric French website. It looks like you are located in the United States, would you like to change your location?

Traduisez en francais
{"support":{"yesButton":"yes","noButton":"no","feedback":{"title":"What can we do to improve?"},"submitButton":"Submit","successMessage":"Thank you for your feedback","title":"Was this helpful?","feedbackPercentLabel":"of people found this helpful","captcha":{"error":"Please tick the box"}}}
Search FAQs

Is there a first scan bit available in SoMachine or EcoStruxure Machine Expert?

Issue
How do I logically determine the first Task Cycle in a SoMachine or EcoStruxure Machine Expert PLC?

Product Line
SoMachine (Versions: v2.0, v3.1, v4.0, v4.1, v4.2, v4.3)
 - PLCs: M238, M258, HMISCU
EcoStruxure Machine Expert (Versions: v1.1, v1.2.0, v1.2.2)
 - PLCs: HMISCU, M241, M251, M262

Environment
PLC programming software for Windows PC -> Logic Builder -> POU program

Resolution
The functions "IsFirstMastColdCycle" and "IsFirstMastCycle", is True during the first MAST task cycle after a start.

For example, with this small program in Structured Text:
(a and b are INT variables)

IF IsFirstMastColdCycle() 
    THEN
        a := a + 1;
END_IF
IF IsFirstMastCycle()
    THEN
        b := b + 1;
END_IF


Result:
The value of "a" will be 1 the first time that the PLC starts (Cold Start).
The value of "b" will increments each time that the PLC stops and starts (Warm Start).

Explore more

Can't find what you are looking for?

Reach out to our customer care team if you have any questions or need more technical support.
Explore more