DAQconnect and DF sequence variables

Recommended Posts


Is the best way to make DF Sequence variables available to DAQconnect : -

1. Create a new channel (named e.g."LevelStatusDAQconn") using a dummy modbus device and then ticking the DAQconn box and filling out the  DCHst and DCintvl columns

2. In the applicable DF Sequence copy the actual variable to the channel "LevelStatusDAQconn" variable (i.e. LevelStatusDAQconn = LevelStatus)

Doing the above worked fine but I just wanted to check that this is the best way?

Link to comment
Share on other sites

Further to the above, the dummy modbus device was set to device  ID  D# 0

Or should I be using : -

daqconnect.addValue("tagName", value)


daqconnect.addValue("LevelStatusDAQconn", LevelStatus) ?



Link to comment
Share on other sites

I personally use daqconnect.addValue() for everything.  It gives me more control over exactly what data gets sent.  And in your case avoids a dummy channel.

I also use daqconnect.init() instead of using the menu, as it is more obvious what the data source is set to.  It also allows for programmatic change of the data source.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.