Download LN1000 User Manual - MTL Instruments Group

Transcript
Write Multiple Request – Master
START
SYSTEM
ADDR
FUNC
TIME
Y
0x0F
START
ADDR
HI
Y
START
ADDR
LO
Y
NUM
COILS
HI
Y
NUM
COILS
LO
Y
BYTE
COUNT
N
Y
DATA
BYTES
Y*N
LRC
ERROR
CHECK
YY
STOP
TIME
System address
Range is 0x00 (0) to 0xFE (254). Default is 0x00.
Start address word HI/LO word
Indentifies the address of the first data bit to be written. Only port coil data type can be
written:First Port Coil Address = Start address + Port Offset.
Default first coil address in system = 0
Number coils HI/LO word
Number of coils to be written. Max number possible 1984.
Byte Count
Number of data Bytes sent. One data byte is sent for every 8 data bits “coils” written
with a minimum of one data byte assuming at least one data bit “coil” is written.
Data Bytes
Each bit in a data byte represents a coil.
Set Input abnormal: Data bit = HI.
Set Input normal:
Data bit = LO.
Write Multiple Response – Slave
START
SYSTEM
ADDR
FUNC
START
ADDR HI
START
ADDR LO
TIME
Y
0x0F
Y
Y
System address
NUM
INPUTS
HI
Y
Range is 0x00 (0) to 0xFE (254). Default is 0x00.
Start address HI/LO word
Same as the original request.
Number inputs HI/LO word
Same as the original request.
92
NUM
INPUTS
LO
Y
LRC
ERROR
CHECK
YY
STOP
TIME