SICK安全光栅485通讯内部资料mlg_rs485_interface
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
SICK安全光栅485通讯内部资料mlg_rs485_interface
MLG with RS485 interface
Character frame / RS485 protocol
Baudrate:
1200 up to 115200Default setting:
9600
The parity bit can be set / changed by MLGSetup software.no odd even Default setting:
no parity
picture1: format data interface
Data output
The data output is consisting on ASCII coded numbers.The data format can be selected in HEX or DEC
It’s possible to insert a separation character betwe en each data block if wanted.Default setting:
start character
NUL (will not be outputted)separation character NUL stop character 1LF stop character 2
CR
The start-, separation-, and stop- characters can be selected by MLGSetup software!
character
character
green = option/variable
Output in BIN format (since release V2.6 together with MLGE V2.20):
With setting …BIN“ (binary) the beams will not be outputted ASCII coded but shown absolute binary:
beam made = 0
beam blocked = 1
Description of output function
Default setting:BS (Beam Status)
The output of beam status shows the status of all beams, that means the status of each single beam.
Always 8 beams are binary collected to one block. The output takes place in blocks of each two (HEX) or three (DEC) ASCII-coded characters.
coding type characters shown beams
HEX 2 x ASCII = 8 beams
DE C 3 x ASCII= 8 beams
BIN 1 x BIN = 8 beams
Example:altogether 15 beams; beam 5 to 8 are interrupted
HEX:0F00< stop character2> DEC:015000< stop character2> BIN:< start char.>00001111< separation char.>00000000< stop char.1>< stop char.2>
Note: redundant beams will always be outputted as “0“ (ü beam made)
The following example shows the output function BS = Beam Status for one MLG with 15 beams:
An object is moving more and more from down (connection side) to up:
MLG with 15 beams, coding in HEX
with 1 HEX data block, 8 beams are presented for 15 beams 2 HEX data blocks are required
redundant bits In this example there are transmitted altogether 6 ASCII-byte per output cycle:
4 x data byte + 2 x stop character = 6
output format:
such setting are possible:
HEX = Hexadecimal= one block, each with two ASCII
characters from 00 to FF DE C = Decimal = one block, each with two ASCII characters from 000 to 255 BIN = binary= absolute each 8 beams
Default setting:HEX
Note: with output function “BS” (Beam Status) and / or “QS” (status of switching outputs), it’s suitab le to use setting “HEX”.
Setting “DEZ” can be used for all other functions
all functions, which can be set by MLGSetup software:
Function Feature
1.NBB Number of Beams Blocked
2.NBM Number of Beams Made
3.FBB First Beam Blocked if no beam blocked ü FF/255
4.FBM First Beam Made if no beam made ü FF/255
6.LBM Last Beam Made if no beam made ü FF/255
5.LBB Last Beam Blocked if no beam blocked ü FF/255
7.NCBB Number of Consecutive Beams
Blocked with several fields the largest will be outputted
8.NCBM Number of Consecutive Beams
Made with several fields the largest will be outputted
9.CBB Central Beam Blocked with several fields CBBmax will be
outputted. If value odd, it’s rounded
down, if no beam blocked ü FF/255
10.CBM Central Beam Made with several fields CBMmax will be
outputted. If value odd, it’s rounded
down, if no beam made ü FF/255
11.QS Status of switching outputs
12.BS Beam Status if multiple scan is set, only the Status
of direct beams are outputted if there are undefined (“FALSE“) conditions (e.g. setting: FBB with all beams made) the output is shown in the above list:
at HEX: FF
at DE C: 255
at BIN: 11111111
it’s also possible to make a serial output of several functions. The order is according
to the numbering shown above.
example for decimal output (setting “DEC”):
15 beams made
function: NBM (Number Beams Made)
format: Dec
stop character: LF CR
<015>
Reporting Mode
default setting:continuous
The data output can be set to different modes:
inactive switched off = no data transmission
input 1/2data transmission only if Input ON = trigger function
on demand one character must be sent (a ... z)
the MLG is answering with the present data transmission
continuous continuous transmission with pause time approx.
1.5ms
Interval like continuous, but the pause time can be set between
20ms up to 4s
if beam status changes
transmission only if beam status changes
Timing
cycle time with continuous data output:
D D D
P = approx. 1.5ms.
D = dependent on Baud Rate and selected Basic Function
Wiring with RS485 communication
The length of cable should be limited to max. 1000m Cable specification should be:
impedance:135 to 165 W capacity:
< 30pF / m loop resistance:< 110 W / km wire diam.:
> 0,34 mm 2
if there is long distance cable installation, shielded cable with twisted data wires should be used. The shield should be connected with large surface to the shield connector e.g. in the power cabinet to the equipotential bonding conductor (earth).Additional the cable should be installed separately to any power circuit.
Network of several MLGs with setting “on demand”
the RS485 interface is terminated with terminal resistors inside the MLG.Therefore it’s only possible to link two MLGs into RS485 communication.The stub cable to the RS485 converter must be kept short!
MLG 1 MLG 2。