SICK MCS100E Manuel D'utilisation page 127

Table des Matières

Publicité

Programmes d'aide et protocoles
Floating point format
One floating point register is two consecutive 16bit registers
32bit =4byte
S = sign
E = exponent (two´s complement biased by 127)
M = matissa
byte3(MSB) byte2
SEEE EEEE
Transmission sequence (1.byte=high (MSB)):
byte1,byte0,byte3,byte2
Format for digital I/O and FLAGS by func=01,15
One digital condition is one bit.
A logical 0 means OFF, a logical 1 means ON,
One data byte (=8 bits) include the conditions of 8 digital I/O/FLAG.
Bit0 = lower
Bit7 = higher digital I/O/FLAG.
Send registers (Results,DigOut,DigInp,Flag) to PC on demand
Dataformat:(slave)
PCOut[01] : adr
Demand on Register (Results,DI,DO,FLAG,)
Dataformat:
PCOut[01] : adr
Set one digital OUT/INP/FLAG (force coil)
Dataformat:
PCOut[01] : adr
D_addr=
D_addr=097..192 : digital INP
D_addr=193..392 : digital FLAG 1..200
dhi=ff,dlo=00 : DO/DI/FLAG = ON (=1)
dhi=00,dlo=00 : DO/DI/FLAG = OFF(=0)
Func=3
Func=10hex : Write multiple Register
Start Register(decimal):
0001 .. 0099Result Block 1 : Result 01..32
0101 .. 0199
0201 .. 1400
1401 .. 1421Modbus system parameter block
1501 .. 2945Datalog block
MCS100E Manuel d'utilisation 8009505/ YWA7/V3-1/2018-01 © SICK AG
(0=positive)
(1.matissa)
byte1
EMMM MMMM
MMMM MMMM
digital I/O/FLAG.
- Device address
[02] : func
- function 01,02,03
[03] : n2
- No of Bytes
[04] : Rn1
- MSB first register
[05] : Rn1
- LSB first register
:
[xx] : Rnl
- MSB last register
[xx] : Rnl
- LSB last register
[xx] : CRC
- LSB CRC
[xx] : CRC
- MSB CRC
- Device address
[02] : 03H
- function Register
[03] : n1
- MSB Start Register - 1
[04] : n1
- LSB Start Register - 1
[05] : n2
- MSB No of Registers
[06] : n2
- LSB No of Registers
[07] : CRC
- LSB CRC
[08] : CRC
- MSB CRC
- Device address
[02] : 05H
- function Register
[03] : ahi
- MSB D_addr
[04] : alo
- LSB D_addr
[05] : dhi
- MSB data
[06] : dlo
- LSB data
[07] : CRC
- LSB CRC
[08] : CRC
- MSB CRC
1.. 96 : digital OUT
: Read
multiple Register
Result Block 2 : Result 33..64
Component data block
byte0(LSB)
MMMM MMMM
1..96
1..96
127

Publicité

Table des Matières
loading

Table des Matières