SICK OD Mini Pro Скачать руководство пользователя страница 3

Communication method 

RS-485 Half Duplex (Multi-drop protocol is not supported)

Transmission code 

Binary

Data length 

8bit

Stop length

1bit

Parity check 

Nil

Baud rate (bps) 

9.6k / 19.2k / 38.4k / 57.6k / 115.2k / 230.4k / 312k / 460k / 500k / 625k / 833k / 920k / 

1.25M

Data classification 

STX / ETX

J

1

 

Data Format / Data Format

 

Transmission data

STX

COMMAND

DATA1

DATA2

ETX

BCC

 

Incoming data

STX

ACK

RESPONSE1 RESPONSE2 ETX

BCC

 

Incomming data (error)

STX

NAK

ERROR CODE 00H

ETX

BCC

STX = 02H , ETX = 03H , ACK = 06H , NAK = 15H , BCC = XOR of values hatched

J

2

 

Basic Commands

Command

Description

C(43H)

Reading out Measurement value / Output status

W(57H)

Writing the setting

R(52H)

Reading out setting

J

3

 

Error code table

Error code

Description

02H

Address is invalid

04H

BCC value is invalid

05H

Invalid command is issued except "C", "W", "R"

06H

Setting value is invalid (out of specifications)

07H

Setting value is invalid (out of range)

J

4

 

C(43H) parameter table (Reading out Measurement value/Output status)

Command

Type

DATA1 (upper) DATA2 (lower) Description

Reading out Measurement value

Write

B0h

01h

Read

Upper data

Lower data

Response in 2 bytes 

1)

Reading out Output status

Write

B0h

02h

Read

00h

Output status

bit:0 = 1 (ON)

bit:4 = 0 (the status has been read)

Writing the setting

Write

A0h

00h

Write the setting into EEPROM. The setting will be dissa-

peared if this command is not done.

Read

00h

00h

Dismissing the setting

Write

A0h

01h

Dismiss the setting and set the parameters to previous value 

back.

Read

00h

00h

Teaching ObSB

Write

11h

05h

Read

00h

00h

Teaching near side point

Write

11h

06h

Read

00h

00h

Teaching far side point

Write

11h

07h

Read

00h

00h

Laser ON

Write

A0h

03h

Read

00h

00h

Laser OFF

Write

A0h

02h

Read

00h

00h

Execute Zero reset

Write

A1h

00h

Read

00h

00h

Release Zero reset

Write

A1h

01h

Read

00h

00h

Execute Key lock

Write

A1h

04h

Read

00h

00h

Release Key lock

Write

A1h

05h

Read

00h

00h

Initializing

Write

40h

00h

Initialize all parameters except communication speed and 

re-boot. The communication won't worrk while initializing.

Read

00h

00h

1) Measurement value is described as following.

Model

OD1-B015x05xxx

OD1-B035x15xxx

OD1-B100x50xxx

Range

±5mm

±15mm

±50mm

Unit

1μm

10μm

10μm

Data (Hex)

EC78h

1388h

FA24h

05DCh

EC78h

1388h

Data (Decimal)

-5000

+5000

-1500

+1500

-5000

+5000

J

5

 

Setting parameter table

Setting

Address/

Parameter

DATA1 (upper) DATA2 (lower)

Description

Model type

Address

01h

00h

Return center value of measurement range (only for 

checking model type)

Parameter

00h

0Fh / 23h / 64h

15mm type / 35mm type / 100mm type

Measurement 

mode

Address

40h

04h

Parameter

00h

00h / 01h / 02h

2 point Teaching / 1 point Teaching / ObSB Teaching

Near side threshold Address

41h

00h

Parameter

Upper data

Lower data

Far side threshold

Address

41h

02h

Parameter

Upper data

Lower data

ObSB threshold

Address

41h

04h

Parameter

Upper data

Lower data

ObSB hysteresis

Address

41h

06h

Parameter

Upper data

Lower data

Output polarity

Address

40h

08h

Parameter

00h

00h

Light ON: ON when exceeds the threshold

00h

01h

Dark ON: ON when less than the threshold

Sampling period

Address

40h

06h

Parameter

00h

00h / 01h / 02h / 03h / 04h

500μs / 1,000μs / 2,000μs / 4,000μs /  AUTO

Averaging number

Address

40h

0Ah

Parameter

00h

00h / 01h / 02h / 03h

Once / 8 times / 64 times / 512 times

Alarm setting

Address

40h

0Ch

Parameter

00h

00h / 01h 

Clamp / Hold

Alarm - Hold and 

Clamp

Address

41h

08h

Parameter

Upper data

Lower data

J

Communication (English)

Setting

Address/

Parameter

DATA1 (upper) DATA2 (lower)

Description

Display setting

Address

40h

0Eh

Parameter

00h

00h / 01h

ON / OFF

Hysteresis

Address

41h

10h

Parameter

Upper data

Lower data

Threshold

Address

40h

12h

Parameter

00h

00h / 01h / 02h / 03h

Base: Lowest level / Level 400: Upper level / Level 

200: middle level / Level 100: lower level

Zero shift

Address

41h

12h

Parameter

Upper data

Lower data

Sensitivity

Address

40h

14h

Parameter

00h

00h

AUTO

00h

01h / 02h / 03h / 04h / 05h 

/ 06h

6: Maximum sensitivity / 5 / 4 / 3 / 2 / 1: Minimum 

sensitivity

* Execute the command "R" (Read out) before executing command "W" (Write).

K

1

 Example: Writing Data – General Procedure

Writing is done as following proceedure.

1. Read out setting

Execute Command "R" (Reading out setting) on the target parameter. Set "Address" at "DATA1" and "DATA2".

2. Write setting

Execute Command "W" (Writing the setting) on the target parameter. Writing data is done to the address set at "1. Read setting".

3. Write to EEPROM (see 

J

4

).

K

Example: Setting "Sampling period" to "AUTO" (see J

5

)

1. Read out "Sampling period"

Transmission command: 

STX (02h) R (52h)

40h

06h

ETX (03h)

BCC (14h)

Incoming data:

STX (02h) ACK (06h) 00h

00h

ETX (03h)

BCC (06h)

2. Write the setting

Transmission command:

STX (02h) W (57h)

00h

04h

ETX (03h)

BCC (53h)

Incoming data:

STX (02h) ACK (06h) 00h* 00h* ETX (03h)

BCC (06h)

* Incoming data of command "W" (Writing the setting) will be "00h" and "00h".

3. Write to EEPROM

Transmission command:

STX (02h) C (43h)

A0h

00h

ETX (03h)

BCC (E3h)

Incoming data:

STX (02h) ACK (06h) 00h

00h

ETX (03h)

BCC (06h)

K

Example: Setting "Far threshold" + 1 mm with OD1-*35 type

1. Read out "Far side threshold"

Transmission command: 

STX (02h) R (52h)

41h

00h

ETX (03h)

BCC (13h)

Incoming data:

STX (02h) ACK (06h) FEh

D4h

ETX (03h)

BCC (2Ch)

2. Write the setting

Transmission command:

STX (02h) W (57h)

00h

64h

ETX (03h)

BCC (33h)

Incoming data:

STX (02h) ACK (06h) 00h

00h

ETX (03h)

BCC (06h)

3. Write to EEPROM

Transmission command:

STX (02h) C (43h)

A0h

00h

ETX (03h)

BCC (E3h)

Incoming data:

STX (02h) ACK (06h) 00h

00h

ETX (03h)

BCC (06h)

K

Example: Read out measurement data*

Transmission command:

STX (02h) C (43h)

B0h

01h

ETX (03h)

BCC (F2h)

Incoming data:

STX (02h) ACK (06h) FCh

6Fh

ETX (03h)

BCC (95h)

*example with OD1-B035x15xxx/ measuring value = –9.13 mm

K

Example: Errorcode for Laser ON

Command with 

WRONG

 check sum:

Transmission command:

STX (02h) C (43h)

A0h

03h

ETX (03h)

BCC (E2h)

Incoming data:

STX (02h) NAK (15h) 04h* 00h

ETX (03h)

BCC (11h)

*BCC invalid (see 

J

3

)

Command with 

RIGHT

 check sum:

Transmission command:

STX (02h) C (43h)

A0h

03h

ETX (03h)

BCC (E0h)

Incoming data:

STX (02h) ACK (06h) 00h

00h

ETX (03h)

BCC (06h)

K

Examples (English)

Содержание OD Mini Pro

Страница 1: ...chtet Für optimale Messergebnisse Aufwärmzeit be achten Siehe Tab G Parametrierung durchführen Siehe Abb H und Tab I J Bedienung über Bedientasten Das Ergebnis des eingelernten Schaltverhaltens kann über die serielle Schnittstelle abgefragt werden Details siehe Tab J Teach in durchführen siehe Abb F Abb H und Tab I Distanzsensor auf einzulernende Distanz ausrichten Teach Option über Parameter MoDE...

Страница 2: ...Clamp ist der Parameter hdct deak tiviert 0 tHrE Grenzwert einstellen base setzte Grenzwert auf niedrigstes Level P400 setzte Grenzwert auf höchstes Level P200 setzte Grenzwert auf mittleres Level P100 setzte Grenzwert auf niedriges Level bASE NtoP Lichtschwerpunkt definieren Max Maximale Distanz Pt5 5ter Punkt von der Sensorseite Pt4 4ter Punkt von der Sensorseite Pt1 Nächster Punkt zum Sensor MA...

Страница 3: ...06h Parameter Upper data Lower data Output polarity Address 40h 08h Parameter 00h 00h Light ON ON when exceeds the threshold 00h 01h Dark ON ON when less than the threshold Sampling period Address 40h 06h Parameter 00h 00h 01h 02h 03h 04h 500μs 1 000μs 2 000μs 4 000μs AUTO Averaging number Address 40h 0Ah Parameter 00h 00h 01h 02h 03h Once 8 times 64 times 512 times Alarm setting Address 40h 0Ch P...

Страница 4: ...aten ObSB Hysterese Adresse 41h 06h Parameter Obere Daten Untere Daten Ausgangspolarität Adresse 40h 08h Parameter 00h 00h Hell AN AN wenn der Schwellenwert überschritten wird 00h 01h Dunkel AN AN wenn der Schwellenwert unterschritten wird Abtastzeit Adresse 40h 06h Parameter 00h 00h 01h 02h 03h 04h 500 μs 1 000 μs 2 000 μs 4 000 μs AUTO Mittelungszahl Adresse 40h 0Ah Parameter 00h 00h 01h 02h 03h...

Отзывы: