Control Solutions is your source for Modbus to SNMP gateways.

Power Monitoring via SNMP (or Modbus TCP)

SNMP trap setup

Start by setting up a "threshold rule". We see from our register mapping that in our example, total power is found in register 1001. This rule will become "true" when total power exceeds 75kW. We do not need to do anything about destination register since we are not intending to perform any control functions as a result of seeing the peak power limit. We only want to report this fact. (You may tackle advanced programming later, and do something creative like cause a local generator to start up when peak power is exceeded for some period.)

When you first go to the Thresholds tab, you will see a summary list of rules like the screen shot below. Click on the rule number to get to the expanded view (above) where you actually set up the rule.

Next, you need to tell the X2 where to find your SNMP manager. Go to the IP Network -> SNMP Setup -> Devices page (below). Enter either a static IP address or a host name, and check a group membership box to include this host in one or more groups of hosts.

If you enter a host name for your SNMP manager, you also need to set up DNS so the X2 can find your host. You do this on the Network setup page shown below. If you don't know what this means or do not know your DNS IP addresses, you need to contact your network administrator. (Control Solutions cannot provide this information for you.)

Finally, you need to enable traps on the Trap Enable page. Each threshold rule that has been previously defined will appear on this list. Check the Trap on True box to enable the trap, and optionally also check Trap on False. The repeat count simply means the trap will be repeated this many times if there is concern whether the SNMP manager might miss a single transmission. Each rule may be selectively sent to any of the three groups of managers (whose membership was set above).

Again, don't forget to save your configuration once all of these changes have been made. Your LonWorks mappings are saved in that XML file, and all trap settings and threshold rules are also saved there. They will be lost upon power out if not saved to the XML file.