Modicon Noob

Crash+Flash

Member
Join Date
Jun 2004
Location
Magrathea
Posts
36
I have M340 & Unity Pro and I'm trying to learn to think Schneider whilst my primary language is Rockwell.

I need to know the equivalent of COP.

I have 2 arrays of DDT structure, that is, elements are various data types.
I want to copy X elements of array1[n] to array2[m] and I don't have any hair left.

There must be some direct way to do this, right?

Thanks in advance.

P.S. A FLL would be sweet too.
 
Last edited:
I have M340 & Unity Pro and I'm trying to learn to think Schneider whilst my primary language is Rockwell.

I need to know the equivalent of COP.

I have 2 arrays of DDT structure, that is, elements are various data types.
I want to copy X elements of array1[n] to array2[m] and I don't have any hair left.

There must be some direct way to do this, right?

Thanks in advance.

P.S. A FLL would be sweet too.

Unfortunately, there isnt. Not that I could find anyway.

I had to make a user defined FB using ST.


Code:
in_length := Length_ARINT(Array_in);
out_length := Length_ARINT(Array_out);

IF in_length < (in_array_start + copy_length) OR out_length < (out_array_start + copy_length) THEN
    error := 1;
ELSE
    error := 0;
    FOR i:=0 TO copy_length-1 DO

        Array_Out[out_array_start + i] := Array_in[in_array_start + i];

    END_FOR;
END_IF;

IF i = copy_length - 1 AND error = 0 THEN
    Done := 1;
ELSE
    Done:= 0;
END_IF;

if you cant figure out how to create the DFB type, let me know.
 

Similar Topics

Hello All, I am stumped on how to convert a %MW to a %MF using Machine Expert Basic and a Modicon M221. The help files show a word to a double...
Replies
4
Views
144
A lifetime ago I built a couple systems with Modicon Micro84 controllers that are still running. But today one of those died and they reached out...
Replies
2
Views
87
Everything was working fine, but suddenly CPU went into error mode, and the ERR and TER LEDs lit up. Now I can't download or connect with the PLC...
Replies
0
Views
87
Hello All, Was hoping I could get a little help with Modicon ladder logic. This is the first time I have seen Modicon logic and currently trying...
Replies
6
Views
314
I have a 170AAO92100 card that I am interested in using as a 10 volt output. Is there setup that I have to do in order to change output or simply...
Replies
0
Views
105
Back
Top Bottom