Onze merken

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

Welkom op de website van Schneider Electric

Welkom op onze website.
		
Hoe kunnen wij u vandaag helpen?
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 Belgium

Ontdek meer
Productfamilie
Ontdek meer
Productfamilie

Hulp nodig?

  • Selecteer zelf het juiste product

    Vind snel en eenvoudig de juiste producten en toebehoren voor uw toepassingen.

  • Offerte aanvragen

    Dien uw aanvraag online in en een expert zal contact met u opnemen.

  • Verkooppunten

    Vind eenvoudig de dichtstbijzijnde distributeur van Schneider Electric op uw locatie.

  • Help Center

    Vind de antwoorden die u nodig heeft via bladeren door veelgestelde vragen over onderwerpen.

  • Productdocumentatie
  • Software & firmware
  • Productselector
  • Productvervanging
  • Help- en Contact Center
  • Vind onze kantoren
  • Offerte aanvragen?
  • Verkooppunten
  • Schneider Electric Community
  • Werken bij
  • Bedrijfsprofiel
  • Wangedrag melden
  • Toegankelijkheid
  • Newsroom
  • Investeerders
  • EcoStruxure
  • Vacature zoeken
  • Blog
  • Als eerste op de hoogte nieuws?
  • Privacybeleid
  • Cookieverklaring
  • Gebruiksvoorwaarden
  • Algemene verkoop- en inkoopvoorwaarden
  • Change your cookie settings