J
Communication (English)
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
Data Format / Data Format
1
• 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
Basic Commands
2
Command
Description
C(43H)
Reading out Measurement value / Output status
W(57H)
Writing the setting
R(52H)
Reading out setting
J
Error code table
3
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
C(43H) parameter table (Reading out Measurement value/Output status)
4
Command
Type
DATA1 (upper)
DATA2 (lower)
Description
Reading out Measurement value
Write
B0h
01h
Read
Upper data
Lower data
Response in 2 bytes
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-
Read
00h
00h
peared if this command is not done.
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
Range
±5mm
±15mm
Unit
1μm
10μm
Data (Hex)
EC78h
1388h
FA24h
Data (Decimal)
-5000
+5000
-1500
J
Setting parameter table
5
Setting
Address/
DATA1 (upper)
DATA2 (lower)
Parameter
Model type
Address
01h
00h
Parameter
00h
0Fh / 23h / 64h
Measurement
Address
40h
04h
mode
Parameter
00h
00h / 01h / 02h
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
00h
01h
Sampling period
Address
40h
06h
Parameter
00h
00h / 01h / 02h / 03h / 04h
Averaging number
Address
40h
0Ah
Parameter
00h
00h / 01h / 02h / 03h
Alarm setting
Address
40h
0Ch
Parameter
00h
00h / 01h
Alarm - Hold and
Address
41h
08h
Clamp
Parameter
Upper data
Lower data
Setting
Address/
Parameter
Display setting
Address
Parameter
Hysteresis
Address
Parameter
Threshold
Address
Parameter
Zero shift
Address
Parameter
Sensitivity
Address
Parameter
* Execute the command "R" (Read out) before executing command "W" (Write).
K
Examples (English)
K
Example: Writing Data – General Procedure
1
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
K
Example: Setting "Sampling period" to "AUTO" (see J
2
1. Read out "Sampling period"
Transmission command:
Incoming data:
2. Write the setting
Transmission command:
Incoming data:
* Incoming data of command "W" (Writing the setting) will be "00h" and "00h".
1)
3. Write to EEPROM
Transmission command:
Incoming data:
K
Example: Setting "Far threshold" + 1 mm with OD1-*35 type
3
1. Read out "Far side threshold"
Transmission command:
Incoming data:
2. Write the setting
Transmission command:
Incoming data:
3. Write to EEPROM
Transmission command:
Incoming data:
K
Example: Read out measurement data*
4
Transmission command:
Incoming data:
*example with OD1-B035x15xxx/ measuring value = –9.13 mm
K
Example: Errorcode for Laser ON
5
Command with WRONG check sum:
OD1-B100x50xxx
±50mm
Transmission command:
10μm
Incoming data:
05DCh
EC78h
1388h
*BCC invalid (see J
)
+1500
-5000
+5000
3
Command with RIGHT check sum:
Transmission command:
Description
Incoming data:
Return center value of measurement range (only for
checking model type)
15mm type / 35mm type / 100mm type
2 point Teaching / 1 point Teaching / ObSB Teaching
Light ON: ON when exceeds the threshold
Dark ON: ON when less than the threshold
500μs / 1,000μs / 2,000μs / 4,000μs / AUTO
Once / 8 times / 64 times / 512 times
Clamp / Hold
DATA1 (upper)
DATA2 (lower)
Description
40h
0Eh
00h
00h / 01h
ON / OFF
41h
10h
Upper data
Lower data
40h
12h
00h
00h / 01h / 02h / 03h
Base: Lowest level / Level 400: Upper level / Level
200: middle level / Level 100: lower level
41h
12h
Upper data
Lower data
40h
14h
00h
00h
AUTO
00h
01h / 02h / 03h / 04h / 05h
6: Maximum sensitivity / 5 / 4 / 3 / 2 / 1: Minimum
/ 06h
sensitivity
).
4
)
5
STX (02h) R (52h)
40h
06h
ETX (03h)
BCC (14h)
STX (02h) ACK (06h) 00h
00h
ETX (03h)
BCC (06h)
STX (02h) W (57h)
00h
04h
ETX (03h)
BCC (53h)
STX (02h) ACK (06h) 00h* 00h* ETX (03h)
BCC (06h)
STX (02h) C (43h)
A0h
00h
ETX (03h)
BCC (E3h)
STX (02h) ACK (06h) 00h
00h
ETX (03h)
BCC (06h)
STX (02h) R (52h)
41h
00h
ETX (03h)
BCC (13h)
STX (02h) ACK (06h) FEh
D4h
ETX (03h)
BCC (2Ch)
STX (02h) W (57h)
00h
64h
ETX (03h)
BCC (33h)
STX (02h) ACK (06h) 00h
00h
ETX (03h)
BCC (06h)
STX (02h) C (43h)
A0h
00h
ETX (03h)
BCC (E3h)
STX (02h) ACK (06h) 00h
00h
ETX (03h)
BCC (06h)
STX (02h) C (43h)
B0h
01h
ETX (03h)
BCC (F2h)
STX (02h) ACK (06h) FCh
6Fh
ETX (03h)
BCC (95h)
STX (02h) C (43h)
A0h
03h
ETX (03h)
BCC (E2h)
STX (02h) NAK (15h) 04h* 00h
ETX (03h)
BCC (11h)
STX (02h) C (43h)
A0h
03h
ETX (03h)
BCC (E0h)
STX (02h) ACK (06h)
00h
00h
ETX (03h)
BCC (06h)