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 9 of 10

Barcode reader BCL 8 with integrated decoder: Technical Description: 11 Online commands

Pages 46 to 55 of 58, from Barcode reader BCL 8 with integrated decoder: Technical Description

The original document is the PDF (1.2 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-8

Page 46

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 8 has to be connected to a computer via the serial interface. For information on the transmission protocol, please see chapter 7.3.2. Using the "Online" commands you can: • • • • • • •

Control/decode the reading gate. Read/write/copy parameters. Carry out an automatic configuration. Teach/set a reference code. 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 may be used. Example: Command ’CA’:

autoConfig function

Parameter ’+’:

Activation

Transmitted is:

’CA+’

Notation Commands, command parameters and returned data are enclosed between single quotation marks ’ ’. Most "online" commands are acknowledged by the BCL 8 and any requested data returned. For commands that are not acknowledged, command execution can be observed or monitored directly on the device.

44

BCL 8

Leuze electronic

Page 47

Leuze electronic

Online commands

11.1.1 General "Online" Commands Software version number Command

’V’

Description

Requests device version information

Parameter no

Acknowledgement

Ex.: ’BCL 8 V 01.00 08.01.2003’ The device type appears in the first line followed by the devices version number and date. The data which are actually displayed may vary from the values given here.

Notice! You can use this command to check whether the communication to the connected computer is functional. If you do not receive an acknowledgement, please check the interface connections, or the protocol.

Software reset Command

’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

TNT 35/7-24V

Acknowledgement ’S’ (start signal)

Leuze electronic

BCL 8

45

Page 48

Leuze electronic

Online commands autoConfig Command

’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

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

Description

46

’xx yy zzzzzz’ xx: 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 yy Number of digits of the code detected zzzzzz Contents of the decoded label. The ’ appears if the label was not correctly read.

BCL 8

Leuze electronic

Page 49

Leuze electronic

Online commands

Manual definition of the reference code Command

RS

Description

This command can be used to define a new reference code in the BCL 8 by means of direct entry via the serial interface. The data are saved in the parameter set according to their input under reference code 1 or 2 and stored in the working buffer for 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) v Storage location for reference code: ’0’ RAM+EEPROM ’3’ only RAM xx def. Code type (see Command ’CA’) z def. Code information (1 … 63 characters)

’RSx’ x: status ’0’ valid ’Rx’ command ’1’ invalid command Acknowledgement ’2’ insufficient memory for reference code ’3’ reference code has not been saved ’4’ reference code invalid Input = ’RS130678654331’ (Code 1 (1), only RAM (3), UPC (06), code information) TNT 35/7-24V

Example

Leuze electronic

BCL 8

47

Page 50

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 ’+’ activates the definition of reference code 1 or 2 ’-’ exit the Teach-In process

The BCL 8 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) Acknowledgement ’2’ (Code 2) v: Storage location for the reference code ’0’ RAM+EEPROM ’3’ only RAM xx def. Code type (see Command ’CA’) z def. Code information (1 … 63 characters) Notice! 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 ’RTy’ 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 ’RTy’ command.

48

BCL 8

Leuze electronic

Page 51

Leuze electronic

Online commands

Reading a reference code Command

’RR’

Description

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

Parameter

<Reference code number> ’1’ reference code 1 ’2’ reference code 2

TNT 35/7-24V

If no reference codes are defined, the BCL 8 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) Acknowledgement ’2’ (Code 2) v: Storage location for the reference code ’0’ RAM+EEPROM ’3’ only RAM xx def. Code type (see Command ’CA’) z def. Code information (1 … 63 characters)

Leuze electronic

BCL 8

49

Page 52

Leuze electronic

Online commands 11.1.2

’Online’ Commands for System Control Activate sensor input Command

’+’

Description

The command activates decoding.

Parameter no

Acknowledgement no

Deactivate sensor input Command

’-’

Description

The command deactivates decoding.

Parameter no

Acknowledgement no

Activate switching output ’OA’

Command Description

The command activates a selected switching output.

Parameter

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

Acknowledgement no

Deactivate switching output Command

’OD’

Description

The command deactivates a selected switching output.

Parameter

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

Acknowledgement no

50

BCL 8

Leuze electronic

Page 53

Leuze electronic

Online commands

11.1.3 ’Online’ Commands for Parameter Set Operations Definitions • <BCC type> type of the checksum calculation. ’0’: no checksum ’3’: XOR checksum (mode 3) • <PS type> type of the parameter set ’0’: current parameter set (data stored in the EEPROM non-volatile) ’1’: reserved ’2’: standard parameter set (not changeable) ’3’: operating values (data in the RAM, will be lost after reset) • <Status> mode of the parameter processing '0': does not perform a reset following the write operation; no other parameters follow. '1': does not perform a reset following the write operation; other parameters follow. '2': subsequently performs a reset, no other parameters follow. • <Start address> Relative address of the parameter within the parameter set

Decimal

HEX

Transmission

4660

0x1234

’1’ ’2’ ’3’ ’4’ = 31h 32h 33h 34h

• Para0H = 31h, Para0L = 32h, Para1H = 33h, Para1L = 34h Taking into consideration the maximum message length and the remaining command parameters, a maximum of 123 bytes of parameter data (246 bytes of message data) can be transmitted at one time. valid values: '0' … '9', 'A' … 'F' • <Acknowledgement>: Acknowledgement of the transmitted message ’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 Leuze electronic

BCL 8

51

TNT 35/7-24V

• <Para0L> <Para0H>… <Para122L> <Para122H>: Parameter-set data of the message. The sequence of the data is arranged identically to the BCL 8, i.e. when a word is transmitted, first the low byte is sent then the high byte. The parameter-set data are converted for transmission from HEX format to a 2byte-ASCII format. In the conversion two ASCII characters - representing the lower and higher nibbles - are created for each HEX value. Example:

Page 54

Leuze electronic

Online commands Copy parameter set Command

’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

’PSx’ x: status '0' valid transmission '1' invalid message '2' invalid message length '3' invalid block check type Acknowledgement '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

Request parameter set from the BCL 8 Command

’PR’

Description

The command requests parameter data from the BCL 8. The parameter <PS-Type> indicates from which parameter set the data are to be transmitted

Parameter

<BCC type> <PS type> <Start address> <Data length>

’PSx’ x: status '0' valid transmission '1' invalid message '2' invalid message length '3' invalid block check type Acknowledgement '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

52

BCL 8

Leuze electronic

Page 55

Leuze electronic

Online commands

Acknowledge parameter message Command

’PS’

Description

The command acknowledges the received message and delivers an acknowledgement status which indicates whether the message was valid or invalid.

Parameter

’PSx’ x: status '0' valid transmission '1' invalid message '2' invalid message length '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

Command

’PT’

Description

The command transmits parameter data from the specified address and stores them in an intermediate buffer. If the status indicates that additional messages follow, they are also stored in the intermediate buffer before being stored under the appropriate parameter-set type in the EEPROM. The transmission can optionally take place with a block-check test of the message data

Parameter

<BCC type> <PS type> <Status> <Start address> <Para0L> <Para0H> [… <Para122L>][<BCC>]

’PSx’ x: status '0' valid transmission '1' invalid message '2' invalid message length '3' invalid block check type Acknowledgement '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

Leuze electronic

BCL 8

53

TNT 35/7-24V

Transmit parameters