The MID, is a code that can be written only by Elsist, we can assign a MID code to a customer and write it on the products the customer buys. A special function allows the customer to check by program if the product has the proper MID or not, so by checking it on own programs, functions or FBs it’s possible to stop them if the MID doesn’t match.
With the MID code you can develop programs, functions or FBs that can be run only on a products that have the proper MID written on. So anyone can copy or backup the software but it doesn’t be run in an hardware tha hasn’t the proper MID.
Your FBs can be protected by checking the MID by code on them, and obviously the source code of these FBs must be encrypted (Like ours) otherwise anyone can modify the code to bypass the MID control. To encrypt an object, choose from the Logic Lab the object, with the mouse right button menu, select encrypt (See screenshot), and then set a password (a unique password for all the objects or separate password for any object).