Utility programs and protocols
MCS100E Operating Instructions 8009504/VYWA7/V3-1/2018-01 © SICK AG
127
Su
bj
ect
to
ch
an
ge
with
ou
t n
otic
e
Floating point format
One floating point register is two consecutive 16bit registers
32bit =4byte
S = sign (0=positive)
E = exponent (two´s complement biased by 127)
M = matissa (1.matissa)
byte3(MSB) byte2 byte1 byte0(LSB)
SEEE EEEE EMMM MMMM MMMM MMMM MMMM MMMM
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 digital I/O/FLAG.
Bit7 = higher digital I/O/FLAG.
Send registers (Results,DigOut,DigInp,Flag) to PC on demand
Dataformat:(slave)
PCOut[01] : adr - 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
Demand on Register (Results,DI,DO,FLAG,)
Dataformat:
PCOut[01] : adr - 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
Set one digital OUT/INP/FLAG (force coil)
Dataformat:
PCOut[01] : adr - 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
D_addr= 1.. 96 : digital OUT 1..96
D_addr=097..192 : digital INP 1..96
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 : Read multiple Register
Func=10hex : Write multiple Register
Start Register(decimal):
0001 .. 0099Result Block 1 : Result 01..32
0101 .. 0199 Result Block 2 : Result 33..64
0201 .. 1400 Component data block
1401 .. 1421Modbus system parameter block
1501 .. 2945Datalog block