Programming instructions
82
Intermec Fingerprint 6.13 – Programmer's Guide
7. INPUT TO FINGERPRINT, cont'd.
Industrial Interface
The Fingerprint firmware not only allows you to control the printer,
but various types of external equipment, like conveyor belts, gates,
turnstiles, control lamps etc. can be controlled as well by the
program execution. Likewise, the status of various external devices
can be used to control both the printer and other equipment. The
computing capacity of the Fingerprint printer can thus be used to
independently control workstations without the requirement of an
on-line connection to a host computer.
What makes this possible is the Industrial Interface Board, which
is available as an option for most Fingerprint-compatible Easy-
Coder printer models. The board contains a female DB-15 connec-
tor with 4 IN ports and 4 OUT ports.
The IN ports are connected to optocouplers that allows the Finger-
print firmware to read their status, i.e. to detect whether a current
through the port is on or off.
The OUT ports are connected to four relays that can switch a current
on or off. The status of the relays can also be read.
There are two instruction solely used in connection with the
Industrial Interface Board:
PORTOUT ON/OFF
This statement sets one of the four relays to either Open or Closed,
depending on how the Industrial Interface Board is strapped.
PORTIN
This function returns the status of a specified IN or OUT port:
IN ports (101, 102, 103, or 104)
-1 (true) indicates that the optocoupler detects a current.
0 (false) indicates that the optocoupler detects no current.
OUT ports (201, 202, 203, or 204)
-1 (true) indicates that PORTOUT ON is selected.
0 (false) indicates that PORTOUT OFF is selected.
Example:
The relay on OUT port 201 will be activated when a switch
connected to IN port 101 is turned on.
10 PORTOUT 201 OFF
20 IF PORTIN (101) THEN GOTO 1000 ELSE GOTO 10
1000 PORTOUT 201 ON
1010 GOTO 20
10. External Equipment