您好,欢迎来到易榕旅网。
搜索
您的当前位置:首页SICK安全光栅485通讯内部资料mlg_rs485_interface

SICK安全光栅485通讯内部资料mlg_rs485_interface

来源:易榕旅网
MLG with RS485 interface

Character frame / RS485 protocoloptionBitNo.012345678(9)100dddddddd1/01Start- stop data bit 1...8bitparity bitbitBaudrate:

Default setting:1200 up to 1152009600

The parity bit can be set / changed by MLGSetup software.nooddevenDefault setting:

no parity

picture1: format data interface

Data outputThe 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 between each data block if wanted.Default setting:

start character

separation characterstop character 1stop character 2

NUL (will not be outputted)NULLFCR

green = option/variable

SCd a t aTd a t aLFCRstartcharacterseparationcharacter

stopcharacter

The start-, separation-, and stop- characters can be selected by MLGSetup software!

page 1 / 6

Roland Pelz 25.07.03

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 absolutebinary:

beam made = 0beam blocked = 1

Description of output functionDefault setting:

BS (Beam Status)

The output of beam status shows the status of all beams, that means the status of each singlebeam.

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 typecharactersHEX2 x ASCIIDEC 3 x ASCIIBIN1 x BIN

Example:

shown beams

= 8 beams = 8 beams = 8 beams

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:

page 2 / 6

Roland Pelz 25.07.03

MLG with 15 beams, coding in HEX

with 1 HEX data block, 8 beams are presentedfor 15 beams 2 HEX data blocks are required

MLG1-0140IXXXbeam-beamstatusbinarystatusHEX1..........89.......150000000000000000000080001000000000000000C0001100000000000000E0001110000000000000F0001111000000000000F8001111100000000000FC001111110000000000FE001111111000000000FF001111111100000000FF801111111110000000FFC01111111111000000FFE01111111111100000FFF01111111111110000FFF81111111111111000FFFC1111111111111100FFFE11111111111111101 2 3 4 5 6 7 8 9 . ................. 150 = beam made (=free)1 = beam blockedredundant bits

SICK MLGIn this example there are transmitted altogether 6 ASCII-byte per output cycle:4 x data byte + 2 x stop character = 6

page 3 / 6

Roland Pelz 25.07.03

picture2: transmission of basic functions

output format:

such setting are possible:

HEX = Hexadecimal= one block, each with two ASCII characters from 00 to FFDEC = Decimal = one block, each with two ASCII characters from 000 to 255BIN = binary= absolute each 8 beamsDefault setting:

HEX

Note: with output function “BS” (Beam Status) and / or “QS” (status of switchingoutputs), it’s suitable to use setting “HEX”.

Setting “DEZ” can be used for all other functions

all functions, which can be set by MLGSetup software:

No.1.2.3.4.6.5.7.8.9.

NameNBBNBMFBBFBMLBMLBBNCBB

Function

Number of Beams BlockedNumber of Beams MadeFirst Beam BlockedFirst Beam MadeLast Beam MadeLast Beam Blocked

Number of Consecutive BeamsBlocked

NCBMNumber of Consecutive Beams

Made

CBBCentral Beam Blocked

Central Beam MadeStatus of switching outputs

Beam Status

Feature

10.CBM11.QS12.BS

if no beam blocked Ü FF/255if no beam made Ü FF/255if no beam made Ü FF/255if no beam blocked Ü FF/255

with several fields the largest will beoutputted

with several fields the largest will beoutputted

with several fields CBBmax will beoutputted. If value odd, it’s roundeddown, if no beam blocked Ü FF/255with several fields CBMmax will beoutputted. If value odd, it’s roundeddown, if no beam made Ü FF/255if multiple scan is set, only the Statusof 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: FFat DEC: 255

at BIN: 11111111

page 4 / 6

Roland Pelz 25.07.03

it’s also possible to make a serial output of several functions. The order is accordingto 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 Modedefault setting:continuous

The data output can be set to different modes:

inactiveswitched off = no data transmissioninput 1/2data transmission only if Input ON = trigger functionon demandone character must be sent (a ... z)

the MLG is answering with the present data transmissioncontinuouscontinuous transmission with pause time approx. 1.5msIntervallike continuous, but the pause time can be set between 20ms up to 4s

if beam status changestransmission only if beam status changes

picture3: reporting mode

Timingcycle time with continuous data output:

DPpauseDdataPDPP = approx. 1.5ms.

D = dependent on Baud Rate and selected Basic Function

page 5 / 6

Roland Pelz 25.07.03

Wiring with RS485 communicationThe length of cable should be limited to max. 1000mCable specification should be:

impedance:capacity:

loop resistance:wire diam.:

135 to 165 W< 30pF / m< 110 W / km> 0,34 mm2

if there is long distance cable installation, shielded cable with twisted data wiresshould be used. The shield should be connected with large surface to the shieldconnector 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

SICK MLGSICK MLGMLG 2

SICK MLGSICK MLGkeep stub cable shortRS485converterpage 6 / 6

Roland Pelz 25.07.03

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- yrrd.cn 版权所有

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务