thuatnguyenbk Posted May 26, 2015 Share Posted May 26, 2015 Hi admin, I config KEPServerEX (SNMP driver) to read/write a snmp device and i have a tag with LONG type. I config a channel (asyn read) in DAQ to read this tag and successful, but when i config this channel as output (analog output or discrete output) to write new value, i failed. Nothing happen with DAQ and my tag. I also use code myChannel = value but unsuccessful. after that, i try to use a opc quick client of kepserver to write this tag and it successful. What do i need to config DAQ to write a opc tag with long type? Please help me. Many thanks, ThuatNM Link to comment Share on other sites More sharing options...
AzeoTech Posted May 27, 2015 Share Posted May 27, 2015 There shouldn't really be any issue, unless there is a DCOM security issue. DAQFactory writes all numbers as 64 bit floats, but it comes through as a variant, so as long as the value you send is actually an integer, the OPC server should have no problem converting it. Note DAQ won't show the value updated in the channel until the value is set. Do you get any error messages? You might consider using string output and see if that works. Link to comment Share on other sites More sharing options...
thuatnguyenbk Posted June 3, 2015 Author Share Posted June 3, 2015 hi admin, I tested and this is my result (with private community and with a tag): - with SNMP explorer tool: + write this tag with long type - success + write this tag with float - failed - with Kepserver quick OPC client: + write this tag with long type - success + write this tag with float - failed - with DAQFactory (async & sync): + write this tag with analog output - failed + write this tag with discrete output - failed + write this tag with string output - failed i don't know what to do with DAQ, nothing happen, no error message... thanks admin Link to comment Share on other sites More sharing options...
AzeoTech Posted June 3, 2015 Share Posted June 3, 2015 It looks like your server isn't going to take a float type. You'll need to change the type to float in the server somehow. Link to comment Share on other sites More sharing options...
thuatnguyenbk Posted June 12, 2015 Author Share Posted June 12, 2015 hi admin, my snmp device is pCOWeb - CAREL, there are three types of output: boolean, integer and analog. I cannot change type of these output. Can you give more advise. Could DAQ not change typse of output writting?? Thanks admin. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.