Hi
I am trying out SCL and wish to use a stat SFB4 with a preset from a DB, Say Stuff, T1 where T1 is type TIME
Compiles
Wont Compile
How do i point the SCL at the DB for the timer preset?
I am trying out SCL and wish to use a stat SFB4 with a preset from a DB, Say Stuff, T1 where T1 is type TIME
Compiles
Code:
FUNCTION_BLOCK FB20
VAR
Timer1 : SFB4;
END_VAR
Timer1(IN := M0.0,PT:=T#10S);
;
END_FUNCTION_BLOCK
Wont Compile
Code:
FUNCTION_BLOCK FB20
VAR
Timer1 : SFB4;
END_VAR
Timer1(IN := M0.0,PT:="Stuff".T1);
;
END_FUNCTION_BLOCK
How do i point the SCL at the DB for the timer preset?