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 USA

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:
  • Help and Contact Center
  • Contact Sales
  • Find our Offices
  • Where to Buy
  • Tech Support: 877-342-5173
  • Careers
  • Company Profile
  • Investors
  • Newsroom
  • Report a Misconduct
  • Product Documentation
  • Software and Firmware
  • Product Selector
  • Product Replacement
  • DigestPLUS Online Catalog
  • Industries
  • Partners
  • Schneider Electric Community
  • Events
  • Privacy Policy
  • Cookie Notice
  • Terms of use
  • Change your cookie settings