SNMP variable give #bad in reading

Hi

when I try to read a SNMP variable, the SCADA Citect give me the value #bad.

If I try to read that variable by a MIB Browser is working

Thank in adavnce

  • Hi Daniele,

    1) Is the 'SNMP' Windows Service running on your machine? Start it using Windows Task Manager or Control Panel.
    2) Is the data type of the variable that you try to read supported in Citect? Please consult the driver Help file for all supported types.
    3) Is your tag definition correct? The addres of the variable tag should match an entry in SNMPVars.dbf.
    For example address R100 should match a record in SNMPVARS.dbf where SNMPTYPE is 'R' and INDEX is 100.
    The DEVNAME field in SNMPVARS.dbf should match the I/O device name (UNITS field) in variable.dbf
    The field TAGNAME (and possibly also SNMPNAME) should match your variable tag name
    The OID field should match the SNMP object-identifier in the MIB file (for example: .1.3.6.1.4.1.232.6.2.9.1.0). Make shure it starts with a dot (.)

    SNMP is a rather difficult protocol to get running in Citect.

    Regards,
    Patrick
  • Hi Patrick
    We have checked the point that you have mentioned and all is ok. We have checked by Wireshark but the citect don't send the get to the equipement. To read the SNMP variable We write the variable name on the page by Graphic Editor. Do you know other ways to read it to try.
    We are using the SCADA Citect Update 9 and SNMP 2.09.

    thanks
  • You could call "TagDebug()" or "TagDebugForm()" from a button. These commands will pop-up a form to enter a variable name and read them.
    I would also check your log files for driver or communication errors.

    The Kernel is also a powerful tool to debug your communication. The "Driver" and "Unit" pages are a good place to start.