Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Schneider Electric
Community
Community
Notifications
close
  • Categories
  • Forums
  • Knowledge Center
  • Blogs
  • Ideas
  • Events & Webinars
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register

Contact Support

Close

Ask our Experts

Have a question related to our products, solutions or services? Get quick support on community Forums

Email Us

For Community platform-related support, please email us

New Community Ranking System
Our Community ranking system has recently been updated. You may notice changes in user rankings and receive system messages or notifications. If you have questions about how the new ranking works, please refer to the announcement post for more details (click here).

Structured Text Continue instruction

Modicon PAC Forum

A forum for topics related to the scope of Modicon PAC offers and ecosystem along the whole lifecycle: Modicon M580 and 340, EcoStruxure Control Expert, EcoStruxure Process Expert (Unity Pro) and more.

Search in

Improve your search experience:

  • Exact phrase → Use quotes " " (e.g., "error 404")
  • Wildcard → Use * for partial words (e.g., build*, *tion)
  • AND / OR → Combine keywords (e.g., login AND error, login OR sign‑in)
  • Keep it short → Use 2–3 relevant words , not full sentences
  • Filters → Narrow results by section (Knowledge Base, Users, Products)
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Select a Country

Please select a country to continue with beta search.

  • Home
  • Schneider Electric Community
  • Industrial Automation
  • Modicon PAC Forum
  • Structured Text Continue instruction
Options
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
Trinxs1
Trinxs1 Leader
19
YONGHO-KIM
YONGHO-KIM Mentor
10
ciupol
ciupol
9
View All

Recommended Forums

  • Industry Automation and Control Forum

  • Machine and Motion Control Forum

  • Alliance Partner Program System Integrator

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to Modicon PAC Forum
Start a Topic
ciupol
ciupol
Mentor

Posted: ‎2025-12-10 09:23 AM

0 Likes
6
880
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-12-10 09:23 AM

Structured Text Continue instruction

Welcome,

 

There doesn't seem to be CONTINUE instruction available in Structured Text in Control Expert. How would you continue to next loop iteration without this instruction?

 

Thanks,

ciupol

Labels
  • Labels:
  • 06. EcoStruxure Control Expert
  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic
Replies 6
Marian_Pavlik
Marian_Pavlik Troubleshooter
Troubleshooter

Posted: ‎2025-12-16 11:18 PM

0 Likes
0
828
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-12-16 11:18 PM

You are right.

There is no CONTINUE instruction available in Structured Text in Control Expert.

There is only EXIT function but it has different behavior.

CONTINUE is like JUMP to END inside particular loop.

Such instructions are about to avoid in Control Systems logic if possible.

What is your need to use it ?

Reply

Link copied. Please paste this link to share this article on your social media post.

Hennie_Smith
Hennie_Smith Mentor
Mentor

Posted: ‎2026-01-07 09:13 PM

0 Likes
0
781
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2026-01-07 09:13 PM

Hi, As Marian mentioned best to avoid any loop functions in ST. Any time sensitive functions in the PLC like PID control EF blocks are affected since loops changes the PLC scan time and make it inconsistent. Correct way is to use the PLC scan as your loop and use IF..THEN..ELSE statements and counter variable to manage the loop count. 

Reply

Link copied. Please paste this link to share this article on your social media post.

AmitGolan
AmitGolan
Explorer

Posted: ‎2026-09-23 12:24 PM

0 Likes
0
92
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2026-09-23 12:24 PM

Hello ciupol, 

What you are asking for is actually simple to implement.

One way is to allow jump and label in the project settings. You place a label just before the loop ending statement and jump to it (with an appropriate condition) from a desired point inside the loop.

Another way is to use a condition by itself (An IF-THEN-END_IF statement) that expands from a certain point to the end of the loop. If the condition is met, the inner part of the IF statement is executed. If not, execution hits the the loop ending statement, skipping the inner IF statement part. Generally speaking, I disagree with the recommendation to avoid using loop statements. Frequently, they are required with no easy substitution. I am attaching a solution for systematic Sudoku Solving Algorithm with some documentation and simple operator screen visualization. It demonstrates a technique for breaking very long process into manageable small loops.

Attachments
Sudoku Solver.zip
Reply

Link copied. Please paste this link to share this article on your social media post.

ciupol
ciupol
Mentor

Posted: ‎2026-09-24 09:45 AM

0 Likes
2
72
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2026-09-24 09:45 AM

@AmitGolan 

Thanks for your response. Labels and JUMP instruction was the solution I used but as you probably know in general using JUMP statements is not considered good programming practice. But obviously it is the easiest solution if CONTINUE is not available. I avoided using IF statement as I would have to nest multiple IFs and it would be hard to follow (at least for me).

I also disagree with the statement that the loops should be avoided. Especially in my case where all my controllers are hot standby and that means that MAST task is periodic and not cyclic. The scan time is determined and running a loop will not change it (unless of course the loop has some unbelievable large number of repetitions). There is nothing better to look through an array than FOR loop.

Your sudoku solver application is super funny. I really like it. I saw on the other thread that you used to work for Schneider. If you have more applications like this it would be great if you can share. It is a great way to train new people in PLC programming.

Reply

Link copied. Please paste this link to share this article on your social media post.

AmitGolan
AmitGolan
Explorer

Posted: ‎2026-09-28 12:28 PM

In response to ciupol
0 Likes
0
23
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2026-09-28 12:28 PM

Hello @ciupol,

Indeed there are several other developed applications worth sharing.

Here is one of the earliest. It implements a data logger for real values and stores the records on the SD card. Originally developed for M340 PLC, it should also works for M580. If I am not wrong, the application can be tested while Control Expert is running in simulation mode (I do not remember the location where the data is stored on the local disk).

Attachments
DataLogReal Function Block.zip
Reply

Link copied. Please paste this link to share this article on your social media post.

AmitGolan
AmitGolan
Explorer

Posted: ‎2026-10-02 01:14 PM

In response to ciupol
0 Likes
0
5
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2026-10-02 01:14 PM

Hello again ciupol, 

I figured out another way you may wish to use as a replacement for the missing CONTINUE command.

The idea is to insert a "Transparent" REPEAT statement that will wrap the entire content inside a FOR loop block. "Transparent" means that the UNTIL condition is always true so it actually does not interfere with the FOR loop execution. With this arrangement, placing an EXIT statement at some location will break the inner REPEAT-UNTIL loop while the FOR loop will continue to run its next index.

Example - A loop that skips even index values

====================================

FOR Index := 0 TO 100 BY 1 DO
    REPEAT
        MyArray[Index] := 0;
        IF Index MOD 2 = 0 THEN
            EXIT;
        END_IF;
        MyArray[Index] := Index;
    UNTIL 1
    END_REPEAT;
END_FOR;

 

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 

You’ve reached the end of your document

WHAT’S NEXT?

Ask our Experts

Didn't find what you are looking for? Ask our experts!

My Dashboard

Check out the new Feeds and activities that are relevant to you.

To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support

    Ask our Experts

    Have a question related to our products, solutions or services? Get quick support on community Forums

    Email Us

    For Community platform-related support, please email us

Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2026 Schneider Electric

Welcome!

Welcome to your new personalized space.

of

Explore