Pete_S
Member
Hello All,
My understanding from the RSLogix help file is that copy functions (COP & CPS) will perform a bit by bit copy from one memory location to another, with no consideration of data type (IE a COP/CPS of a Float to a DINT will produce garbage). The only difference between the 2 functions is the CPS will interrupt the scan until the function completes where the COP function will run in parallel with current scan. So I was very confused when I attempted to use a CPS(and COP just for s&g) to copy a float tag (with value of 0.0)into all elements of a float array and saw results shown in attached screen capture. I have no other logic operating on these tags so I would have expected both functions to write the exact value of the source of the function into the destination of the function. Can someone please tell me what I am missing? Thanks
My understanding from the RSLogix help file is that copy functions (COP & CPS) will perform a bit by bit copy from one memory location to another, with no consideration of data type (IE a COP/CPS of a Float to a DINT will produce garbage). The only difference between the 2 functions is the CPS will interrupt the scan until the function completes where the COP function will run in parallel with current scan. So I was very confused when I attempted to use a CPS(and COP just for s&g) to copy a float tag (with value of 0.0)into all elements of a float array and saw results shown in attached screen capture. I have no other logic operating on these tags so I would have expected both functions to write the exact value of the source of the function into the destination of the function. Can someone please tell me what I am missing? Thanks