The text of a manual · part 27 of 34
MCL-Designer for Phaser Series User's Guide, pages 217 to 226
Pages 217 to 226 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 217
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 &99 =
“0” if no error occurs “1” if error is detected
&98 = last modem answer, if modem response received; “NO CRADLE” 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. 2. 3. 4.
5.
6. 7.
A <CR> character (ASCII 13) is added automatically at the end of the string. The RS232 communication parameters (baud rate, parity, etc.) are used. The RS232 communications must be set to use NO software handshaking. 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 (&99 = 1). 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 (&99 = 1). Only the first 10 characters of a response message are placed in system variable 98. A valid response code (&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 examine &98 as well.
Example MD | ATDT555121 Dial the phone number 555-1212. 7-49
Page 218
MCL-Designer for Phaser Series User’s Guide
Menu List (ML) Function 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:
line = row on which to begin field. column = column in which to begin field. height = number of lines to be used (ignored by Phaser). width = number of columns to be used. default = index of default selection. mode = rollover mode R = Roll from last to first. S = Scroll from first to last.
speedkey = 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.
sel1 = text of first available selection. skip1 label to jump to if the associated menu item is selected. seln = text of last available selection. skipn label to jump to if the associated menu item is selected.
7-50
Page 219
MCL-Code Reference Guide
Affected System Variables &98 =
The code of the exit key or “TO” if time-out occurs.
Notes 1. The PI command is active in the ML command, so all defined hot-keys are still available. 2. If <UP> (UP Arrow) or <DW> (Down arrow) are used in PI before ML command, they will perform the action defined in PI only on <UP> on first item and <DW> on last item, and then only if mode is set to S. Otherwise, <UP> and <DW> switch the current selected item in the list.
Example ML | 2 | 2 | 1 | 18 | 1 | S | 0 | 1. 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.
7-51
Page 220
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: &97 =
Source Identifier.
&98 =
Received Command.
&99 =
“0” variable =
Received Data.
After TIMEOUT (if one has been defined in the previous PI command): &97 =
“TO”
&98 =
“?”
&99 =
“1” variable =
“?”
7-52
Page 221
MCL-Code Reference Guide
After KEY (defined in previous PI command) is pressed: &97 =
“KB”
&98 =
Name of the pressed key (see PI command for key names).
&99 =
“0” variable =
“?”
After an error (on the P370/P470 RF scanner): &97 =
“?”
&98 =
Error number
&99 =
“1” variable =
“?”
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.
7-53
Page 222
MCL-Designer for Phaser Series User’s Guide
6. Error numbers reported in &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 | 04 | CT | A1 Wait for a CT command from address 04 and store the arguments in variable A1.
7-54
Page 223
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 .
command = the command to send to the destination argument = the command argument(s) to send.
Affected System Variables Normal Mode: &99 =
“0”
After connection failure (maximum retries reached): &98 = retry count
&99 =
“1”
After Host Error (Host rejects message, or user fails to place scanner in cradle within 30 seconds): &98 = retry count
&99 =
“1”
7-55
Page 224
MCL-Designer for Phaser Series User’s Guide
After KEY (defined in the most recent PI command) is pressed: &97 =
“KB”
&98 =
Name of the pressed key (see PI command for key names).
&99 =
“0” variable =
“?”
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 | 099 | D1 | &A0 Send the D1 command to station 99 with the value of variable A0 as an argument.
7-56
Page 225
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: &97 =
“?”
&98 =
“?”
&99 =
“0”
After a CLEAR KEY (<FN><BS>) is pressed: &97 =
“KB”
&98 =
“CL
&99 =
“1”
After an error: &97 =
“?”
&98 = error number
&99 =
“1”
7-57
Page 226
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 &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 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 | &A0 Send the D1 command to station 99 with the value of variable A0 as an argument.
7-58