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 23 of 34

MCL-Designer for Phaser Series User's Guide, pages 177 to 186

Pages 177 to 186 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 177

MCL-Code Reference Guide

Table 7-3. Logical Group, Command, and Description (Continued) Logical group Parameters

Miscellaneous

Compute Commands

Command

Description

Page

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 on parameter number and value.

7-64

BP Beep

Emits a “beep” tone during a user-defined time interval.

7-11

WT Wait

Suspends program execution for a pre-defined delay time.

7-94

CP CRC ComPute CRC Compute various CRCs of the given string as a 5 7-13 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 ConVerT

This function provides useful conversions.

7-16

7-9

Page 178

MCL-Designer for Phaser Series User’s Guide

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 BL | 5

Sets backlight ON for 5 seconds.

BL | ON

Sets backlight ON.

BL | OFF

Sets backlight OFF.

7-10

Page 179

MCL-Code Reference Guide

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 c e Beep Description

Beep Index

1 Short High Beep

0

2 Short High Beeps

1

3 Short High Beeps

2

4 Short High Beeps

3

5 Short High Beeps

4

1 Short Low Beep

5

2 Short Low Beeps

6

3 Short Low Beeps

7

4 Short Low Beeps

8

5 Short Low Beeps

9

7-11

Page 180

MCL-Designer for Phaser Series User’s Guide

Table 7-4. Beep Sequences (Continued) 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

Examples BP | 32

7-12

Generate a decode beep.

Page 181

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 | variable| string | optio where:

Variable = variable receiving value String = input character string Option = specific CRC algorithm 0: MCL-CRC1 1: 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 CP|CVT to convert the result of this operation in the desired format.

Examples CP | CRC | A0 | Mouse House | 0 After this operation, the variable A0 will contain 59010 CP | CRC | A0 | Mouse House

7-13

Page 182

MCL-Designer for Phaser Series User’s Guide

After this operation, the variable A0 will contain 59010 CP | CRC | A0 | The hazy sky | 1 After this operation, the variable A0 will contain 59802 CP | CRC | A0 | 02343499 | 2 After this operation, the variable A0 will contain 64622 CP | CRC | A0 | Mouse House | 3 After this operation, the variable A0 will contain 64891

7-14

Page 183

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 | A0 | Mouse House After this operation, the variable A0 will contain 00218 CP | XOR | A0 | 900345 After this operation, the variable A0 will contain 00244

7-15

Page 184

MCL-Designer for Phaser Series User’s Guide

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 MCLNet protocol for checksums 5 = converts a number to a string of 4 characters as used by MCLNet 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

7-16

Page 185

MCL-Code Reference Guide

Affected System Variables &99 =

0, if conversion is OK. Variable = returns value of conversion. 1, if the number or string cannot be converted. Variable = "?"

Examples CP | CVT | A0 | 0 | X Convert char to an ASCII code. A0 will contain the ASCII code of X = 0008 CP | CVT | A0 | 0 | ABCDE Convert a string to the sum of ASCII codes. A0 will contain the ASCII code of X = 00335 CP | CVT | A0 | 1 | 88 Convert an ASCII code to a character. A0 will contain the character CP | CVT | A0 | 2 | 186 Convert to 2 hexadecimal digits. A0 will contain BA CP | CVT | A0 | 3 | 186 Convert to 4 hexadecimal digits. A0 will contain 00BA CP | CVT | A0 | 2 | 2576 Var 99 = 1 because 25761 cannot be converted to 2 hexadecimal digits. A0 = "?" CP | CVT | A0 | 4 | 186 Convert to 2 MCL-Net checksum characters. A0 will contain ;: CP | CVT | A0 | 5 | 186 Convert to 4 MCL-Net checksum characters. A0 will contain 00;:

7-17

Page 186

MCL-Designer for Phaser Series User’s Guide

CP | CVT | A0 | 4 | 2576 Var 99 = 1 because 25761 cannot be converted to 2 hexadecimal digits. A0 = "?" CP | CVT | A0 | 5 | 2576 Convert to 4 MCL-Net checksum characters. A0 will contain 64: CP | CVT | A0 | 6 | 64A1 Convert from hexadecimal to integer. A0 will contain 25761 CP | CVT | A0 | 7 | ;; Convert from MCL-Net checksum characters to integer. A0 will contain 00187

7-18