17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

PORTIN<br />

Chapter 2 Program Instructions<br />

Field of Application Function reading the status of a port on an Industrial Interface Board.<br />

Syntax PORTIN()<br />

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

IN ports (optical): 101 – 108<br />

OUT ports (relay): 201 – 204<br />

OUT ports (optical): 221 – 228<br />

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

the status of 8 IN ports with opto-couplers, 8 OUT ports with opto-couplers,<br />

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

please refer to the PORTOUT statement.<br />

A current can be lead through an opto-coupler 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 to<br />

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 read<br />

by PORTIN functions.<br />

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

information.<br />

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

label is to be printed. The printing will be held until the current comes 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 7.2 – Reference Manual Ed. 3 168

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

Saved successfully!

Ooh no, something went wrong!