How to make function block in PLC using codesys v3.5?

Hi,

-add a pou (function block) -> rightclick on Application
-use your new functionblock - add instance to a prg pou (for example PLC_PRG) and call it
-add Symbol configuraion (tag OPCUA the setting), specify which variables you want to publish from your functionblock (instance)
-download it to the plc and start it

connect with OPCUA Client - browse the plc - now you should see our publsihed OPCUA symbols

There is an Example Project here if you are using CODESYS on Raspberry Pi plc. (If you have a different plc type, just open this an rightclick in the device tree -> update device to your plc type)

"c:\Users\<yourWindowsUsername>\CODESYS Control for Raspberry PI\3.5.10.20\Examples\OPCUA.project"

Best Regards
 
Zuletzt bearbeitet:
Zurück
Oben