Store PLCnext CommunityPLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. pynl02
  2. PLCnext Engineer
  3. Tuesday, 07 January 2020

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?

 

Frank PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

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 

Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support
  1. more than a month ago
  2. PLCnext Engineer
  3. # 1
Andreas PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

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

  1. more than a month ago
  2. PLCnext Engineer
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.