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.

PORTIN<br />

Chapter —Program Instructions<br />

Purpose Function reading the status of a port on a Serial/Industrial Interface Board.<br />

Syntax PORTIN()<br />

is the number of the port to be read:<br />

IN ports (optical): 101-108 (301-308)<br />

OUT ports (relay): 201-204 (401-404)<br />

OUT ports (optical): 221-228 (421-428)<br />

Remarks This function works with the Serial/Industrial Interface Board and is able<br />

to read the status of 8 IN ports with optocouplers, 8 OUT ports with<br />

optocouplers, and 4 OUT ports with relays. For information on how to set<br />

the OUT ports, please refer to the PORTOUT statement.<br />

A current can be lead through an optocoupler in each IN port:<br />

• If the current is on, the PORTIN function returns the value -1 (true).<br />

• If the current is off, the PORTIN function returns the value 0 (false).<br />

This feature is intended to allow the execution of the <strong>Intermec</strong> Fingerprint<br />

to be controlled by various types of external sensors or non-digital switches.<br />

The status of the OUT ports, as set by PORTOUT statements, can also be<br />

read by PORTIN functions.<br />

Some printers, like EasyCoder PM4i can carry two Serial/Industrial Interface<br />

boards. In this case, the ports on the inner board (that is, the board<br />

closest to the CPU board) are specified by the low numbers (101-108,<br />

201-204, and 221-228) while the ports on the outer board are specified by<br />

the high numbers (301-308, 401-404, and 421-428).<br />

Please refer to the documentation of the Serial/Industrial Interface Board<br />

for more information.<br />

Example The status of IN port 101 on a Serial/Industrial Interface Board decides<br />

when a label is to be printed. The printing will be held until the current is<br />

switched off:<br />

10 FONT "Swiss 721 BT"<br />

20 PRTXT "POWER IS OFF"<br />

30 IF PORTIN (101) THEN GOTO 30<br />

40 PRINTFEED<br />

50 END<br />

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

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

Saved successfully!

Ooh no, something went wrong!