21
Controllers / Read multiple Can messages same ID
« Last post by F.M.Elettromeccanica on September 15, 2023, 09:42:50 PM »Dear all,
I have to read a Can message on attached CAN trace. I’m using MC024_130, the problem is that I can receive 8 bytes every loop , my TimeLoop is 5mS, but I tested 1..10..15.
I have to rebuilt a 80 U8 byte Array, but every way I try I can only read first 8 and I’m not able to copy into an array all data I received.
Is there a way to do it in Guide? Looking at timestamp you can see that this messages are sent every 1Sec a 10 packet. D0 is SID, so, for example, D0=109 means that I have to copy all 10 messages that contains D0=109 in a 80 byte array.
I tried many way, using Copy of array, but with no success. Could I try using POU? Have you got an example code ?
Many thanks
I have to read a Can message on attached CAN trace. I’m using MC024_130, the problem is that I can receive 8 bytes every loop , my TimeLoop is 5mS, but I tested 1..10..15.
I have to rebuilt a 80 U8 byte Array, but every way I try I can only read first 8 and I’m not able to copy into an array all data I received.
Is there a way to do it in Guide? Looking at timestamp you can see that this messages are sent every 1Sec a 10 packet. D0 is SID, so, for example, D0=109 means that I have to copy all 10 messages that contains D0=109 in a 80 byte array.
I tried many way, using Copy of array, but with no success. Could I try using POU? Have you got an example code ?
Many thanks