Наші бренди

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

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

Ласкаво просимо на наш веб-сайт.
		
Чим ми можемо вам допомогти сьогодні?
Can I use extracted bit from an integer in an Alarm group in Vijeo Designer?

Issue:
Using extracted bits from an integer in the Alarm group


Product Line:
Vijeo Designer


Resolution:
No, not directly. As shown below, bits from a %MWi are not supported as the device address of a variable.
image_1

You can indirectly use the bits of an integer in scripting to write the values to an array of 16 bools.  First, create your INT variable that you would like to extract the bits from. Also create an array of 16 bools. The array can be an internal variable or external.  Internal is used in this example
image_2

Next, create a script and enter the following
image_3

In the Script above you can use the extracted bits from the Integer variable directly. For example Var3.X(0) is bit 0 of variable Var3. The bit is then written to the first bit of the Bool array Var1[0] using the "write" function. Example shown above  "var1[0].write(Var3.X(0)); ". You would do this for all 16 bits.

In the alarm group you can use the bool array variables
image_4

Schneider Electric Україна

Вкладення
image_1.jpg [21.9 KB]
image_2.jpg [67.57 KB]
image_3.jpg [40.62 KB]
image_4.jpg [44.99 KB]
Досліджуйте більше
Серія:
Досліджуйте більше
Серія:

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

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

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

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

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

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

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

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

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

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