Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 28 of 34

MCL-Designer for Phaser Series User's Guide, pages 227 to 236

Pages 227 to 236 of 288

The original document is the PDF (3.0 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Symbol P360 and Symbol P460

Page 227

MCL-Code Reference Guide

MCL-Link Start (NS) Function Calls MCL-Link communication program.

Syntax NS

Affected System Variables &97 =

“?”

&98 =

“?”

&99 =

“0”

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.

7-59

Page 228

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 below). If numeric, represents a timeout in 15 msec increments. Key code values

Actual keys used

F0 to F9 = Function keys (F0 = <F10>, F1 = <F1>, F2 = <F2> , etc.). UP or DW = <Up> or <Down> arrow keys. PU or PD = <FN+UP> or <FN+DOWN> keys. Ax = Any alpha character on the keypad (AK = <K> key), uppercase only. Nx = Any character on the numeric keypad (N9 = <9> key). EN = <Enter> key. CL = <FN+BKSP> key SP = special <*> key BS = Backspace key. PW = Power mode switch

Affected System Variables None

7-60

Page 229

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 <F1> key is pressed. Jumps to the NTPAY routine if the <F8> key is pressed. PI | 0 | TO | F1 | HELP | F2 | 127 | F3 | +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

Page 230

MCL-Designer for Phaser Series User’s Guide

Parameterize Time (PT) Function Sets the date and time.

Syntax PT | date_time where:

date_time = the new time and date with format: YYYYMMDDHHMMSS.

Affected System Variables All date/time system variables (&40 - &46, &72 - &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

7-62

Sets the time and date to 13:15:00; 26 May 1998.

Page 231

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 | 20 | 10

Writes the value “10” into System Setup Variable 20.

PX | 25 | &A0

Writes the contents of variable A0 into System Setup Variable 25.

7-63

Page 232

MCL-Designer for Phaser Series User’s Guide

Parameterize Scanner (PY) Function Control scanner parameters using parameter number/parameter value pairs.

Syntax PY | P | [pp]nn | vv [ | [pp]nn | vv ] [ | [pp]nn | vv] … where: P = the “permanent change” flag. Y = Make these changes permanent (write to FLASH parameter buffer). N =Make these changes temporary (write only to RAM buffer). The previous value will be restored the next time the scanner is powered up. nn = a single byte parameter number (value 0x00 – 0xEF). vv = a single byte parameter value (legal values determined by the associated parameter number). pp = an optional single byte prefix number. If a parameter number greater than 239 (0xEF) is required, then a prefix number is used as follows: 0xF0 = Add 256 to the next parameter number value 0xF1 = Add 512 to the next parameter number value 0xF2 = Add 768 to the next parameter number value

Affected System Variables None.

Notes 1. 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. 2. 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). 3. The PY command may contain up to 24 parameter number/parameter value pairs. 7-64

Page 233

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 capacitor. Subsequent to this 1 minute period, the Power Down Time will be in effect.

Examples PY | N | 01 | 00 | 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.

7-65

Page 234

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 MCl 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 DC | 0

Clears all the lines on the scanner display

DM | 2 | 4 | N | HELL

Displays the message “HELLO” on the second line column 4.

IX | 2 | 10 | A1 | 1 | 1 | Y | N | Y | A | Y | N

Accepts a “one character” entry on the keyboard and stores it in A1.

QX | 2

Abort the MCL program and start over.

7-66

Page 235

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 = 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 &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: 2. 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.

7-67

Page 236

MCL-Designer for Phaser Series User’s Guide

Examples DC | 0

Clears all the lines on the scanner display

RM | 2

Calls and executes the program in file 2.

DC | 0

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