Hello I’m trying to read PROFINET Alarms of a AXL F BK PN TPS from an RFC 4072S. I’m trying to use the RECV_ALARM FB but I’m not able to create the correct parameters. When starting the Application the Status of the FB is always 0xF008 (Parameter type invalid). I tried both modes 1 and 2 but nothing works for me. Could someone give an example what datatypes to use for the FB (esspecially for the ANY data) and what length has to be set?
Hi, you can use for the ANY type a every datatype including fields (struct/array). For the start an array of byte should do it to receive the alarm, later you can define maybe a struct for an easier addressing.
The layout of the arrays is described in the help of the FB. In case you’re still running into trouble add at best a small screenshot with the used datatype definition. Take care Frank
Hi, there is a good example in this part of the forum: https://www.plcnext-community.net/en/discussions-2-offcanvas/profinet-recv-alarm.html
The data type needs to be defined according to the desciption in the function block manual. You can look it up by clicking right on the function block in the components window and selecting “Help”. Best regards