
adccommunitymod (AutomationDirect) asked a question.
Created Date: November 26,2014
Created By: kewakl
**** 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.****
I have this rung: See attachment CPA ClearSource.png Twice this week, the Source Array in the CPA instruction did not clear, but the array data did get copied. This is in a Run Every Scan task. I changed it to this: See attachment CPA Don't ClearSource.png I have looked through the release notes. Did not find anything. I *tried* to search the forums but searching for CPA is fruitless. Searching for Copy Array returns ALL Copy and ALL Array I tried google http://forum.automationdirect.com "Copy Array " . Four hits. Nothing useful.
Created Date: November 26,2014
Created by: techme
What else can write data into the Incoming Data array in your project? Hard to say what could be happening just looking at one rung and not knowing what populates the array initially.
Created Date: November 26,2014
Created by: kewakl
techme, your statement is true. Hard to say.
The IncomingData is sent from another PAC using the WX instruction.
(I guess that if it DOES NOT happen again, I will go on assuming that it is a fluke of CPA Clear Source. If it does happen again, then I will look at better interlocking the remote WX instruction.)
The WX instruction is triggered by a sequence that jumps to the next step on the WX.SUCCESS bit.
(The help file says that WX is level driven but there is an UP ARROW on the ENABLE input)
In another program, I noticed that CPA did NOT correctly Clear Source at times -- and in that program the data was NOE triggered into the array and NOE triggered CPA -- all internal data.
I never nailed down why. I just FLA'd the array after CPA. The problem did not reappear after that, so I figured that it was an issue with CPA (Clear Source) option.
This (nearly) identical (comms) task is running on six PACs (no pun.)
In the time that this has been running, these are the only two *documented* instances of this. -I don't mean to say that my programming is infallible!:rolleyes: I know better.
Created Date: November 26,2014
Created by: kewakl
I have this rung: See attachment CPA ClearSource.png
Twice this week, the Source Array in the CPA instruction did not clear, but the array data did get copied.
This is in a Run Every Scan task.
I changed it to this: See attachment CPA Don't ClearSource.png
I have looked through the release notes. Did not find anything.
I *tried* to search the forums but searching for CPA is fruitless.
Searching for Copy Array returns ALL Copy and ALL Array
I tried google http://forum.automationdirect.com "Copy Array " . Four hits. Nothing useful.