SNMP_TRAP_RECEIVER (FB)ΒΆ
FUNCTION_BLOCK SNMP_TRAP_RECEIVER
Function block to receive TRAP and INFORM requests.
- InOut:
Scope
Name
Type
Initial
Comment
Input
xExecuteBOOLStarts the receiver
sOwnIPSTRING(100)Hostname or IP address of the SNMP master (the IP of the control)
uiPortUINT162
TRAP port (default: 162)
Output
xBusyBOOLTrue while busy
xDoneBOOLTrue if the call has finished
xErrorBOOLTrue if an error occured
xReceivedBOOLTRUE if a TRAP was received
aSNMPValuesARRAY [0..gc_uiMaxSNMPValues] OF SNMPValue
The values of the received TRAP
iSizeINTSize of the received values aSNMPValues
sSenderIPSTRING(100)The IP address of the TRAP sender
sEnterpriseSTRING((gc_iMaxValueLength - 1))The sender enterprise OID
udiTimestampUDINTTimestamp of the last received trap
eErrorError state of the function block