This function lights a panel or sensor port LED for the duration specified.
C Format
#include "cfrapi26.h" // For defined values
USHORT SenActLed(lednumber, duration)
UCHAR lednumber // LED select
UCHAR duration // Duration to light LED
// 1 = 20 milliseconds
Returns: E_OK // If no error occurred
E_PARAM // If input parameters are incorrect
Masm Format
Input: ah = 0
al = lednumber
bl = duration
Call: INT 43h
Returns: ax = 0 If no error occurred
1 If parameter values are incorrect
Comments:
The LED is lit for the duration times 20 milliseconds and then extinguished. If duration is set to 0, the LED is turned on for an indefinite time. Using a non-zero duration turns the LED off again.
Notes:
Example
int far main (int funct,char far *params)
This function returns the port number from which the most recent bar code or magnetic input originated. The query gives the port number of the last read.
This allows the CFR to process the transaction differently based on which bar code or magnetic device was used by the operator. For example, two-slot readers may be used to control separate entrance and exit gates. Based on the port the data comes from, the CFR can operate the correct gate lock.
Note:
Reads performed while inside the CFR can not be processed using this query, instead see "SenRead". This is due to the fact that sensor reads are buffered while inside the CFR, and the port value shown may not match the sensor read currently being processed by the CFR..
C Format
#include "cfrapi26.h" // For defined values
USHORT SenQueryPort(port)
UCHAR *port // Pointer to returned value
Returns: E_OK // If no error occurred
E_NO_DATA // If no read occurred
Masm Format
Input: ah = 3
Call: INT 43h
Returns: ax = 0 If no error occurred
5 If no read occurred
bl = port number
Comments:
Example
int far main (int funct,char far *params)
This function returns the port number and direction of scan from the most recent bar code or magnetic input. The query gives the port number used in the last read.
This allows the CFR to process the transaction differently based on which bar code or magnetic device was used by the operator. For example, two-slot readers may be used to control separate entrance and exit gates. Based on the port the data comes from, the CFR can operate the correct gate lock.
Notes:
C Format
#include "cfrapi26.h" // For defined values
USHORT SenQueryPort2 (port, direction)
UCHAR *port // Pointer to returned value
UCHAR *direction // Pointer to direction of last read
Returns: E_OK // If no error occurred
E_NO_DATA // If no read occurred
Masm Format
Input: ah = 3
Call: INT 43h
Returns: ax = 0 If no error occurred
5 If no read occurred
bl = port number
bh = read direction
Comments:
Example
int far main (int funct,char far *params)
This function returns the next sensor data record available. In addition to the data, also returned are: the type of input read, the input port used, and the direction of the scan (forward or backward read).
C Format
#include "cfrapi26.h" // For defined values
USHORT SenRead(databuffer, maxlist)
UCHAR *databuffer // Pointer to returned next
// sensor data record.
USHORT maxlist // Size of databuffer
Returns: E_OK // If no error occurred
E_NO_DATA // If data record not available
E_SPACE // If databuffer too small
Masm Format
Input: ah = 2
es:bx = databuffer
cx = maxlist
Call: INT 43h
Returns: ax = 0 If no error occurred
5 If data record not available
6 If databuffer too small
Comments:
Notes:
Example
int far main (int funct,char far *params)
This function sets the selected bar code enabled and the I 2 of 5 bar code length during the CFR. This setting affects only the sensor port operation within the CFR. When the CFR returns, the fast clocking and badge initiated bar code settings resume. These settings do not affect the bar code coprocessor, if installed, which can be programmed only from File 0.
This function allows changing the accepted (enabled) bar code symbology between reads. For example, the first read may be from an Interleaved 2 of 5 shipping label, and the second from a UPC label. For Interleaved 2 of 5 labels, the desired length must be set prior to the read.
C Format
#include "cfrapi26.h" // For defined values
USHORT SenSetDiscrimGrp(barcode, i2of5len)
UCHAR barcode // Bar code to enable
UCHAR i2of5len // Length for I 2 of 5
// Must be even; ignored for other bar code types
Returns: E_OK // If no error occurred
E_PARAM // If parameter values are incorrect
Masm Format
Input: ah = 1
al = barcode
cl = i2of5 length
Call: INT 43h
Returns: ax = 0 If no error occurred
1 If parameter values are incorrect
Comments:
Example
int far main (int funct,char far *params)