Profinet Gateway with Codesys IO-Controller: How to Access Acyclic Data (Records)
Posted: 21 Nov 2022, 14:14
Hi,
I am using a RevPi Core S and the Profinet IRT gateway. My IO controller ("Profinet master") is provided by Codesys Control Win V3 in order to set up a testing environment.
While using the 320 bytes of cyclic data is working (e.g. the 320 input bytes can be accessed by "data_GW AT %QB0: ARRAY[0..319] OF BYTE;" using structured text or can be set/read using piTest), I could not manage to access the remaining 192 bytes of acyclic data (both for input and output).
While the manual https://www.kunbus.de/files/media/bedie ... ofinet.pdf provides some notes regarding acyclic data in section 5.4, I do not get how to write acyclic data to the Gateway input using structured text.
Furthermore, I do not get how send acyclic data from the Gateway to the IO controller. Using e.g. "piTest -w Input__333,10" does not work as "piTest -r Input__333,10" still returns 0.
Any help is highly appreciated! Thank you very much in advance.
Florian
I am using a RevPi Core S and the Profinet IRT gateway. My IO controller ("Profinet master") is provided by Codesys Control Win V3 in order to set up a testing environment.
While using the 320 bytes of cyclic data is working (e.g. the 320 input bytes can be accessed by "data_GW AT %QB0: ARRAY[0..319] OF BYTE;" using structured text or can be set/read using piTest), I could not manage to access the remaining 192 bytes of acyclic data (both for input and output).
While the manual https://www.kunbus.de/files/media/bedie ... ofinet.pdf provides some notes regarding acyclic data in section 5.4, I do not get how to write acyclic data to the Gateway input using structured text.
Furthermore, I do not get how send acyclic data from the Gateway to the IO controller. Using e.g. "piTest -w Input__333,10" does not work as "piTest -r Input__333,10" still returns 0.
Any help is highly appreciated! Thank you very much in advance.
Florian