I've used Schneider Electric and Unity Pro for a long time and have always assigned a variable external to the DFB and then assigned that external variable a modbus address.
Is there a way to assign a modbus address to a variable inside a DFB or assign the DFB itself a modbus address? I know I could create a DDT to hold all the variables I want to give a modbus address to, but that would make troubleshooting the code difficult as I wouldn't be able to see the values live in the code sections, I'd have to initialize an animation table on the DDT.
Is there a way to assign a modbus address to a variable inside a DFB or assign the DFB itself a modbus address? I know I could create a DDT to hold all the variables I want to give a modbus address to, but that would make troubleshooting the code difficult as I wouldn't be able to see the values live in the code sections, I'd have to initialize an animation table on the DDT.