Home

UG SBL Designer for Phaser Rev C V2 - MCL

image

Contents

1. Figure 2 27 Program Designer Window Screen 3 Quick Tour MCL Designer for Phaser Series User s Guide Saving Your Design After creating the program design it must be saved Tosave your design choose Save or Save As from the File menu or click J Simulating andTestingYour Design After the program is designed and saved it can be tested using the simulator To test the program 1 Inthe MCL Designer window or the Program Designer window click to display the Simulator window This window displays the first Menu screen that was designe with Quick Tour Simulator SAMPLE A ES ENTER Figure 2 28 Simulator Window 2 20 Quick Tour 2 Inthe Simulator window click the FUNC and the 1 keys with the left mouse button or press the F1 key on the computer to start the program simulation Simulator SAMPLE ENTER Figure 2 29 Simulator Window Code Screen 3 Using the computer keyboard enter the code and press ENTER The next simulator window appears Figure 2 30 MCL Designer for Phaser Series User s Guide Simulator SAMPLE for 8 UE for 2 Co ENTER Figure 2 30 Simulator Window Quantity Screen 4 Using the computer keyboard enter the quantity and press ENTER Now that the simulation of the program was successful it can be downloaded to thescanner Refer to Chapter 6 Downloading A Project for procedures on how to download a program to a scanner 2 22
2. 7 28 FUG SE oh cee eae eee Ee eee 4 58 File Seek command o o 7 30 PUIARIAS A eae 7 34 File Size command o o o 7 34 file steUe ro 7 6 File Update command ssroerisiessiess 7 32 file viewer siria 5 5 File Write command o o 7 33 files nid HORS ci 7 5 Files pioup a cra 4 49 Files window versa das roueder neds 4 87 PORTE yr Aa 4 33 G global view of variables 4 93 Fosu MIO errar AR 4 47 GOO irc ds A 4 40 H host LOOK UP ari cre 4 66 how to create a main menu 3 1 I MS raid 7 36 TESSA a o 7 39 information Service 2 000 ix Input Cash command 0 3000 Orsa En 7 36 Input Date command 205608 200s 7 38 Input Extended command 7 45 Input Hour command 7 40 Input Key command iccvcccavenssane 7 41 Input List command ssi 540565400 geet as 7 43 inserting a blank sereen rer 4 22 o A dead dx aang 1 1 installation corri re 1 1 K key amp branch oooooooomoomo o 4 41 Keyboard loput soma aa da dedo keyboard input 2 00s00eesee es ee 4 8 keyboard key symbols 7 2 MCL tema Y logical Groupe 2 scr eros 7 3 M ES o main dees 3 2 MCL Code display 24402000 nkaewaiece Oe PO WOMEN sates eves eee 5 5 rr o PES MENUS eri a MESA iia a 481 AA arriten modem command sssi 6000010 64 A71 MOVING A SeN oa decades an dona Rhea gk moving fields 2 200500 rar ea 4 20 N Network Input
3. MCL Designer for Phaser Series User s Guide 4 Click apie the File Review 2 dialog box File Review 2 x xv 2 Start Review on Fields presentation C 1 Field Line Auto arrange Last record IV Space Separator Allowed Functions FT Delete Current Record y Key IV Search a Record Fi Key Hot Keys Goto Clear Continue X Enter Continue X Figure 4 43 File Review 2 Dialog Box Start Review On Fields Presentation Allowed Functions 4 56 Selects the field to start the review on Click on the appropriate radio button to change the setting Sets the number of lines for the display of the file review The file review can contain a maximum of 20 characters for each line Therefore select 1 Line Field if the length of the field name is less than 20 Auto to arrange the view according to the length of the field name andit s value Space Separatorto insert a space to separate fields Sets keys to delete and search for a specific record in the file Click the Delete Current Record check boxt allow the user to select the key to delete a record Click the Search a Record check box to allow the user to select the key to search for a record Designing Programs Hot Keys Goto Clear Selects the action to perform or the screen to go to when the CLR key on the scanner is pressed Enter Selects the action to perform or the screen to go to when
4. to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click Xf close the dialog box without saving the changes 4 33 ae MCL Designer for Phaser Series User s Guide To format a variable 1 Click on the Input Variable list box and select the input variable to format e g V_CODE Using the up and down arrow button select the new length for the variable e g 10 3 Click on Zero or Blank radio button to fill the open spaces with zeros or blanks 4 Click on Left or Right radio button to place the open spaces on the left or the right of the variable 5 Click ga to select a variable name to put the new format in Substring In the Insert A Process dialog box click on Group Variable and then on Command Substring Click on Wjopenthe Variable Substring dialog box This dialog box enables you to remove a certain number of characters from a variable o mex Input Variable v_barc Substring From Position 1 To Pasition 10 Result Variable V RESULT a Figure 4 26 Variable Substring Dialog Box Input Variable Selects the input variable to remove characters from Substring Selects the starting character and ending character to remove from the variable Use the up and down arrow keys to select the character position Result Variable Selects the variable that the value is assigned to Click on E to o
5. Figure 5 2 Break Dialog Box Bar Code Input To simulate a bar code input click on tilt TheBarcode Input dialog box appears Figure 5 3 Select the type of bar code that will be simulated Then type the required input in the Scanned Data window Note Only select the bar codes that were previously selected in the Barcode Input Window Refer to Chapter 4 Designing Programs 5 3 MCL Designer for Phaser Series User s Guide Barcode Input MSI RiEssey mope eode sg MM E Ee eOoogecee An e gt Figure 5 3 Input Dialog Box Variable List Displays the variables used during the simulation Click on the to display the Variable List dialog box Figure 5 4 This window can remain open while the simulator is running The Search field allows for a quick search of a variable Enter the first character of the variable and the first variable matching that character displays MCL Variable Viewer Figure 5 4 Variable List Dialog Box 5 4 Simulating the Designed Project File Viewer Displays the data files used during the simulation Click on the to display the File Viewer dialog box Figure 5 5 This window can remain open while the simulator is running Select the data files to view using the File Name list box v x Full 0 0 Figure 5 5 File Viewer Dialog Box MCL Code Display The MCL Code of the project can be displayed in the MCL Code Viewe dialog box Figure 5
6. NO oe RTER 10 Insert the MCL Collection CD ROM disk into the CD ROM drive Click the Start button on the task bar Select Run Type D mcl exe and click OK replace D with the CD ROM drive letter Click Finish when the introductory screen appears Click Yes to accept the license agreement Click Next to accept the default directory or click Browse to select a different directory Click OK then Next Click Next to install all the MCL programs or select MCL Designer and de select all the other options Click Next to accept the MCL program folder Setup installs the selected programs onto the hard drive A screen that monitors the progress appears When installation is complete click Finish ae MCL Designer for Phaser Series User s Guide S About MCL Designer Introduction MCL Designer is a Windows based development tool that generates MCL Code programs that can be downloaded to the scanner and executed by the MCL Code runtime installed on the scanner Operator Usage The program development can be divided into three steps 1 designing the program 2 simulating the program on a PC 3 downloading the program to the scanner MCL Designer Features MCL Designer offers a number of features which enable you to design total project designs main menu eight programs with 32 screens per program eight local data files for capture and look up functions 103 variables for temporary data storage
7. To create a short menu for your designed project 1 In the MCL Designer window click on the Main tab The Main Tab window appears MCL Designer for Phaser Bik File Edit Tools Option Help mjas mel Aad y 2 x H Project gt Man srg Programs Eiles Main Program ff Figure 2 4 MCL Designer Window MainTab 2 Click on the Main Program button The Program Designer QTOUR MAIN screen appears i Program Designer QTOUR MAIN BEI File Edit Help 1 Screen 1 Display 7 oe Y Input A e Choice af el Process Se Se PE UE Figure 2 5 Program Designer Window QTOUR MAIN 2 4 ON ie 10 Quick Tour Click 48 to display the Display Text dialog box In the Display Text box type QTOUR MAIN MENU Choose the Normal radio button to display black text on a white background Click on the desired check boxes for beep options vlz Display text aTour MAIN MENU 15 Normal Reverse IV Display first After Display IV Beep fi Short High Beep y y W Pause 1 Seconds IV Enierto continue Figure 2 6 DisplayText Dialog Box Click 8 accept the information A cursor with pages attached appears on the screen Position the cursor on the first line in screen 1 Click the left mouse button to place the text box on the screen To edit text in the Main User Menu screen double click on th
8. 33 1 40 96 52 50 Outside France Italy Symbol Technologies Italia S R L Via Cristoforo Columbo 49 20090 Trezzano S N Navigilo Milano Italy 2 484441 Inside Italy 39 02 484441 Outside Italy Mexico Symbol Technologies Mexico Ltd Torre Picasso Boulevard Manuel Avila Camacho No 88 Lomas de Chapultepec CP 11000 Mexico City DF Mexico 5 520 1835 Inside Mexico 52 5 520 1835 Outside Mexico Norway Symbol Technologies Trollasveien 36 Postboks 72 1414 Trollasen Norway 66810600 Inside Norway 47 66810600 Outside Norway South Africa Symbol Technologies Africa Inc Block B2 Rutherford Estate 1 Scott Street Waverly 2090 Johannesburg Republic of South Africa 11 4405668 Inside South Africa 27 11 4405668 Outside South Africa Sweden Symbol Technologies AB Albygatan 109D Solna Sweden 84452900 Inside Sweden 46 84452900 Outside Sweden About This Guide Spain Symbol Technologies S A Edificioi la Piovera Azul C Peonias No 2 Sexta Planta 28042 Madrid Spain 9 1 320 39 09 Inside Spain 34 9 1 320 39 09 Outside Spain If you purchased your Symbol product from a Symbol Business Partner contact that Busines Partner for service xi ae MCL Designer for Phaser Series User s Guide xii Chapter 1 Getting Started Installation MCL Designer is part of the MCL Collection of software It can be installed separately or as part of the whole MCL Collection series To install MCL Designer
9. 7 78 MCL Code Reference Guide Examples VCI amp A11A1 14 11VCERR Compares variable A1 with following pattern first character must be A second character must be 1 third character must be Alphabetic A Z a z fourth character must be numeric 1 9 fifth character is not tested If matched go to next line 1 else go to label VCERR 7 79 eee MCL Designer for Phaser Series User s Guide Variable Extract VE Function Extracts all characters of the defined field and stores them in variable Fields are delimited by the separator defined in the command Syntax VE variable text fieldnr separator where Variable the name of the receiving variable Text the text to store in variable Fieldnr field number to be extracted Separator character defining the beginning and end of each field If no separator is used all text is stored in the variable Affected System Variables amp 99 0 if no error 1 if field not found or field does not exist Note If is the separator use 7C to specify the character Example VEIA1 JOHN ANDREW PETER 21 Extracts the second field from the text Fields are separated by After execution Al ANDREW VE A0 amp A1121 7C Extract the second field from the text in variable A1 using l as the separator characterand place the result in variable AO 7 80 MCL Code Re
10. Jump to current line 1 if the lt FN BKSP gt key is pressed IK F1 HELP OUT Jump to the HELP label if the lt F1 gt key is pressed Jump to the OUT label if any other key is pressed 7 42 Input List IL Function MCL Code Reference Guide Define a list input field where several options may be accessed using a single field scrolling through the available options The index of the selection is returned in a variable Syntax IL line column height width default mode speedkey variable sel1 sel2 seln where line column height width default mode speedkey variable sell seln line on which to begin field column in which to begin field number of lines to be used ignored by Phaser number of columns to be used Index of default selection Scrolling Mode S Scrolling if user attempts to scroll beyond the start or end of the list the scanner ignores the keypress and beeps R Rolling if the user scrolls past the end of the list the list rolls over back to the beginning Enable speed key processing Note that the speedkey feature only works with numerics 0 9 1 Pressing the key corresponding to the first character of a list item moves directly to that selection most useful if list items are numbered 0 Disable the speedkey feature Variable to receive the selection Text of first available selection Text of last availa
11. Update the second field of file A with the contents of variable A1 leaving the first field unchanged 7 32 MCL Code Reference Guide File Write FW Function Writes a new record in the file Syntax FW filename field1 field2 field n where Filename the name of the file range A H Field1 n the text or variable for fields 1 to n Affected System Variables amp 99 0 if no error occurs or 1 in case of error Notes 1 The number of field s must be equal to the number of field s defined within the File Open command If filename is unknown System Error 2 is displayed 3 Records are appended to the end of the file regardless of the current file pointer position The current pointer position is not changed 4 All fields are truncated or left justified filled with blanks on right to the correct length 5 It is recommended that lod carriage return or od oa carriage return line feed terminate each sequential file record to facilitate later retrieval of these records Example FW1AI amp C1 amp D0O amp F1 123 Writes a new record into file A Stores the content of the variables C1 DO F1 and 123 in the record ee MCL Designer for Phaser Series User s Guide File Size FZ Function To allocate storage for a file Syntax FZ filename start end where Filename the name of the file to allocate storage for range A H
12. a ynne r MCL Designer for Phaser Series User s Guide MCL Designer for Phaser Series User sGuide 70 37689 02 Revision A March 2000 Symbol Technologies Inc One Symbol Plaza HoltsvilleN Y I 1742 MCL Designer for Phaser Series User s Guide 70 37689 02 Revision A March 2000 2000 by Symbol Technologies Inc All rights reserved No part of this publication may be reproduced or used in any form or by any electrical or mechanical means without permission in writing from Symbol This includes electronic or mechanical means such as photocopying recording or information storage and retrieval systems The material in this manual is subject to change without notice The software is provided strictly on an as is basis All software including firmware furnished to the user is on a licensed basis Symbol grants to the user a non transferable and non exclusive license to use each software or firmware program delivered hereunder licensed program Except as noted below such license may not be assigned sublicensed or otherwise transferred by the user without prior written consent of Symbol No right to copy a licensed program in whole or in part is granted except as permitted under copyright law The user shall not modify merge or incorporate any form or portion of a licensed program with othe program material create a derivative work from a licensed program or use a licensed program in a network
13. label within the called program to execute at If a label is omitted execution begins at line 1 of the called program Affected System Variables amp 99 0 if no error 1 if the program is not found or the execution failed Notes 1 After execution control is returned either to the calling program at the next instruction after the call or to the OS depending on how the called program terminates A maximum of 6 nested program calls can be used 3 A QX command is mandatory to exit any program called by the RM command If QX is omitted after execution of the RM command System Error 9 is displayed 4 An SK can be used to jump directly to a label in the same or another program a MCL Designer for Phaser Series User s Guide Examples DC 10 Clears all the lines on the scanner display RM 2 Calls and executes the program in file 2 DC 10 After execution of program 2 clears all the lines on the scanner display In this example it is assumed that program 2 terminates with a QX 1 command 7 68 MCL Code Reference Guide Serial Input SI Function Accepts input from a serial port and stores the data in variable Syntax SI port variable beginchar endchar maxchar trailingchar where Port communication port ignored for Phaser Variable the variable receiving the input characters Beginchar the starting character or string of the data string Endchar t
14. 2 Code 39 Length 2 0x13 Range len2 gt len1 55 Discrete lengths len1 gt len2 Verify Code 39 Check Digit 0x30 0 Disable Disable 1 Enable Transmit Code 39 Check Digit 0x2B 0 Do Not Transmit Do Not Transmit 1 Transmit Code 39 Full ASCII 0x11 0 Disable Disable 1 Enable Convert Code 39 to Code 32 0x56 0 Disable Disable 1 Enable Code 32 Prefix Oxe7 0 Disable Disable 1 Enable Trioptic Code 39 0x0 0 Disable Disable 1 Enable UPC EAN UPC A 0x01 0 Disable Enable 1 Enable UPC E 0x02 0 Disable Enable 1 Enable EAN 13 0x03 0 Disable Enable 1 Enable 7 103 ee MCL Designer for Phaser Series User s Guide Table 7 7 PY Parameter Numbers Continued 1 System Character 2 System Character and Country Code Parameter Parameter Options Default Value Number UPC EAN Continued EAN 8 0x04 0 Disable Enable 1 Enable UPC E1 0x0C 0 Disable Disable 1 Enable Bookland EA 0x53 0 Disable Disable 1 Enable Coupon 0x55 0 Disable Disable 1 Enable Decode UPC EAN 0x10 0 Ignore Supps Ignore Supps Supplementals 1 Decode Supps only 2 Auto discriminate Supps Supplementals Redundancy 0x50 2 20 7 Transmit UPC A Check Digit 0x28 0 Disable Enable 1 Enable Transmit UPC E Check Digit 0x29 0 Disable Enable 1 Enable Transmit UPC E1 Check Digit 0x2A 0 Disable Enable 1 Enable UPC A Preamble 0x22 0 None System Character 1 System Character 2 System Character and Country Co
15. Click Ey Process Out to add a process The Process Designer dialog box appears Line Process Description E 1 Goto Current Screen Figure 2 22 Process Designer Dialog Box 2 Click to insert a goto line The Goto dialog box appears vw 2 x Go to Current Screen X Figure 2 23 Goto Dialog Box In the Go To list box select Current Screen Click 8 accept the information The Goto Process appears in the first line on the Process Out dialog box Click 8 accept the information A MCL Designer for Phaser Series User s Guide Screen Description 1 To insert a description of the screen cli fdisplay the Screen Description dialog box Screen Description Figure 2 24 Screen Description Dialog Box 2 In the Screen Name text box type SCAN BARCODE 3 Click accept the information Figure 2 25 shows Screen 1 of the program that was just designed Program Designer SAMPLE MAIN Me Ea Delale ealo e Figure 2 25 Program Designer Window Screen 2 18 Figure 2 26 shows Screen 2 of the program that was just designed 2 Screen 2 gas Display a yv Input 2 Choice al Process Figure 2 26 Program Designer Window Screen 2 Figure 2 27 shows Screen 3 of the program that was just designed 3 Screen 3 F23 Display al y Input 2 Choice Process al
16. Standard Host RS 232 Standard IV Beep on Bell Parity Check Enabled C Disabled RTS State Cow C High Intercharacter delay X 100 mSec Response Timeout x 100 msec Getting Started Figure 1 9 Phaser RS232 Setup Window Sets the speed baud rate of the RS 232 port Baud rate is the number of bits of data transmitted per second The scanner s baud rate setting should match the data rate setting of the host device If not data may not reach the host device or may reach it in distorted form Click on the list box to select the RS 232 port speed Sets the type of parity none odd even mark or space Click on the list box to display the parity options If no parity is required select NONE If you select EVEN parity the parity bit has a value 0 or 1 based on data to ensure than an even number of 1 bits are contained in the coded character If you select ODD parity the parity bit has a value 0 or 1 based on data to ensure than an odd number of 1 bits are contained in the coded character If you select MARK parity the parity bit is always 1 If you select SPACE parity the parity bit is always 0 1 17 a MCL Designer for Phaser Series User s Guide Data Bits Sets the number of data bits for the RS 232 port Click the appropriate radio button to change the setting Stop Bits Sets the number of stop bits for the RS 232 port The stop bit s at the end of each transmitted char
17. The Menu List dialog box appears Lv 2 x Column Width Default Position Up Down Key Mode Scrollin a if l g Y e d ic Rolling Menu Options Shortcut Goto Program qfecanpara E PEO E A a Orar a a jf al a Figure 3 7 Menu List Screen Column Width Sets the number of characters in the function name to be displayed on the menu screen The maximum is 20 Default Position Sets the default position of the characters to be displayed on the menu screen 1 8 Up Down Key Mode Menu Options Shortcut Goto Program Sets the up down key mode to either scrolling or rolling Sets the menu option names entered Sets the programs to start either with the Function Keys F1 F2 or Numeric Keys 1 2 F1 or 1 starts Program 1 F2 or 2 starts Program 2 etc Sets the action to be performed or program screen to be started 9 Click to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click close the dialog box without saving the changes 3 6 Chapter 4 Designing Programs Each project can contain up to eight programs Programs are designed using the Program Designer window In each program you create a set of screens variables and processes that perform specific functions on your scanner Main Program Window The Program Designer window is the workplace for designing prog
18. if the user does not connect the scanner to a cable or cradle within 30 seconds of executing this command TIMEOUT if the modem did not respond in the time specified in the last PI command not including the 30 second period waiting for the user to cradle the scanner SER ERROR if an error occurs during the transmission to the mode such as a handshaking error if handshaking is enabled Notes 1 A lt CR gt character ASCII 13 is added automatically at the end of the string 2 The RS232 communication parameters baud rate parity etc are used 3 The RS232 communications must be set to use NO software handshaking 4 Unless the Host Override Enable barcode is scanned the user has 30 seconds after this command is encountered to place the scanner into the cradle or connect to the cable If the user does not do so the MD command will return an error status 8299 1 5 Once the commanded string has been sent to the modem the scanner will wait a period of time determined by the most recent PI command for the response from the modem If no response is received the MD command will return an error status amp 99 1 6 Only the first 10 characters of a response message are placed in system variable 98 7 A valid response code amp 99 0 does NOT indicate that the modem successfully executed the command only that the modem received the command and responded to it In order to determine the modem result the user should
19. is not found Selects the search mode First first record Last last record Next next record Previous previous record Current current record Key If the file is sorted you can set a key to search the record Selects a variable to search for when Key is selected in the Mode list box Writes the record number into a variable Click on m to open the Variable dialog box to create a new variable or select an existing variable Refer to Working with Variables on page 4 92 for information on variables Designing Programs Note Click go to the Data File Window For more information refer to Working With Files on page 4 87 Click 4 to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes Click Xfclose the dialog box without saving the changes To look at a record in a file 4 Click on the File Name list box to select a file e g lt A gt FILE Click on the Mode list box to select the search mode Click on the Store Record number into Variable list box to store the record number of the selected record into a variable Click w to select the variable Local File Check In the Insert A Process dialog box click on Grou Files and then click on Command Local File Check Click on 8 open the Local File Check dialog box This dialog box enables you to check if a local file in the scanner exists 9 v x Local Filename
20. maxlength kb scan autoval data reset var scanret where Line Column Variable Minlength Maxlength Kb Scan Autoval Data Reset var Scanret line of the input field on the display range 1 2 screen line left most column of the input field name of the variable to receive the input minimum length of the input field min 0 char maximum length of the input field max 5Schar keyboard entry allowed Y or N scanning entry allowed Y or N auto validation Y or N If Y scanner input is accepted without having to press lt ENTER gt and keypad input of maxlength characters is accepted without having to press lt ENTER gt If N lt ENTER gt must be pressed to accept either scanner or keypad input type of data Valid entries are A alphanumeric N numeric D decimal accept or S secret displayed in input field for every character entered reset variable Y or N IfY the destination variable is cleared before the input operation and no default value is displayed on the screen if N then the current value of the variable is used as the default value and displayed in the input field prior to accepting user input scan return scan Y or N If Y and scan is N then scanning data on this field will cause the default value to be entered and the next field to be accessed 7 45 S MA MCL Designer for Phaser Series User
21. s Guide Code 39 Tab To set up the Code 39 options click on the Code 39 tab in the Scanner Setup dialog box Scanner Setup Figure l 7 Scanner Setup Window Code 39 Tab Code 39 Settings Sets the format for Code 39 bar codes Click the appropriate check box to change the setting Check Digit Sets the Check Digit options for Code 39 bar codes When enabled the Verify Code 39 Check Digit parameter checks the integrity of a Code 39 symbol to ensure it complies with specified algorithms When selected the Transmit Check Digit selection allows you to transmit the check digit with the data Click the appropriate check box to change the setting Trioptic Sets the Trioptic options for Code 39 bar codes Trioptic Code 39 symbols always contain six characters Click the appropriate check box to change the setting Getting Started Note Trioptic Code 39 and Code 39 Full ASCII cannot be enable simultaneously If you get an error beep when enabling Trioptic Code 39 disable Code 39 Full ASCII and try again Y Click to accept the default setting or Enter the appropriate information to change the values and click to apply the changes Click close the dialog box without saving the changes Others Tab To set up the options of Other types of bar codes click on the Others tab in the Scanner Setup dialog box Scanner Setup r MESS Figure l 8 Scanner Setup Window Others Tab ae MCL Designe
22. 2 Click gs to display the Display Text dialog box 2 7 MCL Designer for Phaser Series User s Guide 3 Inthe Display Text box type F1 SCAN DATA Figure 2 9 DisplayText Window 4 Click Wjaccept the information 5 A cursor with pages attached appears on the Menu Screen Position the cursor over the first line in screen 2 6 Click the left mouse button to place the text box on the screen Figure 2 10 illustrates screen 1 of the Menu Screen at this time Program Designer TOUR MAIN ES FEBER EB 9H 14 Figure 2 10 Menu Screen 2 8 Quick Tour Menu Options 1 Click W to set the scanner menu keys The Menu List dialog box Figure 2 11 appears Menu List fscanpata JM iff f802 Screen 2 5 i Eo E E H Eo ES H es ES E Figure 2 11 Menu List Window In the Menu Options area type SCAN DATA In the Shortcut area click on the list box and select F1 In the Goto Program area click on the list box and select S02 SCREEN 2 Thi enables the SCAN DATA program to run when the F1 key is pressed S Click 6 The Menu design is complete and a program can now be designed Row Y accept the information 2 9 MCL Designer for Phaser Series User s Guide Designing a Program This section provides the steps required to create a small program This program allows the operator to enter a barcode and input keyboard data 1 Inthe MCL Designer window cli
23. 4 MB unit 7680 KB onan 8 MB unit MCL Designer for Phaser Series User s Guide MCL Code Error Messages After the execution of a MCL Code command variable amp 99 generally reports the result of the command execution Table 7 5 lists the standard error messages used by the MCL Code commands The error messages are displayed on the scanner display and the program is suspended After pressing the ENTERkey the program returns to the operating system Any previously stored data is retained intact although the record entry on which the error occurs will be lost Table 7 5 Error Code Messages Error Code Description 2 error on File operation File name is invalid number of fields per records too big not enough free space on scanner check system var 32 branch error jump out the scope of the current program label not found too long syntax error in a MCL command command code invalid mandatory argument missing or invalid bad number of arguments check command syntax ce check if any variable contains characters if yes use VE command to extract desired field check line length max 512 characters after variable substitution variables are replaced by their contents variable error variable too big in write command variable name invalid key error in PI or IK command invalid key definition too many entries in PI or IK commands 7 96 MCL
24. 6 The viewer displays each line that is performed MCL Code Viewer x Y Project Program MCL Line Figure 5 6 MCL Code Viewer Dialog Box The dialog box displays project file name Y current program name MCL Code line number and command line 5 5 A MCL Designer for Phaser Series User s Guide 5 6 Chapter 6 Downloading A Project Downloading to a Scanner To download the project design to a Version 2 XX scanner select Host Mode on the scanner system menu option 1 suboption 0 then click on 3 To download the project design to a Version 1 XX scamner select Load New System on the scanner system menu option 1 suboption 2 then click on 5 The Send Project dialog box appears Send Project Project Comm Port com Figure 6 1 Send Project Dialog Box Project Displays the name of the current project Comm Port Selects the host scommunication port 6 1 ae MCL Designer for Phaser Series User s Guide gt Click 4 to accept the default setting or Enter the appropriate information to change the values and click 14 to apply the changes e Click Xf close the dialog box without saving the changes 6 2 Chapter 7 MCL Code Reference Guide About MCL Code The Macro Command Language MCL Code is a collection of simple high level commands used to quickly program Symbol scanners An MCL Code program is a standard
25. 7 72 Skip and Return served 7 77 Index 1 ae MCL Designer for Phaser Series User s Guide Variable Compare correr 7 78 Variable Exttact 600060 bd cvs 7 80 Variable Format 36060 olsen 7 81 Variable JUSUF omiso 7 84 Variable Length ccoo a 7 86 Variable MOVE 43500565 as 7 87 Variable Operation Arithmetic 7 88 Variable Operation Arithmetic Extended 7 92 Variable Substring cies 7 90 A ce hee RAE ER REDE AN 7 94 CONNIE Acie eased NRK NE Seek de 4 83 control 86 branch escritor de 4 44 CODY IS E SEES 6 cares noe wa ewe gale nce 4 23 copying Dildo 4 21 CP CRC arcada 7 13 PUNT arta 7 16 CP ROR rial 7 15 D Delete abe mirra nen 4 53 deleting a Screen serio 4 24 deleting all screens unn ase 4 25 designing d PLOT seciosiror sas 2 10 designing with quick tour 2 1 direct TIES cise ks keds RANE REAR 7 6 Display Clear command 7 19 Display Message command 7 20 display terts ss barken ked 4 6 display variable sssr seven 4 7 downloading a project 04 6 1 E editing fields on a screen ooooocm os 4 20 editing VOUT design suresicsosroitissa 2 23 Case A A 4 57 Error Code Messages usina aida 7 96 ELFO MESSARES soro eri a 7 96 CUI A A sane sees 4 35 F TEATS AAA ARA 1 2 Index 2 File Check command 7 23 File Delete command 7 21 File Erase command oc cas aser 7 22 File Open command ii s4 idee dna caees 7 24 File Read command
26. AAA ix Chapter Getting Started A eee eae 1 1 About MOI DERE 0 NARA A a ii EES 1 2 a A hee Bese Epes Rea eS 1 2 CIpetater Usage idas ete DE RN AAA NA E 1 2 MCL De sigzier Festutes ED EKS RE A A A BORD 1 2 tata NEL DESUSO se 1 3 a o A nde a tcaecb ade bure bed ea 1 3 Scanner SOUP 2 5 6 OE Oe RRS KEES Raw EEE ENN EEE DOO RA A 1 5 SSE NEU A heey bk oh an eb De Or eeu he a aud hb Qe ea ea 1 7 Memory LADIES RANTES ROI EMRE EERE ERR ROR 1 8 SEMA SEND a mick og 0 bese eee hee MORE EReGHAG airis add 1 10 Phaser ESAS WEG ra aa aaa rias 1 17 BAC LaDesigner SEP sd AA RA AA AAA ON 1 21 Chapter 2 Quick Tour PIERA A TETAS RA ARAS 2 1 Dis O dae de peewee eee Ske eeuaweguewense gawawEGaduaiegws 2 4 DESEAS E Pras coh ack AA AAA AAA Re eee A AA ee 2 10 PATS TOU DEY son sas ae ESSENSEN NE Giese eaiueke egbwese aoe ees 2 20 Simulating and Testing Your Desist ios cin rr eter kaor kien eii 2 20 Ediins Your DEIS rana ia eb da beh bower os dawesous 2 23 ae MCL Designer for Phaser Series User s Guide Chapter 3 Designing a Main Menu Howto Create a Maim Menik a A A BR AA AAA AA ORR AAA AAA 3 1 Adding Reet tothe Mom pepa dada a eee a 3 1 Adding Variables to the Men cir AAA RARA 3 4 Setting Nena OPOS ir A a RA 3 6 Chapter 4 Designing Programs Mam Program Window 55 2 iaa ii ARA 4 1 a A A een Leones 4 5 Display Texts 2445446 A AAA AA da AAA AAA 4 6 Dipan varn A aR aL eR SS Sedat dea Mei SEERE OMe edd abd 4 7 Barcode laput Dala BOR es
27. CCITT 2 CRC1 3 Alternative CRC 16 with sum initialized to 0x0000 default MCL CRC1 If no option is selected the terminal defaults to the MCL CRC16 algorithm Affected System Variables None Note Use the command CPICVT to convert the result of this operation in the desired format Examples CP CRC A0 Mouse House 0 After this operation the variable AO will contain 59010 CP CRC AO Mouse House M MCL Designer for Phaser Series User s Guide 7 After this operation the variable AO will contain 59010 CP CRC I AO The hazy sky 1 After this operation the variable AO will contain 59802 CP CRC AO 02343499 2 After this operation the variable AO will contain 64622 CP CRC AO Mouse House 3 After this operation the variable AO will contain 64891 MCL Code Reference Guide ComPute XOR CP XOR Function Compute XOR checksum of given string as a five digit integer Use CP CVT to convert in another format Syntax CP XOR variable string where Variable variable receiving value String input character string Affected System Variables None Note Use the command CP CVT to convert the result of this operation in the desired format Examples CP XOR AO Mouse House After this operation the variable AO will contain 00218 CP XOR AO 900345 After this operation the variable AO will contain 00244 ee MCL Designer for Phaser Series User s Gu
28. Code Reference Guide Table 7 5 Error Code Messages Continued Error Code Description 7 serial error attempt to execute SI or SO command on the Network communication port 9 run program error too many RM command without the associated QX command max 6 nested programs 7 97 ae MCL Designer for Phaser Series User s Guide System Setup Variables Table 7 6 lists the available system variables Table 7 6 System Setup Variabl e Variable Default Value Description 02 4 Country page code 1 French 2 Dutch 3 British English 4 American English 14 6 Baud rate 2 600 BPS 3 1200 BPS 4 2400 BPS 5 4800 BPS 6 9600 BPS 7 19200 BPS 8 38400 BPS 15 0 Default Error Beep Override 0 Disabled 1 Enabled If the default Error Beeps are overridden communications errors do not cause error beeps Error detection must be coded into your application You can then use whatever notification method including display messages and beeps from the BP command table is appropriate Note however that if Default Beep Override is enabled you MUST be diligent in coding error detection or data loss may go unnoticed Read Only variable 7 98 MCL Code Reference Guide Table 7 6 System Setup Variables Continued Variable Default Value Description 20 Bar code type mask Y enable N disable Contains a 16 characters mask o
29. D the integer part is 7 digits in length and the decimal part is 4 digits in length 4 When the data is defined as a number I the return value is coded in 5 characters Examples Format C characters VEF CI A1 amp BO Format the data in variable BO as characters and store the result in variable A1 Example Before execution BO 0000125 3500 After execution Al 125 35 Example Before execution BO 0000000 3500 After execution Al 0 35 Example Before execution BO 0000100 0000 After execution A1 100 Example Before execution BO 0000000 0000 After execution A1 0 Example Before execution BO 00100 After execution A1 100 7 82 Format D numbers VF ID A1 amp F1 VF I D G1 amp A0 A1 Example Before execution F1 100 After execution A1 0000100 0000 variable G1 Example Before execution AO 122 57 After execution G1 0000122 5700 Format I Integers VF III A114 Format N numeric VF IN VF IN VF IN VF IN VFIN VFIN VFIN AO AO AO AO AO AO AO 123747 7489 123747 7489 123747 7489 123747 7489 123747 7489 123747 7489 123747 7489 S S S S w amp B Z N B 9 19 9 6 l6 6 BIBI9l6 BIZI9l6 MCL Code Reference Guide Formats the data in F1 as numbers with decimals and stores the result in vari
30. Designing Programs Beep In the Insert A Process dialog box click on Group Other and then click on Comman Beep Click on Pjopenthe Beep dialog box This dialog box enables you to insert a beep 5 Short Low Beep Figure 4 60 Beep Dialog Box Beep Type Selects the type of beep tone to be inserted Click on the arrow box to select the combination of beeps desired Click to test the beep option selected Click 4 to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click Xf close the dialog box without saving the changes 4 79 ae MCL Designer for Phaser Series User s Guide Display Data In the Insert A Process dialog box click on Grou Other and then click on Command Display Data Click on 4 openthe Display Data dialog box This dialog box enables you to display data on the scanner Lv 2 Line 1 Video Mode Normal Column 1 Y Reverse Data VPR ODUCT X Figure 4 61 Display Data Dialog Box Line Sets the display data to appear on 1 or 2 lines Click on the up or down arrow to change the number of lines Column Sets the display data column width number of characters per line maximum 20 Click on the up or down arro to change the number of columns Video Mode Sets the text and background colors Click on the Normal radio button to display the variable in black on a white background or click on
31. Figure 4 39 Write File Dialog Box File Name Selects the file to write the fields to If Write Error Goto Selects the action to perform or screen to go to if a write error occurs A write error can occur when there is not enough memory to write a record or when a problem is detected on the file itself 4 49 ne MCL Designer for Phaser Series User s Guide gt Fields To Write Field Name Shows the fields in the selected file A file can contain up to 16 fields Length Shows the length of the fields in the selected file Value Sets the variable or value to the field Click on the list box to select the variable or enter a value in the box Y Click 4 to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click Xf close the dialog box without saving the changes To write variables into the fields of a file 1 Click on the Name list box to select the file to write to e g lt A gt FILE The dialog box displays the fields with their lengths Refer to Files Window on page 4 87 2 Click on the Value list box to select the variable or value required to write the value or content of the variable to the selected field e g V_PROD to field 1 V_QUAN to field 2 V_BARC to field 3 Note Click Sgo to the Data File Window For more information refer to Working With Files on page 4 87 4 50 Read a Record Designing Programs In the Insert
32. If File Empty Goto Continue X If File not Empty Goto Continue X Figure 4 46 Local File Check Dialog Box 4 59 ae MCL Designer for Phaser Series User s Guide S Local Filename Selects one of eight files to check If File Empty Goto Selects the action to perform or the screen to go to when the file is empty If File Not Empty Goto Selects the action to perform or the screen to go to when the file is not empty Note Click go to the Data File Window For more information refer to Working With Files on page 4 87 Click to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click f close the dialog box without saving the changes 4 60 Designing Programs MCL Link Communications Group Send Packet In the Insert A Process dialog box click on Grou MCL Link Comm and then click on Command Send Packet Click on 4 to open the Send Packet to Hostdialog box This dialog box enables you to send a packet of variable values to the host computer vl 2 x Send Packet to Packet Fields Host ID E 1 fy_tocaTion 2 V PRODUCT y 3 fv_aty Packet type foo A 5 Fields Sep fin Pipe 6 7 a 8 If Communication Error Goto 3 Continue 7 10 y 5 Figure 4 47 Send Packet To Host Dialog Box Send Packet To Host ID Selects the host identifier to send the packet to Packet Type Selects
33. MCL Designer for Phaser Series User s Guide 6 Error numbers reported in amp 98 on the P370 P470 RF scanner are defined a follows 14 RF Transmission error Previous RF transmission not yet complete 15 RF Transmission error Scanner is not paired properly to base or scanner is out of range 16 RF Address error Base to which scanner is paired has been paired with another scanner 17 RF Transmission error Scanner out of range 18 MCL Link Host unavailable The base is connected to a Synapse cable which cannot be used to communicate to MCL Link 20 Transaction error The scanner is already busy communicating with the base 21 Memory allocation failure The scanner has run out of buffers necessary to manage communication Repeated occurrence of this error should be reported to customer service 24 RF Transmission error The base is not responding Repeated occurrence of this error should be reported to customer service Other error numbers should not occur during an NI operation and any occurrence of other error numbers should be reported to customer service Example NI 041 CT A1 Wait for a CT command from address 04 and store the arguments in variable A1 7 54 MCL Code Reference Guide Network Output NO P360 P460 Memory Scanner Function Sends a frame to the host via RS 232 using MCL Link protocol Syntax NO destination command arg1 argn where destination the destination unit identificatio co
34. Quick Tour Editing Your Design Here are some additional items to work with to edit your design If you want to open a project choose Open from the File menu or If you want to delete an entire project click and confirm To delete or modify the menu To delete a field click on the field and press the delete key on the keyboard To modify a field double click on the field and type its value To delete rename copy or importa program click on the ProgramTab Then click with your left mouse button on a specific program name A menu pops up with the options to Edit which has the same function as 4 Remove to place the program temporarily away Copy to copy the program to another place Rename to give the program another name Import to insert a saved program into a selected program slot To modify a designed screen To delete a field click on the field and press the delete key on the keyboard To modify a field double click on the field and type its value These are only a few basics to modify your design If you need to know more about editing and modifying refer to Chapter 4 Designing Programs ae MCL Designer for Phaser Series User s Guide 2 24 Chapter 3 Designing a Main Menu How to Create a Main Menu A menu is like a table of contents for programs designed within your project The operator can select a program to work with from this menu screen Designing a menu consists
35. Refer to Working with Variables on page 4 92 for information on variables Click to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click Xf close the dialog box without saving the changes To extract a field from a variable 1 Click on the Input Variable list box to select the variable to extract e g V_BARC Input variable is 123 abc 456 def Select the field to extract e g 2 3 Select the separator between the fields e g Comma 4 Click ma to select the variable name to put the extract in The result variable contains abc 4 36 Designing Programs Length In the Insert A Process dialog box click on Group Variable and then on Comman Length Click on Wjopenthe Variable Length dialog box This dialog box enables you to count the length of a variable v 2 Variable to measure v_PROD y Result Variable Name V RESULT fe Figure 4 28 Variable Length Dialog Box Variable to Measure Selects the variable whose characters will be counted by this process Result Variable Selects the variable that the value is assigned to Click on Eza to open the Variable dialog box to create a new variable or select an existing variable Refer to Working with Variables on page 4 92 for information on variables Click to accept the default setting or Enter the appropriate information to change the value
36. Start the first block number to allocate for this file Values are hexadecimal End the last block number to allocate for this file if OxFFFF is specified the entire available memory is allocated Values are hexadecimal Affected System Variables amp 99 0 if no error occurs or 1 in case of error amp 98 If an error occurs contains the error code FZ01 Bad block allocation The start and end block numbers do not represent a legal file start gt end or end too big FZ02 File being reallocated allocated with different parameters than pre existing file is not empty This is not allowed as data loss would occur FZ03 File allocation would cause loss of data in another file FZ04 File AllocationTable could not be updated This could be due to excessive wear on the FLASH memory part 7 34 MCL Code Reference Guide Files are allocated using block numbers A block represents 256 bytes of FLASH memory Block numbers are referenced to an artificial zero point which represents the first FLASH memory block available for data storage Therefore if the system code occupies 140 Kbytes 0x023000 of space followed by 32 KB 0x008000 of MCL application storage then Block 0 starts at address 0x02B000 MCL Designer can be set up for 512 KB 1 MB 4 MB or 8 MB scanners on the System Setup screen 256 KB are reserved for system use 512 KB are reserved on the Extended Memory Phaser Desi
37. Transmission error The base is not responding Repeated occurrence of this error should be reported to customer service 247 MCL Net Protocol error MCL Link responded with Busy message 249 MCL Net Protocol error MCL Link rejected the command 253 MCL Net Protocol error MCL Link did not respond Base may not be properly connected to MCL Link host Example NO 099 D1 amp AO Send the D1 command to station 99 with the value of variable AO as an argument 7 58 MCL Code Reference Guide MCL Link Start NS Function Calls MCL Link communication program Syntax NS Affected System Variables X97 en 8298 fe DP X99 lt Q Notes This command puts the scanner in MCL Link slave mode The scanner then waits for commands coming in on the serial line from the host computer and executes them as if they had been encountered in a local MCL program A specific command from the host causes the MCL Link program to terminate and retur control to the calling MCL program ee MCL Designer for Phaser Series User s Guide Parameterize Input PI Function Sets the input time out value and exit keys for all subsequent input operations until anothe PI command is received Syntax PI code label code label code label where Label routine to execute when the defined key is used or when the time out occurs Code represent a key value see list of codes b
38. an ACK or NAK If the scanner does not get a response in this time it issues an error indication and discards the data There are no retries when a timeout occurs ENO Only ACK NAK with ENO Hardware H None Standard Option 1 Option 2 Option 3 Host RS 232 Beep on Bell Getting Started When this option is selected the scanner waits for a ENQ character from the host before transmitting data If an ENQ is not received within 2 seconds the scanner issues an error indication and discards the data The host must transmit an ENQ character at least every 2 seconds to prevent transmission errors Combines the ACK NAK and ENQ options Selects the Hardware Handshaking type to be asserted Click on the list box to select the hardware handshaking desired Select None if no hardware handshaking is desired Selects standard RTS CTS hardware handshaking When RTS CTS Option 1 is selected the scanner asserts RTS before transmitting and ignores the state of CTS The scanner deasserts RTS when the transmission is complete When RTS CTS Option 2 is selected RTS is always high or low However the scanner waits for CTS to be asserted before transmitting data If CTS is not asserted within 2 seconds default the scanner issues an error indicatio and discards the data When RTS CTS Option 3 is selected the scanner asserts RTS prior to any data transmission regardless of the state of CTS However the scanner waits for CT
39. dialog box s os cuca ee eas 4 13 IN 4 79 Beep command soaren dene sear eces 7 11 branch St0UP cc rr en 4 40 A Seer eoswiecieusuness 5 3 Cc CAES DERN cediet eier aar vases 4 43 changing the printer setup 4 84 a chee re eee oP Rone eae one 4 82 Code so Tab cicatrices 1 14 SOMME sshd een ge thawed Ra 4 31 formands Lecce 7 7 Backigbht a er oe are a ee ee ee 7 10 ECR ceed chimes TE EEE 7 11 Display Cleat ii s ncnenaneoen des 7 19 Display Message i c4a 0 eee cued as 7 20 File Check 5 0 4 30e0ap eeoeeseases 7 23 Pile Delete 0 ds 7 21 ER AEEA TEAT EEEE T ET 7 22 File Optica 4603400404 7 24 PRC A Bai eeere ees 7 28 File Segle bac c sendes here 7 30 CURRIE aeri hei dense eae gata ales 7 34 File Update 25 cccscicwreeeasonen 7 32 Ele WIR sicario 7 33 I a ide ERE EEEE EEEE SE 7 39 IMPUE CAS erica 7 36 put DE A othe aad Gees 7 38 Input Extended gcc ae s d 7 45 put Out sare wees 7 40 ARE RER onic hamedaeswesnas eee 7 41 Ingutlast sa tere kunna une 7 43 Label sci35hs6 ceedieweaseseo es 7 48 MCL Link Start rr 7 59 A ked pad 7 50 Mo 45003 AEI STANE 7 49 Network Input 14450000 KE ERE 7 52 Network Output 7 55 7 57 Parammeterize Exchange 22444240000 7 63 Parameterize Input sae cane cies 7 60 parameterize scanner ecc 7 64 Parameteriza Time 2 0 6 s400easaeae 7 62 Citar BRL airis 7 66 R n Pieri sida raras 7 67 senal put arras is ars 7 69 Se al Output i63c3wraccewes 7 73 7 75 e aed apse oe te ean OE gg remap once
40. display the Display Text dialog box Display Text Figure 2 19 Display Text Dialog Box 3 Inthe Display Text box type Qty Click jaccept the information 5 Acursor with pages attached appears on the screen Position the cursor over the left side of the first line in Screen 3 6 Click the left mouse button to place the text box on the screen MCL Designer for Phaser Series User s Guide Keyboard Input 1 Click to open the Keyboard Input dialog box Keyboard Input Figure 2 20 Keyboard Input Dialog Box Input Tab 2 Inthe Input tab click mappen the Variables dialog box Variables SAMPLE MAIN 213 15 EE EE EY EE EEE EEE EE i 58 58 EE EE EE EE EE EE a EE EE EEEE Figure 2 21 Variables Window Click on the A1 cell and in the Variable Name column type QTY Click In the Input Type area click on the Numeric radio button In the Default Value area type 1 Y accept the information Ove ee 2 16 Quick Tour 7 Inthe Input Length area select 1 for Minimum and 5 for Maximum 8 Inthe Field Validation area click on the Enter Key radio button to allow the next input only after pressing the Enter key 9 Click jaccept the information 10 A cursor with pages attached appears on the screen Position the cursor to the right of the word QTY in the first line in Screen 3 11 Click the left mouse button to place the text box on the screen Adding a Process 1
41. files are named A to H These files can be downloaded from the host computer to the scanner MCL file commands allow the user to write read update delete or search into these files Files can be unformatted ASCII text Refer to Programs and File Sizeson page 7 95 for instructions on sizing the files you will use in your application On the scanner a file is simply an area of the FLASH reserved to hold a specific set of data A file allocation table FAT will be maintained which specifies for each file the start and end locations as well as the number of fields and the size of each field Table 7 2 Sample FAT Name Start End Keys Fields Len 1 Len 2 zh Len 20 A 1100 10FF 0 10 7 6 0 B 1100 7FFF 0 3 80 7 0 C 8000 FFFF 0 0 0 0 0 D 0 0 0 0 0 0 0 H 0 0 0 0 0 0 0 Files are declared using a File Size command FZ This command specifies the name of the file to allocate and its start and end addresses The following commands would be used t allocate the above described files FZIAI1000110F FZIBI110017FFF FZICI8000 FFFF 7 5 ne MCL Designer for Phaser Series User s Guide gt See File Size FZ on page 7 34 for a complete description of the FZ command The File Open FO command specifies the field structure of a file If zero 0 fields are defined the file is treated as a sequential ASCII file See File Open FO on page 7 24 for the full specification of the FO command Structure O
42. full data input keyboard bar code control generated MCL Code source file full paper report on the project o gt gt o gt o oo full graphic simulator Getting Started Starting MCL Designer To start the MCL Designer program double click on the MCL Designer icon on the Windows desktop or 1 Click on the Start button on the Task bar 2 Select Programs 3 Select MCL 4 Select MCL Designer The MCL Designer window appears Setting up a New Project Before designing programs you must create a project A project can contain a maximum of eight programs Refer to Chapter 4 Designing Programs for information on designing programs To set up a project 1 Inthe MCL Designer window click on the Project tab MCL Designer for Phaser eee Dla mol dla Figure l 1 MCL Designer Window 1 3 a MCL Designer for Phaser Series User s Guide Note If you want to keep notes about the project click the Notes button Table l l Button Bar Description Button Name Description O New Starts a new project ry Open Opens an existing project E Save Saves the current project a Trash Deletes a project Simulate Starts project simulation Verification Verifies a project This process check maintains a coherence Mi between programs files and the setup Clicking this button gives you an error report on screen and files a Print Enters print definitions Refe
43. in a command line amp A variable quantity or expression Example amp VO contents of variable VO MCL Code Reference Guide Introduction Overview of the MCL Code An MCL Code program is a sequence of command lines All MCL command lines consist of a number of tokens separated by a vertical bar I The first token in a command line is the 2 character command name and the remaining tokens are parameters for that command MCL Code commands can be divided into nine logical groups e display keyboard amp scanner input special input e files variable operations add subtract serial communication input output labels and branch parameterization miscellaneous Variables Using Variables A variable exists in a memory zone typically 64 bytes except Z0 to Z2 512 bytes e hasa name AO to Z0 A1 to Z1 A3 to Y3 can be written and rea is global for all programs in the scamner When a variable is written the user has to specify the name of the variable ex VM A1 HELLO WORLD The command writes HELLO WORLD into variable A1 7 3 ae MCL Designer for Phaser Series User s Guide gt When a variable is read the user specifies the contents of the variable ex DM 11 111N 1 amp A1 This command displays HELLO WORLD amp A1 represents the contents of Al Any argument of a command can be a variable Types Of Variables The MCL Code reco
44. in a command line enclose optional command line parameters The piping symbol l has the effect of or when it is used to separate inline parameters on a command line i e it separates alternative values for parameters Bullets 4 indicate action items lists of alternatives lists of required steps that are not necessarily sequential Sequential lists e g those that describe step by step procedures appear as numbered lists Service Information About This Guide If you have a problem with your software contact the Symbol Support Center Call the Support Center from a phone near the development PC so that the service person can try to talk you through your problem If the software is found to be working properly the Support Center may request a sample of your code for analysis at our plant Symbol Support Center For service information warranty information or technical assistance contact or call the Symbol Support Center in United States Symbol Technologies Inc One Symbol Plaza Holtsville New York 11742 1300 1 800 653 5350 United Kingdom Symbol Technologies Symbol Place Winnersh Triangle Berkshire RG41 STP United Kingdom 0800 328 2424 Inside UK 44 208 945 7529 Outside UK Australia Symbol TechnologiesPty Ltd 432 St Kilda Road Melbourne Victoria 3004 1 800 672 906 Inside Australia 61 3 9866 6044 Outside Australia Canada Symbol Technologies Canada Inc 2540 Matheson Bou
45. lt FN gt lt BS gt is pressed amp 97 KB amp 98 CL 8799 4 After an error X97 ce amp 98 error number X99 19 1 ae MCL Designer for Phaser Series User s Guide Notes 1 Source and destination address are represented in either decimal digits or hex digits depending on the setting of the MCL Net Hex Addressing parameter System Variable 29 2 Commands supported via the MCL Net protocol are defined in the MCL Link User s Guide part number 70 33346 XX 3 Unsupported commands commands not listed in the MCL Link User s Guide can be input if specified explicitly in the command field This allows extensions to the MCL Net command language without upgrades to the runtime code 4 Error numbers reported in amp 98 are defined as follows 15 RF Transmission error Scanner is not paired properly to base or scanner is out of range 16 RF Address error Base to which scanner is paired has been paired with another scanner 17 RF Transmission error Scanner out of range 18 MCL Link Host unavailable The base is connected to a Synapse cable which cannot be used to communicate to MCL Link 20 Transaction error The scanner is already busy communicating with the base 21 Memory allocation failure The scanner has run out of buffers necessary to manage communication Repeated occurrence of this error should be reported to customer service 24 RF
46. project on an integrated scanner simuhtor Chapter 6 Downloading A Project Explains how to download the entire project to the scanner after it has been created and tested Chapter 7 MCL Code Reference Guide Provides a reference guide for MCL Code commands MCL Designer runs under Windows 95 or Windows NT with at least 16 MB RAM and 20 MB of free hard drive space A 133 Mhz processor and 16 bit color VGA monitor are recommended vii A MCL Designer for Phaser Series User s Guide Notational Conventions The following conventions are used in this document viii Operator and User refer to anyone using the MCL Designer software PC refers to the IBM personal computer or compatible system that you are using to develop applications Scanner refers to various types of Symbol scanners You refers to the administrator or person who is using this guide as a reference aid to install configure or operate the software Keystrokes in bold type indicate non alphanumeric keystrokes For example Select the F1 gt key on the scanner to access on line help Bold type is used to identify menu items and input or text fields on a scanner screen Italics are used for the names of parameters in function prototypes and variable names in usage and syntax descriptions to highlight specific items in the general text to identify chapters and sections in this and related documents Square brackets
47. returned in amp 91 when the code was scanned If the text represents non barcode data or barcode data supplemented with other data o anything other than a single barcode the descriptor should be supplied as I this case the host interface software will generate the necessary descriptor data 7 73 eee MCL Designer for Phaser Series User s Guide If the text to be transmitted does not contain any KEYCAT KEYCODE data but does include the character then the descriptor must be set to T to allow for transparent non translated mode transmission To send a character embedded in the barcode the String Serial Output command must be used or select transparent mode Unless the Host Override Enable barcode has been scanned once the SO command is encountered the user has 30 seconds to place the scanner in the cradle or to connect power After 30 seconds an error will be reported 899 1 If the RS232 interface is set up to user an ACK NAK ENQ or ENQ ACK NAK handshaking protocol and the interface times out waiting for data from the host a host error will be reported 899 1 Processing will proceed with the next MCL program statement regardless of any Timeout branches specified in the most recent PI command Examples SO HELLO WORL Sends the characters HELLO WORLD to serial port using default descriptor SO amp 91 8241 7013 Sends the contents of variable A1 followed by a carri
48. s Guide Affected System Variables Normal mode amp 91 Barcode Descriptor amp 97 bat ad amp 98 type of code C39 125 C128 E08 E13 C49 UPCEO UPCE1 UPCA MSI CODABAR D25 C11 C93 E128 Unknown or KB if keyboard input variable Contains the input data After TIMEOUT if one has been defined in the previous PI command amp 91 5 amp 97 5 X98 TO variable 5 After EXIT KEY defined in the previous PI command amp 91 a hej amp 97 name of the pressed key see PI command for keynames amp 98 KB variable epa Notes 1 If lt CL gt Clear key is used in PI before IX command it performs the action defined in PI only on the first input position Otherwise lt CL gt clears the current input field 2 The Barcode Descriptor is a string describing the barcode length and the barcode symbol type Some host interface software requires this data to properly format the output string for the host device Synapse hosts and some RS232 host variants for example If your data will be transmitted to one of these hosts you must save the Barcode Descriptor in your data file along with the barcode data so that the proper formatting may be performed by the interface software See Serial Output SO P360 P460 Memory Scanner on page 7 73 and Serial Output SO P370 P470 RF 7 46 MCL Code
49. the Enter key on the scanner is pressed Erase File In the Insert A Process dialog box click on Group Files and then click on Command Erase a File Click to open thie Erase dialog box This dialog box enables you to erase an entire file 9 Y 7 File Name lt A gt INVENTAY Figure 4 44 File Erase Dialog Box File Name Selects the name of the file to erase Note Click go to the Data File Window For more information refer to Working With Files on page 4 87 Click 4 to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click Xfclose the dialog box without saving the changes ae MCL Designer for Phaser Series User s Guide Seek In the Insert A Process dialog box click on Grou Files and then click on Command Seek Click on lopen the File Seek dialog box This dialog box enables you to look at a specific record in a file without reading it 4 58 y 2 x File Name Search Record lt A gt INVENTRY he Mode Record Continue If record not found Goto Key 1 Mileto w Key 2 M Store Record number into Variable lv DESCRIPTION zer Figure 4 45 File Seek Dialog Box File Name If Record Not Found Goto Search Record Mode Key1 Key2 Store Record number into Variable Selects the file to view Sets the action to perform or the screen to go to if the record
50. the file Not supported on Phaser Selects the action to perform or the screen to go to if an error occurs while sending a file Note Click go to the Data File Window For more information refer to Working With Files on page 4 87 Click 4 to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes Click Xfclose the dialog box without saving the changes 4 64 Receive File Designing Programs In the Insert A Process dialog box click on Grou MCL Link Comm and then click on Command Receive File Click on lopen the Receive File dialog box This dialog box enables you to ask the host to send an entire file to the scamer Receive File x el y x Receive File from Host ID Options IV Check Cradle IV Toolbar on bottom line Remote Filename Local Filename lt A gt INVENTRY If Communication Error Goto X Continue Figure 4 50 Receive File Dialog Box Receive File From Host ID Remote File Name Local File Name Options Check Cradle Toolbar On Bottom Line If Communication Erro Goto Selects the host identifier to receive the file from Accepts the file name for the host application e g FILESEND or C USER FILERCV Selects the local file name Sets the scanner to check for a connection to a cradle Sets a toolbar to appear on the bottom of the scre
51. the variable number A0 through Z3 Columns 1 through 8 represent the 8 programs in the project If a variable is used in the program an X appears in that column The Variable Name column lists the name given to the particular variable 4 93 A MCL Designer for Phaser Series User s Guide 4 94 Chapter 5 Simulating the Designed Project Testing and Simulating MCL Designer features an integrated simulator that can test and simulate the newly designed project The simulator offers all the functionalities of the sanner so downloading the project is not necessary Click l to open the simulation window Simulator QTOUR px Figure 5 1 Simulator QTOUR Window 5 1 S The Simulator window displays the menu design To start one of the programs click the key MA MCL Designer for Phaser Series User s Guide that corresponds to the program as defined in the Menu options Refer to Chapter 3 Designing a Main Menu where the function or numeric menu key was selected After selecting the program to work with test the program by entering the required data For use of the simulator keyboard refer to the scanner s Ouick Reference Guide Note You can use the mouse to click on thescanner keyboard or type on the keyboard of your PC Working Items of the Simulator Table 5 1 lists the buttons available on the Simulator window that control the simulation process
52. to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes ae MCL Designer for Phaser Series User s Guide Display Text To insert text onto the screen use the Display Text dialog box Click 48 to open the Display Text dialog box Figure 4 4 4 6 Display Text Normal Reverse Display First After Display Click close the dialog box without saving the changes vl 2 x Display text QTOUR MAIN MENU 15 Normal C Reverse IV Display first After Display IV Beep fi Short High Beep y y IV Pause 1 Seconds Figure 4 4 DisplayText Dialog Box Enter the text that appears on the screen Sets the text and background colors Click on the Normal radio button to display the text in black on a white background or click on the Reverse radio button to display the text in white on a black background Sets this text to display first on the screen when the screen appears Sets a beep to sound on the scanner after the text displays Click on the list box to select a short medium or long beep or combination of beeps and the number of beeps Click 3 to test the beep options Click the Pause check box to insert a pause after the text displays and select the number of seconds of the pause Click the Enter to Continue check box to make the operator press the Enter key before continuing Designing Programs Enter th
53. to communicate to MCL Link 20 Transaction error The scanner is already busy communicating with the base 21 Memory allocation failure The scanner has run out of buffers necessary to manage communication Repeated occurrence of this error should be reported to customer service 24 RF Transmission error The base is not responding Repeated occurrence of this error should be reported to customer service Examples SO 1 HELLO WORLD Sends the characters HELLO WORLD to serial port SO 111841 WORLD 0D 0A Sends the contents of variable A1 followed by 7 76 WORLD and a carriage return line feed pair to the serial port MCL Code Reference Guide Skip and Return SR Function Performs an unconditional program jump to a sub routine pointed to by a label Syntax SR label Progname where Label address of the routine to execute If label is unsigned numeric label indicates an absolute line number within the current program to jump to If label is signed numeric label indicates a relative jump referenced from the current line number 1 indicates no jump execute the next physical line next If label is alphanumeric label indicates a named label as defined in an LB command Progname Optional MCL Program Name Affected System Variables None Notes 1 QX command will return program control to the statement immediately following the SR command 2 The terminal will display ERROR 3 if
54. without written permission from Symbol The user agrees to maintain Symbol s copyright notice on the licensed programs delivered hereunder and to include the same on any authorized copies it makes in whole or in part The user agrees not t decompile disassemble decode or reverse engineer any licensed program delivered to the user or any portion thereof Symbol reserves the right to make changes to any software or product to improve reliability function or design Symbol does not assume any product liability arising out of or in connection with the application or use of any product circuit or application described herein No license is granted either expressly or by implication estoppel or otherwise under any Symbol Technologies Inc intellectual property rights An implied license only exists for equipment circuits and subsystems contained in Symbol products Symbol is a registered trademark of SymbolTechnologies Inc MCL and MCL Designer are trademarks of Zetes Technologies S A Other product names mentioned in this manual may be trademarks or registered trademarks of their respective companies and are hereby acknowledged Symbol Technologies Inc One Symbol Plaza Holtsville New York 11742 1300 http Avww symbol com Za Contents About This Guide Notational Conv 4124 008 0544000 4409264 RH aE Noe RRAA EO ERR TORRE a viii Derna PAINT arae a ee ee ace aa does ix Symbol Support Centi ies pad eee Sa AA Chee AA
55. 0 Disabled 0 Disabled Mode 1 Enabled MCL Net Max Retries Ox0F01C 1 10 3 MCL Net Frame Timeout Ox0F01D 100 3000 ms in 100 ms increments 500 ms 5 7 110 Table 7 7 PY Parameter Numbers Continued MCL Code Reference Guide Parameter Parameter Options Default Value Number MCL Net Parameters Continued MCL POS Host OxFO1E 0MCL Net 1 Other 1 Other RS 232 or Synapse depending on installation MCL Batch Host OxF01F 0 MCL Net 0 MCL Net 1 Other RS 232 or Synapse depending on installation Power Detection Beep 0xF020 0 Disabled 1 Enabled 1 Enabled Host Override Flag OxF021 0 Disabled 0 Disabled 1 Enabled RF Parameters RF Retries 0xF042 3 8 4 Scanner Decode Beep Type 0x95 0 Beep Type 1 0 1 Beep Type 2 2 Beep Type 3 3 Beep Type 4 4 Beep Type 5 7 111 A MCL Designer for Phaser Series User s Guide 7 112 A Addie a PROCES kende heks 2 17 adding a process e iii seeds 4 28 adding text to THE Menu 424 oceeeecues 3 1 adding variables to the menu 3 4 ampersand SC sia rr 7 2 MOE wher TS E E ANS 7 3 Arpument SEPatAtOl cresceret certs ernes 7 2 arguments Optional 4346 604408 0 iiie breis 7 2 o A ee eee ee eee DES TERRE SENDER 4 38 assign variable i2s0 0000 timia titan 4 30 B Backlight command 52003 0000 4840 7 10 bar gode Input 00 rr eriet irei 5 3 Barcode Taput lt 6 5 045 aoe A 2 13 Barcode Input Branch Tab 4 17 barcode input
56. 6 ORO eye erre EEN Sid sa vases EEUU AA OA FE ae MCL Designer for Phaser Series User s Guide pur Cass OK rra tre ii 7 36 A S eM a debt OEP e EERO RE eROR EEO RS 7 38 A Rha ER Sew ons oud ens SEEDEDE 7 39 Tete at TED io a bb BOR aah hed he aR bee nc RN hae abba RR a et hen 7 40 put Keyes sarria distraer 7 41 pt dy EA RAS AAA AAA 7 43 a A aire desks ete deest deat eo deni Mewes 7 45 la BERN iaa a 7 48 MoDem MD s 22220 4034 402049 244440000 RRA ESE EER 7 49 A ASAE AS cas Eau eeeaGes AA OT AAEE ETTET EET 7 50 Nerwork Input Nl ci a ERA AR A 7 52 Network Output NO P360 P460 Memory Scanner 00 eee cece eect raniti 7 55 Network Output NO P370P470 RF Scannet 24 ccc ccc de ne aeers RA 7 57 Pie Eat SiG a sneha eae hae eee NR A 7 59 Patameterize Input PD seis donot aes tan AAA a sede 7 60 Parametenze Time PE sisi ARRE ETE EHOH ED REMOTE ES 7 62 Paramerer ag PA ara AAA AA ee ee eee 7 63 Paramterizs Scanner IP A AAA AA A AAA A AAA Ee RS 7 64 ust PERE I RIA A A adh i aeea 7 66 Rise Progra NE RO 2 henne hin teria ada ea 7 67 POGUE OU arcs oe eee peers ARA ARA 7 69 SAP 5 det iw ek AA Rest NAO eR ee AAA 7 72 Serial Output SO P360 P460 Memory Scanner 54 ccacv es aeeedeacaacddeatass 7 73 Serial Output SO P370 P470 RF Sanne osc cice nda RA RARA 7 75 Skip amd Repaso eri es ia 7 77 Variable Compare VO peyra de AA RR AAA ARA AAA ees 7 78 WADIA Exts atacara aria ras 7 80 Vacib Formari VE ri ARA 7
57. 81 Variable Justy Y Doctors AAA AAA AA AAA AAA 7 84 Vanable Lenta Draper Ra ad cd laa 7 86 Variable Move VM 6 io rai di A RAR Ew Aaa 7 87 Variable Operation Ariel VO sra A AR A AN e 7 88 Variable Substring Voi ici A AAN RA AAA A 7 90 Variable operation Arithmetic extended VA erororirnaion rr re aa 7 92 A RS hi E dee Ree Ree eee beet ne Rae E E E 7 94 Programa and File S208 sr Goi ere Geese dames iavigertasiveriaskeeada 7 95 MUL Cade Error Message A A a RA AAA AAA 7 96 Ste Setup Vanables cris ab AAA A ERR 7 98 PY Parameter ida iras ad 7 103 Index Feedback vi Za About This Guide MCL Designer is user friendly 32 bit Windows software which allows you to create batch applications It is a complete ready to work application development system This guide contains all the necessary information required to work with MCL Designer Chapter 1 Getting Started Introduces the design of a project Learn how to set up the system memory RF scanner and communication settings Chapter 2 Quick Tou Teaches the basics of designing with MCL Designer Learn how to make a menu and a small program to add a process and modify your design Chapter 3 Designing a Main Menu Shows how to create a menu depending on the designed programs Chapter 4 Designing Programs Working methods are explained Learn how to work with programs variables fields and files Chapter 5 Simulating the Designed Project Describes how to simulate the
58. 8900 VX A1 123747 7489 1 SIZ1916 result A1 000123746 748900 7 93 ee MCL Designer for Phaser Series User s Guide WaiT WT Function Suspends execution of the current program for a defined delay period Syntax WT length abort where Length length of delay in 15 millisecond increments Abort Allow wait to be aborted by user intervention Y Keyboard or trigger will cause wait period to be aborted N or absent Keyboard and trigger will have no effect Affected System Variables None Notes The maximum allowed wait is 60 seconds Anything entered above 60 seconds will default to 60 seconds Examples WT 20 Current program will wait 300 milliseconds 20 x 15 ms then continue WTI18XA1 Y Current program will wait n times 15 milliseconds then continue e n is the value contained in variable A1 Pressing any key will abort the wait and move on to the next program step 7 94 MCL Code Reference Guide Programs and File Sizes Programs maximum 9 programs maximum 512 lines per program maximum program size 4 KB 4095 bytes size of a data file is limited by the scanner s available memory size of a record is limited to 255 characters including field separator and y characters a file may not contain more than 9998 records regardless of the record size total user file space 256 KB on a 512 KB unit 768 KB on a 1 MB unit 3584 KB ona
59. A Proces dialog box click on Group Files and then click on Command Read a Record Click on 4 to open the File Read dialog box This dialog box enables you to rea the fields of a record in a file and assign the fields content to a variable File Read x 9 y x File Name B INVENTRY Search Record If record not found Continue f c Keyi Fields to Read Field Name na fF w N Length Variable to update LOCATION PRODUCT HEE Figure 4 40 File Read Dialog Box File Name Selects the file to read a record from If Record Not Found Sets the action to perform or the screen to go to if the record is not found Search Record Mode Selects the search mode First first record Last last record Next next record Previous previous record Current current record Key If the file is sorted sets a key to search the record Recor If you know the record number in the file search using Key 1 list box record number 4 51 ae MCL Designer for Phaser Series User s Guide gt Key1 Key2 Selects a variable to search for when Key is selected in the Mode list box Enter a record number whe _ Record is selected in the Mode list box Fields To Read Field Name Shows the fields in the selected file Length Shows the length of the fields in the selected file Variable to Selects the variable to be assigned to the field Click on mza Update to open the Variable dialo
60. ASCII file containing easy to read macro command lines The program is loaded into the scanner s memory and is interpreted by the MCL Code run time kernel also loaded in the scanner Programs and File Size on page 7 95 explains how memory is organized and what limitations there are on programs and file size MCL Code Program The user may design up to nine MCL Code programs 0 MCL to 8 MCL Each MCL Code program can contain up to 512 lines however the physical restraint on a program is 4KB Each MCL program can call subroutines which may be defined in the same file or in a different file In this way applications which exceed the 4 KB limit may still be implemented 7 1 ao MCL Designer for Phaser Series User s Guide Typographic Conventions The following typographic conventions are used in this chapter Table 7 1 Typographic Conventions Convention Used for bold Commands and switches that follow them You must type the commands and their switches exactly as they appear italics Place holders that represent information you must provide For example if you are asked to type filename you should type the actual name of a file instead of the word shown in italics Argument field separator within the command line or file This is a reserved character and should not be used for any other purpose lt Key gt Keyboard key symbols Examples lt Enter gt lt F9 gt lt Spacebar gt arg Optional arguments
61. Dialog Box Input Tab 2 Inthe Input tab click on mappen the Variables dialog box Variables SAMPLE MAIN Eg Y 2 x Figure 2 17 Variables Dialog Box 3 Click on the AO cell and in the Variable Name column type CODE 2 13 ne MCL Designer for Phaser Series User s Guide Click 8 accept the information In the Select Entry Type s area click on the UPC A UPC E0 UPC E1 EAN 13 EAN 8 PDF 417 and Keyboard check boxes In the Input Length area select 1 for Minimum and 13 for Maximum In the Option area click on the Numeric only check box In the Validation area click on the Auto Enter radio button to allow barcode input without clicking the Enter key Hot Keys 1 In the Barcode Input dialog box choose the Hot Keys tab y 2 tin Input amp Advanced E HO Keys ES Branch Time out Function keys Seconds 10 4 F 5 Goto y F2 Py F3 Other Keys F4 rw Clear z Fs ef opel a Down y F7 Figure 2 18 Barcode Input Dialog Box Hot KeysTab In the Other Keys area click on the Clear list box and select Exit Click 8 accept the information A cursor with pages attached appears on the screen Position the cursor to the right of the word CODE in the first line in Screen 2 Click the left mouse button to place the text box on the screen Quick Tour Display Text Screen 3 1 Click 24switch to Screen 3 2 Click gs to
62. Function Jumps to the associated label when one of the keys defined in the command argument list is pressed Defines HOT KEYS Syntax IK key1 label key2 label key n label where Key 1 name of the first key or time out value Key n name of the last key Label destination address if the key is pressed Key Code Values Actual Keys Used FO to F9 Function keys FO lt F10 gt F1 lt F1 gt F2 lt F2 gt etc UP or DW lt Up gt or lt Down gt arrow keys PU or PD lt FN UP gt or lt FN DOWN gt keys Ax Any alpha character on the keypad AK lt K gt key Only uppercase is supported Nx Any character on the numeric keypad N9 lt 9 gt key EN lt Enter gt key CL lt Fn Bksp gt key SP Special lt gt key Any key must be the last key of the list BS Backspace key 7 41 Le MCL Designer for Phaser Series User s Guide S Affected System Variables 98 Set to KeyName of key pressed Notes 1 Key 1 can be a TIMEOUT with a maximum value of 9999 see the PI command for an explanation of TIMEOUT values Maximum 20 entries including TO 3 If is used it must be placed at the end of the list because keys defined after are ignored Examples IK F1 HELP F8 END CL 1 Jump to the HELP label if the lt F1 gt key is pressed Jump to the END label if the lt F8 gt key is pressed
63. High Beeps 3 Short High Beeps 4 Short High Beeps 5 Short High Beeps 1 Short Low Beep 2 Short Low Beeps 3 Short Low Beeps 4 Short Low Beeps 5 Short Low Beeps 0 V ON A nH bh Ww NR A MCL Designer for Phaser Series User s Guide Table 7 4 Beep Sequences Continued Examples BP 32 Beep Description Beep Index 1 Long High Beep 10 2 Long High Beeps 11 3 Long High Beeps 12 4 Long High Beeps 13 5 Long High Beeps 14 1 Long Low Beep 15 2 Long Low Beeps 16 3 Long Low Beeps 17 4 Long Low Beeps 18 5 Long Low Beeps 19 4 Short Beeps High Low High Low 20 4 Long Beeps High Low High Low 21 2 Short Beeps High Low 22 2 Short Beeps Low High 23 3 Short Beeps High Low High 24 3 Short Beeps Low High Low 25 4 Long Beeps High High Low Low 26 4 Long Beeps Low High Low High 27 3 Long Beeps Low High Low 28 3 Long Beeps High Low Low 29 3 Long Beeps Low High High 30 4 Long Beeps High High High Low 31 Decode Beep 32 Generate a decode beep MCL Code Reference Guide ComPute CRC CP CRC Function Compute various CRCs of the given string as a 5 digit integer from 00000 to 65535 Syntax CP CRC variablel string optio where Variable variable receiving value String input character string Option specific CRC algorithm 0 MCL CRC1 1
64. IN 101 100 12 04 F001 01 F101 00 Parameter number 1 is assigned value 0 Parameter number 12 is assigned value 04 Parameter number 257 is assigned value 1 Parameter number 513 is assigned value 0 eee MCL Designer for Phaser Series User s Guide Quit or eXit QX Function Terminates execution of the program and gives control to the calling program or to the operating system depending on the type of return defined in the command Syntax QX type where Type the type of return control procedure 1 return control to the calling program 2 abort the MCI program return to system startup Affected System Variables None Note A QX command is mandatory to exit any program called by the RM command If Q is omitted after execution of the RM command System Error 9 is displayed The QX command can also be used to return from a SR Skip and Return command Examples DCIO Clears all the lines on the scanner display DM 2141 NI HELL Displays the message HELLO on the second line column 4 IXI21101411111 YINIYIAIYIN Accepts a one character entry on the keyboard and stores it in Al Qx 2 Abort the MCL program and start over 7 66 MCL Code Reference Guide Run PrograM RM Function Calls a program and starts the execution at the beginning of the called program or from a given label Syntax RM progname Label where Progname name of the called program Label
65. M buffer The previous value will be restored the next time the scanner is powered up a single byte parameter number value 0x00 OxEF a single byte parameter value legal values determined by the associated parameter number an optional single byte prefix number If a parameter number greater than 239 OxEF is required then a prefix number is used as follows 0xF0 Add 256 to the next parameter number value OxF1 Add 512 to the next parameter number value OxF2 Add 768 to the next parameter number value Affected System Variables None Notes 1 ies 7 64 The parameter numbers and the parameters they correspond to along with the allowed and default values for those parameters is shown i PY Parameter Numbers on page 7 103 The reason for the prefix character is so that the vast majority of parameters may be specified in 2 bytes thus compacting the command size and reducing the communication time necessary to communicate these parameters over a serial interface the historical basis of this protocol The PY command may contain up to 24 parameter number parameter value pairs MCL Code Reference Guide 4 Changing the Power Down Time Parameter Number 0x0C does not affect the initial power down time After a reset the scanner will remain powered for 1 minute in order to charge the real time clock backup capaator Subsequent to this 1 minute period the Power Down Time will be in effect Examples PY
66. Parity 3 Space Parity 4 No Parity None Software Handshaking Ox9F 0 None 1 ACK NAK 2 ENQ with ACK NAK 3 ENQ only 4 XON XOFF None Hardware Handshaking OxA0 0 None 1 RTS CTS Standard 2 RTS CTS Option 1 3 RTS CTS Option 2 4 RTS CTS Option 3 None Number Data Bits OxA2 7 7 bits 8 8 bits 8 bits RS 232 Host OxA3 55 Standard 137 ICL 139 Fujitsu 140 Nixdorf Mode A 142 Nixdorf Mode B Standard Intercharacter Delay Ox6E 0 99 1 1000 second units 0 Beep on Bell 0x96 0 Disable 1 Enable Disable Check Receive Errors 0x97 0 Disable 1 Enable Disable RTS State 0x9A 0 Low 1 High Low 7 109 ee MCL Designer for Phaser Series User s Guide Table 7 7 PY Parameter Numbers Continued Parameter Parameter Options Default Value Number MCL Parameters Key Click OxFOOA 0 Disable Enable 1 Enable Scanner Address 0xF00B 1 254 1 Sleep Time OxFOOC 5 30 10 secs Date Separator OxFOOE 0 1 25 3 None Hour Type OxFOOF 0 24 hour 12 hour 1 12 hour Decimal Separator 0xF010 0 1 File Separator 0xF011 Any ASCII character ASCII 124 ASCII 32 ASCII 127 Date Format OxF013 0 MMDDYYYY MMDDYYYY 1 DDMMYYYY MCL Net Parameters MCL Net Baud Rate OxFO1B 2 600 8 38400 baud 3 1200 4 2400 5 4800 6 9600 7 19200 8 38400 MCL Net Hex Addressing 0xF012
67. Placing Fields on a Screen To place fields display fields or input fields on the screen 1 Inthe Program Designer window click on one of the buttons listed in Table 4 2 Table 4 2 Field Buttons Placing Display Fields Placing Input Fields Es to enter text B to enter keyboard input Y to enter a variable HT to enter barcode input 2 Set the appropriate settings for that field 3 Click jaccept the information A cursor with pages attached appears on the screen Figure 4 13 Program Designer QTOUR 7 SCAN p x File Edit Help 1 SCAN BARCODE rer als Input z m Choice e Process aea Figure 4 13 Place a Field on the Screen 4 19 ae MCL Designer for Phaser Series User s Guide 4 Position the cursor over a box on the screen 5 Click the left mouse button to place the field on the screen Editing Fields on a Screen To edit a field on the screen 1 Position the cursor over a field 2 Double click on the field The appropriate dialog box appears 3 Change or edit the settings 4 Click Wjaccept the new settings The field is updated on the screen Moving Fields To move a field on the same screen 1 Position the cursor over a field 2 Drag the left mouse button 3 Move the cursor to a new position 4 Release the mouse button 4 20 Copying Fields Designing Programs To copy a field to
68. ROCESS OUT Figure 4 20 Process Operation The processes are executed sequentially unless a specific goto function is defined in the process The Process In or Out window Figure 4 21 lists the process number the process and a description for each process Table 4 3 lists and describes the buttons in the Proces window Process In SAMPLE1 INVENT 501 Location Eg Line Process Description a gt eae Figure 4 21 Process In or Out Window Table 4 3 Process Window Button Descriptions Button Name Description w Insert Line Inserts a new process line Edit Edits a process line Delete Deletes a line in the process screen 4 26 Designing Programs Table 4 3 Process Window Button Descriptions Continued Name Description Copy Copies a process line Paste Pastes a process line GoTo Opens the Goto dialog box Set a Label Opens the Label dialog box Test Branch Opens the Test and Branch dialog box Key Branch Opens the Key and Branch dialog box Assign a Opens the Variable Assig dialog box Variable Arithmetic Opens the Variable Arithmetic dialog box Beep Opens the Bee dialog box Warning Opens the Warning Message dialog box Message Comment Line Opens the Comment dialog box Variable List Opens the project Variables list window lt TC Kee R RE ee OK Confirms a sel
69. Reference Guide Scanner on page 7 75 for a description of how to use this data in formatting you output 3 Setting SCAN RET to Y overrides KB disable Example IX I21101A3151101YIYIYIAIYIN Accepts input data on line 2 column 10 minimum characters maximum 10 characters and stores it in variable A3 The input can be entered from the keyboard or a scanner The entry is automatically validated if 10 characters long The input is alphanumeric Variable A3 is reset before executing the command 7 47 eee MCL Designer for Phaser Series User s Guide F LaBel LB Function Assigns a label to the current program address Syntax LB label where Label the name of the address maximum 10 characters Affected System Variables None Notes 1 Label can be alphanumeric but the first character must be alpha or underscore _ character Label name must be unique for each program 3 Maximum length 10 characters Example LB MAIN Assigns the label MAIN to the current program address 7 48 MCL Code Reference Guide MoDem MD Function Outputs a string of characters to the modem and waits for a response from the modem Syntax MD text where Text the string of characters to send Affected System Variables amp 99 0 if no error occurs 1 if error is detected amp 98 last modem answer if modem response received NO CRADLE
70. S to be asserted before transmitting data If CTS is not asserted within 2 seconds default the scanner issues an erro indication and discards the data The scanner deassert RTS when transmission is complete Selects the Host type of the RS 232 port Click on the list box to select the Host type Enables or disables the Beep on Bell option When enabled the scanner issues a beep when a bell character is detected on the RS 232 line Click on the check box to select or deselect the option ae MCL Designer for Phaser Series User s Guide gt Parity Check Enables or disables the Parity Check option Click the appropriate radio button to enable or disable parity check RTS State Sets the idle state of the Serial Host RTS line to low or high Click the appropriate radio button to change the setting Intercharacter Delay Sets the Intercharacter Delay in 100 msec intervals The intercharacter delay gives the host system time to service its receiver and perform other tasks between characters Click the arrow box to select the desired delay Response Timeout Sets the Response Timeout in 100 msec intervals This parameter specifies how long the scanner waits for an ACK NAK or CTS before determining that a transmission error has occurred Click the arrow box t select the desired timeout 9 Click to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Cl
71. Selects the action to perform or the screen to go to if the key is not found Selects the action to perform or the screen to go to if an error occurs during the communication Assigns the variables to store the fields from the remote file Click on m to open the Variable dialog box to create a new variable or select an existing variable Refer to Working with Variables on page 4 92 for information on variables Selects a separator between the fields Click 4 to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click Xfclose the dialog box without saving the changes Note On the host side the file must have a structure similar to 123456789 abcdef hello world as one record with a comma as a separator The key to search must be the first field 123456789 The returned fields are abcdef and hello world MCL Link Start In the Insert A Process dialog box click on Grou MCL Link Comm and then click on Command MCL Link Start This command runs the communication program on the scanner in Wait mode The scanner waits for a command from the host To exit this mode and continue the program click on the Cancel key MCL Designer for Phaser Series User s Guide Remote File Check In the Insert A Process dialog box click on Grou MCL Link Comm and then click on Command Remote File Check Click gl to open fhenote File Check di
72. Table 5 1 Simulator Buttons Button Name Description gt Run Processes to the next step in the program If the button i green you must click it for the program to run until the next step This button works with the Break button g Break Sets a break condition when you can only go to the next step by clicking on the Run button m Barcode Simulates the scanner input 7 Variable Displays the list of the different variables in the project Every time a variable is updated it appears on this list A new input overwrites the old value S Entries Shows the field in the data files mv MCL Code Displays the MCL code of the current program Once the project has been successfully tested download it to the scanner Refer toChapter 6 Downloading A Project on how to download the project 5 2 Simulating the Designed Project Break Click on the Break button to display the Break dialog box Figure 5 2 You can set a break on each MCL Code line or program line 4 each variable update or each variable that is read 4 one specific variable update The traffic light icon on the Simulator window switches to red if a break is defined If desired you can also click on the Succeed Fail Dialog Box check box to display a dialog box indicating successful simulation or a failure Y 2 Break on None Each MCL Line C Each Variable Update One Variable Update Varane fao Y_USERID
73. VT1A01 31186 Convert to 4 hexadecimal digits AO will contain 00BA CP CVT A01212576 Var 99 1 because 25761 cannot be converted to 2 hexadecimal digits AO 2 CP CVT1A01 41186 Convert to 2 MCL Net checksum characters AO will contain CP CVT1A01 51186 Convert to 4 MCL Net checksum characters AO will contain 00 M MCL Designer for Phaser Series User s Guide S CP CVT A0 412576 Var 99 1 because 25761 cannot be converted to 2 hexadecimal digits AO CPI CVTIA0IS512576 Convert to 4 MCL Net checksum characters AO will contain 64 CP CVT1A016164A1 Convert from hexadecimal to integer AO will contain 25761 CP CVT1A017 15 Convert from MCL Net checksum characters to integer AO will contain 00187 MCL Code Reference Guide Display Clear DC Function Clears the display or a single line of the display Syntax DC line where Line number of the line to be cleared 0 clears the whole screen else the specified line is cleared Affected System Variables None Examples DC 10 Clears all lines on the scanner display DC 1 Clears the first line only ee MCL Designer for Phaser Series User s Guide Display Message DM Function Displays a message on the scanner screen Syntax DM line column style message where Line the line number on which to display the message 1 or 2 Column the column position 1 to 20 Style the display attribute N Normal
74. Video R Reverse Video Message the text or variable to be displayed Affected System Variables None Note 1 Ifthe line number or column number is outside the display range nothing is displayed 2 An alternate way to display characters is the use of the hexadecimal conversion ex 41 A 3 Ifthe first character to be displayed is a then it must be encoded as 23 so that it is not misinterpreted as a carriage return during the download process Examples DM11151N MENU Displays the word MENU on line 1 column 5 DM11171R1 amp Al1 Displays the contents of variable A1 on line 1 column 7 in reverse video 7 20 MCL Code Reference Guide File Delete delete record FD Function Deletes the current record in a file Syntax FD filename where Filename the name of the selected file range A H Affected System Variables amp 99 0 if no error occurs or 1 in case of error Notes 1 This command does not delete a file it deletes a record in a file Use File Erase to delete a file 2 The file pointer is placed on the next record of the file except when the last record is being deleted In this case the pointer is set to the end of the file 3 Command is supported on DIRECT files only Records are deleted by replacing them with a special string 5 If filename is unknown System Error 2 is displayed Examples FDIA Deletes the current record i
75. a name for the packet Fields Sep Selects a field separator for the packet If Communication Erro Goto Selects the action if an error occurs during the sending Packet Fields Selects the variable or fixed data to send Click on the list box to select a variable or enter a value into the list box Use scroll bar to view additional packet fields ae MCL Designer for Phaser Series User s Guide Click 4 to accept the default setting or Enter the appropriate information to change the values and click to apply the changes e Click Xf close the dialog box without saving the changes Receive Packet In the Insert A Process dialog box click on Grou MCL Link Comm and then click on Command Receive Packet Click on jopenthe Receive Packet dialog box This dialog box enables you to select a packet with variable values to work with Receive Packet x Receive Packet from Host ID Packet type m X Fields Sep J I Pipe y If Communication Error Goto Continue X s Y x Packet Fields to Variables camo ko a Sfvpropuct aaa ee re a A SS A of gt de Figure 4 48 Receive Packet Dialog Box Receive Packet Fro Host ID Selects the host identifier to receive the packet from Packet Type Selects a name for the packet Fields Sep Selects a field separator for the packet If Communication Erro Goto Selects the action to perform or the screen to go to
76. a options for the data input Keyboard Input Figure 4 7 Keyboard Input Advanced Tab Format Field Fills the input field with zeroes or blanks on the left or right side This is used when the input data is smaller than the required input Check Range This option makes it possible to make a selection in the data input If the input corresponds with the range it will be read Otherwise the input will be ignored Check File This part of the window makes it possible to select that the entered data is or is not in the local data capture or look up file The first field of the file must be the data to check Click 4 to accept the default setting or Enter the appropriate information to change the values and click changes e Click close the dialog box without saving the changes ae MCL Designer for Phaser Series User s Guide Hot Keys Tab The Hot Keys tab configures some of the keys on the scanner keyboard vlel 23 Input amp Advanced Af Hot Keys Time out Function keys Seconds 10 Zj FI py 0 HEN Other Keys F4 y Clear F5 Up Py F6 Down Py F z F Up y F8 Pw y FS o D NH Figure 4 8 Keyboard Input Hot KeysTab Time Out Sets a time interval when the scanner will go to another screen or exit if there is no action Other Keys Assigns another function to several keys on the scanner keyboard These keys include Clear Up Down F U
77. able Formats the data in AO as numbers with decimals and stores the result in A1 returns 00004 AO returns 123747 748900 where the represents a space AO returns 9999 999999 an overflow condition AO returns 000123747 748900 AO returns 123747 748900 AO returns 123747 748900 AO returns 123747 748900 AO returns 000123747 748900 7 83 eee MCL Designer for Phaser Series User s Guide S Variable Justify VJ Function Justifies the data in a variable to the left or to the right and fills gaps with characters Syntax VJ type destination origin length character where Type type of justification L left R right Destination the name of the receiving variable Origin the original string to be formatted may be a variable reference Length the total length of the justified data Character the character with which to fill the field any ASCII character may be used Affected System Variables amp 99 0 if no error occurs 1 otherwise Notes 1 Ifa space is used as an ASCII character it must be coded as 20 2 Ifthe length parameter is less than the length of the origin string the origin will be copied to destination unchanged 7 84 MCL Code Reference Guide Examples VJ L1A11 amp A01101 Left justifies variable AO for a length of 10 characters and fill with asterisks Example Before execution AO HELLO Afte
78. acter marks the end of transmission of one character and prepares the receiving device for the next character in the serial data stream Click the appropriate radio button to change the setting Software H Selects the Software Handshaking type to be asserted Click on the list box to select the software handshaking desired None When this option is selected data is transmitte immediately XON XOFF When this option is selected an XOFF character turns the scanner transmission off until the scanner receives an XON character If XOFF is received before the scanner has data to send the scanner waits up to 2 seconds for an XON character before transmission If the XON character is not received within this time the scanner issues an error indication and discards the data If XOFF is received during a transmission data transmission stops after sending the current byte When the scanner receives an XON character it sends the rest of the data message The scanner waits indefinitely for the XON character ACK NAK When this option is selected after transmitting data the scanner expects either an ACK or NAK response from the host Whenever a NAK is received the scanner transmits the same data again and waits for either an ACK or NAK After three unsuccessful attempts to send data whe NAKs are received the scanner issues an error indication and discards the data The scanner waits up to the programmable Host Serial Response Timeout to receive
79. age 7 74 return Category 7 value 013 using formatting defined by descriptor in system variable 91 MCL Code Reference Guide Serial Output SO P370 P470 RF Scanner Function Sends a string of characters to the serial communication port Syntax SO port text where Port communication port ignored for Phaser Text the string of characters to send Affected System Variables Ifa CLEAR KEY is pressed amp 97 KB amp 98 CL amp 99 4 If an error occurs amp 97 p amp 98 error number X99 To ae MCL Designer for Phaser Series User s Guide Notes 1 The maximum length of output data is 506 bytes 2 Error numbers reported in amp 98 are defined as follows 2 Serial protocol error Configured host does not recognize transmitted characters 3 Serial protocol error Handshaking failure 5 Serial protocol error Bad characters received 8 SYNAPSE error Configured host does not recognize transmitted characters 9 SYNAPSE error SYNAPSE transmission failed SYNAPSE cable may not be properly installed 15 RF Transmission error Scanner is not paired properly to base or scanner is out of range 16 RF Address error Base to which scanner is paired has been paired with another scanner 17 RF Transmission error Scanner out of range 18 MCL Link Host unavailable The base is connected to a Synapse cable which cannot be used
80. aired has been paired with another scanner 17 RF Transmission error Scanner out of range 18 MCL Link Host unavailable The base is connected to a Synapse cable which cannot be used to communicate to MCL Link 20 Transaction error The scanner is already busy communicating with the base 21 Memory allocation failure The scanner has run out of buffers necessary to manage communication Repeated occurrence of this error should be reported to customer service 24 RF Transmission error The base is not responding Repeated occurrence of this error 7 70 should be reported to customer service MCL Code Reference Guide Examples SII 11 B11 021 03 112711 Accepts all data on serial port starting with the character STX hex 02 and ending with the character ETX hex 03 When ETX is received accepts the LRC character into the variable Stops the input if 128 characters are received 127 1 trailing char 7 71 ee MCL Designer for Phaser Series User s Guide SKip SK Function Performs an unconditional program jump to a label Syntax SK label where Label address of the routine to execute If label is unsigned numeric label indicates an absolute line number within the current program to jump to If label is signed numeric label indicates a relative jump referenced from the current line number 1 indicates no jump execute the next physical line next If label is alphanumeric label indicates a
81. alog box This dialog box enables you to check if a file exists on a remote host and get the file size and file date Remote File Check oss ES Fil gt Na if e ize LE 3 FILESIZE Ll FILED En 5_04 Screen 4 Ra Figure 4 52 Remote File Check Dialog Box Host ID Selects the host identifier to look up the file File Name Accepts the file name for the host application e g FILESEND or C USER FILERCY If File Exists Goto Selects the action to perform or the screen to go to if the file is found If File Does Not Exist Goto Selects the action to perform or the screen to go to if the file is not found 4 68 Start EXE Program on Host Store Remote File Info File Size Bytes File Date Time If Communication Erro Goto Designing Programs Selects the variable to store the file size information in Click on 24 to open the Variable dialog box to create a new variable or select an existing variable Refer to Working with Variables on page 4 92 fo information on variables Selects a variable to store the make date and time of the file Click on mi to open the Variable dialog box to create a new variable or select an existing variable Refer to Working with Variables on page 4 92 for information on variables Selects the action to perform or the screen to go to if an error occurs during the communication Click 4 to accept the default setting or Enter the appropriate information to chan
82. apability to sort files If an unsorted file is declared with keys unexpected results may occur When one or more keys are defined the file is maintained in ascending order on the defined key s every record can be accessed directly by the use of its key s 7 6 MCL Commands MCL Code Reference Guide Table 7 3 lists the available MCL code commands These commands are described on the pages following as referenced in the table Table 7 3 Logical Group Command and Descript i o Logical group Command Description Page Display BL Backlight Sets Backlight On Off 7 10 DC Display Clear Clears line s on the scanner display 7 19 DM Display Message Displays a message on the scanner display 7 20 Keyboard and IC Input Cash Waits for input with cash register format 7 36 Scanner Input ID Input Date Waits for input with selected date format 7 38 TH Input Time Waits for input with selected time format 7 40 IK Input Key Waits for key input 7 41 IL Input List Sets a variable based on a selection froma scrolling 7 43 list of options IX Extended Input Waits for specific input from keyboard or scanner 7 45 ML Ment List Branches based on a selection from a scrolling list 7 50 of options Modem MD MoDem Outputs a string of characters to the modem 7 49 and waits for a response from the modem Files FD File Delete Deletes current record 7 21 FE File Erase Delet
83. ble selection 7 43 M MCL Designer for Phaser Series User s Guide S Affected System Variables amp 98 The text of the selected entry or TO if time out occurs amp 97 The index number of the selected entry Notes 1 The PI command is active in the IL command so all defined hot keys are still available 2 The selected index will be returned in the variable 3 If lt UP gt UP Arrow or lt DW gt Down arrow are used in PI before IL command they will perform the action defined in PI only on lt UP gt on first item and lt DW gt on last item and then only if mode is set to S Otherwise lt UP gt and lt DW gt switch the current selected item in the list Examples IL121211118111S101A01 1 Inventory 2 POS 3 Shipping Define at line 2 column 2 for 18 characters an input list field which will scroll through the following selections starting with selection 1 1 Inventory 2 POS 3 Shipping If the user hits the UP key when selection 1 is displayed the program will take whatever action is currently defined in the PI command for an up key If the user hits the DOWN key when selection 1 is displayed selection 2 will be displayed The chosen selection number will be stored in AO Speedkey processing is disabled 7 44 MCL Code Reference Guide Input eXtended IX Function Accepts any input from the keyboard or scanner Syntax IX line column variable minlength
84. bles or values When the value of the Case Value equals one of these set Equal values the action or screen in the Goto list box is performed If the comparison is false the action or screen in the Otherwise Goto list box is performed Control amp Branch In the Insert A Process dialog box click on Grou Branch and then click on Command Control amp Branch Click on to open the Control amp Branch dialog box This dialog box enables you to compare a character pattern of a variable 2 x If Value Mo Ty y Follows Pattern Then go to Else go to Continue 505 Screen 6 y Figure 4 34 Control amp Branch Window 4 44 Designing Programs If Value Selects the variable for testing Follows Pattern Sets the pattern to compare to th If Value This pattern can exist out of e Letters A to Z to specify a specific letter e Numbers 0 to 9 to specify a specific number e to specify numeric characters e to specify text e to specify any character e to specify all other characters Then go to Sets the action to perform or the screen to go to if the test result is true Else Goto Sets the action to perform or the screen to go to if the test result is false Click R to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click Xf close the dialog box without saving the changes For example B 4 matches wit
85. box enables you to go to a subroutine and then return Gosub 520 Screen 20 Figure 4 37 Gosub Dialog Box Program Sets the program to go to Gosub Selects the screen of the program to go to 4 47 ae MCL Designer for Phaser Series User s Guide Figure 4 38 illustrates the use of a Gosub in a process GOSUB 20 Figure 4 38 Gosub Process Start from line 3 Enter Gosub S20 Screen 20 MCL Designer goes to process line 20 to undertake a certain action 3 When the action is finished the exit enables the process to turn back to line 4 Note The Gosub can go to a label a screen or another program Always use Gosub with an exit Refer to Got on page 4 40 4 48 Designing Programs Files Group Files store the data input on a permanent basis in the scanner Due to the interaction between the files and programs through processes MCL Designer enables you to read write and delete the data in a file Refer toFiles Windo on page 4 87 for more information on working with files Write a Record In the Insert A Process dialog box click on Group Files and then click on Command Write a Record Click to open tik Write dialog box This dialog box enables you to write the input of variables into the fields of a file el MAE File Name If write error Goto B INVENTRY Fields to write Field Name Length Value L 8 vocation J Rouc sluser El J menns y oak UN
86. cations Group String Serial Output In the Insert A Process dialog box click on Group Serial Comm and then click on Command Sting Serial Output Click on Wijopenthe String Serial Output dialog box This dialog box enables you to select a variable to send through the serial port to a serial output device vj 2 Header Footer None ETX CR C CR LF If Communication Error Goto Continue X Figure 4 55 String Serial Output Dialog Box Header Data Variable to Send Footer If Communication Error Goto Sets the STX or SOH character to the beginning of a variable STX Start of Text 02 ASCII SOH Start Output Header Selects the variable or data to send Click on the list box to select a variable or enter a value in the list box Sets the ETX CR or CR LF character to the end of the variable ETX End of Text 03 ASCII CR Carriage Return hard return LF Line Feed a new line 13 and 10 ASCII Selects the action to perform or screen to go to if an error occurs 4 73 MCL Designer for Phaser Series User s Guide Click 4 to accept the default setting or Enter the appropriate information to change the values and click y changes e Click close the dialog box without saving the changes Scanner Serial Output In the Insert A Process dialog box click on Group Serial Comm and then click on Command Scanner Serial Output Click on lopen the Scan
87. cept Input ER 3 2 or switches to fractional input lt Bksp gt removes last entered character lt 0 gt to lt 9 gt digits All keys defined in the last PI command Example IC12161A01412 Lets user enter a number with format 0000 00 in variable AO at screen position 2 6 7 37 eee MCL Designer for Phaser Series User s Guide Input Date ID Function Displays an input mask at a screen position and waits for a date input with selected format Syntax ID line column variable where Line line of the input field on the display range 1 2 Column left most column of the input field Variable name of the variable to receive the input Affected System Variables None Notes 1 The default date format is MM DD YYYY The date format and date separator can be changed using the PY command 2 Date is checked during input All invalid dates are rejected Examples PY F013 101 Sets format and separator PY FOOE 00 ID 2111A40 Lets user enter a date with format DD MM Y Y Y Y in variable AO at screen position 2 1 PY F013 00 Sets format and separator PY FOOE 02 ID 2111 A0 Lets user enter a date with format MM DD YYYY in variable AO at screen position 2 1 7 38 MCL Code Reference Guide IF IF Function Compares a variable with text and jumps to one of two routines depending on the outcome of the comparison Syntax IF text1 test text2 true
88. ck the Main tab MCL Designer for Phaser Option ajja mol dla Figure 2 12 MCL Designer MainTa 2 Click on the Main Program button for the first Program 1 The Program Designer window Figure 2 13 appears 2 10 Quick Tour Program Designer SAMPLE MAIN Al ES Diol eal eff se v 88 SML Figure 2 13 Program Designer Window Display Text Screen 1 In the Program Designer window click 48 to display the Display Text dialog box Figure 2 14 2 Inthe Display Text box type SCAN BARCODE Display Text Figure 2 14 Display Text Dialog Box MCL Designer for Phaser Series User s Guide 3 Click jaccept the information A cursor with pages attached appears on the Menu Screen Position the cursor over the first line 5 Click the left mouse button to place the text box on the screen Display Text Screen 2 1 Click to switch to Screen 2 2 Click gs to display the Display Text dialog box 3 In the Display Text box type Code Display Text Figure 2 15 Display Text Dialog Box 4 Click Wjaccept the information 5 A cursor with pages attached appears on the Menu Screen Position the cursor over the left side of the first line in Screen 2 6 Click the left mouse button to place the text box on the screen 2 12 Quick Tour Barcode Input 1 Click M to open the Barcode Input dialog box Barcode Input iaa lalalala Figure 2 16 Barcode Input
89. cluded in the print report Enables pictures of each screen to be included in the print report Enables program details to be included in the print report Enables the variable list to be included in the print report Enables the MCL Code to be included in the print report Selects where to print to Click on the Screen radio button to print the project to the screen A window appears and the project display on the computer s screen Click the Printer radio button to print to a printer connected to the computer The Printer button opens the standard Windows printer setup dialog box for changing the printer or setting for the printer Sets the print report to print data file information Enables all of the data files or one of the data files of the project to be printed Enables the print report to contain the structure of the data file Enables the print report to contain the contents of the data file 4 85 ae MCL Designer for Phaser Series User s Guide SL Click to accept the default setting or Enter the appropriate information to change the values and click 14 to apply the changes e Click Xf close the dialog box without saving the changes 4 86 Designing Programs Working With Files Files store the input data on a permanent basis in the scanner Due to the interaction between the files and programs through processes MCL Designer enables you to read write update and delete the data in a fi
90. command 7 52 Network Output command 7 55 7 57 Index NO P360 P460 Memory Scanner 7 55 NX 70 P470 RF Scanner aa FEDT notational conventions Vili Others Tab P Parameter Numbers 7 103 Parameterize Exchange command ize scanner command 7 64 Parameterize Time command 7 62 pause eee Cree eee ere LA Phaser RODS Sepsa rr 1 17 Phaser RS 232 setup 00053 sea 1 17 Phaser m set i 1 7 placing fields on a screen TTE DEDENIE as 4 77 printing a scieen 0er rior AA e sas roe rra A host look up iad wate cae SOB bey Go branch 400004 4 41 Il ira dis red 4 59 receive packer A Eee 462 remote file check 4 68 scanner serial Output 266410 nanos ae 4 74 Index 3 ae MCL Designer for Phaser Series User s Guide Send TUS rre 4 63 send packer to host 2 4 61 senal Input Jee tran ai 4 75 start EXE program on host 4 69 string serial output socrii cirssses 4 73 Variable arithmetic seis 4 38 variable assigh 44244444084s00444 4 30 Variable extra doy ohn haw ed 4 35 variable format csic acess eeewsnns 4 33 variable length cic cia oid dec Ras 4 37 variable substting oorooccrros 4 34 Process SE sihe ence okeedeatengannne 4 28 Programs and File Sizes 246 544 90000 eas 7 95 project downloading cn ites 6 1 Pone ss etme ee eons 2 1 Q quick view of all screens 4 25 Qui
91. d N Next record C Current record n An arbitrary record number A pattern to find beginning at the specified position Patterns can contain a string of characters This string will be matched to the first n characters in each record until a match is found The value of the key fields The number of specified keys can be any number up to the total number of keys defined for the file The search begins at the position specified and locates the first record whose first n keys match the specified values MCL Code Reference Guide Affected System Variables amp 96 Current record number amp 99 0 if the requested record is found 1 if not found pointer remains unchanged Notes 1 The number of keys must be less than or equal to the number of keys defined in the File Open command of the related file If the filename is unknown System Error 2 is displayed 3 If the file is defined by FO filename 0 0 sequential file no key or pattern can be defined 4 System Variable 96 returns the current record number after FS command This can be used to determine the total number of records in a file using the Last position parameter 5 Ifthe requested record is not found the current file pointer is not updated Examples FS A F 00001 111301840 Positions the pointer of file A on the first record with key 1 00001 key 2 1130 key 3 variable amp AO FSID 18 Positions th
92. de UPC E Preamble 0x23 0 None System Character 7 104 MCL Code Reference Guide Table 7 7 PY Parameter Numbers Continued Parameter Parameter Options Default Value Number UPC EAN Continued UPC E1 Preamble 0x24 0 None System Character 1 System Character 2 System Character and Country Code Convert UPC E to UPC A 0x25 0 Disable Disable 1 Enable Convert UPC E1 to UPC A 0x26 0 Disable Disable 1 Enable EAN 8 Zero Extend 0x27 0 Disable Disable 1 Enable EAN 8 to EAN 13 Type OxE0 0 Type is EAN 13 Type is EAN 13 1 Type is EAN 8 UPC EAN Security Level 0x4 0 3 0 Discrete 2 of 5 Discrete 2 of 5 0x05 0 Disable Disable 1 Enable Discrete 2 of 5 Length 1 0x14 Any length len1 len2 0 12 Discrete 2 of 5 Length 2 0x15 Range len2 gt len1 0 Discrete lengths len2 lt len1 Interleaved 2 of 5 Interleaved 2 of 5 0x06 0 Disable Enable 1 Enable Interleaved 2 of 5 Length 1 0x16 Any length len1 len2 0 14 Interleaved 2 of 5 Length 2 0x17 Range len2 gt len1 0 Discrete lengths len2 lt len1 Verify I 2 of 5 Check Digit 0x31 0 None None 1 USS Check Digit 2 OPCC Check Digit 7 105 ee MCL Designer for Phaser Series User s Guide Table 7 7 PY Parameter Numbers Continued Parameter Parameter Options Default Value Number Interleaved 2 of 5 Continued Transmit I 2 of 5 Check Digit 0x2C 0 D
93. e Capture Creates the file and fills it by the scanner using the Write a Record command Refer to Write a Record on page 4 49 This file is used to store data captured on the scanner Look up Use the file for search and verification It is normally a read only file coming from the host but it ca also be created locally on the scanner Print This is typical a read only file with no specific field organization It is a variable record length file Selects the type of sort None Each record is opened at the end of the file typical capture file Field 1 The file will be sorted on the first field in ascending order This option is used for a fast search on field1 Designing Programs Fields 1 2 This option makes it possible to sort on the first field and the second field in ascendingorder Thi option is used for a fast search on both fields Note The search function is not allowed on field 2 Allocated Memory Shows the amount of memory allocated to the data files and how many records exist Fields Description Field Name Shows and accepts the name of the field Length Shows and accepts the length of the field Click 4 to accept the default setting or Enter the appropriate information to change the values and click to apply the changes e Click close the dialog box without saving the changes Note Click ii to go to the Memory Mapping dialog box For more information refer to Memory Mapping o
94. e Test amp Branch dialog box This dialog box enables you to set up a test and depending on the test result branch to a specified screen 2 x IF Value 1 Test Type Value 2 s oe 120 ri e IV Force Character Comparison Else goto Continue y Then go to fs_03 Product amp Qty Figure 4 32 Test Branch Dialog Box If Value 1 Test Type Value 2 Force Character Comparison Then Goto Else Goto Sets variable for test Determines the operation to be performed equal to gt greater than or equal to gt greater than lt less than or equal to lt less than lt gt not equal to Sets variable to test against Value 1 variable Forces the comparison between Value 1 variable and Value 2 variable Sets the action to perform or the screen to go to if the test result is true Sets the action to perform or the screen to go to if the test result is false Click 4 to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes Click close the dialog box without saving the changes 4 42 Designing Programs To test a variable and branch upon a condition Click on the If Value 1 list box to select the variable to compare e g V_PRICE 2 Click on Test Type radio button Available choices are equal to less than lt and greater than gt 3 Click on the Value 2 list box to s
95. e appropriate information to change the values and click to accept the information A cursor with pages attached appears on the screen Position the curso to the desired location on the screen and click the left mouse button to place the text on the screen e Click close the dialog box without saving the changes Display Variable The Display Variable dialog box enables you to insert a variable on the screen This variable can be a date format a time format scanner ID or a variable that has already been created Click Ba to insert a variable The Display Variable dialog box appears 2 x Display Variable Time HH MM SS Normal C Reverse IV Display first Format Length on Screen e Tues e AER 8 z Character s After Display IV Beep fi Short High Beep y y MV Pause 1 Seconds IV Enter to continue Figure 4 5 Display Variable Dialog Box Display Variable Sets the type of variable Normal Reverse Sets the text and background colors Click on the Normal radio button to display the variable in black on a white background or click on the Reverse radio button to display the variable in white on a black background Display First Sets this variable to display first on the scanner screen when this screen appears 4 7 S Format Length on Scree After Display NA MCL Designer for Phaser Series User s Guide Sets this variable to display in its true size or in truncated fo
96. e complete file 7 22 FK File Check File Check 7 23 FO File Open Opens file and defines the data structure 7 28 FP File Print Print a file to serial port 7 26 FR File Read Reads the current record 7 28 FS File Seek Positions the file pointer on the requested record 7 30 FU File Update Reads a record at the current pointer position of 7 32 the file updates the fields with the passed parameters writes the record at the end of the file and deletes the current record FW File Write Writes a new record in the file 7 33 FZ File SiZe Declare storage for a file 7 34 7 7 ae MCL Designer for Phaser Series User s Guide Table 7 3 Logical Group Command and Description Continued Logical group Command Description Page Variable VC Variable Compare Compares text with pattern 7 78 Operations VE Variable Extract Extracts characters from defined record 7 80 VF Variable Format Formats data as characters or a number 7 81 VJ Variable Justify Justifies data in variable to left or right 7 84 VL Variable Length Computes the size of text 7 86 VM Variable Move Replaces current contents of variable with new 7 87 value VO Variable Variable Operations arithmetic 7 88 Operation VS Variable Substring Extracts from a string 7 90 VX Variable op Variable operations with numeric 7 92 eXtended formatting Serial SI Serial Input Waits for characte
97. e input You canset an interval or a fixed length minimum maximum for the input Enter only numeric characters for the barcode variable Sets the program to continue after each scan without having to enter a keystroke Sets the program to continue after the operator presses the Enter key Click to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes Click close the dialog box without saving the changes Advanced Tab Designing Programs The Advanced tab sets extra options for the input bar code Barcode Input NOE Fa Figure 4 10 Barcode Input Advan d Tab Check Preamble Fill On Max Length Propose Default Value Check File Sets a preamble These preamble characters are compare with the first characters of the input barcode The data input is rejected if the preamble does not match the data introduction If the data is not rejected you can choose to remove these characters Fills the input field with zeroes or blanks on the left or right side This is used when the input data length is smaller than the required input Selects a default input value The default value can be a fixed value or a variable and can be overwritten at the time of input Selects if the entered data is or is not in the local data file capture or look up Note The first field of the file must be the data to check MCL Designer for P
98. e pointer on the 18th record of file D 7 31 eee MCL Designer for Phaser Series User s Guide F File Update FU Function Reads a record at the current pointer position of the file updates the fields with the passed parameters writes the record at the end of the file and deletes the current record Syntax FU filename var1 var2 lvarn where filename name of the file to update A H varl the variable in which data for the first field of the record to update will be stored Can be replaced by to skip this field varn the variable in which data for the last field of the record to update will be stored Can be replaced by to skip this field Affected System Variables amp 99 0 if no error occurs 1 if error is detected Notes 1 The number of variables must be less than or equal to the number of fields contained in the record Toignore a field without using a variable enter signs instead of the variable name 2 Ifthe length of the specified fields exceeds the corresponding field length of the file the variable will be truncated to fit within the field 3 If filename is unknown System Error 2 is displayed The updated record is appended to the end of the file 5 After updating the file pointer is moved to the updated record which is at the end of the file 6 Only applies to DIRECT files Example FUIAI amp A1
99. e previous links goto for the next screen Click to accept the default setting or Enter the appropriate information to change the values and click to apply the changes e Click Xfclose the dialog box without saving the changes Copying a Screen To copy the current screen to a new screen click fhe Copy dialog box appears wv 2 Copy Screen S01 Screen 1 to 502 Screen 2 El IV Copy Process In IV Copy Screen IV Copy Process Out Figure 4 15 Copy Dialog Box 1 Click on the Copy Screen Tolist box and select the screen that the current screen will be copied to Note When a screen is copied it over writes the selected screen 2 Click one or all of the check boxes to select the parts of the screen to copy Copy Process In check box to copy the process before the screen Copy Screen check box to copy the screen with the fields Copy Process Out check box to copy the process after the screen 3 Click copy the screen 4 23 ae MCL Designer for Phaser Series User s Guide Moving a Screen To move the current screen to a new screen click E The Move dialog box appears Y 2 x Move Screen S01 SCAN 504 Screen 4 y Figure 4 16 Move Dialog Box 1 Click on the Move Screen T list box and select the screen that the current screen will be moved to Note When a screen is moved it over writes the selected screen 2 Click the Update Screen Link
100. e text The Display Text dialog box appears with the selected text The text can then be edited 2 5 ae MCL Designer for Phaser Series User s Guide Display Variable 1 A 29 18 ION 2 6 Click v to display the Display Variable dialog box v 2 x Display Variable System Date y Normal C Reverse IV Display first fea SE Length on Screen fn TRE SER 10 H Characters After Display IV Beep fi Short High Beep y IV Pause 1 Seconds IV Enter to continue Figure 2 7 Display Variable Dialog Box Date Click on the Display Variable list box and select System Date Click on the desired check boxes for beep options Click 8 accept the information A cursor with pages attached appears on the Menu Screen Position the cursor over the second line in screen 1 to the extreme left Click the left mouse button to place the text box on the screen Click vi to display the Display Variable dialog box again Click on the Display Variable list box and select Time HH MM Select the desired format length on screen and beep options Quick Tour Display Variable Figure 2 8 Display Variable Dialog Box Time 10 Click Kj 11 A cursor with pages attached appears on the Menu Screen Position the cursor to the right of the date 12 Click the left mouse button to place the text box on the screen accept the information Display Text 1 Click to switch to Screen 2
101. ection S Table 4 3 Process Window Button Descriptions Continued ae MCL Designer for Phaser Series User s Guide Button Name Description 2 Help Opens the On Line Help file x Cancel Closes the Process Designer window Adding a Process To add or edit a process click 15 Process In or click Process Out depending upon where to add the process The Process In or Out window appears Figure 4 21 on page 4 26 Process List Processes are divided into six groups with each group containing a number of commands Table 4 4 lists the process groups and their associated commands Table 4 4 Process Gro u p Group Commands Variable Assig Combine Format Substring Extract Length x Arithmetic Branch Goto Key Branch Test amp Branch Case amp Branch Control amp Branch Set Label Gosub 4 28 Table 4 4 Process Groups Continued Designing Programs Group Commands Files Write a Record Read a Recor Delete a Record Review File Erase File Seek File Check MCL Link Communications Send Packet Receive Packet Send File Receive File Host Look Up MCL Link Start Remote File Check Remote File Operation Start EXE Program on Host Modem Command Serial Communications String Serial Output Scanner Serial Output Receive Data Print File Other Pause Beep Display Data Warni
102. ed Variables 634434 see ed 7 4 v Variable Compare command 7 78 Variable Extract command 7 80 Variable Format command 7 81 Variable group reen airada 4 30 Variable Justify command 7 84 Variable Length command 7 86 amable Us skrog caries 5 4 Variable Move command 7 87 Variable Operation Arithmetic Extended gommand 445 404 KLEE 7 92 Variable Operation Arithmetic command 7 88 Variable Substring command 7 90 FIDE A 7 3 Wait command warning message working items of the simulator Index working with fields 4 19 working with files com ommmscrnnn 4 87 working with processes o oo o oo 4 26 working with screens 4 22 working with variables 4 92 WH CIO eens een SENERE NESS 4 49 Index 5 ae MCL Designer for Phaser Series User s Guide Index 6 Tell Us What You Think We d like to know what you think about this Manual Please take a moment to fill out this questionnaire and fax this form to 631 738 3318 or mail to Symbol Technologies Inc One Symbol Plaza M S B 4 Holtsville NY 11742 1300 Attn Technical Publications Manager IMPORTANT If you need product support please call the appropriate customer support number provided Unfortunately we cannot provide customer support at the fax number above User s Manual Title please include revision
103. elect the variable to compare e g 120 Click on the Then Goto list box to select a screen action to go to if the comparison is true 5 Click on the Else Goto list box to select a screen action to go to if the comparison i false Case amp Branch In the Insert A Process dialog box click on Group Branch and then click on Command Case amp Branch Click on to open the Case amp Branch dialog box This dialog box enables you to compare the value of a variable input with other variables or values Y 21 Case Value fv_PRODUCT Equal Goto 101 y 02 Location y 102 y 803 Produts oy 5 103 504 Fie Eno 5 104 FS 505 Review Fie E Otherwise Goto Continue Figure 4 33 Case amp Branch Window 4 43 ae MCL Designer for Phaser Series User s Guide Case Value Sets variable for testing against the five Equal variables Equal Sets the variables or value to compare to Case Value Up to five variables or values can be compared to Case Value variable Goto Sets the action to perform or screen to go to if the test result are true Otherwise Goto Sets the action to perform or screen to go to if the test results is false Click 4 to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click close the dialog box without saving the changes The value of variable Case Value is compared with the Equal varia
104. elow If numeric represents a timeout in 15 msec increments Key code values Actual keys used FO to F9 Function keys FO lt F10 gt F1 lt F1 gt F2 lt F2 gt etc UP or DW lt Up gt or lt Down gt arrow keys PU or PD lt FN UP gt or lt FN DOWNS keys Ax Any alpha character on the keypad AK lt K gt key uppercase only Nx Any character on the numeric keypad N9 lt 9 gt key EN lt Enter gt key CL lt FN BKSP gt key SP special lt gt key BS Backspace key PW Power mode switch Affected System Variables None 7 60 MCL Code Reference Guide Notes 1 The PI command is active during IL IX NI SI and ML input commands and the NO output command Maximum 20 entries including TO Examples PI 1000 TO F1 HELP F8 NTPAY Calls the TO time out routine if no input is detected during 15 seconds 1000 x 015 sec Jumps to the HELP routine if the lt F1 gt key is pressed Jumps to the NTPAY routine if the lt F8 gt key is pressed PIOI TO F1 HELP F2 127 F31 1 Disable timeout note TO label must be included anyway jump to HELP if the F1 key is pressed line 127 if the F2 key is pressed and continue with next line if the F3 key is pressed 7 61 ee MCL Designer for Phaser Series User s Guide S Parameterize Time PT Function Sets the date and time Syntax PT date_time where date_time t
105. en when reviewing the file Not supported on Phaser Selects the action to perform or the screen to go to if an error occurs while receiving the file 4 65 ne MCL Designer for Phaser Series User s Guide Note Click go to the Data File Window For more information refer to Working With Files on page 4 87 Click to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click Xf close the dialog box without saving the changes Host Look up In the Insert A Process dialog box click on Grou MCL Link Comm then click on Command Host Look Up Click 4 to open theHost Look Up dialog box This dialog box enables you to look at a remote file on the host This file must be text file in ASCH format Y 2 x Host Lookup Received Fields Host ID M fy_PRODUCT feer 2 El v OTY feee Fle Name 4 SS fue Sf Search With s EA 7 s HA If key not found Go to s Jl fine MO AAAA If Communication Error Go to Continue z Fields Sep Pipe x Figure 4 51 Host Look Up Window Host Look Up Host ID Selects the host identifier to look up the file 4 66 File Name Search With If Key Not Found Goto If Communication Error Goto Received Fields Fields Sep Designing Programs Accepts the file name for the host application e g FILESEND or C USER FILERCV Selects a variable containing the search key
106. er to host 0 TF Extended Binary format support 3 TF Counter size in 3 digits 4 TF Counter size in 4 digits Default value 59 gt ASCII 124 Field separator 68 None Program number of currently active program 0 8 70 Version information NBRVSMxx where xx is AA AB AC BA BB to indicate revision level of scanner code Read Only variable 7 101 ee MCL Designer for Phaser Series User s Guide Table 7 6 System Setup Variables Continued Variable Default Value Description 71 Scanner Identification number 001 to 254 72 Date and time in format CCYYMMDDHHMMSS 73 Date MM DD YY depending on code page 74 Time HH MM SS 75 Day of week 0 Sunday 1 Monday 76 AM PM 78 None Week number for the current date 1 53 85 MCL Interpreter version x x 86 Not supported 89 Version date format formatted according to the Date Format and Date Separator parameters 90 99 Various return codes from MCL commands Read Only variable 7 102 MCL Code Reference Guide PY Parameter Numbers The following table Table 7 7 lists the PY Parameter Numbers Table 7 7 PY Parameter Number Parameter Parameter Options Default Value Number Code 39 Code 39 0x00 0 Disable Enable 1 Enable Code 39 Length 1 0x12 Any length len1 len2 0
107. examine amp 98 as well Example MD ATDTS55121 Dial the phone number 555 1212 7 49 Menu List ML Function ee MCL Designer for Phaser Series User s Guide S Defines a list input field where several options may be accessed using a single field scrolling through the available options The label associated with the selected text is taken as a jump address Syntax ML line column height width default mode speedkey sel1 skip1 seln skipn where 7 50 line column height width default mode speedkey sell skip1 seln skipn row on which to begin field column in which to begin field number of lines to be used ignored by Phaser number of columns to be used index of default selection rollover mode R Roll from last to first S Scroll from first to last enable speed key processing Note that the speedkey feature only works with numerics 0 9 1 Pressing the key corresponding to the first character of a menu item moves directly to that selection 0 Disable the speedkey feature text of first available selection label to jump to if the associated menu item is selected text of last available selection label to jump to if the associated menu item is selected MCL Code Reference Guide Affected System Variables amp 98 The code of the exit key or TO if time out occurs Notes 1 The PI command is ac
108. f The Files The files can have two different structures variable or fixed length records Fixed length records can have a key a sort field Sequential Files Sequential files are defined as having 0 fields The file is simply interpreted as a string of unformatted ASCII data Sequential files may be used for writing activity logs and such They CANNOT be searched by field Sequential file records are delimited by a Carriage Return OxOD or Carriage Return Line Feed 0x0D 0x0A pair Direct Files Files containing fixed length records are called direct files and may or may not have keys These files are opened using command FO filename Keys Field1 refer toFile Open FO on page 7 24 Maximum values for direct file Record length 255 characters Number of keys 9 Number of fields 20 Field length 255 characters Key fields refer to the fields on which the file is sorted and on which fields searches may be performed If no key fields are defined the file is considered to be unsorted and any search for data in the file is performed in a linear fashion If 1 or more key fields are defined then the file is considered to be sorted on the concatenation of all the key fields Any keyed search on key n must specify a value for all keys from 1 to n Keyed files cannot be appended to as no sorting of written records is possible The file MUST be presorted on the host prior to downloading to the scanner the scanner has no c
109. f the first row in screen 1 9 Click the left mouse button to place the text box on the screen 10 Repeat steps 3 through 7 to enter the text F1 Program 1 in normal mode 11 Position the cursor in the extreme left side of the second row in screen 1 3 3 MCL Designer for Phaser Series User s Guide 12 Click the left mouse button to place the text box on the screen Program Designer SAMPLE MAIN a E Ojal fol 5 7 2 7 880 v 21 Figure 3 4 PlacingText on the Screen Adding Variables to the Menu To insert variables such as a date a time etc in the menu screen 1 Click vy to add a variable The Display Variable dialog box appears Display Variable Figure 3 5 Display Variable Windo 3 4 MANE Designing a Main Menu Click on the Display Variable list box and select System Date Click on the Normal radio button to set black text on a white background Click to accept the information A cursor with pages attached appears on the screen Position the cursor in the firstrow next to the words MAIN MENU Click the left mouse button to place the text box on the screen Program Designer SAMPLE 7 MAIN FE E FODE BEES Figure 3 6 Variable Placed on the Screen 3 5 ae MCL Designer for Phaser Series User s Guide Setting Menu Options Special keys on the scanner can be specified when working with the Menu To set these keys click JER on the MCL Designer screen
110. false where Text1 the first operand to compare Test the condition for the comparison values for test equal to gt greater than lt less than Text2 the second operand to compare True address or label of the next instruction if result is true False address or label of the next instruction if result is false Affected System Variables None Note All comparisons are lexicographic except when operand 1 and operand 2 are both integers Examples IF amp A0 1 gt 1999 OVFLW1 1 Execute the OVFLW routine if the value in AO is greater than 999 Execute the next instruction if the value in AO is less than or equal to 999 IFIXCO STOP END 1 Execute the END routine if the value in CO is equal to STOP Execute the next instruction if the value in CO is not equal to STOP 7 39 eee MCL Designer for Phaser Series User s Guide Input Hour 1H Function Displays an input mask and waits for a time input with selected format Syntax IH line column variable where Line line of the input field on the display range 1 2 screen line Column left most column of the input field Variable name of the variable to receive the input Affected System Variables None Note Invalid time entry is rejected Example TH 1161A0 Lets user enter a hour with format HH MM SS in variable AO at screen position 1 6 7 40 MCL Code Reference Guide Input Key IK
111. fected System Variables 8199 0 if no error occurs or 1 in case of error amp 98 If amp 99 0 if an error occurred X98 will contain the error code F001 Illegal File Name F002 File not empty the record structure being defined does not match the existing record structure and the existing file is not empty This is not allowed as it could cause a loss of collected data F003 File Allocation Table could not be updated This could result from an excessive number of file redefinitions causing FLASH memory wear Notes 1 To declare a sequential file set keys and fieldlength1 to 0 zero and do not declare any more fields Sequential files cannot have keys 2 All fields in the record are text fields numeric values are converted to ASCII representations Size fields accordingly 3 If filename is unknown or any IO error System Error 2 is displayed If the number of key fields is greater than 9 System Error 2 is displayed 7 24 MCL Code Reference Guide 5 Ifthe file does not exist has not been allocated using an FZ command System Error 2 is displayed 6 Ifa file is opened with the same specification that previously existed then any existing data remains intact If it is opened with a new specification and the file is not empty an error occurs A file must be opened before any operation can take place 8 The keys represent the number of fields to use as key They defi
112. ference Guide Variable Format VF Function Formats the data in a variable as a string of characters or numbers Syntax VE type destination origin sign zero int dec where Type Destination Origin Only with numeric format Sign Zero Int Dec type of format C characters D numbers I Integer N Numeric the name of the receiving variable the original string to be formatted may be a variable reference add sign to the number S add or before number B add space or before number N no sign fill the number with a specified character Z fill with 0 before number B fill with space before number N remove all 0 and space before number Anything else fill with specified character before number number of digits of integer part number of digits of decimal part 7 81 Le MCL Designer for Phaser Series User s Guide Affected System Variables amp 99 0 if no error 1 otherwise amp 98 if result gt 0 only with numeric formatting if result lt 0 only with numeric formatting Notes 1 When data is defined as characters C all non significant zeroes and spaces on the left and right of the variable are deleted 2 Ifthe data contains decimal numbers the zero just before the decimal point is not deleted 3 When the data is defined as a number
113. formation to change the values and click 4 to apply the changes Click close the dialog box without saving the changes Key amp Branch Designing Programs In the Insert A Process dialog box click on Grou Branch and then click on Comman Key amp Branch Click to assign another function to several keys Key amp Branch xi Time Out Second Goto Other Keys Key Goto to open they amp Branch dialog box This dialog box enables you Ly 2 x Clear exi Up Continue Down y Ml Time out ler Seconds 30 Fi Goto fs_o2 Screen 2 Other Keys doll Goto fs_03 Screen 3 y Figure 4 31 Key amp Branch Dialog Box Assigns a time out interval If there is no activity after the time out period then the action or screen selected in the Goto list box takes effect Selects the action to perform or the screen to goto if the time out occurs Assigns another function to keys on the scanner Assigns another function to the Function keys on the scanner Click to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click Xf close the dialog box without saving the changes 4 41 ae MCL Designer for Phaser Series User s Guide Test amp Branch In the Insert A Process dialog box click on Group Branch and then click on Comman Test amp Branch Click on 4 to open th
114. g box to create a new variable o select an existing variable Refer to Working with Variables on page 4 92 for information on variables Click to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click close the dialog box without saving the changes To read fields from a file and store them into variables 1 Click on the Name list box to select the file in which to read the record e g lt A gt FILE Click on the Goto list box to select the screen to goto if the record is not found 3 Click on the Mode list box to select the mode to search If Key or Record is selected select the appropriate variables in the Key list boxes 4 Click m to select the variables to store the input in 4 52 Delete a Record Designing Programs In the Insert A Proces dialog box click on Group Files and then click on Command Delete a Recor Click on 4 to open the File Delete dialog box This dialog box enables you to delete a record in a file File Delete record x 9 vel File Name If record not found Goto Continue KEE g Search Record lt A gt INVENTRY hd Mode Record Key 1 fv_PRODUCT Figure 4 41 File Delete Dialog Box File Name Selects the file to delete a record from If Record Not Found Sets the action to perform or the screen to go to if the record Goto is not found Search Record Mode Select
115. g with Variables A variable is a memory area in the scanner where data is stored temporarily There can be up to 100 variables of 64 bytes each plus three 512 byte variables All variables are global fo one project All 8 programs can access read write the variables The content of a variable is an ASCII character string that can be displayed on the scanner screen at any moment A variable is never empty if no data is stored in that variable The content will be the character Internally the variables are named AO to A3 Y0 to Y3 ZO to Z2 A comprehensive name can be entered in the MCL Designer variable table Note All the variables are initialized to after a scanner boot It is possible to specify a variable content using amp and the variable code in any data fields Display Text x 2 x Display text 6 Normal Reverse IV Display first After Display IV Beep fi Short High Beep y gt IV Pause 1 Seconds IV Enter to continue Figure 4 70 Variable Content Using 80 1238ZA0 will display 123ABC if ABC is the content of the variable AO 4 92 Designing Programs Global View of Variables The Variable List icon Fi in the Program Designer window displays a list of all the variable that were created in the current project Variables SAMPLE1 INVENT x ejz e Variable Name id k USERID Figure 4 71 Variables List Window The Var column list
116. ge the values and click to apply the changes Click Xfclose the dialog box without saving the changes In the Insert A Process dialog box click on Grou MCL Link Comm and then click on Command Start EXE Program On Host Click to open tart EXE Program On Host dialog box This dialog box enables you to start a program with extension EXE on the host ae MCL Designer for Phaser Series User s Guide 4 70 Start EXE Program on Host x Ly 2 x Program Arguments Host ID 099 bs a i V PRODUCT 2 fv_LocaTioN Remote Program Name 3 yl INVENTOR EXE al Argument Sep lo Blank If Communication Error Goto Continue Figure 4 53 Start EXE Program On Host Dialog Box Host ID Remote Program Name Argument Sep If Communication Erro Goto Program Arguments Selects the host identifier to run the executable Accepts the program name to run Selects a separator to use between the arguments Example INVENTORY EXE 123123123 050 where the arguments are 123123123 and 050 and the separator is a blank Selects the action to perform or the screen to go to if an error occurs during the communication Selects the arguments or variables to give to the program Click to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes Click close the dialog box without saving the changes Modem Command Desi
117. gits MSI Check Digit Scheme 0x33 0 Mod 11 Mod 10 Mod 10 Mod 10 1 Mod 10 Mod 10 Transmit MSI Check Digit 0x2E 1 Transmit Do not transmit 0 Do not transmit General Transmit Options Transmit Code ID 0x2 0 None None 1 AIM ID 2 Symbol ID s Transmit No Read OxSE 0 Disable Disable Characters 1 Enable 7 107 ee MCL Designer for Phaser Series User s Guide Table 7 7 PY Parameter Numbers Continued Parameter Parameter Options Default Value Number General Laser On Timeout 0x88 5 99 1 10 second units 30 3 seconds General Decode Parameters Bi directional Redundancy 0x43 0 Disable Disable 1 Enable Linear Security Level 0x4E 1 3 1 Beeper User Interface Parameters Beep on Good Decode for use 0x38 0 Disable Enable by default application 1 Enable Beeper Volume 0x8C 0 High High 1 Medium 2 Low Beeper Frequency 0x91 0 High High 1 Medium 2 Low Primary Serial Port Parameters Response Timeout 0x9B 5 99 1 10 second units 20 2 seconds Baud Rate 0x9C 2 600 9600 3 1200 4 2400 5 4800 6 9600 7 19200 8 38400 Stop Bits 0x9 1 1 stop bit 1 stop bit 2 2 stop bits 7 108 Table 7 7 PY Parameter Numbers Continued MCL Code Reference Guide Parameter Parameter Number Options Default Value Primary Serial Port Parameters Continued Parity Type Ox9E 0 Odd Parity 1 Even Parity 2 Mark
118. gner keeps track of the remaining space as files are allocated Minimum file size supported is 2 blocks On Extended Memory Phaser file allocation requests are rounded up to the nearest whole 64 KB segment Example FZIAI10001125 Allocates file A to begin at block 1000 and to occupy 256 blocks 64K eee MCL Designer for Phaser Series User s Guide Input Cash IC Function Inputs a number with selected format in cash register input mode digits are scrolled from right to left a short beep is emitted after input Syntax IC line column variable integer fraction where Line line of the input field on the display range 1 2 Column left most column of the input field Variable name of the variable to receive the input Integer size of integer 0 to 7 digits Fraction size of fractional part 0 to 4 digits Affected System Variables None Notes 1 Integer set to 0 means that it is not possible to enter a number greater than 0 9999 In that case the decimal point is placed at the most left place 2 Fraction set to 0 means that the entered number is an integer In that case the decimal point is not displayed 3 Integer and fraction both set to 0 is not allowed Integer entry ends and fractional entry begins when either the maximum specified number of integers has been entered or or is pressed 7 36 MCL Code Reference Guide Active keys are lt Enter gt Ac
119. gning Programs In the Insert A Process dialog box click on Grou MCL Link Comm and then click on Command Modem Command Click dialog box enables you to send a command to modem kvd to open Medem Command dialog box This Modem Command xi v z x Select Command WNimber Disconnect C Auto Answer Hayes Eormmana Other po Options If Error Goto Continue IV Check Cradle IV Toolbar on bottom line Figure 4 54 Modem Command Dialog Box Select Command Init Dial Disconnect Auto Answer Other Enter the initialization command for the modem Enter the telephone number to dial Enter the disconnect command Enter the Auto Answer Hayes Command to put the modem in auto answer mode Enter any other modem command 4 71 ae MCL Designer for Phaser Series User s Guide If Error Goto Selects the action to perform or the screen to go to if an error occurs Possible errors are no answer from modem or no connection with the remote site Options Check Cradle Sets the scanner to check for a connection to a cradle Toolbar On Bottom Line Sets a toolbar to appear on the bottom of the screen when reviewing the file Not supported on Phaser Click to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes Click close the dialog box without saving the changes 4 72 Designing Programs Serial Communi
120. gnizes three types of variables system variables small variables large variables System Variables Numbered from 00 99 these are parameters and function return codes The length of the variable depends on the data represented by the variable In general these variables do not represent actual memory locations but require an underlying process to read or set This underlying process is transparent to the user System Setup Variables on page 7 98 lists the value represented by each System Variable Small Variables Labeled AO A1 A2 A3 BO B3 YO Y3 for a total of 100 variables each capable of storing 64 bytes of data Small Variables store strings only any integer data to be manipulated is converted to a string prior to storage and back to an integer prior to processing User variables are global variables They can be accessed from any program in the scanner Large Variables Labeled Z0 Z2 for a total of 3 variables each capable of storing 512 bytes of data Like Small Variables Large Variables store only strings 7 4 MCL Code Reference Guide Files and Records General Within an MCL Code program you can use local files Note The P370 P470 RF scanners do not support files Scanned data may be manipulated using any of the functions available in MCL However the resultant data must be transmitted to the host since there is no facility for storing data long term in the scanner The
121. h B21C14ABC123 If the comparison is true the process follows the screen or action in theThen Goto list box If the comparison is false the process follows the screen or action in the Else Goto list box 4 45 ae MCL Designer for Phaser Series User s Guide Set Label In the Insert A Process dialog box click on Grou Branch and then click on Command Set Label Click on openthe Label dialog box This dialog box enables you to set a label A label is a reference that can be set to go directly to a certain position like a specific line in a process Enter a label name and it always refers to that position Label Labe E wes Label MARKI Figure 4 35 Label Dialog Box Label Sets the label name Note The label name must be unique for the program and must begin with an alphabetic character A to Z 9 Click R to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click close the dialog box without saving the changes 4 46 Designing Programs Figure 4 36 illustrates the use of a label in a process f SCREEN l Goto LABEL processiout Figure 4 36 Label Process Gosub Window In the Insert A Process dialog box click on Grou Branch and then click on Command Gosub Click Y to open tbiesub dialog box This dialog
122. haser Series User s Guide Store Barcode Selects the variable that the barcode descriptor gets stored Descriptor into The barcode descriptor is an internal variable which is required to output barcode data to certain host systems especially RS232 variants and Synapse cables Click on m to open the Variable dialog box to create a new variable or select an existing variable Click to accept the default setting or Enter the appropriate information to change the values and click to apply the changes Click close the dialog box without saving the changes Hot Key Tab The Hot Keys tab configures some of the keys on the scanner keyboard Barcode Input Figure 4 11 Barcode Input Hot Keys Ta Designing Programs Time Out Sets a time interval to go to another screen or exit if there is no action Other Keys Assigns another function to several keys on the scanner keyboard These include Clear Up Down F Up F Dw and Star Function Keys Assigns another function to the scanner s function keys Click to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click Xfclose the dialog box without saving the changes Branch Tab The Branch tab enables the user to set up a case with the bar code type bar code length or bar code value Ea Barcode Input 9 2 Mini Input A Advanced Hot Keys g Branch IF Equal Go
123. he last character or string of the data string Maxchar maximum number of characters to receive Trailingchar number of trailing character s to accept after endchar or maxchar max 9 Affected System Variables Ifa TIMEOUT occurs if one has been defined in the previous PI command amp 97 TO 8298 9 8299 gt If a KEY defined in the previous PI command is pressed 8297 KB amp 98 name of the pressed key see PI command for key names 8799 lt Q 7 69 a MCL Designer for Phaser Series User s Guide If a CLEAR KEY not defined in the previous PI command is pressed amp 97 KB amp 98 CL X99 ep If an error occurs on the P370 P470 RF scanner amp 97 ae amp 98 error number amp 99 s172 Notes 1 Only the data included between the begin and the end characters are stored in the variable beginchar and endchar characters excluded 2 Serial Input terminates when a timeout occurs 3 You can use to ignore a parameter 4 The maximum length of input data is 128 bytes 5 Error numbers reported in amp 98 in the P370 P470 RF scanner are defined as follows 5 Serial protocol error Bad characters received 15 RF Transmission error Scanner is not paired properly to base or scanner is out of range 16 RF Address error Base to which scanner is p
124. he new time and date with format Y Y Y YMMDDHHMMSS Affected System Variables All date time system variables 8240 8246 8272 amp 76 are implicitly updated Notes 1 Valid dates are in the range January 1 1997 to December 31 2096 2 The PT command is not supported on the RF scanner since the RF scanner has no internal clock The command does not cause a syntax error but is simply ignored Example PT 19980526131500 Sets the time and date to 13 15 00 26 May 1998 7 62 MCL Code Reference Guide Parameter eXchange PX Function Changes the contents of a System Setup Variable Refer to System Setup Variables on page 7 98 Syntax PX parameter value where Parameter the System Setup Variable name Value the new contents of the System Setup Variable Affected System Variables The addressed system variable is updated Notes None Examples PX 20110 Writes the value 10 into System Setup Variable 20 PX 1251 amp AO Writes the contents of variable AO into System Setup Variable 25 ae MCL Designer for Phaser Series User s Guide Parameterize Scanner PY Function Control scanner parameters using parameter number parameter value pairs Syntax PY IP pp an vv pp an vv pp an vv where nn We Pp the permanent change flag Y Make these changes permanent write to FLASH parameter buffer N Make these changes temporary write only to RA
125. ible for each data capture file If a project has look up files and a capture file first allocate the necessary amount of memory to the look up file and then allocate all remaining memory available to the capture file Also if there are multiple capture files divide all of the available memory among the capture files in proportion to their expected relative sizes Thus if one file e g transfer items is expected to contain only 10 as much data as anotber file e g received items allocate 10 times more memory to the larger file than to the smaller file These steps will belp to maximize the life of the flash memory by minimizing the number of write operations to any given memory block MCL Designer for Phaser Series User s Guide Scanner Setup To configure the default decode parameters click on the Scanner button in the Setup dialog box The Scanner Setup dialog box allows you to specify the bar code types and certain parameters for the scanner Scanner Setup M M ru M M Figure l 5 Scanner Setup Window General Tab Enable Symbology Sets the specific type of Symbology Decoder Click the Decoder appropriate check box to enable the selected decode type Laser On Timeout Sets the Laser On Timeout period 1 10 seconds Getting Started Linear Security Level Sets the Linear Security Level which determines ho many times a code must be successfully read before being decoded Bi directional Enables or di
126. ick close the dialog box without saving the changes 1 20 Getting Started MCL Designer Setup To set up the MCL Designer program choose Designer Setup from the Tool menu The MCL Designer Setup dialog box Figure 1 10 appears v 2 Project Library E AMCL P4604 Simulator Station ID E Data files Directory C MCL P460 DATA Assign Aux Port to lt None gt Simulation Startup Options NT Delete All Capture Files IT Break on each Line Figure I 10 MCL Designer Setup Window Project Library Select the project library directory Simulator Station ID Sets the scanner ID in simulation mode Use the up and down arrow to set the station ID number Data files Directory Select the directory to store the data files during simulation Type the directory path in the text box Assign Aux Port to This field allows you to assign the terminal s auxiliary port to a PC communication port COM1 COMA4 Simulation Startup Sets the simulation options at start up Click the Options appropriate check box to e Delete capture files when starting the simulator e Start the simulation in step by step mode Click to accept the default setting or Enter the appropriate information to change the values and click to apply the changes e Click close the dialog box without saving the changes ae MCL Designer for Phaser Series User s Guide 1 22 Za Chapter 2 Quick To
127. ide S ComPute ConVert CP CVT Function This function provides useful conversions Syntax CP CVT variable type string where Variable variable receiving value Type type of conversion 0 convert a char to this ASCII value or convert a string to the sum of ASCII values of each character 1 get a number as an ASCII code and convert it to a character 2 convert a number to a string of 2 hexadecimal digit 3 convert a number to a string of 4 hexadecimal digit 4 converts a number to a string of 2 characters as used by MCL Net protocol for checksums 5 converts a number to a string of 4 characters as used by MCL Net protocol for checksums 6 convert a string of hexadecimal digits to a decimal number of 5 digits 7 convert a string of MCL Net checksum digits to a decimal number String input character string or numbe MCL Code Reference Guide Affected System Variables amp 99 0 if conversion is OK Variable returns value of conversion 1 if the number or string cannot be converted Variable Examples CP CVT A0101X Convert char to an ASCII code AO will contain the ASCII code of X 0008 CP CVT A0 I 0 ABCDE Convert a string to the sum of ASCII codes AO will contain the ASCII code of X 00335 CPI CVT A011188 Convert an ASCII code to a character A0 will contain the character CP CVT1A012 1186 Convert to 2 hexadecimal digits AO will contain BA CP C
128. if an error occurs while receiving the packet 4 62 Designing Programs Packet Fields to Variables Assigns a variable to each received field Click on ma to open the Variable dialog box to create a new variable or select an existing variable Refer to Working with Variables on page 4 92 for information on variables Use scroll bar to view additional packet fields Click to accept the default setting or Enter the appropriate information to change the values and click changes e Click close the dialog box without saving the changes Send File In the Insert A Process dialog box click on Grou MCL Link Comm and then click on Command Send File Click Al to open Werd File dialog box This dialog box enables you to send an entire file to a scanner Send File e ame FILESEND Figure 4 49 Send File Dialog Box 4 63 S Send File To Host ID Local File Name Remote File Name Options Check Cradle Delete After Send Toolbar On Bottom Line If Communication Erro Goto MA MCL Designer for Phaser Series User s Guide Selects the host identifier to send the file to Selects the local file to send to the host Accepts a new file name for the host application e g FILESEND or C DATA FILESEND Sets the scanner to check for a connection to a cradle Sets the scanner to delete the file after it is sent t the host Sets a toolbar to appear on the bottom of the screen when reviewing
129. in KB 512 512 KB 1024 1024 KB 1 MB 4096 4096 KB 4 MB 8192 8192 KB 8 MB Note that 256KB of the memory is allocated for system code and user scripts on the 512 KB and 1 MB scanners while 512 KB of the memory is allocated on the 4 MB and 8 MB scanners So on a 512 KB scanner only 256 KB is available for data storage 29 Address format used by MCL Net 0 decimal addresses 1 Hexadecimal addresses 30 10 Power off delay in seconds 33 Power source 0 batteries 1 cradle 2 cable 35 Batteries status 0 good 1 low 2 dead 40 Hours from internal clock system format 00 to 23 41 Minutes from internal clock system format 00 to 59 42 Seconds from internal clock system format 00 to 59 Read Only variable 7 100 MCL Code Reference Guide Table 7 6 System Setup Variables Continued Variable Default Value Description 43 Day from internal clock system format 01 to 31 44 Month from internal clock system format 01 to 12 45 Year from internal clock system format 1980 to 2079 46 Julian day format 001 to 365 52 Date Format 1 Not Used 2 Not Used 3 MM DD YYYY 4 DD MM YYYY 53 1 Date Separator 1 2 Sia 4 no separator 54 1 Hour format 1 24 2 12 55 0 Decimal separator O iz 56 4 TF_type Supported TF file transfer format scann
130. le You can define a maximum of 8 files in the scanner Each program of the project can access any of these data files Data files are fixed record lengths except for the Print file Up to 16 fields can be stored in a record The maximum record length is 255 bytes the maximum field length is 128 bytes and the maximum file size depends on the memory of the scanner up t 3 2 MB The default field separator is the pipe l 124 decimal Refer to System Setup on page 1 7 Files Window In the MCL Designer window click on the Files tab MCL Designer for Phaser BEI File Edit Tools Option Help ECR Molals v x H Project so Main e Programs lt p Files Data Files Figure 4 67 MCL Designer Files Tab Click next to the file number Up to eight files can be created for a project If this is a new file the Create Data File dialog box appears Enter a file name in the Data File Name field ee ee Click 4 to accept the file name The Data File Description dialog box appears 4 87 ae MCL Designer for Phaser Series User s Guide 4 88 File Name Type of File Sort on File Help ojla m 2 x File Name Fields Description Field Name Length i e Type of Fie 2 57 EZ 3 b ort on User gE a Lt o Allocated Memory 6 E 54 KBytes 7 IE 1285 Records e CJ Figure 4 68 Data File Description Dialog Box Shows the name of the current file Selects the type of fil
131. levard East Mississauga Ontario Canada L4W 4Z2 905 629 7226 Asia Pacific Symbol Technologies Asia Inc 230 Victoria Street 04 05 Bugis Junction Office Tower Singapore 188024 337 6588 Inside Singapore 65 337 6588 Outside Singapore Austria Symbol Technologies Austria Gmb Prinz Eugen Strasse 70 Suite 3 2 Haus 5 Stock 1040 Vienna Austria 1 505 5794 Inside Austria 43 1 505 5794 Outside Austria ae MCL Designer for Phaser Series User s Guide Denmark Symbol Technologies AS Gydevang 2 DK 3450 Allerod Denmark 7020 1718 Inside Denmark 45 7020 1718 Outside Denmark Finland Oy Symbol Technologies Kaupintie 8 A 6 FIN 00440 Helsinki Finland 9 5407 580 Inside Finland 358 9 5407 580 Outside Finland Germany Symbol Technologies Gmb Waldstrasse 68 D 63128 Dietzenbach Germany 6074 49020 Inside Germany 49 6074 49020 Outside Germany Latin America Sales Support 7900 Glades Road Suite 340 Boca Raton Florida 33434 USA 1 800 347 0178 Inside United States 1 561 483 1275 Outside United States Netherlands Symbol Technologies Kerkplein 2 7051 CX Postbus 24 7050 AA Varsseveld Netherlands 315 271700 Inside Netherlands 31 315 271700 Outside Netherlands Europe Mid East Distributor Operations Contact your local distributor or call 44 118 945 7360 France Symbol Technologies France Centre d Affaire d Antony 3 Rue de la Renaissance 92184 Antony Cedex France 01 40 96 52 21 Inside France
132. level How familiar were you with this product before using this manual OJ Very familiar Slightly familiar QO Not at all familia Did this manual meet your needs If not please explain What topics need to be added to the index if applicable What topics do you feel need to be better discussed Please be specific What can we do to further improve our manuals Thank you for your input We value your comments
133. lick this button to add a process before the current screen Process Out Click this button to add a process after the current screen First Scree Displays the first screen of the program Previous Screen Displays the previous screen Next Screen Displays the next screen HELEEEEEFELEE Last Screen Displays the last screen of the program Designing Programs Screen Description Each screen can have a descriptive name associated with it To assign a name to a screen click LJ to display the Screen Description dialog box Figure 4 3 2 x Screen Name Screen 1 Start with IV Clear Screen IV Beep Notes Figure 4 3 Screen Description Dialog Box The Screen Description dialog box displays and sets the screen description These settings are contained in two text boxes and two check boxes Screen Name Enter a description of the current screen This name appears above the main screen in the Program Designer window Start With Clear Determines if the previous screen remains or if the screen becomes Screen blank If Clear Screen check box is selected the screen becomes blank If the Clear Screen check box is de selected the previou screen will remain This allows an overlap between screens Start With Beep If selected enables the scanner to emit a beep when entering the screen Notes Allows the user to write comments about the program being designed Click 4
134. mmand the command to send to the destination argument the command argument s to send Affected System Variables Normal Mode 8299 lt Q After connection failure maximum retries reached amp 98 retry count 8299 7 4 After Host Error Host rejects message or user fails to place scanner in cradle within 30 seconds amp 98 retry count 8299 4 ee MCL Designer for Phaser Series User s Guide After KEY defined in the most recent PI command is pressed amp 97 KB amp 98 Name of the pressed key see PI command for key names X99 lt Q variable ES Notes Source and destination addresses are represented in decimal or hex digits depending on the setting of the MCL Net Hex Addressing parameter Example NO 1099 D1 amp AO Send the D1 command to station 99 with the value of variable AO as an argument 7 56 MCL Code Reference Guide Network Output NO P370 P470 RF Scanner Function Sends a frame to the host via RS 232 using MCL Link protocol Syntax NO destination command arg1 argn where destination the destination unit identificatio command the command to send to the destination argument the command argument s to send Affected System Variables Normal Mode 8297 9 amp 98 rie 8299 PR gt After a CLEAR KEY
135. ms Decimals Sets the decimal format for the resulting variable Fill With Fills the input field with zeroes or blanks This is used when the input data is smaller than the required input Add Sign Adds the sign to the result variable Click 4 to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes Click Xfclose the dialog box without saving the changes To perform an arithmetic operation on a variable 1 nap Click on the Value 1 list box and select one of the two variables values e g V_QUAN Click on one of the operation radio buttons X or Click on the Value 2 list box and select the other variable value e g 12 Click m to select the variable to save the result Select the Integer and Decimal formats for the resulting variable ae MCL Designer for Phaser Series User s Guide Branch Group Goto In the Insert A Process dialog box click on Group Branch and then click on Command Goto Click on Wlopenthe Goto dialog box This dialog box enables you to set a goto function o gt 4 40 a jump to another screen a jump to a label enter the label name directly a jump to a specific process exit or return to the main Menu Goto 503 Product amp Oty Figure 4 30 Goto Dialog Box Goto Selects a screen label or process to go to Click to accept the default setting or Enter the appropriate in
136. n Output a file to a serial port with no formatting and no protocol Dump file Syntax FP com filename replace where Com Ignored only one com port available Filename the name of the file range A H Replace N Transmit contents of the file as is Y All variables ex 82A0 are replaced with the contents of the referenced variable Affected System Variables amp 99 0 if no error occurs or 1 in case of error Notes 1 The FP command makes use of the existing host interface software to communicate a file with a host using either serial or Synapse communications The file will be transferred according to the file type Direct file files with defined record structures will be transferred one record at a time If a record is too big to be transmitted by the installed host the operatio fails therefore it is incumbent on the designer to create a record structure which can be handled by the intended host interface Sequential files files with no defined record structures will be transferred in packets which are sized to the capabilities of the host interface In either case the global communication parameters including data formatting for appending CR LF to the data will be applied 7 26 MCL Code Reference Guide 2 The position of the file pointer after an FP command is indeterminable so an FS command should be used to reposition the file at a known position prior to any s
137. n Arithmetic eXtended VX Function Executes arithmetic operation on number1 and number2 and stores the result in a variable with a specified numeric format see VF N command Syntax VX type variable number1 number sign zero int dec where Variable the name of the receiving variable Numberl1 the first operand Number2 the second operand Type the operation to perform to add to subtract to multiply to divide to compute Modulo Sign add sign to the number S add or before number B add space or before number N no sign Zero fill the number with a specified character Z fill with 0 before number B fill with space before number N remove all 0 and space before number Int number of digits of integer part Dec number of digits of decimal part 7 92 MCL Code Reference Guide Affected System Variables amp 99 0 if no error occurs amp 98 the sign of the variable amp 97 remainder of divide operation amp 96 the sign of the remainder Notes 1 Ifthe size of the decimal part is set to 0 the decimal point will be omitted 2 Ifthe size of the integer part is set to zero the first character of the result will be a decimal point 3 If both int and dec are set to 0 a syntax error Error 4 will be declared Examples VX A1 123747 7489 1 SIBI916 result A1 123748 74
138. n file A ee MCL Designer for Phaser Series User s Guide F File Erase delete file FE Function Erases a file Syntax FE filename where Filename the name of the selected file range A H Affected System Variables amp 99 0 if no error occurs or 1 in case of error Notes 1 After a file erase command the file cannot be recovered 2 A file is erased by replacing its FAT entry with all zeros 0 3 If filename is unknown System Error 2 is displayed Examples FEIA Erases file A 7 22 File checK FK Function Checks if a file is present and returns its size Syntax FK filename where Filename file to be checked range A H Affected System Variables MCL Code Reference Guide amp 99 0 if no error occurs or 1 in case of error amp 97 file size free format Example FKIA Checks if file A exists ee MCL Designer for Phaser Series User s Guide File Open FO Function Opens a file and defines the structure of the data Syntax FO filename keys fieldlength1 fieldlength 2 fieldlength n where Filename the name of the file range A H Keys the number of key fields in the record range 0 9 if nokey enter 0 Fieldlength 1 the length of the first field range 0 255 Fieldlength n the length of the last field range 1 255 Up to 20 fields may be declared Af
139. n page 1 8 The Look up file with sorting on field 1 or field 1 2 is used for a fast read only search operation The Capture file sorted or non sorted is used to store input data and usually consists of small files lt 1000 records A search function in a sorted file is faster but a write function is slower A write function in a non sorted file is faster but a search function is slower Note A look up file defined as sorted must be sorted on the host prior to being sent to the scanner ne MCL Designer for Phaser Series User s Guide 1 Click jJopenthe File View dialog box File View lt A gt INVENTRY DAT Lx o dalla Y 2 Figure 4 69 File View Dialog Box This window shows the contents of the file on the hard disk In this case Field 1 Field 2 and Field 3 are the 3 field names of the records and the numbers i parenthesis are the lengths Table 4 5 Button Descriptions Button Name Description 9 Add Adds a new record Cut Deletes a record Copy Copies a record Paste Pastes a copied record ES Duplicate Duplicates a selected record Sort Sorts the records A 90 Designing Programs Click 4 to accept the default setting or Enter the appropriate information to change the values and click to apply the changes Click Xfclose the dialog box without saving the changes ae MCL Designer for Phaser Series User s Guide Workin
140. named label as defined in an LB command line Affected System Variables None Note The scanner displays System Error 3 if the label does not exist Examples SK 1 Jumps forward one line SK 1 5 Jumps backward 5 lines SK MAIN Jumps to the MAIN routine SK 127 Jumps to line 127 7 72 MCL Code Reference Guide Serial Output SO P360 P460 Memory Scanner Function Sends a string of characters to the serial communication port Syntax SO descriptor text where Descriptor descriptor string for the barcode to be transmitted see command Input eXtended IX on page 7 45 fora discussion of the barcode descriptor Use default barcode descriptor data transmits as Code 39 T User default barcode descriptor and transparent mode keycat keycode values are ignored see notes below Other Data transmitted using barcode descriptor provided Value provided should be the contents of system variable 91 after the associated data was scanned Text the string of characters to send Affected System Variables amp 99 0 if no error 1 if transmission fails handshaking failure Notes 1 The text to be sent may include xyyy embedded within it This is interpreted as KEYCAT x KEYCODE yyy used to insert special characters into the data stream 2 Ifthe text to be transmitted represents a single barcode then the descriptor shoul be the descriptor which was
141. ne character per symbology char 1 UPC A leftmost character char 2 UPC EO char 3 UPC El char 4 EAN13 char 5 EAN 8 char 6 Standard 2 5 char 7 Interleave 2 5 char 8 Code 39 char 9 CODABAR char 10 Code 128 char 11 Code 93 char 12 Code 11 char 13 MSI char 14 Code 49 char 15 PDF417 char 16 EAN128 rightmost character KZZZZZKZKKZKK ZK 24 0070137013 Scan Options Control Variable which controls the format of data as transmitted from the default application Note that unless the user specifically writes code to utilize this variable the scan options control affects ONLYthe default application The format of this variable is WXYYYYZZZZ where w is the enable code for data prefix 0 is disabled 1 is enabled x is the enable code for data suffix 0 is disabled 1 is enabled yyyy is the keycat keycode of the data prefix ZZZZ is the keycat keycode of the data suffix For example 0170137013 Specifies that data will be transmitted with a suffix of CR LF as specified by keycat keycode 7013 Read Only variable 7 99 ee MCL Designer for Phaser Series User s Guide Table 7 6 System Setup Variables Continued Variable Default Value Description 25 1 Keyboard Click 0 Off 1 On 27 Display Contrast 0 Least Contrast lightest 7 Most Contrast darkest 28 512 System Memory size
142. ne how the file is organized as the file is sorted following these keys 9 Keyed files are read only The scanner is not able to write or update records ina sorted manner The files MUST be sorted according to the defined keys prior to downloading to the scanner 10 The maximum record size is 255 characters with a maximum of 20 fields Examples FOIA 2161412018 Opens a file with name A The file consists of records with 4 fields with field lengths of 6 4 20 and 8 characters respectively The two first fields 6 and 4 characters are defined as key fields The file is created and maintained in ascending order on the two access keys The primary sort is on the 1st access key and the secondary sort is on the 2nd access key View of the file 000001 1234 ABCDEFGHIJKLMNOPQRST 00020 17 Rip 000001 1235 UVWXYZABCDEFGHIJKLMN 12000 15 Rip 000074 7012 HELLO WORLD 00000 00 SRi p FOIAI114120 Opens a file with name A The file consists of records with 2 fields with field lengths of 4 and 20 characters respectively The first field 4 characters is defined as a key field View of the file 0001 BARBARA HENDRICKX Rii 0001 THOMAS EDISON Cha 1205 WOLFGANG AMADEUS MZTC f FOIDIOIO Open a file with name D with no structure View of the file BARBARA HENDRICKX R THOMAS EDISON WOLFGANG AMADEUS MZT 8 p 7 25 eee MCL Designer for Phaser Series User s Guide F File Print FP Functio
143. ner Serial Output dialog box This dialog box enables you to select a variable to send through the serial port to a scanner output device Scanner Serial Output Figure 4 56 Scanner Serial Output Dialog Box 4 74 Designing Programs Add Barcode Sets the default or specific descriptor to be added to the Descriptor barcode Click on the list box to select a descriptor or enter a value in the list box Data Variable to Selects the variable or data to send Click on the list box to Send select a variable or enter a value in the list box Add Key Code Sets the key code to be sent Click on the list box to select a code or enter a value in the list box If Communication Selects the action to perform or screen to go to if an error Error Goto occurs Click 4 to accept the default setting or Enter the appropriate information to change the values and click to apply the changes e Click close the dialog box without saving the changes Receive Data In the Insert A Process dialog box click on Group Serial Comm and then click on Command Receive Data Click on jopenthe Serial Input dialog box This dialog box enables you to receive data from the auxiliary port when specific characters are received Serial Input x 2 x Start Character Stop Character None C ETX CICR Other L Other Result Variable PR ICE 222 Time out Clear key Seconds 30 Goto Continue y Fig
144. ng Message Clear Screen MCL Code Comment ae MCL Designer for Phaser Series User s Guide To insert a process click to edit a process line or click QJ to insert a new process line The Insert A Process dialog box appears Insert a Process x 2 Group Command variable ssign Branch Combine Files Format MCL Link Comm Substring Serial Comm Extract Other Length Figure 4 22 Insert Process Dialog Box Click on a Group in the Group list The Command list then displays the commands for the selected group Double click on a command or click 4 to insert the process Variable Group Note The resulting variable can be one of the input variables for the following examples Assign Variable In the Insert A Process dialog box click on Grou Variable and then on Command Assign Click on the Wjopenthe Variable Assig dialog box This dialog box enables you to assig a value to a variable UAE 100 y Value Result Variable Name Figure 4 23 Variable Assign Dialog Box 4 30 Designing Programs Value Enter the value to assign to a variable Result Variable Name Selects the variable that the value is assigned to Click o the ma to open the Variable dialog box to create a new variable Refer to Working with Variables on page 4 92 for information on variables Click 4 to accept the default setting or Enter the appropriate information to change
145. ng the Designed Project Testing and SIMI is AAA AAA owned rote Sel ee ase dolida O ee i a ee ee ai bse baad perirat ET eae re es Bar Code ingut PANA E EELEE TET OT SE ISET AE A OE T 2 Variable Liste 44k EPA eee eee eee eee ee ee ee ee ee ee 5 4 Pile VISNER 205 ga eeG AAA APRA OSE EEE GUNES LODE NESE ge PO MMC ode Disthit j o a00ce5cederks nodes ed eoanended dace eer ewheen ew ehed in 5 5 Chapter 6 Downloading A Project Downloading to a Scanner 4 isc eke eas Kine ees ee eee ia 6 1 aces 7 dada Reference Guide Over eat he MCIACAE AT ONN ES AEN ENOTA ESATA pa ee en eee E as Fase east along ERE KEE Lada il siii 7 3 Using Variables cora ri a r ns bid PETE veer Fro Files and Records ie AR RAR RMA DERES UU aaah AAA eee RSCG Shs oes bk da ae ae a a a PEETI EEEE Ro beReee es 7 5 Serine OF The Piles arar E sica id E EEEE EEE 7 6 MCL Comm ssri tiree baad naar EENS E E E EE E EEE E E TO Backlight A i binbin peepi EEPE EEEE EEEE EE TETTE E 7 10 Beep BPs ca os PAE eins Aer UR Oe ihe eo a el ey Seg Sle SU kas Sek We ins ell Sheet E wae Fld Co ee as A A AREE EETAS EE IE E 7 15 Co Pute ConVert CP CVT EEE E INTOS ieee peer FINE ANAIE so be Display Elea iDO 4 arar e AA A sus 7 19 Display Message DM pi o bd cda Pell File Delete delete second I E D i se 7 21 Pile Erase ieee HE Piles arrabal PEE ee cnr eee A dace deka eid bane degen Lean aku 7723 File ine hd CA dai da deis odiados Sortit REE ET 7 2
146. o high medium or low or to a keyboard click sound when data is entered Click on the appropriate radio button to change the setting Sets the amount of time that the scanner is not in use before the scanner enters the sleep mode Use the arrow buttons to select the time in seconds MCL Designer for Phaser Series User s Guide 9 Click to accept the default setting or Enter the appropriate information to change the values and click to apply the changes Click close the dialog box without saving the changes Memory Mapping To set up the data file memory allocation click on the Memory button on the Phaser Setup dialog box Figure 1 2 The Memory Mapping dialog box appears Memory Mapping Im Cag AZ e a oT amp Figure l 4 Memory Mapping Dialog Box 1 8 Getting Started Memory Size Sets the amount of memory the scanner is configured with Click the appropriate radio button to change the setting Data File Memory Allocation Size KB A H Sets the amount of memory to be allocated to each data file Available Memory Displays the total memory available Allocated Memory Displays the total amount of memory allocated to the data files Click 4 to accept the default setting or Enter the appropriate information to change the values and click to apply the changes Click Xfclose the dialog box without saving the changes Note As a general rule allocate as much room as poss
147. o not transmit Do not transmit 1 Transmit Convert I 2of 5 to EAN 13 0x52 0 Disable Disable 1 Enable Codabar Codabar 0x07 0 Disable Disable 1 Enable Codabar Length 1 0x18 Any length len1 len2 0 5 Codabar Length 2 0x19 Range of lengths len2 gt len1 55 Discrete Lengths len2 lt len1 CLSI 0x36 0 Disable Disable 1 Enable Notis 0x37 0 Disable Disable 1 Enable Code 128 Code 128 0x08 0 Disable Enable 1 Enable EAN 128 Ox0E 0 Disable Enable 1 Enable Code 93 Code 93 0x09 0 Disable Disable 1 Enable Code 93 Length 1 Ox1A Any length len1 len2 0 4 Code 93 Length 2 0x1B Range of lengths len2 gt len1 55 Discrete Lengths len2 lt len1 7 106 Table 7 7 PY Parameter Numbers Continued MCL Code Reference Guide Parameter Parameter Options Default Value Number Code 11 Code 11 0x0A 0 Disable Disable 1 Enable Code 11 Length 1 0x1C Any length len1 len2 0 4 Code 11 Length 2 0x1 Range of lengths len2 gt len1 55 Discrete Lengths len2 lt len1 Verify Code 11 Check Digit 0x34 0 Disable Disable 1 Enable Transmit Code 11 Check Digit 0x2F 0 Do not transmit Do not transmit 1 Transmit MSI MSI Ox0B 0 Disable Disable 1 Enable MSI Length 1 0x1E Any length len1 len2 0 1 MSI Length 2 Ox1F Range of lengths len2 gt len1 55 Discrete Lengths len2 lt len1 MSI Check Digits 0x32 0 One check digit One check digit 1 Two check di
148. o print a file NE z x Print File File a INVENTRY IV Replace Variables If Error Goto Continue X Figure 4 58 Print File Dialog Box Print File File Selects the file to print Replace Variables Replaces all the variable codes found in file with the actual values of these variables If Error Goto Selects the action to perform or the screen to go to if an error occurs Note Click Wigo to the Data File Window For more information refer to Working With Files on page 4 87 Click 4 to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click close the dialog box without saving the changes ae MCL Designer for Phaser Series User s Guide Others Group Pause In the Insert A Process dialog box click on Group Other and then click on Command Pause Click on Wjopenthe Pause dialog box This dialog box enables you to add a pause interval Pause Seconds 1 Figure 4 59 Pause Dialog Box Seconds Sets the pause interval Use the up and down arrow keys to select the pause interval ShortCut Delay Sets the shortcut delay interval Click on the check box to enable shortcut delay Click 4 to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click Xfclose the dialog box without saving the changes 4 78
149. of placing text and variables on the screen and setting up scanner keys to activate stored programs Adding Text to the Menu To place text on the menu screen 1 Inthe MCL Designer window click on the Main tab The Main tab window appears 3 1 MCL Designer for Phaser Series User s Guide MCL Designer for Phaser pto ajja Se ela Figure 3 1 MCL Designer Main Tab 2 Click on the Main Program button The Program Designer SAMPLE MAIN screen appears i Program Designer SAMPLE 7 MAIN ex Figure 3 2 Program Designer Window SAMPLE MAIN 3 2 Designing a Main Menu 3 Click ge to add text The Display Text dialog box appears x Display text MAIN MENU 9 Normal C Reverse IV Display first After Display IV Beep fi Short High Beep gt IV Pause 1 Seconds IV Enter to continue Figure 3 3 DisplayText Dialog Box 4 Inthe Display Text field type in some text e g Main Menu 5 Click on the Normal radio button if you want black text on a white screen or on the Reverse radio button if you want white text on a black screen For this example click on Normal Note To add spaces in reverse mode use the underscore character Example _Main Menu_ 6 Click on the desired check boxes to select beep options Click to accept the information 8 A cursor with pages attached appears on the screen Position the cursor in the extreme left side o
150. on Duplicate Field Duplicates a field on the screen Corresponds to the Duplicate item in the Edit menu Undo Undoes the last action Corresponds to the Undo item in the Edit menu Redo Redoes an undone action Corresponds to the Repeat item in the Edit menu Duplicate Screen Copies a screen of the program to the same or another program Insert Inserts a new screen Move Moves a screen to another location Delete Deletes a screen Variable List Displays a list with all the variables in the project ls e la 18 El lA lA lA A E View Displays a general view of all the screens Simulate Simulates the project design Accept Accepts the entered information Help Opens the On Line Help file Cancel Cancels the current operation 4 3 ae MCL Designer for Phaser Series User s Guide Table 4 1 Button Descriptions Continued Button Name Description Notes Click this button to type notes about the screens Refer toScreen 333 Description on page 4 5 Display Text Click this button to enter text Display Variable Click this button to enter a variable like date time Input Keyboard Click this button to enter a keyboard variable Input Barcode Click this button to enter a barcode variable Choice Menu Click this button to edit menu list options Choice Input Click this button to edit input list options Process In C
151. on of this variable is required 3 Ifso choose the position of the characters to extract using the From and To counter e g 1 to 6 4 Repeat steps 1 through 3 for the next variable e g V_LOCAT 5 Do not select Extract check box if all of the variable is to be used Click m to select the variable that contains the combined variables 4 32 Format Designing Programs In the Insert A Process dialog box click on Group Variable and then on Command Format Click on the to open the Variable Format dialog box This dialog box enables you to format a variable with a smaller length than the required length o Mal Input Variable v_coDE X Length Fill with On the Zero Left ior a C Blank Right Result Variable Figure 4 25 Variable Format Dialog Box Input Variable Length Fill With On the Result Variable Selects the input variable to format Selects the new length of the variable Sets the open spaces between the required length and the variable length Click on the appropriate radio button to set the fill type Sets the side of the variable that the fill characters will go on Click on the appropriate radio button to select the side Selects the variable that the value is assigned to Click on E to open the Variable dialog box to create a new variable or select an existing variable Refer to Working with Variables on page 4 92 for information on variables Click
152. on parameter 7 64 number and value Miscellaneous BP Beep Emits a beep tone during a user defined time 7 11 interval WT Wait Suspends program execution for a pre defined 7 94 delay time Compute CP CRC ComPute CRC Compute various CRCs of the given string as a 5 7 13 Commands digit integer from 00000 to 65535 CP XOR ComPute XOR Compute XOR checksum of given string as a five 7 15 digit integer CP CVT ComPute This function provides useful conversions 7 16 ConVerT ee MCL Designer for Phaser Series User s Guide S Backlight BL Function Controls the backlight on the scanner screen Syntax BL parameter where Parameter backlight setting ON backlight ON OFF backlight OFF time backlight on for specified number of seconds 1 to 255 seconds Affected System Variables None Note This command is reserved for future use the present Phaser design does not incorporate a backlight Examples BLIS Sets backlight ON for 5 seconds BLION Sets backlight ON BL OFF Sets backlight OFF Beep BP Function Emits a specified beep sequence Syntax BP index where Index index into the predefined table Affected System Variables None Parameters index Index into the predefined table Notes The beep table is defined as follows Table 7 4 Beep Sequen ce MCL Code Reference Guide Beep Description Beep Index 1 Short High Beep 2 Short
153. onvert to UPC A Converts UPC E and or UPC E1 to UPC A format Click the appropriate check box to convert to UPC A format EAN UPC Setting EAN 8 Zero Sets EAN 8 Zero Extend option If this parameter is Extend enabled five leading zeros are added to decoded EAN 8 symbols to make them compatible in format to EAN 13 symbols Click on the check box to enable EAN 8 Zer Extend EAN 8 to EAN 13 Enables EAN 8 to EAN 13 option Click on the check Type box to enable EAN 8 to EAN 13 option Enable Bookland Enables Bookland EAN option Click on the check box to EAN enable Bookland EAN UPC Security Sets the UPC security level 0 3 Supplementals Sets whether the UPC EAN bar codes are decoded with or without supplemental characters If Ignore Supp is selected the UPC EAN is decoded and the supplemental characters ignored If Decode Supp only is selected UPC EAN symbols without supplemental characters are not decoded An autodiscriminate Auto d option is also available If this option is selected choose an appropriate Redundancy value A value of 5 or more is recommended Redundancy Sets Redundancy value 2 20 This option adjusts the number of times a symbol without supplementals is decoded before transmission Click 8 to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes Click Xfclose the dialog box without saving the changes MCL Designer for Phaser Series User
154. orts Changing the Printer Setup To change the printer setup 1 Choose Print Setu from the File menu in the MCL Designer window to display the standard Windows printer setup window Change the settings 3 Click jaccept the changes Printing a Screen To print the design 1 Choose Print from the File menu 2 The current screen is sent to a printer connected to your computer Printing Options To specify the parts of a project to print click 3 to open the Print dialog box Print project SAMPLE1 x v x Project Info Print To Prol n Screen Print IV Phaser Setup Printer Pier l Programs Info Data File Info IV Programs IV Data files All All One INVENT One INVENTRY z IV Screen Pictures IV Program Details IV File Structure IV Variables List File Content IV MCL Code Figure 4 66 Print Dialog Box 4 84 Project Info Project Description Phaser Setup Programs Info Programs Screen Pictures Program Details Variables List MCL Code Print To Data Files Info Data Files File Structure File Content Designing Programs Sets the print report to print the current project Enables the print report to contain a description of the project Enables the print report to contain the Phaser setup information Sets the print report to print program information Enables all of the programs or one of the programs to be in
155. p F Dw and Star When the key is pressed the selected action occurs Function Keys Assigns another function to the scanner s function keys When the key is pressed the selected action occurs Click R to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes Click Xf close the dialog box without saving the changes 4 12 Designing Programs Barcode Input Dialog Box The Barcode Input dialog box enables you to insert a barcode variable enter data from a scanner There are four tab windows Input Tab Advanced Tab Hot Keys Tab Branch Tab InputTab The Input tab Figure 4 9 enables you to insert a bar code variable enter the data into a variable using the keyboard Barcode Input oder Figure 4 9 Barcode Input Input Tab 4 13 S 4 14 Input Variable Name Select Entry Type s Input Lengt Option Numeric Only Validation Auto Enter Enter Key MA MCL Designer for Phaser Series User s Guide Selects the variable that the input barcode data gets stored into Click o mito open the Variable dialog box to create a new variable or select an existing variable Refer to Working with Variables on page 4 92 for information on variables Selects one or more bar code symbologies TheKeyboar check box allows the operator the opportunity to enter bar code data on the keyboard Sets the length of the bar cod
156. p 98 Received Command amp 99 lt Q variable Received Data After TIMEOUT if one has been defined in the previous PI command amp 97 TO amp 98 2 amp 99 sJ variable pa 7 52 MCL Code Reference Guide After KEY defined in previous PI command is pressed amp 97 KB amp 98 Name of the pressed key see PI command for key names amp 99 0 variable ERA After an error on the P370 P470 RF scanner X97 SDP amp 98 Error number amp 99 zg variable SR Notes 1 If source is equal to command is accepted from any source 2 If command is equal to any command received will be accepted 3 Source and destination address are represented in either decimal digits or hex digits depending on the setting of the MCL Net Hex Addressing parameter System Variable 29 4 Commands supported via the MCL Net protocol are defined in the MCL Link User s Guide part number 70 33346 XX The following commands documented in the MCL Link User s Guide are NOT supported by the P460 FA File Append FC File Copy FD File Delete FN File Rename 5 Unsupported commands commands not listed in the MCL Link User s Guide can be input if specified explicitly in the command field This allows extensions to the MCL Net command language without upgrades to the runtime code ae
157. pen the Variable dialog box to create a new variable or select an existing variable Refer to Working with Variables on page 4 92 for information on variables 4 34 Designing Programs Click to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click close the dialog box without saving the changes To remove characters from a variable 1 Click on the Input Variable list box to select the variable to remove characters from e g V_BARC Select From position and the To position e g From position 1 to position 10 3 Click ma to select the variable to save the string value Extract In the Insert A Proces dialog box click on Grou Variable and then on Command Extract Click on Wjopenthe Variable Extract dialog box This dialog box enables you to extract a specified part out of a variable JE Input Variable V BARC Extract Fedt 1 Separator Blank v Result Variable V RESULT Figure 4 27 Variable Extract Window ae MCL Designer for Phaser Series User s Guide S Input Variable Selects the input variable to extract a field from Extract Selects the field number and the separator of the variable Use the up and down arrow keys to select the field number Result Variable Selects the variable that the value is assigned to Click on the E to open the Variable dialog box to select a variable
158. r execution Al HELLO VJIR 1A1 amp A0161 Right justifies variable AO for a length of 6 characters and fill with Example Before execution AO 100 After execution Al 100 7 85 eee MCL Designer for Phaser Series User s Guide Variable Length VL Function Computes the size of a text string and stores it in a variable Syntax VL variable text where Variable the variable receiving the computed length Text the text to evaluate Affected System Variables None Notes None Examples VLIA1 HELLO_WORLD Computes the size of HELLO_WORLD and stores it in variable A1 after execution Al 11 VL A1 amp B0 Computes the size of the text in variable BO and stores the result in variable A1 Example Before execution BO GOODBYE After execution Al 7 7 86 MCL Code Reference Guide Variable Move VM Function Replaces the current contents of a variable with text Syntax VM variable text where Variable the name of the receiving variable Text the text to store in variable Affected System Variables amp 99 0 if no error occurs 1 otherwise Examples VM A1 HELLO Stores the word HELLO in variable A1 After execution Al HELLO VM1A0 amp A1 WORLD Concatenates the contents of variable A1 with the word WORLD and stores the result in variable AO Example Before exec
159. r for Phaser Series User s Guide gt Code 128 Setting Sets the options for Code 128 bar codes Click the appropriate check box to change the settings CODABAR Settings Sets the options for Codabar bar codes When CLSI is enabled it strips the start and stop characters and insert a space after the first fifth and tenth characters of a 14 character Codabar symbol When Notis is enabled it strips the start and stop characters from decoded Codabar symbol Click the appropriate check box to change the settings Code 11 Settings Sets the options for Code 11 bar codes Click the appropriate check box to change the settings Interleaved 2 of Sets the options for Interleaved 2 of 5 bar codes Click the settings appropriate check box to change the settings MSI Settings Sets the options for MSI bar codes Click the appropriate check box to change the settings Click to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click close the dialog box without saving the changes Phaser RS232 Setup To set up the RS232 communication settings click on the RS232 button in the Phaser Setup dialog box Figure 1 2 The Phaser RS232 Setup dialog box will appear Speed Parity None Even Odd Mark Space wv 2 Speed a600 X Parity None y Data bits C 7bits 8 bits Stop bits ibt C 2bits Software H fxON xOFF Hardware H
160. r to Chapter 4 Designing Programs Send Sends the project to the scanner Refer to Chapter 6 Downloading A Project Check Accepts entered information or steps Help Opens the On Line Help file Cancel Terminates the current operation or closes a dialog box or window EFENE 2 Choose New from the File menu or click Di 3 Inthe Project Name field Enter a project name Click A to accept the project name Getting Started Scanner Setup To set up the scanner information click on sew in the Project tab The Phaser Setup dialog box appears Phaser Setup Figure 2 Phaser Setup P360 P460 Memory Scanner The Phaser Setup dialog box allows you to configure gt the Phaser model the version of firmware in the Phaser system settings the mapping of the data file memory the scanner the RS232 settings 1 5 ae MCL Designer for Phaser Series User s Guide gt The Phaser Setup dialog box contains fields to change the settings of the scanner Model Sets the Phaser model for which you are designing the project Click on the list box to select the available model Firmware Sets the firmware version number Click on the list box to select the version number System Sets the system settings Click on the System button to open the Phaser System Setup dialog box Memory P360 P460 Sets the amount of memory the scanner is configured Memory Scanner with Click on
161. rams To start the Program Designer click on the Programs tab in the MCL Designer window MCL Designer for Phaser MEE File Edit Tools Option Help ala miol al mel HEoet sMan g Programs Fies Programs Figure 4 1 MCL Designer Window Programs Tab 4 1 ae MCL Designer for Phaser Series User s Guide Click on K next to one of the programs TheProgram Designer window opens Figure 4 2 Table 4 1 lists the buttons available and a description of each Program Designer QTOUR 7 SCAN A ES File Edit Help DOS i SCAN BARCODE rer Display j v Input 2j Choice a Process 5j 3 Figure 4 2 Program Designer Window Table 4 1 Button Description s Button Name Description New Creates a new program Corresponds to the New item in the File E menu aq Open Opens an existing program Corresponds to the Open item in the File menu Save Saves a program Corresponds to the Save item in the File menu Cut Cuts a field text variable from the screen Corresponds to the Cut item in the Edit menu Copy Copies a field on a screen Corresponds to the Copy item in the Edit menu Paste Pastes what was cut or copied onto the screen Corresponds to the Paste item in the Edit menu Designing Programs Table 4 1 Button Descriptions Continued Name Descripti
162. rd process to create a new record with the correct data Review File In the Insert A Process dialog box click on Group Files and then click on Command Review a File Click on to open the File Review dialog box This dialog box enables you to view a file on the screen browse records using the up and down keys 9 v 2 x File Name Dptions Fields selection Field Name Length View Field Title 1 Field1 10 Mw fFedt Figure 4 42 File Review Dialog Box 4 54 File Name Options Fields Selection Field Name Length View Field Title Designing Programs Selects the file to delete a record from Opens the File Review 2 dialog box Shows the fields in the selected file Shows the length of the field in the selected file Selects if the field displays on the screen Sets the title for the field when it appears on the screen Click 4 to accept the default setting or Enter the appropriate information to change the values and click to apply the changes e Click close the dialog box without saving the changes To review a file on the screen Click on the File Name list box and select the file to review e g lt A gt Inventory Click in the appropriate View check box to select the fields to review 3 Inthe Field Title text box enter a title for that field The default value is Field X where X is the field number
163. reen Click on 4 openthe Clear Screen dialog box This dialog box enables you to clear the whole screen or just selected lines of the screen v 2 Line s to Clear M Line 1 Iv Line 2 Figure 4 63 Clear Screen Dialog Box Line s To Clear Line 1 Sets the specific line to clear Line 2 Click to accept the default setting or Enter the appropriate information to change the values and click to apply the changes e Click close the dialog box without saving the changes 4 82 Designing Programs MCL Code In the Insert A Process dialog box click on Group Other and then click on Command MCL Code Click on to open the MCL Code dialog box This dialog box enables you to insert a process line directly coded in MCL code Refer to Chapter 7 for more information on MCL Code MCL Code x z 7 2 x Enter the MCL Code command lines to add in your process Refer to the MCL_Code manual for the syntax of commands Figure 4 64 MCL Code Dialog Box Note Click ko to the Variables window For more information refer to Global View of Variables on page 4 93 Comment In the Insert A Process dialog box click on Grou Other and then click on Command Comment Click on open the Comment dialog box This dialog box enables you to insert a comment Lv 2 Comment Figure 4 65 Comment Dialog Box 4 83 ae MCL Designer for Phaser Series User s Guide Printing Rep
164. riable where the input data will be stored Click on m to open the Variable dialog box to create a new variable or select an existing variable Refer to Working with Variables on page 4 92 for information on variables Sets the keyboard input variable type Click on the appropriate radio button to set the variable type The Secret radio button indicates a secret code like a password Sets a default value that always appears in the variable field This is a variable that is used regularly 4 9 S 4 10 Input Lengt Field Validation End of field Enter Key Next Scan NA MCL Designer for Phaser Series User s Guide Sets the length of the keyboard input The length can be either an interval or a fixed lengt minimum maximum Use the up and down arrows to select the lengths Assigns an action to take place after data input ha occurred Click on the appropriate radio button to select the action When the number of characters entered equals the maximum length the program goes to the next step When the operator presses the Enter key the program goes to the next step Each barcode input is scanned without having to press the Enter key Click 4 to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes Click Xfclose the dialog box without saving the changes Designing Programs Advanced Tab The Advanced tab contains fields that set extr
165. rmat Sets the number of characters in the variable name to be displayed on the Program screen The maximum is 40 Sets a beep to sound on the scanner after the text displays Click on the appropriate radio button to select a short medium or long beep or combination of beeps and the number of beeps Click i to test the beep options Click the Pause check box to insert a pause after the text displays and select the number of seconds of the pause Click the Enter to Continue check box to make the operator press the Enter key before continuing Enter the appropriate information to change the values and click to accept the information A cursor with pages attached appears on the screen Position the curso to the desired location on the screen and click the left mouse button to place the text on the screen e Click Xf close the dialog box without saving the changes Keyboard Input The Keyboard Input dialog box enables you to insert a keyboard variable enter the data into a variable using the keyboard Click EA to open the Keyboard Input dialog box The Keyboard Input dialog box contains Input tab Advanced tab 4 Hot Keys tab 4 8 InputTab Designing Programs The Input tab Figure 4 6 enables you to insert a keyboard variable enter the data variable using the keyboard Keyboard Input Figure 4 6 Keyboard Input Input Tab Input Variable Name Input Type Default value Enter or select a va
166. rs coming from the serial port 7 69 Communication 5O Serial Output P360 Sends characters to the serial port 7 73 P460 Memory Scanner SO Serial Output P370 Sends characters to the serial port 7 75 P470 RF Scanner Labels and LB LaBel definition Assigns a label to the current program address 7 48 Branch SK SKip Jumps to a label 7 72 IF Condit Branch Compares data and jumps to labels 7 39 RM Run MCL Program Calls a program and begins executing that 7 67 program SR Skip and Return Jumps to a label and returns after QX 1 7 77 QX Quit or eXit Terminates program execution 7 66 Network NI Network Input Waits for a command from the network and stores 7 52 Protocol Support it in a variable NO Network Output Sends a frame to the host via RS 232 using MCL 7 55 P360 P460 Memory Link protocol Scanner NO Network Output Sends a frame to the host via RS 232 using MCL 7 57 P370 P470 RF Scanner Link protocol NS MCL Link Start Calls MCL Link communication program 7 59 7 8 MCL Code Reference Guide Table 7 3 Logical Group Command and Description Continued Logical group Command Description Page Parameters PI Parameterize Input Sets the input time out value and exit keys for all 7 60 subsequent input operations PT Parameterize Time Sets the date and time 7 62 PX Change Syst Var Changes System variable 7 63 PY Change Parameter Changes scanner parameter based
167. s and click to apply the changes e Click close the dialog box without saving the changes To determine the length of a variable 1 Click on the Variable to Measure list box to select the variable to count e g V_PROD 2 Click ma to select the variable to save the length value ae MCL Designer for Phaser Series User s Guide Arithmetic In the Insert A Process dialog box click on Grou Variable and then click on Command Arithmetic Click on Wjopenthe Variable Arithmetic dialog box This dialog box enable you to perform the following operations on a variable o gt 4 38 add subtract multiply divide percent Figure 4 29 Variable Arithmetic Dialog Box Value 1 X Value 2 Result Variable Integer Variable Arithmetic v x Value 1 v_coDe y JEAN Value 2 fis y Result War v_aty re Integer Decimals Fill with Zeres 4 E Blanks OutPut 8 0009 99 IV Add sign Selects the first variable to perform the operation Sets the operation to perform on Value 1 variable Selects the second variable to perform the operation Selects the variable that the value is assigned to Click ong to open the Variable dialog box to create a new variable or select an existing variable Refer to Working with Variables on page 4 92 for information on variables Sets the integer format for the resulting variable Designing Progra
168. s check box to maintain the previous links for the next screen 3 Click move the screen Deleting a Screen To delete a screen choose Erase a screen from the Edit menu or click 41 The Delete dialog box appear 2 X Delete screen 501 Screen 1 y IV Update Screen Links Figure 4 17 Delete Dialog Box 4 24 Designing Programs 1 Click on the Delete Screen list box and select the screen that you want to delete 2 Click the Update Screen Links check box to maintain the previous links for the next screen 3 Click R jdelete the screen Deleting All Screens To delete all screens choose Erase all screens from the Edit menu A Confirm dialog bo appears Program Designer SAMPLE1 SAMPLE N Confirm Delete al fields Figure 4 18 Confirmation Dialog Box Note If you erase all the screens all data will be permanently lost Click Yes to confirm o No to Cancel Quick View of All Screens To display a Quick View of all screens click Ba The Quick View window appears v 2 SCAN BARCODE Screen 2 4 Figure 4 19 Quick View Window Use the arrow button on the bottom of the screen to scroll between screens 4 25 ae MCL Designer for Phaser Series User s Guide Working With Processes A process is a sequence of operations that perform before and or after a screen Figure 4 20 illustrates the process sequence PROCESS IN gt f gt P
169. s the search mode First first record Last last record Next next record Previous previous record Current current record Key If the file is sorted you can set a key to search the record Recor If you know the record number in the file you can search using Key 1 record number Key1 Key2 Selects a variable to search for when Key is selected in the Mode list box Enter a record number whe RecordH is selected in the Mode list box 4 53 ae MCL Designer for Phaser Series User s Guide Click to accept the default setting or Enter the appropriate information to change the values and click to apply the changes e Click close the dialog box without saving the changes To delete a record from a file 1 Click on the File Name list box to select the file that holds the record that needs to be deleted e g lt A gt FILE 2 Click on the Mode list box to select the search mode e g Record V_PROD In order to prevent an excessive number of writes to a single block of flash memory the Phaser does not support record updates in place Modification of information previously written to a record is accomplished by a delete and append operation in the following way Y perform a Files Read a Record process storing to temporary variables any field values that are not being changed perform a Files Delete a Record process to delete the incorrect record perform a Files Write a Reco
170. sables Bi directional Redundancy This Redundancy parameter is only valid when a Linear Security Level has been enabled When this parameter is enabled a bar code must be successfully scanned in both directions forward and reverse before being decoded Beep on Good Decode Enables or disables an audible beep when a good decode is achieved Add Code ID Allows adding a Code ID Symbol or AIM or no Code ID None Click 9 to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes Click Xfclose the dialog box without saving the changes MCL Designer for Phaser Series User s Guide UPC EAN Tab To set up the UPC EAN options click on the UPC EAN tab in the Scanner Setup dialog box Scanner Setup Figure l 6 Scanner Setup Window UPC EAN Tab UPC Setting Transmit Check Sets which UPC bar codes are transmitted with or without Digit check digits Click the appropriate check box to enable check digits with UPC A UPC E and or UPC E1 System Character Sets which UPC bar codes are decoded with or without Preamble system character preamble Click the appropriate check box to enable system character preamble for UPC A UPC E and or UPC E1 Country Code Sets which UPC bar codes are decoded with or without Preamble country code preamble Click the appropriate check box to enable country code preamble for UPC A UPC E and or UPC El Getting Started C
171. se tke AA A AA AAA AA A 4 13 Varna With Pilas A a ARA oa Hae eii 4 19 Placing Fields om Sot criar RA A RRA ARA A AA 4 19 Editing Fields on a SETE 22 06 25 558k ribera Ean 4 20 Moving Fields idas ARA AAN e ARA AA 4 20 Copas Mills oscar ANS 4 21 Workine With O a NARA EA RA RA ORE ARA 4 22 laser Blank SE a AAA 4 22 Copying a OST ss eras dd din Re ei id o DS Rd id ia ri 4 23 La A er een eee ae ee ae ere ee eee te ae eee cre ee eee eee ree 4 24 CHG a SORE i ng re eae dad dd 4 24 Deleting All Screens 4 545044 8644 40 PS oGREEAES OA TREE AR EEORE RE EHT REEDS 4 25 Uniek View al All Seve AA A ac aia 4 25 Working With Prncesses jane kee dS 4S tro OS 4 SEAS EUDE AZINE GE EORR bE RES DEORE EOS 4 26 Adding a PROCESA A a e a 4 28 dl A to sr hot Hise Be artes ea erent PEE Sa A Ak GY Bde ere acted 4 28 Variable GEOL deni cus o Caos AAA eae ed 4 30 Branch A A hace Papo sLaeen cede dew eee ewer es RR ECA ese ee heey 4 40 Piles f ii 4 49 MCL Link Communications GLOBO sx A RARA RRA 4 61 porta Conia CANONS OUP ia A 4 73 A ata See ee koe oe SES ESS oe S OA ae Rea onNe eins 4 78 Pannag Reports echo ate dace tae iia eae eed ale eis ore ware 4 84 Charge the Paster SENP a Ea AA RAR RAR eee ees 4 84 Pricing A OTE nadia bale ai i n 4 84 Price CAT yet a ra E A dad dd A 4 84 Working With Piles daria 4 87 A O ESA AERP RL ALE PELAAESIS AREER 4 87 Working with Varabless AA AR 4 92 Global View Or Varia Dis ciar AE AAA a 4 93 Contents Chapter 5 Simulati
172. t of Exit Command os 5c0000s0000 7 66 R TEA AIRCON rr RAR 4 51 ps A A 4 75 TEVE TE porra A 4 65 Feet e A IA 4 62 tempt HIE Chek uo eeenyaas 4 68 CVO FS Sank eee reir 4 54 Run Program command arsen 7 67 S saving YOUR design carniciarea e 2 20 Scanner SUD Lavar 1 10 HERA SUD A ed 1 5 1 10 sereen description ice n dae ade ane as 4 5 send Ale towed donee herned 4 63 TRE A eens 4 61 sequential files serias irararisrests 7 6 Serial Input command s occicxarins rio 7 69 Serial Output command 7 73 7 75 Servite MEOLA senora ix pet Label ceed A AATRE 4 46 Index 4 Ser up the System aire 1 7 Setting MENU OPHIONS 2 6466 0idwoeeenwces 3 6 setting Up a DEW projeti cocinas 1 3 Ol sam Mek oe ENE Gah REE GODE DEG 7 69 simulating and testing your design 2 20 SOMO dira A e 5 1 Skip and Return command 7 77 SIP command Lc rra rada 7 72 SO P360 P460 Memory Scanner 7 73 SO PS700P470 RF Scanner 03000005 7 75 start EXE program on host 4 69 Starting MCL Designer 1 3 starting MCL Designer 2 6 e swede ons 1 3 String Serial OUTPHE oid anced acdewa ee 4 73 SUBSE sao riera 4 34 symbol support center sss crescisiterrirs ix system setup variables 7 98 System Variables i tacscdxeeeaaaeercas 7 4 T test Of branch riar dress erads rea 4 42 testing and simulating ooomom or 5 1 typographic conventions o oooooo 7 2 U UPCGEAN Tak irene 1 12 User Defin
173. the Memory button to open the Memory Mapping dialog box Scanner Sets the default decode parameters Click on the Scanner button to open the Scanner Setup dialog box RS23 Sets the RS232 settings Click on the RS232 button to open the Phaser RS232 Setup dialog box Y Click to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click Xfclose the dialog box without saving the changes System Setup Getting Started To set up the scanner s system click on the System button The Phaser System Setup dialog box allows you to set up the configuration of the system Figure 1 3 vl 2 Date Format MM DDAYYYY Time Format HH MM SS 12H Beeper Volume X C High Medium C Low I Keyboard Click Decimal Power Save Time 10 Seconds Figure l 3 Phaser System Setup Dialog Box Phaser System Setup dialog box contains fields to change the settings of the system Date Format Time Format Decimal Beeper Volume Power Save Time Sets the format for the date that is used in the scanner Click on the list box to display the available options Sets the format for the time that is used in the scanner Click on the list box to display the available options Sets the decimal number format to either a comma or a period Click the appropriate radio button to change the setting Sets the beeper volume t
174. the Reverse radio button to display the variable in white on a black background Data Sets the type of data to appear Click on the arrow box to select the data type 4 80 Designing Programs Warning Message In the Insert A Process dialog box click on Grou Other and then click on Command Warning Message Click on lopen the Warning Message dialog box This dialog box enables you to insert a 2 line message without using a full screen vle Waming Message IV Beep fi Short High Beep y IF Pause 1 Second s IV Enter to continue Figure 4 62 Warning Message Dialog Box Warning Message Line 1 2 Enter the text that displays as a warning Beep Sets a beep to sound when the warning screen displays Click on the arrow box to select the combination of beeps desired Click W to test the beep option selected Pause Sets a pause to occur when the warning screen display Set Enter to Continue check box to enable to operator t continue after the Enter key is pressed Note The current screen is cleared before displaying the message Click 4 to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click Xfclose the dialog box without saving the changes 4 81 ae MCL Designer for Phaser Series User s Guide Clear Screen In the Insert A Process dialog box click on Group Other and then click on Command Clear Sc
175. the label does not exist Examples SR 1 Jump to sub routine starting one line forward SR 5 Jump to sub routine starting five lines backwards SR SUBR Jump to the SUBR sub routine SR I TEST 2 Jump to sub routine starting at label TEST in MCL program 2 7 77 ae MCL Designer for Phaser Series User s Guide Variable Compare VC Function Compares the content of a variable with a pattern of characters Syntax VC source pattern Skip True Skip False where Source Pattern True False the text to be tested the test returns TRUE if the first characters of Source match Pattern FALSE otherwise If Pattern is longer than Source the test fails A to Z or a to z specific character 0 to 9 specific digit Any alphabetic character Any numeric character ignore test on this character Skip address if comparison is true Skip address if comparison is false Affected System Variables None Notes 1 This command compares all the characters in the variable with a pattern described in the command The variable must match all the characters of the pattern so the variable must have at least as many characters as the pattern 2 When an alphabetic or numeric character is placed in the pattern the variable must perfectly match the letter or number in the pattern Otherwise to test if a character is alphabetic or numeric mask must be used or for a digit
176. the result in Al ae MCL Designer for Phaser Series User s Guide Variable Substring VS Function Extracts the number of characters defined by size from a text string starting at the position defined by begin and stores these extracted characters in a variable Syntax VS variable text begin size where Variable name of the variable receiving the characters Text text string from which the data must be extracted Begin starting position of the string to extract Size number of character to extract Affected System Variables amp 99 0 if no error occurs 1 otherwise Notes 1 Ifthe starting position begin lies outside of text string or if the number of characters to extract size is too large variable will contain an empty string empty string ce erd Use VE command if the variable contains characters 3 Ifthe Size is 0 zero then the string will be extracted from Begin to the end of the Text 7 90 MCL Code Reference Guide Examples VS A1 HELLO_WORLD 715_ Extracts WORLD from the text and store it in Al Beginning position 7 size 5 characters After execution Al WORLD VSI AOI amp A11213 Extracts text from A1 store it in AO Beginning position 2 size 3 characters Example Before execution Al WORLD After execution AO ORL 7 91 eee MCL Designer for Phaser Series User s Guide S Variable operatio
177. the same screen or another screen Using Cut and Paste Using Duplicate Button 1 Select the field to copy 1 Select the field to copy 2 Click Es copy 2 Click pplicate 3 Click rx paste 3 Move the field to the new position 4 Place the text on the screen by dragging the mouse 4 Click on the left mouse button 5 Click on the left mouse button ae MCL Designer for Phaser Series User s Guide Working With Screens Each program in a project can contain up to 32 screens All screens do not have to be used in a program When the program goes to a screen the execution process is as follows execute Process In processes clear screen optional beep optional display screen content cao sf process input fields as they are encountere f execute Process Out processes Screen execution begins in the top left corner and continues line by line until the lower right hand corner is reached TOP DOWN Inserting a Blank Screen To insert a blank screen choose Insert A Blank Screen from the Edit menu or clic HEj to display the Insert dialog box K Y x Insert blank screen before 501 Screen 1 a VV Update Screen Links Figure 4 14 Insert Dialog Box 4 22 Designing Programs Insert Blank Screen Before Selects the screen that a blank screen will go before Click on the list box to select the screen Update Screen Link Maintains th
178. the values and click 4 to apply the changes e Click close the dialog box without saving the changes Combine In the Insert A Process dialog box click on Group Variable and then on Command Combine Click on the 4 to open the Variable Combine dialog box This dialog box enables you to combine all or part of variables into a new variable v 2 x Data Variable Extract From To Add Key Code ara al al E dr 13 53 y us O O E ar iscsi y Result Variable Figure 4 24 Variable Combine Dialog Box ae MCL Designer for Phaser Series User s Guide S Data Variable Enter a data string or select a variable from the list box Extract Selects part of the variable Add Key Code Entera key code or select a key code from the list box Result Variable Selects the variable that the value is assigned to Click on the m to open the Variable dialog box to select a variable Refer to Working with Variables on page 4 92 for information on variables Click to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes e Click Xf close the dialog box without saving the changes To combine variables 1 Click on the Data String list box to select a variable to combine e g V_PROD Note This data string can also be a fixed value entered directly in the field e g 134 Click the Extract check box if only a porti
179. the variable name For DIRECT file read only 3 If filename is unknown System Error 2 is displayed 4 After reading the pointer remains unchanged 7 28 MCL Code Reference Guide 5 Each field is stored in variable 1 variable2 Last variable in command contains all remaining fields If a variable is replaced by the field is not rea 6 Ifa sequential read is attempted on a direct file or a direct read is attempted on a sequential file System Error 2 is displayed Examples FRIAI C1 21F11GO Reads arecord from the current pointer position of file A and stores the contents of field 1 into C1 field 3 into F1 and field 4 into GO field 2 is ignored FR1IA1 301 C1 Reads 30 bytes from the current pointer position of file A into variable C1 File A must be declared as a sequential file 7 29 es MCL Designer for Phaser Series User s Guide File Seek FS Function Positions the file pointer to a specific record or byte or searches a file for a specified pattern or key value Syntax FS filename position pattern OR FS filename position key1val keynval where 7 30 Filename Position Pattern Keynval the file to be positioned range A H the position at which the file pointer is to be set if pattern and keyval are omitted or at which the search begins Values can be F First record L Last record P Previous recor
180. tive in the ML command so all defined hot keys are still available 2 If lt UP gt UP Arrow or lt DW gt Down arrow are used in PI before ML command they will perform the action defined in PI only on lt UP gt on first item and lt DW gt on last item and then only if mode is set to S Otherwise lt UP gt and lt DW gt switch the current selected item in the list Example ML121211118111 1011 Inventory INVEN 2 POS POS 3 Shipping SHIP Define at row 2 column 2 for 18 characters an input list field which will scroll through the following selections starting with menu item 1 1 Inventory 2 POS 3 Shipping If the user hits the UP key when option 1 is displayed the program will take whatever action is currently defined in the PI command for an up key If the user hits the DOWN key when option 1 is displayed option 2 will be displayed The selected label associated with the selection will be jumped to Speedkey processing is disabled eee MCL Designer for Phaser Series User s Guide Network Input NI Function Waits for a command from the network and stores it in a variable Syntax NI source command variable variable variable where source the source unit identification 3 characters usually 099 command the expected command variable the variable receiving the command arguments Affected System Variables Normal Mode amp 97 Source Identifier am
181. to Otherwise Goto Continue X Figure 4 12 Barcode Input Branch Tab S MA MCL Designer for Phaser Series User s Guide Enable Test Enables or disables this test IF Selects a variable or value to test Equal Selects a variable or value to test against the value in thelF list box Goto Selects the action to perform or the screen to go to if the test is true Otherwise Goto Selects the action that occurs if the test is false Click 4 to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes Click close the dialog box without saving the changes Note The values of system variables in addition to user defined variables can be specified using the ampersand amp character plus the name of the system variable to be used These system variables are listed in MCL Code Reference Guid For example system variable 33 power source indicates whether the scanner is operating off battery power value 0 in a cradle value 1 or connected to a host value 2 This variable can thus be used in a Case and Branch to switch automatically between different applications depending on which of these operating modes the scanner is in 4 18 Designing Programs Working With Fields Fields are variables text boxes or lines that are placed on the screen The following paragraphs provide information on how to edit these fields
182. ubsequent accesses 3 The file to be printed must be opened with the FO command prior to printing In order to send formatted data during an upload a loop of SO commands shoul be used instead of FP Note however that if this method is used during daisy chaining the bus arbitration will occur per record not per file upload Example FPIZIAIY Dumps file A to serial port replacing variables 7 27 ee MCL Designer for Phaser Series User s Guide S File Read FR Function Reads the record located at the current pointer position of the file Syntax FR filename length variable where Filename the name of the sequential file range A H Length the number of bytes to read from the current pointer position Variable the variable in which data is stored FR filename variable variable 2 variable n where Filename the name of the DIRECT file range A H Variable 1 the variable in which data for the first field of the record is stored Can be replaced by to skip this field Variable n the variable in which data for the last field of the record is stored Can be replaced by to skip this field Affected System Variables 8199 0 if no error occurs or 1 in case of error Notes 1 The number of variables must be less than or equal to the number of fields contained in the record 2 To ignore a field of a record enter instead of
183. ur Quick Tour takes you through the steps required to design a simple project using the MCL Designer program The steps include gt setting up the project creating a menu creating a small program saving the project simulating the project editing the project design Project Setup Before designing a new project you must first set up the project To set up a project 1 2 3 4 Click on the Project tab in the MCL Designer window Click JER to create a new project In the Project text box enter QTOUR Click to accept the project name 2 1 MCL Designer for Phaser Series User s Guide MCL Designer for Phaser tom Oela Mol sa Figure 2 1 MCL Designer Window ProjectTab 5 Click Notes to add information about the project The Notes window appears Notes QTOUR Y 2 x Quick Tour Figure 2 2 Notes Window 6 In the Author text box type My Name 7 Inthe Notes text box type Quick Tou 8 Click to accept the information 2 2 Quick Tour 9 Inthe MCL Designer window click sep to specify the settings for the scanner 10 Click on the Phaser Model list box to select the scanner type Select P360 P460 Memory Scanner 11 Select the firmware version Select MCL Ver 2 xx Phaser Setup Figure 2 3 Phaser Setup Scree 12 Click 4 to accept the information 2 3 ae MCL Designer for Phaser Series User s Guide S Menu Setup
184. ure 4 57 Serial Input Dialog Box 4 75 4 76 Start Character Stop Char Result Variable Time Out Clear Key ae MCL Designer for Phaser Series User s Guide S Selects the start character Click on the appropriate radio button to select the start character None Do not wait for start character STX Start of Text 02 ASCII Other Enter any character in the text box provided Selects stop character Click on the appropriate radio button to select the stop character Data input will stop when the selecte character is received ETX End of Text CR Carriage Return Other Enter any character in the text box provided Length Ends data input when a selected number of character is reached Selects the variable that the value is assigned to Click on m to open the Variable dialog box to create a new variable or select a existing variable Refer to Working with Variables on page 4 92 for information on variables Selects an action to be performed or a screen to go to if the set time interval seconds is exceeded Click to accept the default setting or Enter the appropriate information to change the values and click 4 to apply the changes Click close the dialog box without saving the changes Designing Programs Print File In the Insert A Process dialog box click on Group Serial Comm and then click on Command Print File Click to open thent File dialog box This dialog box enables you t
185. ution Al HELLO After execution AO HELLO WORLD 7 87 S eee MCL Designer for Phaser Series User s Guide Variable Operation Arithmetic VO Function Executes arithmetic operation on number1 and number2 and stores the result in variable Syntax VO type variable number1 number2 where Variable the name of the receiving variable Number the first operand Number2 the second operand Type Operation to perform to add to subtract to multiply to divide to compute Modulo Affected System Variables amp 98 the sign of the result amp 97 remainder of divide operation amp 96 the sign of the remainder Notes 1 When arithmetic operations with decimal positions are needed the formatting of the result may be required 2 Addition Subtraction Multiplication and Division operations work on integer 0 to 65535 and decimal numbers 3 Modulo operation only works on integers 0 to 65535 4 The remainder of the divide command is stored in variable amp 97 You can use the modulo operation to get this result directly 5 Incase of overflow the output is equal to 99999 and the system variable 99 1 7 88 MCL Code Reference Guide 6 The output format is always on 11 digits 0000000 0000 to 9999999 9999 Examples VO I 141 184111 Increments A1 by 1 VOI A1 amp B1 amp D1 Subtracts contents of variable D1 from variable B1 and stores

Download Pdf Manuals

image

Related Search

Related Contents

Cooper Lighting LV830MH User's Manual    Dialog - Steinberg  Application test@ssr - Guide de démarrage rapide    *2013 年 10 月 17 日改訂(第 11 版) 医療機器承認番号  トッド機&トカマク機  

Copyright © All rights reserved.
Failed to retrieve file