Lenze PLC Designer PLC Designer (R2-x) Instrukcja Użytkownika Strona 257

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 844
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 256
1 2 ... 252 253 254 255 256 257 258 259 260 261 262 ... 843 844

Komentarze do niniejszej Instrukcji

Brak uwag