6/27/2024 7:25 PM | |
Joined: 4/2/2024 Last visit: 7/17/2024 Posts: 7 Rating: (0) |
Hi, I have a couple RFIDs machines. I want to have a reusable FB that I can call to use them with. Inside my FB I have a Ident_Profile. This standard tia portal block has a HW_CONNECT that they need filled out with a technology object address. Everything is happy if I directly put my technology object directly into that parameter. But, when I try to make a reusable FB i am failing. I created a InOut parameter and used that as my HW_CONNECT, this makes the FB itself happy. But when I try to call my custom FB and feed the technology object to the InOut, it says it is illegal? Can anyone advise? Images attached Attachmenttia.zip (36 Downloads) |
6/27/2024 8:03 PM | |
Joined: 4/2/2024 Last visit: 7/17/2024 Posts: 7 Rating: (0) |
Actually I got it to work. The confusion over it being simply a DB pointer set me down the right path. I was using DB_ANY as the datatype, but its not simply a DB. After investigating, I found it is a TO_IDENT so I changed the datatype in the FB to be that and now everything seems to be happy? I'll have to test it live now to make sure it still functions properly. Attachmenttia2.zip (36 Downloads) |
Follow us on