Interface, 1 interface data, 2 protocol – Baumer N 155 User Manual
Page 4
N 155
www.baumer.com
4
Terminal Assignment
Wire
color DIN47100
IEC757
Pin 1
sensor supply +24 V
yellow
red
Pin 2
sensor supply 0 V
green
black
Pin 3
--
--
--
Pin 4
Tx/Rx+, RS485
brown
brown
Pin 5
Tx/Rx-, RS485
white
orange
2
1
3
4
5
connector M16
2
1
3
4
5
mating
connector M16
Connect power supply that is free from interference emission. The supply must not be used as
parallel supply of drives, shields, magnetic valves, etc.
Apply DC according to terminal assignment power supply: 24 VDC ±10 %
Shield
Use shielded cables only. The cable shield must be grounded at the machine
(two examples each depending on the cable, see drawings).
3. Interface
3.1 Interface
data
Type: RS485
Baud rate:
19200
Parity: No
Data bits:
8
Stop bits:
1
Handshake: No
Check sum:
Yes (CRC)
* To avoid Bus collisions, a minimum time lag in responding of 1 ms
is imperative, i.e. the time elapsed between the last bit of the query
and sending the 1st bit of the N 155 response.
Important: Please consider that due to the abovementioned
minimum time lag of 1 ms in responding the Bus switching time
after having sent the last bit must not exceed 1 ms.
Lag time response*:
1...16 ms
3.2 Protocol
The target display operates with ASCII protocol (clear text protocol). Depending on the command, the volume of
the protocol varies between 5 and 17 bytes.
Byte
Hex-Code
Significance
Value range
1
01H
SOH = header token
fix on 01h
2
XXh
Adr = address
00...31dez + 20h Offset (address 00 = 20h)
3
XXh
Cmd = command code defined commands
4-n
[XXh..XXh]
[Data] = data
20h-7Fh
n+1
04h
EOT = footer token
fix on 04h
n+2
XXh
CRC = check sum
00h...FFh