I have a problem regarding the exchange of data coming from the network with the MN application. I have set up a structure (on both CN and MN), which contains all data that needs to be exchanged with the network. This is done in the processSync function. On the CN this works, as I can verify in Wireshark. I can see the correct variables put in the correct places in the payload. However, when I want to handle these values on the MN, they are not in the correct places anymore. So I assume, that there is something going wrong between the reception of the data packet on the network and the exchange of the process image with the application. During debugging I have seen, that the value put into my variable structure from the process image is already the wrong one, though it is another varialbe, I need at another place. Does anyone have an idea, where to look for errors on this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello all,
I have a problem regarding the exchange of data coming from the network with the MN application. I have set up a structure (on both CN and MN), which contains all data that needs to be exchanged with the network. This is done in the processSync function. On the CN this works, as I can verify in Wireshark. I can see the correct variables put in the correct places in the payload. However, when I want to handle these values on the MN, they are not in the correct places anymore. So I assume, that there is something going wrong between the reception of the data packet on the network and the exchange of the process image with the application. During debugging I have seen, that the value put into my variable structure from the process image is already the wrong one, though it is another varialbe, I need at another place. Does anyone have an idea, where to look for errors on this?
Hi Kevin,
I hope you have followed the steps below to get the data exchange using the custom structure:
On CN
On MN
Will it be possible to share the openCONFIGURATOR project used for your tests?
Regards,
POWERLINK Team,
Kalycito