Import

Erez

Member
Join Date
Oct 2010
Location
Lapid
Posts
2
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
 
Not sure about 2D arrays, but for a 1D array you would declare it in the variable table enter the default values in the value field, then to make it a constant right click on the variable from the drop down menu select 'data property' then tick the constant selection.

For the dfb - defining it does not create an instance, so when you use it in a FB section of code this will automatically create the instance. To create an instance without inserting into an FB section of code - go to the variable table and select the function blocks tab now create a new function block (add a line to the table) of the type that you named the dfb
Not sure about the rest of your question on ST I mainly use FB
 
for the 2D array import - i have a 2D data file (created in excel) that i want to load its values into a variable. I tried the import - but it did not work

As for the dfb defining - thanks, Ill give it a try
 

Similar Topics

I'm trying to import a .prj file and I keep getting the error message: Project import error. i Any ideas how to get around this? Thanks.
Replies
0
Views
73
Good day colleagues, I have a problem with a plc slc 5 since I export the tags to my factory program to load them into a panel view 1000 plus 6...
Replies
0
Views
114
hey good afternoon ! I have a simple question, I need to import an Add on instruction to a controller that is in operation and cannot stop. Is it...
Replies
6
Views
290
I am very familiar with Studio 5000 PLC programming. And I'm very familiar with C-More HMI programming. But this is my first time using a C-More...
Replies
2
Views
314
I am trying to import addresses and symbols from a PanelBuilder32 application into the RSLogix 5 Address/Symbol database - however each time I...
Replies
5
Views
534
Back
Top Bottom