adccommunitymod (AutomationDirect) asked a question.

Trouble getting array copy to work??

Created Date: December 10,2018

Created By: g.mccormick

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

{ "data-align ": "none ", "data-size ": "large ", "data-attachmentid ":119550} { "data-align ": "none ", "data-size ": "large ", "data-attachmentid ":119551} I can't seem to figure out what I am doing wrong. I want to copy elements from 1 array into another array. For testing I have just specified elemnts 1-10 copy but in real life I need to copy a different set of them. Regardless, can anyone see what I seem to missing? The values in the destination array never change from 0, in real time the first array has values in it.


  • adccommunitymod (AutomationDirect)

    Created Date: December 10,2018

    Created by: g.mccormick

    { "data-align ": "none ", "data-size ": "large ", "data-attachmentid ":119550} { "data-align ": "none ", "data-size ": "large ", "data-attachmentid ":119551} I can't seem to figure out what I am doing wrong. I want to copy elements from 1 array into another array. For testing I have just specified elemnts 1-10 copy but in real life I need to copy a different set of them. Regardless, can anyone see what I seem to missing? The values in the destination array never change from 0, in real time the first array has values in it.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: December 10,2018

    Created by: g.mccormick

    Here is the my program. The work is in task SEC3120_Modbus_Comms

  • adccommunitymod (AutomationDirect)

    Created Date: December 10,2018

    Created by: MikeN

    You have end rungs before the copy array instructions, so the program wont execute down to those instructions.

  • adccommunitymod (AutomationDirect)

    Created Date: December 10,2018

    Created by: g.mccormick

    Good god. Can you tell it was a long day today? That is embarrassing, I was so focused on other stuff and confused why it wasn't working, I did not even freaking see the obvious.

    Thanks.

  • adccommunitymod (AutomationDirect)

    Created Date: December 11,2018

    Created by: kewakl

    HA! I 've never done that. Really, yes! I have!

  • adccommunitymod (AutomationDirect)

    Created Date: December 14,2018

    Created by: bsinkovich

    Ya, I never had this happen to me! :)

  • adccommunitymod (AutomationDirect)

    Created Date: December 15,2018

    Created by: genebond

    Good god. Can you tell it was a long day today? That is embarrassing, I was so focused on other stuff and confused why it wasn't working, I did not even freaking see the obvious.

    Thanks.

    Welcome aboard!