fred munger Posted August 22, 2013 Report Posted August 22, 2013 I have to move an ARRAY : ARRAY[0..99] OF INT %MW100 to %MW199 into multiple INT : %MW0 to %MW99 My variables are already created for the INT, so I just want to move values from the ARRAY to my variables in INT... Sure I can do a MOVE block for every variable, but there is probably a way of doing this with array ? If anyone have a clue, Thx
PLCRune Posted August 23, 2013 Report Posted August 23, 2013 If you make another Array With the adress from %MW0 (Int_Array_2). Then you can just use an operateblock were you copy the first (Array INT_Array_1). INT_Array_2:=INT_Array; If you want to split up the array just make variables for the wordadress you want in the array. Int7=%MW7 etc.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now