Paulus
Member
Hello All,
Suppose I have a function block (named FB_MyTimer)that contains a VAR_IN_OUT (named My_Pulse).
I wish to nest this function block inside a structured text function block.
Does anyone know the correct ST syntax (according to IEC 6-1131) for addressing the VAR_IN_OUT?
E.g. If it were an Input variable, the text might look something like this...
FB_MyTimer(EN := TRUE, My_Pulse := My_Var) ;
If it were an Output variable, the text might look something like this...
FB_MyTimer(EN := TRUE, My_Pulse => My_Var) ;
I have read somewhere that the syntax may be a combination of the two, i.e. FB_MyTimer(EN := TRUE, My_Pulse :==> My_Var) ;
but I'm not sure. Any ideas anyone?
Please note, this is a PLC independant project that I'm working on, so it really is only the correct syntax that is important.
Thanks in advance for any suggestions.
Suppose I have a function block (named FB_MyTimer)that contains a VAR_IN_OUT (named My_Pulse).
I wish to nest this function block inside a structured text function block.
Does anyone know the correct ST syntax (according to IEC 6-1131) for addressing the VAR_IN_OUT?
E.g. If it were an Input variable, the text might look something like this...
FB_MyTimer(EN := TRUE, My_Pulse := My_Var) ;
If it were an Output variable, the text might look something like this...
FB_MyTimer(EN := TRUE, My_Pulse => My_Var) ;
I have read somewhere that the syntax may be a combination of the two, i.e. FB_MyTimer(EN := TRUE, My_Pulse :==> My_Var) ;
but I'm not sure. Any ideas anyone?
Please note, this is a PLC independant project that I'm working on, so it really is only the correct syntax that is important.
Thanks in advance for any suggestions.