Lenze PLC Designer PLC Designer (R2-x) Manual do Utilizador Página 257

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 844
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 256
L-force | PLC Designer
Editors in PLC Designer
DMS 3.2 EN 02/2011 TD29 255
7.2.4 Input Variable
Between the key words VAR_INPUT and END_VAR, all variables are declared that
serve as input variables for a POU. That means that at the call position, the value of
the variables can be given along with a call.
Example:
VAR_INPUT
iIn1:INT (* 1. Inputvariable*)
END_VAR
7.2.5 Output Variable
Between the key words VAR_OUTPUT and END_VAR, all variables are declared that
serve as output variables of a POU. That means that these values are carried back to
the POU making the call. There they can be answered and used further.
Example:
VAR_OUTPUT
iOut1:INT; (* 1. Outputvariable*)
END_VAR
7.2.6 Input and Output Variables
Between the key words VAR_IN_OUT and END_VAR, all variables are declared that
serve as input and output variables for a POU.
Stop!
With this variable, the value of the transferred variable is changed ("transferred as a
pointer", Call-by-Reference). That means that the input value for such variables
cannot be a constant. For this reason, even the VAR_IN_OUT variables of a function
block can not be read or written directly from outside via
<functionblockinstance><in/outputvariable>.
Example:
VAR_IN_OUT
iInOut1:INT; (* 1. Inputoutputvariable *)
END_VAR
Vista de página 256
1 2 ... 252 253 254 255 256 257 258 259 260 261 262 ... 843 844

Comentários a estes Manuais

Sem comentários