The DrvSNMP driver is used to communicate with network and computer equipment.
SNMP is an abbreviation of Simple Network Management Protocol and is used to monitor and manage computer networks.
To use DrvSNMP, an IO device is first created and then used to read variables. The variables are defined in MIBs (Management Information Bases) and are dependent on the type of device being communicated with.
The driver does not have its own settings, these are set uniquely for each IO device created.
Installation
The installation of DrvSNMP is done by selecting DrvSNMP during the installation of Web Port.
See "Installation" for more information on the installation process.
IO-device
To use DrvSNMP, first create an IO device as described in chapter "IO-devices" of the manual. In addition to general settings (see "general settings" in IO-devices), the following settings are available for an IO device of type DrvSNMP:
| Setting: | Description: |
| Device address | Specifies the computer name or IP address of the PLC |
| Port | Specifies the UDP port to use |
| Read timeout | Specifies the timeout time for a query |
| Retry count | Specifies the number of times a failed query should be repeated |
| SNMP Community name | Specifies the community to be used |
| SNMP Version | Specifies which version of SNMP to use. The driver supports versions 1 and 2 |
| Init address | A valid SNMP address (oid) on the device. This is used for communication tests with the device. If the initiation address field is left blank, no test of the communication will be done. The state of the device will then always be shown as OK even if there is no contact with the device. |
Tags
In order to send ping messages via an IO device, tags must be created and associated with it. For more information on how to create tag lists and tags, see chapter "Tags" of the manual.
Tags associated with an IO device of type DrvSNMP can have the following data types:
STRING, UINT, INT, ULONG, LONG
Information
The address field specifies the OID number of the variable to be read and obtained from the MIB.