EcoStruxure Machine Expert version 1.1 does not support the M258, LMC058 and LMC078 controllers.

ST_Request

Overview

Type:

Structure

Available as of:

V1.0.0.0

Inherits from:

Description

The structure ST_Request contains the user-specific information for sending an SNMP request to an agent.

Structure Elements

Name

Data type

Description

sOid

STRING[GPL.Gc_dwMaxSizeOid]

Requested OID

Format: sequence of numbers separated by dots, for example, 1.3.6.1.2.1.1.5.0.

sAgentIp

STRING[15]

IP address of the SNMP agent

pbyValueBuffer

POINTER TO BYTE

The pointer to the first byte of the buffer.

For SET requests, this is the buffer containing the user data to set on the agent.

For GET requests, this is the buffer where the function block stores the response from the agent.

dwNumBytesValue

DWORD

Size of the buffer or the value in the buffer

The buffer is referenced by the pointer pbyValueBuffer.

For GET requests, this defines the size of the buffer where the received values are stored.

For SET requests, this defines the size of the value in the buffer to be sent.

NOTE: For string types add an additional byte for the end of string character.

etValueType

ET_SnmpTag

Type of the value to be set by the SET requests (not used for GET requests).

uiAgentSnmpPort

UINT

SNMP port of the agent

Default value: 161

sCommunityName

STRING[255]

Community name for request

Default values:

oSET request: private

oGET request: public

Used By

oFB_SnmpManager