[56e3db]: / test / func-decl.test.expected  Maximize  Restore  History

Download this file

89 lines (58 with data), 815 Bytes

FUNCTION func_decl_void:DINT;

VAR

END_VAR

END_FUNCTION

FUNCTION func_decl_empty:DINT;

END_FUNCTION

FUNCTION func_def_clear:DINT;
 func_def_clear := (1);
 RETURN;

END_FUNCTION
FUNCTION func_def_params:DINT;
a: DINT;
 func_def_params := (a);
 RETURN;

END_FUNCTION
FUNCTION func_def_all_voidparams:DINT;

VAR
a: DINT;

END_VAR

VAR
b: DINT;

END_VAR
   func_def_all_voidparams := (a);
 RETURN;

END_FUNCTION
FUNCTION func_def_all_noparams:DINT;

VAR
a: DINT;

END_VAR

VAR
b: DINT;

END_VAR
   func_def_all_noparams := (a);
 RETURN;

END_FUNCTION
FUNCTION func_def_full:DINT;

VAR_IN_OUT
a: DINT;
b: DINT;

END_VAR

VAR
c: DINT;

END_VAR

VAR
d: DINT;

END_VAR
 b := 2;
 
IF a
 b := d;

END_IF
  func_def_full := (a);
 RETURN;

END_FUNCTION
FUNCTION func_def_pointer:DINT;

VAR
a: DINT;

END_VAR

END_FUNCTION