Hi all,
I'm new (very new) to PLC (and it seems like Schneider help is useless) so I hope someone will save me….
Does anybody knows how to load a 2D array (text file) into a variable (I want to load it once and to make sure it stay the default for that variable)
I created a new DFB. I can use it if I use the FDB language but trying to insert it in a ST base section generate an error (seems like the DFB is unrecognized). It looks like I have to define the function also in the derived FD instance but the way to do that (and why….) is unclear.
Last, Assume my DFB (named MY_f) is C:=A+B
I would like to be able to write the following in the ST format:
Z:=MY_f(In1,In2)+4; - just like the build in function sin(x) works.
On the other hand, if MY_f has two outputs the way I would like it to work is:
(Out1,Out2)=MY_f(In1,In2) or
MY_f(In1,In2,Out1,Out2)
is there a way to do that? I could only get the second way to work.
thanks, Erez
I'm new (very new) to PLC (and it seems like Schneider help is useless) so I hope someone will save me….
Does anybody knows how to load a 2D array (text file) into a variable (I want to load it once and to make sure it stay the default for that variable)
I created a new DFB. I can use it if I use the FDB language but trying to insert it in a ST base section generate an error (seems like the DFB is unrecognized). It looks like I have to define the function also in the derived FD instance but the way to do that (and why….) is unclear.
Last, Assume my DFB (named MY_f) is C:=A+B
I would like to be able to write the following in the ST format:
Z:=MY_f(In1,In2)+4; - just like the build in function sin(x) works.
On the other hand, if MY_f has two outputs the way I would like it to work is:
(Out1,Out2)=MY_f(In1,In2) or
MY_f(In1,In2,Out1,Out2)
is there a way to do that? I could only get the second way to work.
thanks, Erez