The text of a manual · part 12 of 36
Trakker Antares Application Development Tools System Manual: Part I - Trakker Antares PSK Reference Manual, pages 105 to 114
Pages 105 to 114 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 105
Chapter 5, PSK Function Descriptions
Symbology Identifiers (continued) Symbology PDF417 and MicroPDF417
Code Char. L
Modifier Characters 0 Reader set to conform to protocol defined in 1994 PDF417 symbology specifications. 1
Reader set to follow protocol of ENV 12925 for Extended Channel Interpretation (All data characters 92 doubled).
2
Reader set to follow protocol of ENV 12925 for Basic Channel Interpretation (Data characters 92 are not doubled).
3
Code 128 emulation: implied FNC1 in first position.*
4
Code 128 emulation: implied FNC1 after initial letter or pair of digits.*
5
Code 128 emulation: no implied FNC1.*
* Applicable only to MicroPDF417 symbols. MSI
M
0
Modulo 10 symbol check character validated and transmitted.
1
Modulo 10 symbol check character validated but not transmitted.
Anker Code
N
0
No options specified at this time. Always transmit 0.
Codablock
O
0
Codablock 256: FNC1 not used.
1
Codablock 256: FNC1 in first data character position; subsequent occurrences converted to ASCII 29 (GS).
4
Codablock F: FNC1 not used.
5
Codablock F: FNC1 in first data character position; subsequent occurrences converted to ASCII 29 (GS).
6
Codablock A.
Plessey Code
P
0
No options specified at this time. Always transmit 0.
QR Code
Q
0
Model 1 symbol.
1
Model 2 symbol, ECI protocol not implemented.
2
Model 2 symbol, ECI protocol implemented.
3
Model 2 symbol, ECI protocol not implemented, FNC1 implied in first position.
4
Model 2 symbol, ECI protocol implemented, FNC1 implied in first position.
5
Model 2 symbol, ECI protocol not implemented, FNC1 implied in second position.
6
Model 2 symbol, ECI protocol implemented, FNC1 implied in second position.
0
No check character validation.
1
Modulo 7 check character validated and transmitted.
3
Modulo 7 check character validated but not transmitted.
0
No options specified. Always transmit 0.
Straight 2 of 5: 2-bar start/stop codes
Straight 2 of 5: 3-bar start/stop codes
R
S
Trakker Antares PSK Reference Manual
85
Page 106
Chapter 5, PSK Function Descriptions
Symbology Identifiers (continued) Symbology Code 49
MaxiCode
Code Char. T
U
Modifier Characters 0 No special characters in the first or second data character positions. 1
FNC1 in the first data character position.
2
FNC1 in the second data character position.
4
FNC2 in the first data character position.
0
Symbol in Mode 4 or 5.
1
Symbol in Mode 2 or 3.
2
Symbol in Mode 4 or 5, ECI protocol implemented.
3
Symbol in Mode 2 or 3, ECI protocol implemented in secondary message.
Other Bar Code
X
0-F
May be assigned by the decoder manufacturer to identify those symbologies and options implemented in the reader.
Non-Bar Code
Z
0
Keyboard.
1
Magnetic stripe.
2
Radio Frequency (RF) tag.
3-F
May be assigned by the device manufacturer to identify the source of data that is originating from a device other than a bar code reader.
0
No options.
1
FNC1 preceding 1st message character.
2
FNC1 following an initial letter or pair of digits.
3
ECI protocol implemented.
4
FNC1 preceding 1st message character, ECI protocol implemented.
5
FNC1 following an initial letter or pair of digits, ECI protocol implemented.
6
Structured Append header included.
7
Structured Append header included, FNC1 preceding 1st message character.
8
Structured Append header included, FNC1 following an initial letter or pair of digits.
9
Structured Append header included, ECI protocol implemented.
A
Structured Append header included, FNC1 preceding 1st message character, ECI protocol implemented.
B
Structured Append header included, FNC1 following an initial letter or pair of digits, ECI protocol implemented.
C
Aztec Rune decoded.
Aztec Code
86 z
Trakker Antares PSK Reference Manual
Page 107
Chapter 5, PSK Function Descriptions im_get_length Purpose
Syntax
IN Parameters
This function returns the length of the string received from the designated source by the most recent input function (im_receive_input, im_receive_field, gets, or scanf). #include "imt24lib.h" IM_USHORT im_get_length (IM_ORIGIN source);
source
One of these constants: IM_COM1_SELECT
IM_COM2_SELECT
IM_COM3_SELECT IM_NET_SELECT
IM_SCAN_PORT_SELECT
IM_LABEL_SELECT
IM_OPTICAL_SELECT IM_KEYBOARD_SELECT OUT Parameters Return Value
COM1 input: 241X, 242X, 243X, and 2455 - Port on bottom end of terminal, 2475 and 248X - Physical port labeled COM1 COM2 input: 248X - Physical port labeled COM2 on enhanced I/O board COM3 input: 2420 - Modem Network input (UDP Plus or TCP/IP): 2415, 2425, 2435, 2455, and 2475 - RF port, 248X - RF port or Ethernet port on enhanced I/O board RS-232 port input: 242X Serial interface module, 2455 Adapter cable, 248X - Physical port labeled COM4 on enhanced I/O board Label input: 241X, 242X. 243X, 2455, and 2475 Integrated scan module or module for cabled scanners, 2475 - any attached scanner, 248X - Badge scanner or any attached scanner 248X - Optical sensor input Keypad input
None This function returns the length of the last input string read from the designated source.
Trakker Antares PSK Reference Manual
87
Page 108
Chapter 5, PSK Function Descriptions im_get_length (continued) Notes
All input from the keypad or labels has a null termination character added to the end of the string so that it can be used as a normal C string. However, some data might contain embedded null characters, such as data from COM or NET sources. If so, this function supplies the true data length.
See Also im_receive_input, im_receive_field
Example See example for im_receive_input on page 148.
im_get_rcv_errors Purpose Syntax
This function counts the number and type of errors in the terminal serial data. This function only applies to COM ports. #include "imt24lib.h" IM_STATUS far im_get_rcv_errors (IM_COM_PORT port_id, IM_PTR_ERROR_LOG ErrorLog)
IN Parameters port_id
OUT Parameters ErrorLog Return Value
Communications port: IM_COM1 COM1 input: 241X, 242X, 243X, and 2455 - Port on bottom end of terminal, 2475 and 248X - Physical port labeled COM1 IM_COM2 COM2 input: 248X - Physical port labeled COM2 on enhanced I/O board IM_COM3 COM3 input: 2420 - Modem IM_SCAN_PORT RS-232 port input: 242X - Serial interface module, 2455 - Adapter cable, 248X - Physical port labeled COM4 on enhanced I/O board Pointer to the log structure.
This function returns one of these codes: IM_SUCCESS IM_NET_PORT_HANDLE
Notes
88
Success Port handle is unknown
See IM_PTR_ERROR_LOG structure in imt24lib.h for more information on different kinds of errors.
Trakker Antares PSK Reference Manual
Page 109
Chapter 5, PSK Function Descriptions im_get_relay Purpose Syntax
This function gets the current status of the specified relay. This function is valid only on a 248X with the enhanced input/output board option. #include "imt24lib.h" IM_STATUS im_get_relay (IM_RELAY_PORT iRelayId);
IN Parameters iRelayId
One of these constants: IM_RELAY1 Relay 1 selected IM_RELAY2 Relay 2 selected IM_RELAY3 Relay 3 selected IM_RELAY4 Relay 4 selected Return Value This function returns one of these codes: IM_CONTACT_ON Relay is closed or energized IM_CONTACT_OFF Relay is open or de-energized IM_CONFIG_ERROR Relay configuration error Notes iRelayId is mutually exclusive and cannot be ORed together.
See Also im_set_relay
Example /*********************** im_get_relay *********************/ /* Example of doing a set/get relay digital I/O */ #include <string.h> #include "imstdio.h" #include "imt24lib.h" void main(void) { int iStatus; int ii; /* Energizing/Unenergizing digital I/O relay channel from 1 to 4 */ for (ii= IM_RELAY1; ii <= IM_RELAY4; ii++) { iStatus = im_set_relay(ii, IM_ENABLE); iStatus = im_get_relay(ii); printf("Relay %d status:%d\n", ii, iStatus); im_standby_wait(5000); iStatus = im_set_relay(ii, IM_DISABLE); iStatus = im_get_relay(ii); printf("Relay %d status:%d\n", ii, iStatus); } }
Trakker Antares PSK Reference Manual
89
Page 110
Chapter 5, PSK Function Descriptions im_get_rx_status Purpose Syntax
This function returns the current status of receive communications for im_transmit_buffer. #include "imt24lib.h" IM_STATUS im_get_rx_status (IM_COM_PORT portid);
IN Parameters portid
OUT Parameters
None
Return Value
Notes
Desired communications port: 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_COM3_SELECT COM3 input: 2420 - Modem IM_NET_SELECT Network input (UDP Plus only): 2415, 2425, 2435, 2455, and 2475 - RF port, 248X - RF port or Ethernet port on enhanced I/O board IM_SCAN_PORT_ RS-232 port input: 242X - Serial SELECT interface module, 2455 - Adapter cable, 248X - Physical port labeled COM4 on enhanced I/O board
This function returns one of these codes: IM_COMM_INUSE Communications port in use IM_NS_COMPLETE Transmission completed IM_NS_CANCELLED Transmission canceled IM_NS_ERROR Communications error IM_INVALID_PORT Invalid network port (terminal is configured for TCP/IP instead of UDP Plus) im_get_rx_status is a passive function. Although the function returns data from a struct, the network services update this variable in the background between calls.
See Also im_get_tx_status, im_transmit_buffer, im_transmit_buffer_no_wait_t, im_transmit_buffer_no_wait
90
Trakker Antares PSK Reference Manual
Page 111
Chapter 5, PSK Function Descriptions im_get_screen_char Purpose Syntax
This function returns the character at the current cursor position in the 80x25 virtual display. #include "imt24lib.h" IM_STATUS im_get_screen_char (IM_UCHAR far *char);
IN Parameters
None
OUT Parameters char
Return Value
Pointer to the variable for the retrieved character.
This function returns this code: IM_SUCCESS
Notes
Success
This function returns only the character. Use im_get_text to retrieve the character and its attributes.
See Also im_get_text, im_putchar, im_puts
Example /********************* im_get_screen_char ****************************/ #include "imt24lib.h" #include "imstdio.h" IM_UCHAR value;
void main() { int x = 1; /* Row Value */ int y = 10; /* Column Value */ im_clear_screen(); /* Clear display screen */ /* Display letters and numbers to chose from */ printf("ABCDEFGHIJKLMNOPQRST\n"); printf("UVWXYZ-0123456789\n"); /* Chose character by setting Row and Col values */ im_set_cursor_xy(x,y); /* Retrieve character at position specified */ im_get_screen_char(&value); /* State which character was chosen */ im_set_cursor_xy(3,0); printf("The character chosen:\n"); printf("is: %1c",value); /* Wait for user input before exiting */ im_set_cursor_xy(14,0); puts("Press any key to"); puts("exit."); /* Move cursor to character chosen */ im_set_cursor_xy(x,y); getch(); }
Trakker Antares PSK Reference Manual
91
Page 112
Chapter 5, PSK Function Descriptions im_get_sensor_all Purpose
Syntax
IN Parameters
This function gets the current state of all optical input sensors. This function is valid only on a 248X with the enhanced input/output board option. #include "imt24lib.h" IM_STATUS im_get_sensor_all (IM_SENSOR_STATE *sensorstate)
None
OUT Parameters sensorstate
Pointer to IM_SENSOR_STATE. This function places the sensor state information here. typedef struct { IM_UCHAR SensorState; IM_UCHAR SensorChanged; } IM_SENSOR_STATE;
SensorState
SensorChanged
Return Value
For both elements, SensorState and SensorChanged, bit 0 represents sensor 1, bit 1 represents sensor 2, bit 2 represents sensor 3, and bit 3 represents sensor 4. Actual state when call occurs. 0 Sensor is off 1 Sensor is on Accumulated changed bits when call occurs. 0 State has not changed since last read 1 State has changed since last read
This function returns one of these codes: IM_SUCCESS IM_SENSOR_CONFIG_ERROR
Success Configuration error
Example /*********************** im_get_sensor_all *********************/ /* Example of getting one or all optical sensor inputs */ #include #include #include #include
92
<string.h> "imstdio.h" "imt24lib.h" <conio.h>
Trakker Antares PSK Reference Manual
Page 113
Chapter 5, PSK Function Descriptions im_get_sensor_all (continued) void main(void) { IM_SENSOR_STATE iSensorState; int iStatus; int ii; /* Get an individual optical sensor input one at time from 1 to 4 */ for (ii= IM_SENSOR1; ii <= IM_SENSOR4; ii++) { iStatus = im_get_sensor_input(ii); printf("Optical %d status:%d\n", ii, iStatus); im_standby_wait(2000); } /* Get 4 optical sensor at one time */ im_get_sensor_all(&iSensorState); printf("Opt-State: %X\n", iSensorState.SensorState); printf("Opt-Change: %X\n", iSensorState.SensorChanged); getch(); } im_get_sensor_input Purpose Syntax
This function gets the current state of the specified optical sensor. #include "imt24lib.h" IM_SENSOR_CONTROL im_get_sensor_input (IM_SENSOR_PORT SensorId)
IN Parameters SensorId
OUT Parameters Return Value
One of these constants: IM_OPTICAL1 Optical sensor 1 input IM_OPTICAL2 Optical sensor 2 input IM_OPTICAL3 Optical sensor 3 input IM_OPTICAL4 Optical sensor 4 input
None This function returns one of these codes: IM_SENSOR_ON IM_SENSOR_OFF
Notes
The optical sensor is on The optical sensor is off
SensorId is mutually exclusive and cannot be ORed together.
Example See example for im_get_sensor_all on page 92.
Trakker Antares PSK Reference Manual
93
Page 114
Chapter 5, PSK Function Descriptions im_get_system_julian_date Purpose
Syntax
IN Parameters OUT Parameters Return Value Notes
This function gets the current system date in Julian format. The Julian date is a method of representing the date as the number of days elapsed since the beginning of the year. For example, “98167” would be the 167th day of 1998. #include "imt24lib.h" void im_get_system_julian_date (IM_USHORT digitsinyear, IM_CHAR *juliandate)
digitsinyear juliandate
Number of digits in year (0-4). Pointer to the character string where you want to place the Julian date.
None The character buffer must be at least eight characters long. Currently, the Application Simulator does not support Julian dates.
im_get_text Purpose
Syntax
94
This function returns a rectangular section of text and its attributes from the 80 x 25 virtual display. You specify a starting row and column and ending row and column. #include "imt24lib.h" IM_STATUS im_get_text (IM_USHORT start_col, IM_USHORT start_row, IM_USHORT end_col, IM_USHORT end_row, IM_DISPLY_TEXT_S far *text_array);
Trakker Antares PSK Reference Manual