How can we help you today?

Unity Pro: Behavior of the RETURN instruction when used in section of DFB.

Since Unity Pro V4.0 when used in a DFB section the RETURN instruction has the following behavior:
  • Using simulation mode whatever the language , or using standard mode when the DFB section is ST, IL or LD (with the project setting : « Generate with LD link animation » unselected) :
    • RETURN instruction forces the return to the program which called the DFB. The rest of the DFB section containing the RETURN instruction is not executed. The next sections of the DFB are not executed. The program which called the DFB will be executed after return from the DFB. (as mentioned in Unity Pro Help
  • Using standard mode when the DFB section is FBD or LD (with the project setting : « Generate with LD link animation » selected )
    • RETURN instruction forces the return to the next sections of the DFB. The rest of the DFB section containing the RETURN instruction is not executed but the next sections of the DFB are executed.

Before  Unity Pro V4.0
  • Using simulation mode whatever the language :
    • RETURN instruction forces the return to the program which called the DFB. The rest of the DFB section containing the RETURN instruction is not executed. The next sections of the DFB are not executed. The program which called the DFB will be executed after return from the DFB.
  • Using standard mode whatever the language :
    • RETURN instruction forces the return to the next sections of the DFB. The rest of the DFB section containing the RETURN instruction is not executed but the next sections of the DFB are executed.

Schneider Electric Thailand

Explore more
Range:
Users group

Discuss this topic with experts

Visit our community and get advice from experts and peers on this topic and more
Explore more
Range:

Need help?

Need help?

Product Selector

Product Selector

Quickly and easily find the right products and accessories for your applications.

Get a Quote

Get a Quote

Start your sales inquiry online and an expert will connect with you.

Where to buy?

Where to buy?

Easily find the nearest Schneider Electric distributor in your location.

Help Center

Help Center

Find support resources for all your needs, in one place.

  • Products Documentation
  • Software Downloads
  • Product Selector
  • Product Substitution and Replacement
  • Help and Contact Center
  • Find our Offices
  • Get a Quote
  • Where to buy
  • Schneider Electric Community
  • Careers
  • Company Profile
  • Report a misconduct
  • Accessibility
  • Investors
  • EcoStruxure
  • Job Search
  • Blog
  • Privacy Policy
  • Cookie Notice
  • Terms of use
  • Change your cookie settings