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 5 of 8

Trakker Antares Application Simulator User's Manual, pages 41 to 50

Pages 41 to 50 of 80

The original document is the PDF (353 KB). 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 and Intermec 2481

Page 41

INI File Parameter Descriptions

3 network_receive_file_return Purpose

Specifies the value to be returned to your application when you use an im_receive_file function to request that a file be sent to the terminal from the DCS 300.

Default

00H - success

Values

00H - success 56H - invalid_param 74H - net_open_error 75H - net_close_error 81H - request_failure 80H - file_open_error 85H - file_close_error 83H - receive_failure 84H - file_write_error 55H - general_error 11AH - timed_out_error 6BH - net_config_error 77H - net_write_error 86H - controller_deny

Function Notes im_receive_file The Simulator does not receive or simulate receiving the file specified in the im_receive_file function. If your application opens the file after receiving it, you must make sure that a copy of the file is in your current directory when you run the application through the Simulator. Otherwise, your open command will fail. You must test the application on a terminal to make sure that the application handles the communications protocols correctly and that the file is received on the terminal without error.

3-9

Page 42

Trakker Antares Application Simulator User’s Manual network_transmit_file_return Purpose

Specifies the value to be returned to your application when you use an im_transmit_file function to send a file from the terminal to the DCS 300.

Default

00H - success

Values

00H - success 56H - invalid_param 74H - net_open_error 75H - net_close_error 81H - request_failure 80H - file_open_error 85H - file_close_error 83H - receive_failure 84H - file_write_error 55H - general_error 11AH - timed_out_error 6BH - net_config_error 77H - net_write_error 86H - controller_deny

Function Notes im_transmit_file The Simulator does not transmit or simulate transmitting the file specified in the im_transmit_file function. If your application opens the file before transmitting it, you must make sure that a copy of the file is in your current directory when you run the application through the Simulator. Otherwise, your open command will fail. You must test the application on a terminal to make sure that the application handles the communications protocols correctly and that the file is transmitted to the DCS 300 without error

3-10

Page 43

INI File Parameter Descriptions

3 network_write_file Purpose

Names the ASCII text file that will receive the data that the application writes to the network port.

Default netwrite.trx

Values

Any filename

Function

Notes im_transmit_buffer im_transmit_file Test the application on a terminal to make sure that the application is handling the output communications protocols correctly.

number_scan_line_select Purpose

Specifies the number of scan rows (1 to 16) of the glyph font to be displayed.

Default

1

Values

1 to 16

Function im_overlay_setup optical_input_n Purpose

Specifies the optical sensor input status while simulating optical sensor input. n in this parameter designates the optical sensor channel (1, 2, 3 or 4).

Default

0 - OFF

Values

0 - OFF 1 - ON

Function

Notes im_get_sensor_all im_get_sensor_input im_receive_field im_receive_input The value of this INI parameter is returned to the application in the optical sensor status parameter of the function calls that use this INI parameter. When testing an application, you can simulate the act of optical sensor input by pressing the key sequence specified in the sim_optical_key parameter. The optical sensor channel and optical state value parameter specifies the value of the simulated optical sensor input.

3-11

Page 44

Trakker Antares Application Simulator User’s Manual portn_read_file Purpose

Names the ASCII text file that contains data to be read by the application as if it were received on a COM port. The n in portn_read_file is the COM port number (1, 2 or 3).

Default comportn.rcv, where n is the COM port number (1, 2 or 3)

Values

Any filename

Function

Notes im_receive_buffer im_receive_input Do not set this parameter to comn.rcv. Your PC will expect data from its own COMn port. Test the application on a terminal to make sure that the application is handling the input communications protocols correctly. The PSK function you use to read data from the RCV file affects how you format the data in the file: im_receive_buffer Reads a buffer of data each time it is called. The RCV file should contain one or more data strings. Each data string is terminated by a CR/LF character, which indicates the end of the buffer. If there is no CR/LF, the function reads up to 1024 bytes of data. With each subsequent call, im_receive_buffer continues reading data where it left off in the file until it reaches an EOF. If the function is called again after reaching EOF, it starts reading data from the beginning of the file. im_receive_input Reads a line at a time, similar to im_receive_buffer. However, because im_receive_input accepts input from multiple sources, when the function reaches the EOF, it does not start reading data at the beginning of the file again. This practice allows keyboard, scanner, and wand input.

portn_write_file Purpose

Names the ASCII text file that will receive data the application writes to a COM port. The n in portn_write_file is the COM port number (1, 2 or 3).

Default comportn.trx, where n is the COM port number (1, 2 or 3)

Values

Any filename

Function

Notes

3-12 im_transmit_buffer im_transmit_file Do not set this parameter to comn.trx. Your PC will try to send data to its own COMn port. You must test the application on a terminal to make sure that the application is handling the output communications protocols correctly.

Page 45

INI File Parameter Descriptions

3 scan_port_read_file Purpose

Identifies the ASCII file that contains data to be read by the application as if it were received on the scanner port.

Default scanport.rcv

Values

Any filename

Function

Notes im_receive_buffer im_receive_input Do not set this parameter to comn.rcv. Your PC will expect data from its COMn port. Test the application on a terminal to make sure the application is handling the communications protocols correctly. The PSK function you use to read data from the RCV file affects how you format the data in the file: im_receive_buffer Reads a buffer of data each time it is called. The RCV file should contain one or more data strings. Each data string is terminated by a CR/LF character, which indicates the end of the buffer. If there is no CR/LF, the function reads up to 1024 bytes of data. With each subsequent call, im_receive_buffer continues reading data where it left off in the file until it reaches an EOF. If the function is called again after reaching EOF, it starts reading data from the beginning of the file. im_receive_input Reads a line at a time, similar to im_receive_buffer. However, because im_receive_input accepts input from multiple sources, when the function reaches the EOF, it does not start reading data at the beginning of the file again. This practice allows keyboard, scanner, and wand input.

scan_port_write_file Purpose

Identifies the file that will receive data the application writes to the scanner port.

Default scanport.trx

Values

Any filename

Function

Notes im_receive_buffer im_receive_input Do not set this parameter to comn.trx. Your PC will try to send data to its COMn port. Test the application on a terminal to make sure the application is handling the communications protocols correctly.

3-13

Page 46

Trakker Antares Application Simulator User’s Manual screen_type_select Purpose

Specifies the Trakker Antares terminal display type that the Simulator will mimic.

Default

0 - 20x16 (T242X)

Values

0 - 20x16 (T242X) 1 - 80x25 (T2455 LCD display) 2 - 40x25 (T2481/T2486) 3 - 40x4 (T2480/T2485) 4 - 80x25 (T2455 EL (electroluminescent) display) 5 - 16x2 (2460/2461) 6 - 20x16 (2410/2415)

Function Notes im_get_display_type Setting this parameter is equivalent to selecting Configuration Menu, Terminal Menu, and Display from the TRAKKER Antares 2400 Menu System and then setting the display type for the terminal.

serial_port_emulation Purpose

Specifies whether the serial port operations are simulated.

Default

1 - enabled

Values

0 - disabled 1 - enabled

Function

Not applicable

Notes

3-14

For Trakker Antares applications, serial port operations are simulated through ASCII data files, which are named in the portn_read_file and portn_write_file (where n is 1, 2 or 3 to identify the port number).

Page 47

INI File Parameter Descriptions

3 serial_receive_mode Purpose

Specifies whether the Simulator receives serial data one line at a time (Line mode) or one character at a time (Character mode).

Default

0 - line_mode

Values

0 - line_mode 1 - character_mode

Function im_receive_buffer

Notes

In Line mode, the Simulator reads a line of characters till it reaches <CR><LF> and returns from im_receive_buffer with that string. In Character mode, the Simulator reads and returns only one character at a time.

sim_optical_key Purpose

Specifies the key sequence that causes the application to accept keyboard input as if it were optical sensor input.

Default

Ctrl-O

Values

A key combination that includes one or more control keys (Ctrl, Shift, or Alt) and a character key (A to Z). Sample key combinations include: Ctrl-B, Shift-C, and Alt-L.

Function

Notes im_get_sensor_all im_get_sensor_input im_receive_input im_receive_field To simulate optical sensor input: 1. Press a key sequence, for example, Ctrl-O. Although you can press the keys simultaneously or sequentially, you may decide to press them sequentially to avoid conflict with Microsoft Windows key code capture. 2. Press 1, 2, 3, or 4 to designate the optical sensor channel. 3. Press one of the status keys, 0 (OFF) or 1 (ON), to end the input. If the input sequence is not entered in the right order, it will be reset to the beginning.

3-15

Page 48

Trakker Antares Application Simulator User’s Manual sim_wand_key Purpose

Specifies the key sequence that causes the application to accept subsequent keyboard input as if it were wand input.

Default

Ctrl–G

Values

A key combination that includes one or more control keys (Ctrl, Shift, Alt) and a character key (A to Z).

Function Notes

Not applicable The user presses the key sequence either simultaneously or sequentially, types data that the application accepts as input from a wand, and presses Enter to indicate the end of the input. You can set the sim_wand_key parameter to one or more control keys (Ctrl, Shift, Alt) and a character key (A to Z). For example: •

Alt–A

•

Shift–Alt–B

•

Ctrl–Shift–C

•

Ctrl–Shift–Alt–D video_scan_row_select Purpose

Specifies the starting row number (0 to 15) of the 16 by 16 area of the display panel.

Default

0

Values

0 to 15

Function

3-16 im_overlay_setup

Page 49

INI File Parameter Descriptions

3 xmodem_receive_file_return Purpose

Specifies the value to be returned to your application when you use an im_xm_receive_file function to request that a file be sent to the terminal from the host using XModem protocol.

Default

00H - success

Values

00H - success 55H - general_error 56H - invalid_param 74H - connection_open_error 75H - connection_close_error 80H - file_open_error 84H - file_write_error 85H - file_close_error 11AH - timed_out_error 140H - malloc_error 150H - file_transfer_user_abort 151H - file_transfer_lost_connection 152H - file_transfer_receiver_cancelled 226H - invalid_com_port_number

Function Notes im_xm_receive_file The Simulator does not receive or simulate receiving the file specified in the im_xm_receive_file function. If your application opens the file after receiving it, you must make sure that a copy of the file is in your current directory when you run the application with the Simulator. Otherwise, your open command will fail. You must test the application on a terminal to make sure that the application handles the communications protocols correctly and that the file is received on the terminal without error.

3-17

Page 50

Trakker Antares Application Simulator User’s Manual xmodem_transmit_file_return Purpose

Specifies the value to be returned to your application when you use an im_xm_transmit_file function to send a file from the terminal to the host using XModem protocol.

Default

00H - success

Values

00H - success 55H - general_error 56H - invalid_param 74H - connection_open_error 75H - connection_close_error 80H - file_open_error 84H - file_write_error 85H - file_close_error 11AH - timed_out_error 140H - malloc_error 150H - file_transfer_user_abort 151H - file_transfer_lost_connection 153H - file_transfer_transmitter_cancelled 226H - invalid_com_port_number

Function Notes im_xm_transmit_file The Simulator does not transmit or simulate transmitting the file specified in the im_xm_transmit_file function. If your application opens the file before transmitting it, you must make sure that a copy of the file is in your current directory when you run the application with the Simulator. Otherwise, your open command will fail. You must test the application on a terminal to make sure that the application handles the communications protocols correctly and that the file is transmitted to the DCS 300 without error.

3-18