Introduction. Battery charging. Hardware requirements. First time operation. File transfer. Vcomm. Local PC. Remote PC. At the computer. Using the barcode reader. Programming for barcode reading. OPL comms procedures. Demonstration program. Using data files.
The JPX5 Barcode Reader combines barcode reader, comms port and battery pack into one unit.
As the Reader has its own battery pack it allows a practical working time between charges when using scanners that take a lot of current such as Laser Scanners and CCD Scanners.
The VDATA Datapack is available for use with the Reader. VDATA enables you to create your own Data Collecting Applications without writing a computer program.
The floppy disk supplied includes the following programs:
|BAR||A simple demonstration program that displays the barcodes read by the Reader.|
|STOCK||A suite of seven OPL procedures that form an
elementary data collecting package. The procedures
collect and edit the data for a database file called
"product.odb". The database file can be transferred
to and from a PC.
These procedures can be tailored to suit different applications of a simple nature.
|VCOMM||Enables file transfer to and from a local PC or, alternatively, a remote PC via a modem. Also enables multiple OPL procedures to be loaded into a Datapack.|
|CL.EXE||The PSION communications software.|
Charge the battery when the needle of the level meter is on the division line between red and green. To charge, connect a PSION Mains Adaptor into the jack socket in the top of the Reader and charge for 14 to 16 hours. This method will give the battery pack its maximum life.
Repeatedly charging the battery for short periods of time will shorten the life of the battery and make it unable to give its full 650mA hours of current. Charging the battery for more than 16 hours will have the same effect.
You may charge the Reader on or off the Organiser. It is safe either way.
If there is no battery in the Organiser, the Reader will drive the whole system. However it is bad practice to have no battery in the Organiser as all data will be lost from the main memory if the reader is unplugged for any reason.
As well as a PC and the JPX5 Reader, you will need:
On your PC, create a new directory (Say,"JPX5") on the hard disk. Copy the floppy disk supplied onto this new directory. Typically the command line will read:
C:\JPX5\>copy a:*.* c:\jpx5\*.*/v
(See your DOS Manual if necessary.)
Insert a Datapack into one of the Organiser side slots.
Plug the JPX5 Reader into the Organiser top slot.
Connect the reader to a serial port on the computer using the comms cable. (Use COM1 for the purpose of this description.)
On the computer, go into your "JPX5" directory and type:
(Followed by a carriage return)
You only have to carry out the actions that follow once. Therafter, life becomes easier:
On the Organiser, press ON/CLEAR twice.
Press P to enter the Organiser PROG menu then press N for NEW.
The display should read: NEW A: If not, press the MODE key until it does.
Now type: VL and press EXE twice.
The display reads: VL:
Making frequent use of the SHIFT key, type in the following three lines of OPL code: (Press EXE at the end of each line)
(The double spacing of the lines of code is not essential.)
Press MODE then T to translate the code.
Press EXE to Save the code, then RUN the code by pressing R EXE.
The VL procedure that you typed in will now get the file transfer procedures VCOMM from the PC. Choose A: to store VCOMM for the moment.
When the VCOMM suite is loaded, the display will instruct you to press EXE ON/CLEAR V to bring up the main file transfer menu:
PC MODEM QUIT
Press Q to go to the Organiser top menu. Note that VCOMM has been added to the end of the menu.
The Organiser/JPX5 system is now ready for NORMAL OPERATION.
From the VCOMM menu, you can now send, receive and delete single files and opl procedures. You can also receive and/or delete a list of OPL procedures in one simple operation.
In the future, copy the procedure VCBOOT from A: (Or from the PC) to all your working datapacks. You may use RECV from the VCOMM menu to do this. Also include VCBOOT in all your procedure lists for own applications. Then, if VCOMM has been removed, running VCBOOT will get VCOMM from the PC.
From the Organiser main menu, press V. The VCOMM menu appears:
PC MODEM QUIT
Select PC from the VCOMM menu. The Organiser display gives you some guidance then the PC menu appears:
RECV XMIT BLDPAK DELPAK DELFILE Q
|RECV||: Receives an .ODB data file or an .OPL procedure text file or an .OB3 procedure binary file from the PC.|
|XMIT||: Transmits an .ODB, .OPL or .OB3 to the PC.|
|BLDPAK||: Gets all the OPL files listed in an .ODB data file.
Here is the VCOMM.ODB file to use as an example:
Note: If your procedure names end in a "%", rename the procedure so that it ends in a "_" and use this name in the list as shown for vdial_ above.
DO NOT CHANGE ANY SOURCE CODE WHATSOEVER. (Don't ask.)
|DELPAK||: Deletes all the OPL files listed in an .ODB data file.|
|DELFILE||: Deletes a single .ODB, .OPL or .OB3 file.|
|Q||: Quits and returns to the VCOMM menu.|
Selecting MODEM from the VCOMM menu asks you to connect the modem and then prompts for the telephone number.
It is assumed that CL is running on the remote PC and the remote Hayes compatible modem is in auto answer mode.
When the connection has been confirmed, you can choose from the following menu:
RECV SEND QUIT
You will now be prompted to receive or send data files or procedure files.
The full syntax of CL is:
where you may omit trailing parameters.
The parameters are:
(insert existing sheets)
|LSET:||Sets the communications parameters as follows.
The parameters may only take the following values:
Calling LSET: with no parameters resets to the default values. Using the value "-1," for any parameter leaves the value unchanged. To change an ASCII code parameter to "none", use double quotes "".
|XTSEND:||Sends a file to the PC.
|XTRECV:||Receives a file from the PC.
The parameters are as follows:
COMM.OPL Shows how to log on to a Hayes modem.
There is a suite of seven OPL procedures on the disk under the program name of STOCK. STOCK can be used as an example program for simple data file handling. SCAN enables you to scan or key in Product Numbers and Product Quantities into a data file called PRODUCT.ODB. This file can then be edited and sent to the PC from the VCOMM menu.
To load STOCK into the Organiser, go to the VCOMM PC menu and select BLDPAK. Enter the filename STOCK when prompted. VCOMM will place the STOCK procedures into the Datapack of your choice. You may then run STOCK from the Organiser top menu or from the PROG menu.