The text of a manual · part 10 of 29
TRAKKER Antares 246X Stationary Terminal User's Manual, pages 91 to 100
Pages 91 to 100 of 290
The original document is the PDF (2.0 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.
For the Intermec 2460 and Intermec 2461
Page 91
nugget
39 Programming the Terminal
5
This chapter introduces the TRAKKER Antares 246X programmable terminals and explains how to download and run applications on the terminals.
How to Download and Run Applications Here is a brief summary of the steps you follow to download applications and files to the programmable TRAKKER Antares 246X terminals. To learn more about the features, start with the next section, “About the TRAKKER Antares Programmable Terminals.” Use a serial port to download applications and files to the 246X terminal
1. Create your applications using the TRAKKER Antares Programmer’s Software Kit (PSK) or EZBuilder. For help, see page 5-6. 2. Connect the 246X terminal to the development PC or host computer using a serial port. For help, see Chapter 2, “Installing the Terminal.” 3. Use the FileCopy utility to download applications and files to the 246X terminal and then run an application. For help, see page 5-9. Use the DCS 300 to download applications and files to the 2461
1. Create your applications using the TRAKKER Antares PSK or EZBuilder. For help, see page 5-6. 2. Convert each application to a binary file using the PSK utility EXE2ABS.EXE. For help, see page 5-8. Or, use the EZBuilder option to convert each application to a binary file. 3. Copy the applications and files to the DCS 300. For help, see page 5-12. 4. Use the Download Server feature on the DCS 300 to download applications and files to the 2461 and then run an application. For help, see page 5-14. Use a host application to download applications and files to the 2461
1. Create your applications using the TRAKKER Antares PSK or EZBuilder. For help, see page 5-6. 2. Convert each application to a binary file using the PSK utility EXE2ABS.EXE. For help, see page 5-8. Or, use the EZBuilder option to convert each application to a binary file. 3. Copy the applications and files to the host.
5-3
Page 92
TRAKKER Antares 246X Stationary Terminal User’s Manual nugget
39
4. Write an application for the host that can communicate with the 2461 directly via an Ethernet network. Use the host application to download applications and files to the 2461 and then run an application. For help, see “Transferring Files in a TCP/IP Direct Connect Network” in Chapter 4. Note: The host must be running a TFTP server.
About the TRAKKER Antares Programmable Terminals The TRAKKER Antares 246X stationary terminals ship loaded with a sample application and the 9560 emulation application. You can develop your own data collection application for the 246X terminal and then download the application to the terminal. You download files to the 2460 and 2461 using these methods: You can download applications and files from a host computer to one terminal that is directly connected through one of the serial ports. 2460 and 2461
You can download applications and files from the DCS 300 (UDP Plus) or host (TCP/IP) to one or more terminals. 2461
The next table lists specifications and technical information you need to know to develop applications for the 246X terminals.
5-4
Page 93
nugget
39 Programming the Terminal
5
246X Stationary Terminal Specifications
Products
TRAKKER Antares 2460 and 2461 stationary terminals
Serial communications
RS-232 serial communications via COM1 RS-232/422/485 serial communications via COM2 (2460 only)
Network protocol
There are two options for the 2461: •
UDP Plus provides host connectivity through the DCS 300
•
TCP/IP `provides host connectivity through the Ethernet network
Application
Programmed in Microsoft C, customer defined, stored on drive C. Maximum size of a single application is 512K (less the size of the RAM drive, if configured).
Application name
Customer defined, eight characters with three-character extension
Storing applications
Multiple (maximum depends on the drive space)
Developing applications
Using TRAKKER Antares Programmer’s Software Kit or EZBuilder
Downloading applications
Via RS-232/422/485 serial communications from the PC or host computer Via Ethernet to the 2461 terminal’s flash drive from the DCS 300 Via Ethernet and TFTP to the 2461 terminal’s flash drive from a host application
Drives and file system
Drive C, approximately 750K flash for user, up to 32 files Drive D, optional 2MB (of the total 4MB) configurable flash memory storage, up to 32 files Drive E, configurable (up to 256K) RAM disk, up to 32 files
5-5
Page 94
TRAKKER Antares 246X Stationary Terminal User’s Manual nugget
39
Creating Applications for the Terminal You create applications for the terminal using the TRAKKER Antares Programmer’s Software Kit (PSK) or EZBuilder and Microsoft C/C++ functions. The terminal runs applications that are programmed in Microsoft C. Note: You can download the latest version of PSK from the Intermec Web site. To start creating applications
1. Use the PSK or EZBuilder to develop your application. 2. Convert the application to a binary file. Each step is described in the next sections. Once you have completed these steps, you can download the application to the 246X terminals.
Using the PSK or EZBuilder to Develop Applications Intermec has two development tools, PSK and EZBuilder, that you can use to create applications for the 246X terminals. The TRAKKER Antares Programmer’s Software Kit (Part No. 065332) has a full set of programming tools to help you create applications for the terminal. In addition to the PSK, you also need Microsoft Visual C/C++ version 1.5X (Part No. 590224). The PSK kit contains: •
Programmer’s software libraries
•
Application Simulator
•
FileCopy utility
•
Sample programs and Make files
•
TRAKKER Antares Application Development Tools System Manual
The PSK is a library of C functions that control the TRAKKER Antares programmable terminals. You can program the terminal to display prompts and error messages, to collect and display data, and to transmit data to an upline controller or host computer. The PSK functions work with most standard Microsoft C functions. You can create complex applications that collect, store, manipulate, and transmit data to meet your system needs. The Application Simulator is a terminate-and-stay resident (TSR) program that lets you debug and run TRAKKER Antares applications on a DOS or Windows PC. The Simulator captures the PSK and C functions and makes the PC mimic a 246X terminal. EZBuilder (Part No. 066381) is a software code generator product that provides a quick and easy way to create applications for the 246X terminal.
5-6
Page 95
nugget
39 Programming the Terminal
5
EZBuilder contains: •
EZBuilder software
•
Microsoft Visual C++ version 1.5X
•
Application Simulator
•
PSK libraries
•
FileCopy utility
•
Sample EZBuilder programs
•
EZBuilder Getting Started Guide
•
EZBuilder Tutorial
Using EZBuilder, you enter simple commands to create menus, screens, and transactions and to define menu items, labels, and data fields. You can also set attributes, define function keys, and specify other processing, such as calculations, for the application. Once you have defined the application, EZBuilder generates the application program code.
Converting Applications Between JANUS and TRAKKER Antares
You can develop applications that run on both the JANUS devices and the TRAKKER Antares terminals. However, there are some differences that you need to plan for in your applications. The TRAKKER Antares is an intelligent terminal. A JANUS device is a DOS-compatible computer. Because of these differences, there are some features and functions that are different between the JANUS PSK and the TRAKKER Antares PSK. In general, a C/C++ application written for TRAKKER Antares terminals requires minor changes to run on a JANUS device. However, an application written for a JANUS device may require more changes to work properly on a TRAKKER Antares terminal. JANUS applications developed with the JANUS PSK and compiler libraries are relatively easy to convert to an application for the TRAKKER Antares terminals. There are several methods you can use to convert applications to and from JANUS devices and TRAKKER Antares terminals. For help on converting applications, see the TRAKKER Antares Programmer’s Software Kit Reference Manual.
Converting IRL Programs Between the 95XX and 246X Terminal One main difference between the 246X stationary terminal and the 95XX terminal is the type of program or application that you can run on the terminal. The 246X terminal can run a Microsoft C/C++ application while the 9560 terminal runs IRL (Intermec Reader Language) programs. The 246X terminals support IRL by using IRL to C conversion programs. You can convert IRL programs to Microsoft C/C++ applications that use the TRAKKER Antares PSK functions. For information about converting IRL programs, contact your local Intermec service representative.
5-7
Page 96
TRAKKER Antares 246X Stationary Terminal User’s Manual nugget
39
You can also convert your IRL program by developing a new C/C++ application using the TRAKKER Antares Programmer’s Software Kit (PSK) or EZBuilder and Microsoft C/C++ functions. If you are using the 2460 in a CrossBar network, the application needs to send and receive data through COM2. Once your application is converted, you can download the application to the 2460 and begin using it in your network.
Converting the Application to a Binary File For your application to run on the 246X terminal, you must store it as an executable binary file (*.BIN) instead of an executable file (*.EXE). Use the EXE2ABS.EXE program that comes with the TRAKKER Antares PSK or EZBuilder to convert the file. Note: The FileCopy utility or the EZBuilder “download” tool will automatically convert an executable file (*.EXE) to an executable binary file (*.BIN) when you download the file. If you download the applications using another method, you need to convert the application to a binary file. To convert an executable file to a binary file
1. Use the TRAKKER Antares PSK or EZBuilder to develop the application. 2. Convert the application from an executable file to a binary file by typing this command on your development PC: drive:\intermec\imt24\lib\exe2abs filename.exe
The conversion application (EXE2ABS.EXE) creates an executable binary file named FILENAME.BIN. For example, if your application is named SHIPPING.EXE and the Intermec directory is on drive C, type this command on your PC: c:\intermec\imt24\lib\exe2abs shipping.exe
The conversion application creates the SHIPPING.BIN file. 3. If you have a 2461 and plan to download applications and files from the DCS 300 or host via the Ethernet network, copy all of the binary application files and any data files to a 3.5-inch disk. Continue with the instructions for “Using the DCS 300 to Download Applications” later in this chapter.
5-8
Page 97
nugget
39 Programming the Terminal
5
Using the Serial Port to Transfer Applications and Files You can download or upload applications and files between a PC or host computer and the 246X terminal using serial communications. You connect the terminal’s serial port to the host by using: •
COM1
•
COM2 (2460 only)
For help connecting the terminal, see Chapter 2, “Installing the Terminal.” Once the terminal is connected, you can transfer files to or from a terminal. There are two ways to transfer files: •
Use the FileCopy utility that ships with the TRAKKER Antares Programmer’s Software Kit (PSK) and EZBuilder.
•
Use the Receive File or Transmit File reader commands. For help, see Chapter 7, “Reader Command Reference.”
The instructions in this section explain how to use the FileCopy utility to download or upload applications and files to or from the terminal. To run an application on the terminal, it must be stored as an executable binary file (*.BIN). The FileCopy utility will automatically convert any *.EXE file to a binary file (*.BIN) before downloading the file. With the FileCopy utility, you can download either *.EXE or *.BIN application files. You can also use FileCopy to run an application. To transfer applications and files to or from the terminal and run an application
1. Connect the 246X terminal to your PC. 2. Start Microsoft Windows on your PC. 3. From Program Manager, start FileCopy. The TRAKKER Antares FileCopy utility screen appears. FileCopy includes detailed online help. You click the Help button or press F1 anytime to get more information.
5-9
Page 98
TRAKKER Antares 246X Stationary Terminal User’s Manual nugget
39
TRAKKER Antares FileCopy Utility Screen
4. Check the serial port and serial communications parameters to verify that the settings for your PC match the values that are set for the terminal’s serial port. a. Select the COM Port Setup tab to select and configure the following: •
PC COM port
•
246X terminal COM port
•
Communications Protocol
•
File Transfer protocol
•
Baud rate, parity, data bits, and stop bits b. Select the Serial Communications Setup tab to verify and configure the PC serial communications parameters. c. Scan bar code labels to configure the COM1 or COM2 serial port parameters on the terminal. For help, see “Configuring the Serial Port Parameters” in Chapter 2. 5. Make sure the terminal is running an application that will not be updated during the file transfer. If you are in the TRAKKER Antares 2400 Menu System, exit the menu system. You can run the APPTSK.BIN application while transferring files. For help, see “How to Download and Run Applications” earlier in this chapter. 6. Select the FileCopy tab to download or upload applications and files.
5-10
Page 99
nugget
39 Programming the Terminal
5 a. In the PC filename and path field, type the path and filename (FILENAME.EXE or FILENAME.BIN) for the file on your PC. You can select a previously used filename from a list by clicking on the down arrow. To view a list of available files on your PC, click the Browse button. b. In the TRAKKER Antares filename field, type the drive and filename on the terminal. You can select a previously used filename from a list by clicking on the down arrow. Applications must be stored on drive C. Depending on your 246X terminal options and configuration, you can download other files to drive C, D, or E.
7. If you are downloading an application and want to run it on the terminal immediately after it is downloaded, enable the Run program check box.
Note: You can also run the application at any time from the terminal. For help, see “How to Download and Run Applications” earlier in this chapter. 8. Click Download to copy the file from the PC to the terminal. If you enabled the Run program check box, the terminal boots, resets, and runs the application you downloaded. Otherwise, the current application continues to run on the terminal. Or, click Upload to copy the file from the terminal to the PC. 9. To download or upload another file, repeat Step 5 through Step 7. 10. Click Exit to close the FileCopy utility.
5-11
Page 100
TRAKKER Antares 246X Stationary Terminal User’s Manual nugget
39
Using the DCS 300 to Download Applications You can download applications and files to a 2461 terminal using network communications. The advantage to downloading files via network (Ethernet) communications is that you can download multiple files to one or more terminals. You use Ethernet communications to download applications from the DCS 300 to 2461 terminals running UDP Plus or from the host to 2461 terminals running TCP/IP. This section explains how to use the DCS 300 to download applications and files. For help downloading files in a TCP/IP network, see Chapter 4, “Operating the Terminal in a Network.” To download applications and files from the DCS 300
1. Copy the applications and files to the server. 2. Download the applications and files to the 2461. Each step is described in the next sections. Before you start, make sure the 2461 is communicating with the DCS 300. If you need any help installing or configuring the network, see Chapter 4, “Operating the Terminal in a Network.”
Copying Files to the DCS 300 You can use these instructions to copy binary applications and files from a 3.5-inch disk to the DCS 300. To copy applications and files to the DCS 300
1. Insert the 3.5-inch disk that contains the files in the disk drive of the DCS 300. 2. From the main menu sidebar buttons, choose File Handling. The File Handling dialog box appears. 3. In the File Handling list box, select Restore User Files and choose Start. A message box appears telling you to insert the floppy disk in the disk drive of the DCS 300. 4. Choose OK. The Restore User Files dialog box appears. The files on the floppy disk appear in the Available Files list box.
5-12