Lenze PLC Designer PLC Designer (R2-x) Manual de usuario Pagina 527

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 844
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 526
L-force | PLC Designer
Data types in PLC Designer
DMS 3.2 EN 02/2011 TD29 525
Example:
TYPE TRAFFIC_SIGNAL: (Red, Yellow, Green:=10); (*The initial
value for each of the colors is red 0, yellow 1, green 10 *)
END_TYPE
TRAFFIC_SIGNAL1 : TRAFFIC_SIGNAL;
TRAFFIC_SIGNAL1:=0; (* The value of the traffic signal is
red*)
FOR i:= Red TO Green DO
i := i + 1;
END_FOR;
The same enumeration value may not be used twice within an enumeration or within
all enumerations used in the same POU.
Example:
TRAFFIC_SIGNAL: (red, yellow, green);
COLOR: (blue, white, red);
Error: red may not be used for both TRAFFIC_SIGNAL and
COLOR.
Vista de pagina 526
1 2 ... 522 523 524 525 526 527 528 529 530 531 532 ... 843 844

Comentarios a estos manuales

Sin comentarios