CH2014 Posted March 19, 2019 Share Posted March 19, 2019 Hi, 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? Quote Link to comment Share on other sites More sharing options...
CH2014 Posted March 19, 2019 Author Share Posted March 19, 2019 Further to the above, the dummy modbus device was set to device ID D# 0 Or should I be using : - daqconnect.addValue("tagName", value) i.e. daqconnect.addValue("LevelStatusDAQconn", LevelStatus) ? Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted March 19, 2019 Share Posted March 19, 2019 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.