MorphuisOGrady
Member
OP
No. DB just contains 50 members of type udt.no arrays used
Please comment!!! If its bad please tell me, I havent done much S7.
Your UDT appears to be 102 bytes long, not 100
There are various DBW references in your copy to/from temp/DB - I presume these are typos?
Here's your FC recoded as an FB with my FC99 setting up the instance DB according to the AI number. For brevity, I've used a few M flags to pass the parameters to the FB. To make the FB entirely data driven, you could add the PIW address to the UDT. I've replaced your one second flasher with M100.0