SNMP_TRAP_RECEIVER (FB)ΒΆ
FUNCTION_BLOCK SNMP_TRAP_RECEIVER
Function block to receive TRAP and INFORM requests.
- InOut:
Scope
Name
Type
Initial
Comment
Input
xExecute
BOOL
Starts the receiver
sOwnIP
STRING(100)
Hostname or IP address of the SNMP master (the IP of the control)
uiPort
UINT
162
TRAP port (default: 162)
Output
xBusy
BOOL
True while busy
xDone
BOOL
True if the call has finished
xError
BOOL
True if an error occured
xReceived
BOOL
TRUE if a TRAP was received
aSNMPValues
ARRAY [0..gc_uiMaxSNMPValues] OF SNMPValue
The values of the received TRAP
iSize
INT
Size of the received values aSNMPValues
sSenderIP
STRING(100)
The IP address of the TRAP sender
sEnterprise
STRING((gc_iMaxValueLength - 1))
The sender enterprise OID
udiTimestamp
UDINT
Timestamp of the last received trap
eError
Error state of the function block