02.10.2012 Views

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

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.

Chapter —Program Instructions<br />

ON MIBVAR& GOSUB<br />

Purpose Statement for branching to a subroutine when a specified SNMP MIB<br />

variable is changed.<br />

Syntax ON ↔ MIBVAR&()GOSUB|<br />

is the number of a MIBVAR& variable. Allowed values 0-9.<br />

/ is the number or label of the line to which the program will<br />

branch when the specified MIB variable is modified.<br />

Remarks This statement makes the Fingerprint program branch to a subroutine<br />

whenever the specified MIB variable is modified. This values is then maintained<br />

during the entire subroutine execution. External changes during the<br />

subroutine execution will cause a new subroutine call at return. Related<br />

instruction is MIBVAR&.<br />

Example This example will print the value of MIBVAR&(1) on a label every time its<br />

value is changed. Note that the program is idle (on line 20) as long as the<br />

MIBVAR& variable remains unchanged.<br />

10 ON MIBVAR&(1) GOSUB 1000<br />

20 GOTO 20<br />

.....<br />

.....<br />

.....<br />

1000 FONT "Swiss 721 BT"<br />

1010 PRPOS 30,100<br />

1020 A$ = MIBVAR&(1)<br />

1030 PRTXT A$<br />

1040 PRINTFEED<br />

1050 RETURN<br />

RUN<br />

188 <strong>Intermec</strong> Fingerprint <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong>

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

Saved successfully!

Ooh no, something went wrong!