Can a POU (Program Organization Unit) not scheduled in the Task be called by another POU in SoMachine?
Issue
This resolution is an example for a call to a subroutine. It provides an overview for calling a secondary POU not scheduled in the Task by a main POU.
Product Line
SoMachine
EcoStruxure Machine Expert
Environment
PLC Configuration Software Suite
Resolution
In order to be executed, POU (Program Organization Unit) must be scheduled in the Task Configuration. Or a main POU already scheduled in the Task Configuration can call to a secondary POU that is not schedule in the Task Configuration list. This resolution will demonstrate how to call a secondary POU from a main POU
NOTE: The screenshots below are from the SoMachine software environment. The procedure is the same in the newer EcoStruxure Machine Expert.
This method is valid for all types of PLCs supported in SoMachine and EcoStruxure Machine Expert.
1) Create 2 POU (Program Organization Unit) A Main and Secondary POU.
2) Devices Window
3) Add the Main POU to the Task configuration
4) Insert a Box in the Main POU FBD section. This box will be used to call the secondary POU.
5) Link the Box to Secondary_POU
6) Add a conditional input to control the execution of Secondary_POU. In this example, when Call_SecondaryPOU is true, Secondary_POU gets executed. Otherwise if Call_SecondaryPOU is false, Secondary_POU does not executed.
7) Running the project
Call_SecondaryPOU = False, Secondary Pou not being executed.
8) Running the project
Call_SecondaryPOU = True, Secondary Pou is being executed.
If this FAQ did not solve your issue, you can chat with us at chat with us or e-mail us at customer.services@se.com to create a case with our Technical Support Team.
If you are not located in North America, please contact your local Customer Care Center for assistance:
Publicado para: Schneider Electric Mexico
¿Necesitas ayuda?
Selector de productos
Encuentra rápida y fácilmente los productos y accesorios adecuados para tus aplicaciones.
Pedir presupuesto
Comienza tu consulta de ventas en línea y un experto se pondrá en contacto contigo.
¿Dónde comprar?
Encuentra fácilmente el distribuidor de Schneider Electric más cercano a ti.
Centro de ayuda
Encuentra recursos de soporte para todas tus necesidades en un solo lugar.