Наші бренди

Impact-Company-Logo-English Black-01-177x54

Вітаємо на веб-сайті Schneider Electric

Ласкаво просимо на наш веб-сайт.
		
Чим ми можемо вам допомогти сьогодні?
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.

Add ObjectAdd a POU

2) Devices Window
Devices Tree

3) Add the Main POU to the Task configuration
Add Main POU to Task Configuration

4) Insert a Box in the Main POU FBD section. This box will be used to call the secondary POU.
Insert Box into Main POU

5) Link the Box to Secondary_POU
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.
Conditional execution

7) Running the project

Call_SecondaryPOU = False, Secondary Pou not being executed.


Secondary_POU not executed

Add block visualization

8) Running the project

Call_SecondaryPOU = True, Secondary Pou is being executed.

Secondary POU is executed

Add block is executed - see output

Schneider Electric Україна

Досліджуйте більше
Серія:
Досліджуйте більше
Серія:

Потрібна допомога?

  • Інструмент вибору продукту

    Швидко та легко знаходьте потрібні продукти й допоміжне обладнання для своїх завдань.

  • Розрахувати вартість

    Ставте свої запитання щодо продажів онлайн, і з вами зв’яжеться фахівець

  • Де придбати?

    Зручний пошук найближчого дистриб’ютора, магазина або спеціалізованого партнера Schneider Electric у вашому регіоні.

  • Довідковий центр

    Знайдіть усі необхідні ресурси для підтримки в одному місці.

  • Документація Продукції
  • Завантаження ПЗ
  • Інструмент вибору продукту
  • Заміна та заміна продукту
  • Контактний центр із надання довідки
  • Знайти наші представництва"
  • Де купити
  • Вакансії
  • Профіль компанії
  • Повідомити про проступок
  • Спеціальні можливості
  • Новини
  • Інвестори
  • Ecostruxure
  • Вакансії Пошук
  • Блог
  • Політика конфіденційності
  • Сповіщення про файли cookie
  • Умови користування
  • Change your cookie settings