Naše značky

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

Vítejte na internetových stránkách společnosti Schneider Electric

Vítejte na našich internetových stránkách.
		
Jak vám dnes můžeme pomoci?
In EcoStruxure Machine Expert / SoMachine, is it possible to create a Structure Variable consisting of mixed Persistent and Non-Persistent Variable leaf elements?
Issue
In EcoStruxure Machine Expert / SoMachine, is it possible to create a Structure Variable consisting of mixed Persistent and Non-Persistent Variable leaf elements?
For example, we wish to have MyINT and MyWord Non-Persistent and MyBOOL as Persistent below:

DUT Type Definition
TYPE MyStructType :
STRUCT
MyINT : INT;
MyWORD : WORD;
MyBOOL : BOOL;
END_STRUCT
END_TYPE
Structure Variable Definition in Global Variable List (GVL):
VAR_GLOBAL
ThisStruct : MyStructType;
END_VAR
Product Line
SoMachine
EcoStruxure Machine Expert
Environment
PLC Configuration Software
Resolution
No. It is not possible to create a Structure Variable that has leaf-element Variables that consist of mixed Persistent and Non-Persistent Variables.
Fully Persistent Structure Variables must be defined in the PersistentVars object, while Non-Persistent Structures must be defined in either a POU's Variable Definition box or the Global Variable List (GVL) separately.
Example:
The original Structure from the above Example can be split into two Structures defined in the GVL and PersistentVars objects.
DUT Type Definitions
1) Meant for Non-Persistent:
TYPE MyStructType :
STRUCT
MyINT : INT;
MyWORD : WORD;
END_STRUCT
END_TYPE

2) Meant for Persistent:
TYPE MyPersistentStructType :
STRUCT
MyBool : BOOL;
END_STRUCT
END_TYPE
Structure Variable Definition in Global Variable List (GVL):
VAR_GLOBAL
NonPersistentStruct : MyStructType;
END_VAR
Structure Variable Definition in PersistentVars:
VAR_GLOBAL PERSISTENT RETAIN
PersistentStruct :  MyPersistentStructType
END_VAR

Schneider Electric Česká republika

Zjistěte více
Řada:
Zjistěte více
Řada:

Potřebujete pomoc?

  • Nástroj pro výběr produktů

    Rychle a snadno vyhledávejte správné produkty a příslušenství pro vaše aplikace.

  • Získejte nabídku

    Poptejte nás online a náš lokální specialista se s vámi spojí!

  • Kde nakoupit?

    Jednoduše najděte nejbližšího distributora výrobků Schneider Electric ve vašem okolí.

  • Centrum nápovědy

    Zdroje podpory pro všechny své potřeby najdete na jednom místě.

  • Dokumentace k produktům
  • Software ke stažení
  • Nástroj pro výběr produktů
  • Hledání náhrady za produkty
  • Centrum nápovědy a kontakty
  • Najít naše pobočky
  • Získejte nabídku
  • Kde koupit
  • Profil společnosti
  • Nahlásit nevhodné chování
  • Přístupnost
  • Newsroom
  • Investoři
  • EcoStruxure
  • Vyhledávání pracovních míst
  • Blog
  • Zásady ochrany osobních údajů
  • Oznámení o souborech cookie
  • Podmínky použití
  • Změnit nastavení souborů cookie