Monitoring

The Network Monitoring allows you to asynchronously monitor individual network devices in a network interface. Various methods and protocols are supported.

Warning: All time constants expect a value in milliseconds. Therefore, enter all values with T#1s and not 1.

Limitations

The interval is limited to T#10s on the Nano, Pico and Touch servers. On all other servers, the limit is T#500ms. This also applies if the command was called from the PLC.

If a command is called again during runtime, execution is blocked.

Cyclic Query

The cyclic query is set using the variable interval. If the time is equal to 0, no cyclic query is used.

The interval and timeout can be specified using the time constant T#1m.

Note: The timeout should definitely be set.

NS-Lookup

Performs a nameserver lookup on a network resource. The command can be called via PLC or cyclically.

Variable Description
address Specifies the address from which information is to be queried.
server Specifies the DNS server from which the data is queried. If no server is defined, the configured DNS servers are used.
port Specifies the port to be used. The default port is 53.
interval Specifies the interval of the query.
timeout Specifies the timeout after the ping.
typ Defines the query type of the query.
lookup Performs a lookup immediately on a positive edge.
result Returns the result as text.

Ping

Performs an ICMP ping with 64 bytes on a network resource. The ping can be called via PLC or cyclically.

Variable Description
address Specifies the target address of the ping. This can be an IP or a FQDN.
interval Specifies the interval of the query.
timeout Specifies the timeout.
ping Performs a ping immediately on a positive edge.
pong Returns a pulse on response. It is true if the ping was successful.
time Returns the runtime of the ping in ms. Nothing is returned on error.
ttl Returns the TTL of the ping. Nothing is returned on error.

Port-Check

Checks if a port on the target server is open. The command can be called via PLC or cyclically.

Variable Description
address Specifies the target address of the check. This can be an IP or a FQDN.
port Specifies the port to be checked.
interval Specifies the interval of the query.
timeout Specifies the timeout after the ping.
typ Defines the protocol type (UDP or TCP) of the query.
lookup Performs a lookup immediately on a positive edge.
open If true, the queried port is open. If the server cannot be reached, this is also false.

Traceroute

Displays all TTL hops to the destination. The maximum number of hops is 30. This value cannot be set.

Variable Description
address Specifies the target address of the check. This can be an IP or a FQDN.
port Specifies the port to be used. This can only be used with the methods UDP and TCP.
interval Specifies the interval of the query.
timeout Specifies the timeout after the ping.
typ Defines the type to be used. The exact specifications can be found in the Linux documentation for Traceroute.
trace Performs a trace immediately on a positive edge.
result Returns the result as text.

Wake On LAN

Using Wake On LAN, devices can be started at a specific time. This function usually needs to be configured in the device's BIOS beforehand.

Variable Description
address Specifies the MAC target address of the device. The address has the format 00:80:41:AE:fD:7E. The address can also be written separated by . _ -.
wake Sends the "Magic Packet" to the specified MAC address on a positive edge. The network interface is set in the gateway.

Tip: The MAC address can be copied from the IP Scanner.