Kepserver Opc - Write A Tag With Long Type


Recommended Posts

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

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

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

  • 2 weeks later...

Archived

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