System information
General Reference Guide IO Servers Configuration
RG-001-0-EN ver 1.5 eWON® - 20/03/2009 - ©ACT'L sa Page 145
5.16.3 Tag name convention
The Item Name can contain the Device address where the value is polled, or not. If the address is also specified at topic level, the address
specified at Tag level will be ignored.
5.16.3.1 Value Name
As the SNMP use an Abstract Syntax Notation (ASN), encode the full OID (Object ID) of the data you want to Read/Write.
You cannot import MIB files into the eWON.
Only INTEGER, 32bits COUNTER, GAUGE, UNSIGNED, TIMETICK object types are supported.
All these objects are Integer and could be truncated when eWON will store them as Float (See “Tags are stored as Float” on page 67).
Examples
IMPORTANT:
The address of SCALAR objects ends with a 0 while the address of array items ends with their index in the array (starting from 1).
For example, to read .iso.org.dod.internet.mgmt.mib-2.ip.ipInReceives that have the address “.1.3.6.1.2.1.4.3”, you must add a “.0” at the end
to obtain “.1.3.6.1.2.1.4.3.0”.
And to read .iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifMtu (“.1.3.6.1.2.1.2.2.1.4“) of the second interface, because this
object is a table, you must add “.2” at the end to obtain “.1.3.6.1.2.1.2.2.1.4.2”.
NOTE: We recommend you to check the SNMP address with an SNMP Client (like Getif http://www.wtcs.org/snmp4tpc/getif.htm
) to find the
right address.
Example: Searching in the MIB file of a network printer to find the address of the “TotalNumberOfPagePrinted”, we found :
.iso.org.dod.internet.mgmt.mib-2.printmib.prtMarker.prtMarkerTable.prtMarkerEntry.prtMarkerLifeCount at address “.1.3.6.1.2.1.43.10.2.1.4”
Using the MIB file with Getif to retrieve the whole
address of this Counter, we see that the Counter is in
a 2 dimension table and we need to add “.1.1” to get
its value.
IO Server Name SNMP
Topic Name
A
B
C
Item Name
ValueName, Global Device Address PLC address is defined Tag by Tag
ValueName Topic PLC Address is used.
Table 128: SNMP IOserver - Tag name convention table
address point to
.1.3.6.1.2.1.4.3.0 read the .iso.org.dod.internet.mgmt.mib-2.ip.ipInReceives object
.1.3.6.1.2.1.4.3.0,10.0.0.55,public,private
read the .iso.org.dod.internet.mgmt.mib-2.ip.ipInReceives object at the IP
10.0.0.55 using community “public” for reading and the community “private”
for writing.
Table 129: SNMP address examples