Lenze PLC Designer PLC Designer (R2-x) Manuel d'utilisateur Page 255

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 844
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 254
L-force | PLC Designer
Editors in PLC Designer
DMS 3.2 EN 02/2011 TD29 253
For Global Variables (g) and Global Constants (gc) an additional prefix + underscore is
attached to the library prefix:
Examples:
VAR_GLOBAL
CAN_g_iTest: INT;
END_VAR
VAR_GLOBAL CONSTANT
CAN_gc_dwExample: DWORD;
END_VAR
User-defined data types (DUT)
The name of each structure data type consists of a library prefix (Example: CAN), an
underscore and a preferably short expressive description (Example: SDOTelegram) of
the structure. The associated prefix for used variables of this structure should follow
directly after the colon.
Example:
TYPE CAN_SDOTelegram : (* prefix: sdo *)
STRUCT
wIndex:WORD;
bySubIndex:BYTE;
byLen:BYTE;
abyData: ARRAY [0..3] OF BYTE;
END_STRUCT
END_TYPE
Enumerations start with the library prefix (Example: CAL), followed by an underscore
and the identifier in capital letters.
Regard that in previous versions of PLC Designer ENUM values > 16#7FFF have caused
errors, because they did not get converted automatically to INT values. For this reason
ENUMs always should be defined with correct INT values.
Vue de la page 254
1 2 ... 250 251 252 253 254 255 256 257 258 259 260 ... 843 844

Commentaires sur ces manuels

Pas de commentaire