Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 14 of 36

Trakker Antares Application Development Tools System Manual: Part I - Trakker Antares PSK Reference Manual, pages 125 to 134

Pages 125 to 134 of 340, from Trakker Antares Application Development Tools System Manual

The original document is the PDF (1.6 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the Intermec 2420, Intermec 2425, Intermec 2435 and Intermec 2481

Page 125

Chapter 5, PSK Function Descriptions mask_string

OUT Parameters instring cmd_count symbology

Return Value

Sets up a data mask that received data must match. mask_string can accept a string of constants or wildcard characters. For example, use the string ### - #### to accept only phone numbers. If you define a mask, the terminal beeps when input does not fit the mask. You can use one or more of these wildcard characters to define the mask: # (Numeric), @ (Alpha), ? (Alphanumeric printable), and NULL or zero (No mask). Input string. You must allocate at least 1024 bytes for instring if the input source includes the network port, COM1 or COM2. Returns a 0. One of these constants: IM_UNKNOWN_DECODE Unknown bar code IM_CODABAR Codabar bar code IM_CODE_11 Code 11 bar code IM_CODE_16K Code 16K bar code IM_CODE_39 Code 39 bar code IM_CODE_49 Code 49 bar code IM_CODE_93 Code 93 bar code IM_CODE_128 Code 128 bar code IM_I_2_OF_5 Interleaved 2 of 5 IM_MSI MSI bar code IM_PLESSEY Plessey bar code IM_UPC Universal Product bar code

This function returns one of these codes: IM_SUCCESS IM_EDIT_ERROR IM_TIMEDOUT

Notes

Successfully received input Error occurred in a terminal command A timeout occurred

Trakker Antares terminals do not support IRL. This function provides compatibility with the JANUS PSK functions. For more information on IRL and command A, refer to the IRL Programming Reference Manual (P/N 048609).

See Also im_irl_k, im_irl_n, im_irl_v, im_irl_y

Trakker Antares PSK Reference Manual

105

Page 126

Chapter 5, PSK Function Descriptions im_irl_a (continued)

Example /********************* im_irl_a **************************************/ #include "imstdio.h" #include <conio.h> #include "imt24lib.h" IM_LENGTH_SPEC length_table[IM_LENGTH_SPEC_MAX] = { {IM_LENGTH, 0, 0, 2}, {IM_RANGE, 7, 10, 0}, {IM_LENGTH, 0, 0, 4}, {IM_RANGE, 15, 17, 0}, {IM_LENGTH, 0, 0, 6} }; IM_UCHAR ssn_mask[] = "###–##–####"; /* Input must be in SSN format. The terminal beeps when input */ /* does not fit the mask. To exit, you must enter 999-99-9999.*/ void main (void) { IM_UCHAR input[1024]; IM_USHORT cc; IM_DECTYPE symbol; im_clear_screen();

/* Clear the screen

*/ printf("Demo IRL A Bar Code\n'9' to quit\n"); /* For this defined mask, enter 999-99-9999 to exit.

*/

/* Input loop */ do { /* Display IRL A mask pattern */ printf("IRL A test mask = %s\n", ssn_mask); /* Request input from Reader Wedge */ im_irl_a(IM_INFINITE_TIMEOUT, length_table, ssn_mask, input, &cc, &symbol); printf("\n%s\n", input); } while (input[0] != '9'); /* '9' to quit */ /* Input must match the mask in order to exit this function. /* For this defined mask, enter 999-99-9999 to exit.

*/ */

}

106

Trakker Antares PSK Reference Manual

Page 127

Chapter 5, PSK Function Descriptions im_irl_k Purpose

Syntax

IN Parameters

This function receives input from the keypad in any format in the same manner as IRL command K (ASCII input). This function returns the input data to the buffer and displays the data. #include "imt24lib.h" IM_USHORT im_irl_k (IM_USHORT timeout, IM_LENGTH_SPEC test_table[], IM_UCHAR mask_string[], IM_UCHAR *instring, IM_USHORT *cmd_count);

timeout test_table a

Trakker Antares PSK Reference Manual

Receive timeout period. The return status indicates whether the function was successful or a timeout occurred. The timeout parameter is a numeric value or one of these constants: 1 to 65,534 ms Numeric range IM_ZERO_TIMEOUT No wait IM_INFINITE_TIMEOUT Wait forever. The function does not return until the end of message character has been received. Specifies acceptable lengths for input. Data is returned only if its length matches one of the five lengths specified in the test_table. The test_table parameter is a matrix in this form. {a, b, c, d}, {a, b, c, d}, {a, b, c, d}, {a, b, c, d}, {a, b, c, d}, This position in the matrix is one of these values: IM_LENGTH Accept data of a specific length. The actual length of the data string is placed in the d position (and b and c are not used). IM_NO_LENGTH Accept data of any length. Set any unused table entries to {IM_NO_LENGTH,0,0,0}.

107

Page 128

Chapter 5, PSK Function Descriptions im_irl_k (continued) IM_RANGE mask_string

OUT Parameters instring cmd_count Return Value

Accept data within a length range. The data length must be within the range of b and c (and d is not used). Sets up a data mask that received data must match. mask_string can accept a string of constants or wildcard characters. For example, use the string ### - #### to accept only phone numbers. If you define a mask, the terminal beeps when input does not fit the mask. You can use one or more of these wildcard characters to define the mask: # (Numeric), @ (Alpha), ? (Alphanumeric printable), and NULL or zero (No mask). Input string. You must allocate at least 1024 bytes for this parameter if the input source includes the network port, COM1 or COM2. Returns a 0.

This function returns one of these codes: IM_SUCCESS IM_EDIT_ERROR IM_TIMEDOUT

Notes

Successfully received input Error occurred in a terminal command A timeout occurred

Trakker Antares terminals do not support IRL. This function provides compatibility with the JANUS PSK functions. For more information on IRL and command K, refer to the IRL Programming Reference Manual (P/N 048609).

See Also im_irl_a, im_irl_n, im_irl_v, im_irl_y

Example /********************* im_irl_k **************************************/ #include "imstdio.h" #include <conio.h> #include <stdlib.h> #include "imt24lib.h" IM_LENGTH_SPEC length_table[IM_LENGTH_SPEC_MAX] = { {IM_LENGTH, 0, 0, 2}, {IM_RANGE, 7, 10, 0}, {IM_LENGTH, 0, 0, 4}, {IM_RANGE, 15, 17, 0}, {IM_LENGTH, 0, 0, 6}}; IM_UCHAR mix_mask[] = "?#@#";

108

Trakker Antares PSK Reference Manual

Page 129

Chapter 5, PSK Function Descriptions void main (void) { IM_UCHAR input[1024]; IM_USHORT cc; im_clear_screen(); /* Clear the screen */ printf("Demo IRL K Bar Code\n 'Q' to quit\n"); /* Set terminal to PROGRAMMER mode */ im_set_input_mode(IM_PROGRAMMER); /* Input loop --Display IRL K mask pattern */ do { printf("IRL K test mask = %s\n", mix_mask); /* Request input from terminal */ im_irl_k(IM_INFINITE_TIMEOUT, length_table, mix_mask, input, &cc); printf("\n%s\n", input); /* Upper case first char of input for testing quit */ input[0] = toupper(input[0]); } while (input[0] != 'Q'); /* 'Q' to quit */ } im_irl_n Purpose

Syntax

This function receives numeric input from the keypad or a label in the same manner as IRL command N (numeric input). Nonnumeric data is ignored. This function returns the input data to the buffer and displays the data. For more information on IRL and command N, refer to the IRL Programming Reference Manual (P/N 048609). #include "imt24lib.h" IM_USHORT im_irl_n (IM_USHORT timeout, IM_LENGTH_SPEC test_table[], IM_UCHAR *instring, IM_USHORT *cmd_count, IM_DECTYPE *symbology);

Trakker Antares PSK Reference Manual

109

Page 130

Chapter 5, PSK Function Descriptions im_irl_n (continued) IN Parameters

OUT Parameters

110 timeout

Receive timeout period. The return status indicates whether the function was successful or a timeout occurred. The timeout parameter is a numeric value or one of these constants: 1 to 65,534 ms Numeric range IM_ZERO_TIMEOUT No wait IM_INFINITE_TIMEOUT Wait forever. The function does not return until the end of message character has been received. test_table Acceptable lengths for input. Data is returned only if its length matches one of the five lengths specified in the test_table. The test_table parameter is a matrix in this form: {a, b, c, d}, {a, b, c, d}, {a, b, c, d}, {a, b, c, d}, {a, b, c, d}, a This position in the matrix is one of these values: IM_LENGTH Accept data of a specific length. The actual length of the data string is placed in the d position (and b and c are not used). IM_NO_LENGTH Accept data of any length. Set any unused table entries to {IM_NO_LENGTH,0,0,0}. IM_RANGE Accept data within a length range. The data length must be within the range of b and c (and d is not used). instring Input string. You must allocate at least 1024 bytes for instring if the input source includes the network port, COM1 or COM2. cmd_count Returns a 0. symbology One of these constants: IM_UNKNOWN_DECODE Unknown bar code IM_CODABAR Codabar bar code IM_CODE_11 Code 11 bar code IM_CODE_16K Code 16K bar code IM_CODE_39 Code 39 bar code IM_CODE_49 Code 49 bar code

Trakker Antares PSK Reference Manual

Page 131

Chapter 5, PSK Function Descriptions

IM_CODE_93 IM_CODE_128 IM_I_2_OF_5 IM_MSI IM_PLESSEY IM_UPC Return Value

This function returns one of these codes: IM_SUCCESS IM_EDIT_ERROR IM_TIMEDOUT

Notes

Code 93 bar code Code 128 bar code Interleaved 2 of 5 MSI bar code Plessey bar code Universal Product bar code

Successfully received input Error occurred in a terminal command A timeout occurred

Trakker Antares terminals do not support IRL. This function provides compatibility with the JANUS PSK functions. For more information on IRL and command N, refer to the IRL Programming Reference Manual (P/N 048609).

See Also im_irl_a, im_irl_k, im_irl_v, im_irl_y

Example /********************* im_irl_n **************************************/ #include "imstdio.h" #include <conio.h> #include "imt24lib.h" IM_LENGTH_SPEC length_table[IM_LENGTH_SPEC_MAX] = { {IM_LENGTH, 0, 0, 2}, {IM_RANGE, 7, 10, 0}, {IM_LENGTH, 0, 0, 4}, {IM_RANGE, 15, 17, 0}, {IM_LENGTH, 0, 0, 6}}; void main (void) { IM_UCHAR input[1024]; IM_USHORT cc; IM_DECTYPE symbol; im_clear_string(); /* Clear the screen printf("Demo IRL N Bar Code\n'9' to quit\n");

*/

/* Input loop */ do { /* Display IRL N test */ printf("IRL N test\n"); /* Request input from Reader Wedge */ im_irl_n(IM_INFINITE_TIMEOUT, length_table, input, &cc, &symbol); printf("\n%s\n",input); } while (input[0] != '9' );

/* '9' to quit */

}

Trakker Antares PSK Reference Manual

111

Page 132

Chapter 5, PSK Function Descriptions im_irl_v Purpose

Syntax

IN Parameters

This function receives input from any specified source in any format, in the same manner as an IRL command V (universal input ). For more information on IRL and command V, refer to the IRL Programming Reference Manual (P/N 048609). #include "imt24lib.h" IM_USHORT im_irl_v (IM_USHORT timeout, IM_CONTROL edit, IM_LABEL_BEEP_CONTROL beep, IM_CONTROL display, IM_ORIGIN *source, IM_UCHAR *instring, IM_USHORT *cmd_count, IM_DECTYPE *symbology);

timeout timeout edit beep display

112

Receive timeout period. The return status indicates whether the function was successful or a timeout occurred. Numeric value or one of these constants: 1 to 65,534 ms Numeric range IM_ZERO_TIMEOUT No wait IM_INFINITE_TIMEOUT Wait forever. The function does not return until the end of message character has been received. Determines whether the wedge reader parses reader commands. Use one of these constants: IM_ENABLE Enable reader command parsing. IM_DISABLE Disable reader command parsing. Reader commands are treated as data. Determines whether the IRL V command beeps or not when data is entered. The beep parameter is one of these constants: IM_APPLI_BEEP Application controls the beep. You code the application to sound a beep when your program design requires one. IM_WEDGE_ Beeps occur automatically. The reader BEEP always beeps when data is entered. Determines if the data is displayed as it is entered. The display parameter is one of these constants: IM_ENABLE Enable display of data. IM_DISABLE Disable display of data.

Trakker Antares PSK Reference Manual

Page 133

Chapter 5, PSK Function Descriptions

IN/OUT Parameters source

Determines which input sources are allowed. When the IRL V command returns, source indicates where the data came from. When both keypad and label inputs are allowed, the source always returns keypad because it is possible for keyed and scanned data to be intermixed. Although intermixing is possible, it is not likely to occur. If you have both the keypad and scanner enabled, and you want to know where the data came from, first check: • if the symbology is IM_UNKNOWN_DECODE, then the data came from the keypad. • if the symbology is one of the other values (such as IM_CODE_39), then some or all of the data came from the scanner. • if only the scanner is enabled, then all of the data came from the scanner. source can be one of these constants: IM_NO_SELECT No input source selected IM_COM1_SELECT COM1 input: 241X, 242X, 243X, and 2455 - Port on bottom end of terminal, 2475 and 248X - Physical port labeled COM1 IM_COM2_SELECT COM2 input: 248X - Physical port labeled COM2 on enhanced I/O board IM_COM4_SELECT Means IM_NET_SELECT and is provided for compatibility with past systems IM_NET_SELECT Network input (UDP Plus or TCP/IP): 2415, 2425, 2435, 2455, 2475 - RF port, 248X - RF port or Ethernet port on enhanced I/O board IM_SCAN_PORT_ RS232 port input: 248X - Physical SELECT port labeled COM4 on enhanced I/O board IM_LABEL_SELECT Label input: 241X, 242X, 243X, and 2455 - integrated scan module or module for cabled scanners, 2475 – any attached scanner, 248X - Badge scanner or any attached scanner

Trakker Antares PSK Reference Manual

113

Page 134

Chapter 5, PSK Function Descriptions im_irl_v (continued)

OUT Parameters

Return Value

IM_OPTICAL_ 248X - Optical sensor input SELECT IM_KEYBOARD_ Keypad input SELECT IM_ALL_SELECT All input sources instring Input string. You must allocate at least 1024 bytes for instring if the input source includes the network port, COM1, or COM2. cmd_count Returns a 0. symbology One of these constants: IM_UNKNOWN_DECODE Unknown bar code IM_CODABAR Codabar bar code IM_CODE_11 Code 11 bar code IM_CODE_16K Code 16K bar code IM_CODE_39 Code 39 bar code IM_CODE_49 Code 49 bar code IM_CODE_93 Code 93 bar code IM_CODE_128 Code 128 bar code IM_I_2_OF_5 Interleaved 2 of 5 IM_MSI MSI bar code IM_PLESSEY Plessey bar code IM_UPC Universal Product bar code This function returns one of these codes: IM_SUCCESS IM_TIMEDOUT

Notes

Successfully received input A timeout occurred

Because the Trakker Antares terminals have no left Delete key, this function returns the left Delete scan code when the left arrow is pressed. Trakker Antares terminals do not support IRL. This function provides compatibility with the JANUS PSK functions. For more information on IRL and command V, refer to the IRL Programming Reference Manual (P/N 048609).

See Also im_irl_a, im_irl_k, im_irl_n, im_irl_y

114

Trakker Antares PSK Reference Manual