300 likes | 413 Views
Opticon Sensors Europe B.V. Welcome. This training will demonstrate how to generate an application using Opticon Application Generator “Professional edition”. Demonstration with Application Generator. This demonstration shows the following items:
E N D
Opticon Sensors Europe B.V. Welcome This training will demonstrate how to generate an application using Opticon Application Generator “Professional edition”
Demonstration with Application Generator This demonstration shows the following items: Software Application Generatoroverview of complete package APPL. 1:create an application in “ simple mode”and continue in “professional mode” Load Application:download application to handheld terminal Install Application at clients HHT:install programs to make use of application APPL. 2:create an application that uses data filedownloaded from the PC
Software Application Generator Package Application Generator contains: PotstarTM “simple mode”create application on PC PotstarTM “professional mode”add advanced functions on PC PotstarTM interpreterruns on handheld terminal Potloaddownload operating system and applicationto handheld terminal Automated Netoconvert data from handheld terminal with Potstar applicationto PC and vice versa Available with version: • Ltd / Pro • Pro • Ltd / Pro • Ltd / Pro • Ltd / Pro
APPL. 1 : Goal of application Function for the user Scan barcode scan barcode and quantity View datareview scanned data(scroll function) Transmit datadownload data to PC APPL. 1 shows how to create an application in “ simple mode” and then continue in “professional mode” The goal of APPL. 1 is to create the following functions: Menu options on HHT (handheld terminal) • item 1 • item 2 • item 3
APPL. 1 : Creating the application Use PotstarTMcreate application without difficult programming Start in “simple mode”:build a new project Enhance in “professional mode”:tuning with advanced options
APPL. 1 : New project Start in “simple mode” Create Projectexample: “new-appl” Add components and build menu structurefor items 1, 2, 3 Define functionsof components.Some functions are onlysupported in “professionalmode”. Keep the functionempty and edit later.>>>
APPL. 1 : New project step 1.Main menu step 2.Sub menuScan barcodeitem 1 >>>
APPL. 1 : New project step 3.Functionscanning barcode item 1 step 4.Functioninput quantityitem 1 >>>
APPL. 1 : New project step 5.Sub menu + FunctionView data item 2scroll functiononly supported in “professional mode”,thus empty function. step 6.Sub menuTransmit dataitem 3 >>>
APPL. 1 : New project step 7.Functionsend dataitem 3 New project is defined.
APPL. 1 : Save project / switch mode Save the project Generate HHT logic files Switch to“professional mode” Project is ready to define advanced functionsof components that are empty.Example: scroll function
APPL. 1 : Enhance project The scroll function we want to create looks like this: Current record + Max number of records Barcode Quantity Keys that can be used in this function To create the scroll function Potstar needs operation instructions based on the concept. >>>
APPL. 1 : Enhance project Check if file is empty (number of records = 0) then display error Initialize record counter to 1 Read record (top of file) Barcode Display quantity Wait for key press If key pressed is key [Q1] thenIf record counter > 1 then Record counter = record counter -1 Read record (rewind) Else Beep Goto display barcode If key pressed is key [Q2] thenIf record counter < Number of records then Record counter = record counter +1 Read record (forward) Else Beep Goto display barcode If key pressed is key [CLR] then goto main menu>>> Conceptforfunction
APPL. 1 : Enhance project The concept must be translated to PotstarTMoperation instructions for the (scroll) function The functions of components created in “simple mode”are already translated (expanded) by PotstarTM The advanced (scroll) function must be inserted in the PotstarTM program >>>
APPL. 1 : Enhance project The numbers between brackets [xx] are the Potstar instruction numbers, you can look them up in the Potstar Professional mode Operation Manual [28] Get number of records in cInstring [66] convert cInstring to int. reg 2 (max 4 digits) [63] compare int. reg 2 with constant 0 goto ERROR on true (reg2 = 0) [62] set int. reg 1 with constant 1 [24] read record (head of file) DISPLAY [12] Clear screen [01] display fixed data "Rec of" [66] convert int.reg1 to cInstring [02] display input data (displays current record number) [66] convert int.reg2 to Instring [02] display input data (displays max number of records) [03] display file data (display barcode) [03] display file data (display quantity) [01] display fixed data "Q1=UP CLR DWN=Q2" in reversed video [41] Key input (Q1, CLR, Q2) [A5] goto by key input Q1 goto UP [A5] goto by key input Q2 goto DOWN [A5] goto by key input CLR goto MAINMENU>>> PotstarTMprogramfor function
APPL. 1 : Enhance project UP [63] compare int. reg1 > 1 goto UP1 [A1] BEEP [A5] goto by key input (uncondional jump) display UP1 [62] numeric register operate (int. reg1 = int. reg1 -1) [24] read record (Rewind) [A5] goto by key input (uncondional jump) DISPLAY DOWN [63] compare int. reg1 < int .reg2 goto DOWN1 [A1] BEEP [A5] goto by key input (uncondional jump) DISPLAY DOWN1 [62] numeric register operate (int. reg1 = int. reg1 + 1) [24] read record (Forward) [A5] goto by key input (uncondional jump) DISPLAY ERROR [12] Clear screen [01] display fixed data "No data" [01] display fixed data "present" [A2] Sleep 3 sec. [A5] goto by key input (uncondional jump) MAINMENU >>> PotstarTMprogramfor function
APPL. 1 : Enhance project Insert new funtionexample: scroll function View data functionstarts at labelAB0000000000 Create space for function Type operation instructions >>>
APPL. 1 : Enhance project Check coordinates with HHT screen function >>>
APPL. 1 : Enhance project Generate HHT logic files Application is ready.
Load Application Use Potload (supplied with Application Generator CD) Check if the right Operating System runs on the terminalIf needed, load new O.S. - Use potload, select OS Load Potstar TM interpreter to the handheld terminalUse Potload, select Potstar Select in Potload:- right COM port- software O.S. or Potstar- right type of terminal Communicate HHT logic files tothe handheld terminal Application is loaded to handheld terminal.
Install Application at clients HHT The client that uses an application created with Opticon Application Generator needs 2 programs on the Opticon handheld terminal. Install Automated Netoon PC of client Install PotstarTM Interpreteron handheld terminal of client Download your applicationto handheld terminal of client Application can be used.
APPL. 2 : Goal of application APPL. 2 shows how to create an application that uses a data file downloaded from the PC The goal of APPL. 2 is to create an application to: • let the user scan a barcode • display the description of the scanned article • The data file downloaded from the PC contains the barcode with the description (lookup table) • When the scanned barcode was not found in thelookup table “Unknown Article” is displayed.
APPL. 2 : Creating the application create the base application in the same way as for APPL. 1 • Use PotstarTM • Start in “simple mode”:build a new project • Enhance in “professional mode”:tuning with advanced options
APPL. 2 : Enhance application The function we need is based on the following concept: Scanning: Initialize barcode Barcode input If special key [CLR] is pressed return to main menu Read record (search barcode) If found display description Else display “Unknown Article” Communication: Initialize comport Download lookup table Print error message in case of error >>> Conceptforfunction
APPL. 2 : Enhance application The concept must be translated to PotstarTM operation instructions for the function: SCAN [12] Clear screen [01] Display fixed data “Scan Barcode” [A3] Initialize barcode [42] Barcode input; 13 chars. Max , special key CLR [A5] Goto by key input; if [CLR] pressed goto MAIN_MENU [02] Display input data [24] Read record (compare); result in Int. reg1. [63] Numeric register compare if Int. reg1 = 1 goto UNKNOWN [03] Display file data [A2] Sleep 2 seconds [A5] Goto by key input (unconditional JUMP) to SCAN UNKOWN [01] Display fixed data “Unknown Article” [A2] Sleep 2 seconds [A5] Goto by key input (unconditional JUMP) to SCAN >>> PotstarTMprogramfor function
APPL. 2 : Enhance application • COMMUNICATION • [12] Clear screen • [01] Display fixed data “Receiving…” • [A4] Initialize COM port (19200,N,8,1) • [D8] Download utility • [66] String register convert CinStrings -> Int.reg.1 • [63] Numeric register compare Int. reg1 < 1 goto ERROR • [12] Clear screen • [01] Display fixed data “Communication” • [01] Display fixed data “OK” • [A2] Sleep 2 seconds • [A5] Goto by key input (unconditional JUMP) to MAIN_MENU • ERROR • [12] Clear screen • [01] Display fixed data “ERROR” • [01] Display fixed data “in COMMS” • [A2] Sleep 2 seconds • [A5] Goto by key input (unconditional JUMP) to MAIN_MENU >>> PotstarTMprogramfor function
APPL. 2 : Enhance application The datafile needs to be created in a lookup table. Example: LOOKUP.TXT Use Notepad or Edit to create the datafile: Important Note Make sure that each line is exactly of the same length ! >>>
APPL. 2 : Enhance application Fill in the lookup definition in the Field Allocation Table. The Field Allocation Table defines the correspondence between handheld terminal (HHT) file and the PC file. • In “simple mode” done by PotstarTM • In “professional mode” to be specified by yourself >>> <<< LOOKUP.TXT <<< LOOKUP.TXT
APPL. 2 : Enhance application Specify the fields en order for the datafile. Pressing on the datafile wiil bring up the Field Item Correspondence table for: • HHT file name (full path) • PC file name (full path) Fill in the specifications for the data files >>>
APPL. 2 : Enhance application The application needs to be tested. Use some sample barcodes to see if the display shows the right output after scanning the barcode. Sade, Diamond liv D-Cell Batteries Sony CDQ-74CN Philips CD-R74 C Prog. Language Untitled If the test result is O.K. Application is ready.