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 11 of 12

BCL 21/22 Bar Code Reader with Integrated Decoder and Connector Unit MA 2 / MA 4... Technical Description: 11 Online commands

Pages 65 to 76 of 84, from BCL 21/22 Bar Code Reader with Integrated Decoder and Connector Unit MA 2 / MA 4... Technical Description

The original document is the PDF (2.1 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 Leuze BCL-21 and Leuze BCL-22

Page 65

Leuze electronic

Online commands

11

Online commands

11.1

Overview of Commands and Parameters Online commands can be used to send commands directly to the device for control and configuration. For this the BCL 21/22 with MA 2/MA 4… must be connected to a host or service computer via the serial interface. The commands described can be sent either via the host or the service interface. For information on the transmission protocol, please see chapter 7.3.1.

Online commands With the commands, you can • • • • • • control/decode. read/write/copy parameters. carry out an automatic configuration. call up error messages. call up statistical device information. carry out a software reset in order to reinitialise the device.

Syntax "Online" commands consist of one or two ASCII characters followed by command parameters. No separation characters may be entered between the command and the command parameter(s). Both small and capitalised letters can be used. TNT 35/7-24V

Example: Command ’CA’: autoConfig function Parameter ’+’:

Activation

Transmitted is:

’CA+’

Notation Commands, command parameters and returned data are enclosed between single quotation marks ’ ’ in the text of this manual. Most online commands are acknowledged by the BCL 21/22 and any requested data returned. For commands that are not acknowledged, command execution can be observed or monitored directly on the device.

Leuze electronic

BCL 21/22

63

Page 66

Leuze electronic

Online commands 11.1.1

General 'Online' Commands Software version number Command

’V’

Description

Requests device version information

Parameter no

Acknowledgement

’BCL 2x V 01.00 08.01.1999’ The device type appears in the first line followed by the device's version number and date. (The data which are actually displayed may vary from the values given here.)

Notice! Using this command, you can check whether the connected host or service computer is properly connected and configured. If you do not receive an acknowledgement, please check interface connections, protocol and service switches.

Software reset Command

64

’H’

Description

Carries out a software reset. The device is restarted and reinitialised, leaving it in the same state as when the supply voltage is switched on.

Parameter no

Acknowledgement

’S’ (start signal)

BCL 21/22

Leuze electronic

Page 67

Leuze electronic

Online commands autoConfig ’CA’

Description

Activates or deactivates the 'autoConfig' function. Certain label reading parameters are programmed automatically in the setup by the labels which are read while the 'autoConfig' function is active.

Parameter

’+’ activates ’autoConfig’ ’/’ rejects the last code read ’-’ deactivates ’autoConfig’ and stores the decoded data in the current parameter set.

Acknowledgement

’CSx’ x: Status ’0’ valid ’CA’ command ’1’ invalid command ’2’ autoConfig could not be activated ’3’ autoConfig could not be deactivated ’4’ result could not be deleted

Description

’xx yy zzzzzz’ xx: No. of digits of the read code yy Code type of the read code ’01’ 2/5 Interleaved ’02’ Code 39 ’06’ UPC (A, E) ’07’ EAN ’08’ Code 128, EAN 128 ’10’ EAN/UPC ’11’ Codabar zzzzzz Contents of the decoded label. The ↑ appears if the label was not correctly read.

Leuze electronic

BCL 21/22

65

TNT 35/7-24V

Command

Page 68

Leuze electronic

Online commands Code recognition Command

’CC’

Description

Detects an unknown bar code and outputs number of digits, code type, and code information to the interface, without storing it in the parameter memory.

Parameter no

’xx yy zzzzzz’ xx: No. of digits of the read code yy: Code type of the read code ’01’ 2/5 Interleaved ’02’ Code 39 ’06’ UPC (A, E) Acknowledge’07’ EAN ment ’08’ Code 128, EAN 128 ’10’ EAN/UPC ’11’ Codabar zzzzzz: Contents of the decoded label. The ↑ appears if the label was not correctly read.

66

BCL 21/22

Leuze electronic

Page 69

Leuze electronic

Online commands

Alignment mode Command

’JP’

Description

This command is used for the easy mounting and alignment of the BCL 21/22. After the function has been activated by ’JP+’, the scanner continuously supplies status information via the serial interfaces. With this online command, the scanner is set to terminate the decoding after 100 successfully decoded labels and output the status information. Subsequently, the read process is reactivated automatically. As status, the output returns the following values: • scans which contain the valid label information on the basis of 100 scans, • the decoding result. These values can be used to determine the decoding quality. In addition to the output of the status information, the laser beam is used to display the reading quality. Depending on how many labels were able be extracted, the duration of the laser's "off" time increases. If the reading quality is high, the laser beam flashes in brief, regular intervals. The worse the decoder decodes, the longer the pauses become during which the laser is switched off. The flashing intervals become more and more irregular because the laser may, in total, be active for longer to extract more labels. The duration of the pauses has been stepped in such a way that they can be distinguished by the eye.

Parameter

’+’: ’-’:

’xxxxx_yyyyy’ xxxxx: "Scans since reading gate release" (scans_with info): Number of scans that contain valid label information. The maxiAcknowledgemum value is 100. It indicates for how many of 100 scans valid ment label information could be ascertained. yyyyy: Bar code information.

Leuze electronic

BCL 21/22

67

TNT 35/7-24V starts the adjustment mode. ends the adjustment mode.

Page 70

Leuze electronic

Online commands Manual definition of the reference code Command

68

RS

Description

This command can be used to define a new reference code in the BCL 21/22 by means of direct input via the serial interface. The data are saved in the parameter set according to their input under reference code 1 through 9 and stored in the working buffer for direct further processing.

Parameter

’RSyvxxzzzzzzzz’ y, v, x and z are placeholders (variables) for the actual input. y: def. reference code No. ’1’ (Code 1) ’2’ (Code 2) ... ’9’ (Code 9) v Storage location for reference code: ’0’ RAM+EEPROM, ’3’ RAM only xx def. Code type (see command ’CA’) z def. Code information (1 … 63 characters)

Acknowledgement

’RSx’ x: Status ’0’ valid ’Rx’ command ’1’ invalid command ’2’ insufficient memory for reference code ’3’ reference code has not been saved ’4’ reference code invalid

Example

Input = ’RS130678654331’ (Code 1 (1), RAM only (3), UPC (06), code information

BCL 21/22

Leuze electronic

Page 71

Leuze electronic

Online commands

Teach-In Command

’RT’

Description

This command enables a reference code to be defined quickly by reading an example label.

Parameter

’RTy’ y: Function ’1’ defines reference code 1 ’2’ defines reference code 2 … ’9’ defines reference code 9 ’+’ activates the definition of reference code 1 up to the value of Parameter no_of_labels ’-’ Exit the Teach-In process

Acknowledgement

The BCL first responds with the command ’RS’ and corresponding status (see command RS). After a barcode has been read, it sends the result in the following format: ’RCyvxxzzzzz’ y, v, x and z are placeholders (variables) for the actual input. y: def. reference code No. ’1’ (Code 1) … ’9’ (Code 9) v: Storage location for reference code ’0’ RAM+EEPROM, ’3’ RAM only xx def. Code type (see command ’CA’) z def. Code information (1 … 63 characters)

With this function, only code types are recognised that are identified using the autoConfig function or which were set in the set-up. ! After each reading via an ’RTx’ command, explicitly switch off the function again since failure to do so will interfere with other commands as well as prevent execution of a new ’RTx’ command.

Leuze electronic

BCL 21/22

69

TNT 35/7-24V

Notice!

Page 72

Leuze electronic

Online commands Reading a reference code Command

’RR’

Description

The command reads out the reference code defined in the BCL. If no parameters are specified, all defined codes are output.

Parameter

<Reference code number> ’1’ ... ’9’ value range of reference codes 1 to 9

Acknowledgement

If no reference codes are defined, the BCL responds with the ’RS’ command and corresponding status (see command RS). For valid codes, the output corresponds to the following format: RCyvxxzzzzzz y, v, x and z are placeholders (variables) for the actual input. y: def. reference code No. ’1’ (Code 1) … ’9’ (Code 9) v: Storage location for reference code ’0’ RAM+EEPROM, ’3’ RAM only xx def. Code type (see command ’CA’) z def. Code information (1 … 63 characters)

Copy parameter set Command

70

’PC’

Description

The command copies complete parameter sets.

Parameter

’03’ copy parameters from the EEPROM into the RAM and initialise all associated functions '20' copy standard parameters from the FLASH into the EEPROM and RAM and initialise all relevant functions ’30’ copy parameters from the RAM into the EEPROM

Acknowledgement

’PSx’ x: Status '0' valid transmission '1' invalid message '2' invalid length of message '3' invalid block check type '4' invalid block check checksum '5' invalid data length '6' invalid message data '7' invalid start address '8' invalid parameter set '9' invalid parameter type

Example

Input: PC20 –> all parameters are reset to default values.

BCL 21/22

Leuze electronic

Page 73

Leuze electronic

Online commands

11.1.2 ’Online’ Commands for System Control System Standby Command

’SS’

Description

System Standby: puts the bar code reader in standby mode. The scanner cannot be triggered, and the polygon wheel motor is stopped.

Parameter no

Acknowledgeno ment

System boot-up Command

’SA’

Description

System boot-up: reactivates the bar code reader from standby mode back to operating mode. The polygon wheel motor is started, the scanner works as usual.

Parameter no

Acknowledge’S’ (start signal) ment

Activate sensor input 1 ’+’ The command activates decoding.

Parameter no

Acknowledgement no

TNT 35/7-24V

Command Description

Deactivate sensor input 1 Command

’-’

Description

The command deactivates decoding.

Parameter no

Acknowledgement no

Activate sensor input 2 Command

’,’

Description

The command activates the definition of reference code 1.

Parameter no

Acknowledgement no

Leuze electronic

BCL 21/22

71

Page 74

Leuze electronic

Online commands Deactivate sensor input 2 Command

’.’

Description

The command deactivates the definition of reference code 1.

Parameter no

Acknowledgement no

Activate switching output Command

’OA’

Description

The command activates a selected switching output.

Parameter

’OAx’: Activate switching output x: Switching output No. ’1’ (output 1) ’2’ (output 2)

Acknowledgement no

Deactivate switching output Command

11.1.3

’OD’

Description

The command deactivates a selected switching output.

Parameter

’ODx’: Deactivate switching output x: Switching output No.: ’1’ (output 1) ’2’ (output 2)

Acknowledgement no

’Online’ Commands for System Checking Query: Supply Voltage Command

’DUV’

Description

Queries the supply voltage with which the bar code reader is supplied.

Parameter no

Acknowledge- ’DUVxx.x’ ment xx.x: Voltage value, for example 28.2 for 28.2Volt.

72

BCL 21/22

Leuze electronic

Page 75

Leuze electronic

Online commands

Diagnosis motor Command

’DM’

Description

The command requests the operational data of the motor. In addition, the motor can be switched on and off

Parameter

’S’ Request rotary frequency of the motor. (Message from host) ’Cxxxxx’ Transmission of the motor RPM as a decimal number with 5 digits. (Message to host)

Acknowledgement

’Sxxxxx’

Description xxxxx is the current rotary frequency of the motor in revolutions per minute. In case of malfunction, the BCL responds with the command ’DS’ and the corresponding status. (See command ’DS’)

Status message for diagnosis commands ’DS’

Description

The command serves as an acknowledgement message to the host. The command contains as a two-digit decimal number an acknowledgement status which provides information about the processing of the requested diagnosis function.

Parameter

’0’ valid processing ’1’ invalid diagnostic message ’2’ message too long ’3’ invalid message parameter of the laser diagnosis command ’4’ invalid length of the laser diagnosis message ’5’ invalid message parameter of the motor diagnosis command ’6’ invalid length of the motor diagnosis message

Leuze electronic

BCL 21/22

TNT 35/7-24V

Command

73

Page 76

Leuze electronic

Online commands 11.1.4

’Online’ command for querying error messages Query memory error messages Command

’ER’

Description

The command queries the buffer memory of the error messages.

Parameter no

Acknowledgement

1st line: New: cc 2nd through 11th lines: ’- 00.000’ if no error has occurred ’F tt.fff’ if a fatal error has occurred ’E tt.fff’ if an error has occurred ’C tt.fff’ if a critical warning has occurred ’W tt.fff’ if a warning has occurred

Description cc: number of (new) errors in the error buffer tt: task/ function number fff: error number Upon output, the counter for the number of errors in the error buffer is deleted, but not the buffer itself!

Notice! If an error occurs, note the error number and contact your local Leuze service organisation. The addresses can be found on the back page of this operating manual.

74

BCL 21/22

Leuze electronic