18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix: Built-in Scripting Language<br />

strOID<br />

strTagName<br />

OID to be consulted (e.g., ".1.3.6.1.2.1.1.1.0" ).<br />

Name of the tag that will receive the requested value.<br />

Note: The tag name must be enclosed in quotes, as shown in the syntax<br />

diagram, or else the project will try to get the value of the named tag.<br />

Returned value<br />

Value<br />

Description<br />

0 No error<br />

−1<br />

−2<br />

−5<br />

−7<br />

−8<br />

−9<br />

Invalid number of parameters<br />

Invalid parameter<br />

GET operation failed<br />

Invalid tag name<br />

Invalid tag type<br />

This function is not supported on the current operating system<br />

If you receive any other values, please contact technical support.<br />

Examples<br />

Tag Name<br />

Expression<br />

ErrorTag SNMPGet( "127.0.0.1", "public", ".1.3.6.1.2.1.1.1.0", "SysDescrTag" )<br />

//ErrorTag will receive the error code. If the function succeeds, the value in the OID ".1.3.6.1.2.1.1.1.0" will be saved in the tag<br />

SysDescrTag.<br />

SNMPSet<br />

Uses the Simple Network Management Protocol (SNMP) to set a value on a target computer of network device.<br />

Function Group Execution Windows Embedded Thin Client<br />

SNMPSet System Info Synchronous Supported Not supported Supported<br />

Syntax<br />

SNMPSet( strAddress, strCommunity, strOID, Value, optNumType )<br />

strAddress<br />

strCommunity<br />

strOID<br />

Value<br />

The address of the target computer or device (e.g., "127.0.0.1" or "localhost" ).<br />

The SNMP community name (e.g., "public" ) when communicating with the target computer or<br />

device.<br />

The Object ID (OID) to be set.<br />

The value to be set to the specified OID.<br />

<strong>InduSoft</strong> Web Studio Page 683

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!