Freelance User Function Block: how to create instance out of User-Defined Object Type in 800xA
I have created in CBF an User Function Block (UFB, Name Ilock), then an instance "tesIlock" of it and exported the *.ple-File via projectmanager.
In 800xA I have created under Object Type Struct->Control System->Freelance 800F Connect->User Defined Function Blocks an object Type "U.Ilock" (from the U.Template).
If I upload now the ple-Confi there is no instance object of "tesIlock" created wihtin the control struct.
What do I have to perform to get instances of my new UBF "Ilock" and object type "U.Ilock" while uploading the ple-File?
Do I have to tell "AC800F Uploader" which UFBs to create objects from?
Thx in advance.
Voted best answer
Das sollte so funktionieren. Außer dem Object-Type Object brauchst du im 800xA nichts anzulegen.
Hast du denn im CBF in der MSR-Stellenliste den Export an den OPC-Server angehakt? Ansonsten legt der Uploader kein Objekt an.
Welche Version von 800xA ist das? Bis zur 5.1 gab es im Uploader einen Bug. Der hat das Objekt nicht angelegt wenn man beim ersten 800xA import den OPC-Zugriff noch nicht aktiv hatte, auch wenn man das später angehakt hat. Der uploader konnte die nachträgliche aktivierung des OPC-Zugriffs nicht erkennen.
(english repeat)
Should work like this. There is nothing else needed. Do you have enabled export in CBF? This is required for Object creation by Uploader.
What version of 800xA is this? Up to 5.1 there was a bug into uploader. It does not create an Object if you have not enabled export in CBF on the first import, even if you enable it later.
Answers
I'm not so familiar with the 800xA side, but wouldn't the object type name in 800xA and the UFB Class object name in Freelance need to be identical? According to your description, the class name in Freelance is "Ilock", but the object type name in 800xA is "U.Ilock". I would expect the object type name in 800xA also needs to be "Ilock" only without the preceding "U.".
Did you put the object type in 800xA here?

Did you put the object type in 800xA here?
Add new comment