EasyManua.ls Logo

IMO iSmart V4 - Page 217

IMO iSmart V4
274 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 FBD Block Diagram Programming 197
MU mode1: Read Registers
S
etting communication address is constant:
Mode1
FBD display
Parameter display
Enable Input
Parameter
slave ID
Register address
Saving data address
S
etting communication address is data register DR:
Mode1
FBD display
Parameter display
Enable Input
Parameter
slave ID
Register address
Saving data address
Address is constant 0003,
Data length is fixed at 1word,
Send data:
01 03 00 03 00 01 CRC16;
Recei
ved response form slave1:
01 03 02 data1 data2 CRC16;
Saving date to DRE0: DRE0 = data1~2
Setting address DR03=0001,
Setting data length DR04=0002,
Send data:
01 03 00 01 00 02 CRC16;
R
eceived response from slave1:
01 03 04 data1 data2 data3 data4 CRC16;
Saving data to DRE0~DRE1:
DRE0 = data1~2, DRE1 = data3~4
the max length of data is 25.

Table of Contents