Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7188
Chapter 2 Program Instructions
PORTIN
Field of Application
Function reading the status of a port on an Industrial Interface Board.
Syntax PORTIN(<nexp>)
<nexp> is the number of the port to be read:
IN ports (optical): 101-108
OUT ports (relay): 201-204
OUT ports (optical): 221-228
Remarks
This function works with the Industrial Interface Board and is able to read
the status of 8 IN ports with optocouplers, 8 OUT ports with optocouplers,
and 4 OUT ports with relays. For information on how to set the OUT ports,
please refer to the PORTOUT statement.
A current can be lead through an optocoupler in each IN port:
• If the current is on, the PORTIN function returns the value -1 (true).
• If the current is off, the PORTIN function returns the value 0 (false).
This feature is intended to allow the execution of the Intermec Fingerprint
to be controlled by various types of external sensors or non-digital
switches.
The status of the OUT ports, as set by PORTOUT statements, can also
be read by PORTIN functions.
Please refer to the documentation of the Industrial Interface Board for
more information.
Example
The status of IN port 101 on an Industrial Interface Board decides
when a label is to be printed. The printing will be held until the current
is switched off:
10 FONT "Swiss 721 BT"
20 PRTXT "POWER IS OFF"
30 IF PORTIN (101) THEN GOTO 30
40 PRINTFEED
50 END