BACnet IO device

esih
2023-01-25
2023-03-03
  • esih - 2023-01-25

    Hello!

    I am having some real issues trying to understand how BACnet works in codesys (or in general)... I am used to working with modbus IO modules so I have no idea what I am doing right now. I have a BACnet IO module with 4 digital outputs that I am trying to control. I can see the module and control the outputs with YABE software,but I have no clue how to do that with codesys. What is the logic here? Do I make the same objects that are on my IO module in codesys or do I need a client on the codesys side to communicate with IO module objects. I know It is probably a dumb question, but I just need some push in the right direction to figure this out. Any help would be greatly appreciated.

    BR
    E

     
  • esih - 2023-01-27

    OK, I figured it out...

     
  • esih - 2023-03-03

    Hello,
    another question... Is there a way to use a bacnet property directly in visualisation?
    When I create bacnet analog value object, I can change Analog_value.presentvalue from watch and see the change in bacnet tool (YABE) and vice versa... but when I PUT Analog_value.presentvalue in vusualisation i get an error:

    C0032:  Cannot convert type 'Unknown type: 'ADR(BACNETANALOGVALUE.__GETPRESENTVALUE)'' to type 'POINTER TO BYTE'
    

    I know I can make a new variable for example Var1:REAL; and write Var1:=analog_value.presentvalue; to it and it works, but I need analog_value.present value to be read/write, so I can change value from different places.

    Any help would be greately appreciated.

    BR
    E

     

    Last edit: esih 2023-03-03

Log in to post a comment.