10 16 (1016): preset multiple registers, Preset multiple registers – KROHNE MFC 010 C Converter User Manual
Page 33
MFC010 Interface Manual
31
6.10
16
(10
16
): Preset Multiple Registers
This function permits the user to set the v alue of a num ber of c onsecutive H olding r egisters. T his
command function must be used to write to variables which occupy multiple consecutive registers such as
floating point and long integer variables (See Section 7.5 on page 49 for details of the individual
registers). Some of the Variables which occupy single (16 bit) registers c annot be s et us ing t his
command, the Password registers (1001-1003) in particular. Command Function 06 (06
16
) must be used
to set these registers. The format of the Master request telegram for this function should be as follows.
Request
Character
Field
For Example
1
Slave Address
01
16
Request to Slave ID 1
2
Function
10
16
“Preset Multiple Registers”
3
Starting Address Hi
03
16
Starting Register Address = 1020
4
Starting Address Lo
FB
16
5
No. of Registers Hi
00
16
Number of Registers = 2
6
No. of Registers Lo
02
16
7
Byte Count
04
16
No of Bytes = 4 ( 2 x 2 )
8
Data Hi
00
16
Set Register 1020 = 17
9
Data Lo
11
16
10
Data Hi
00
16
Set Register 1021 = 18
11
Data Lo
12
16
12
CRC Lo
79
16
CRC Checksum
13
CRC Hi
A0
16
The MFC010 will respond to such a request with a telegram formatted as follows.
Response
Character
Field
For Example
1
Slave Address
01
16
Response from Slave ID 1
2
Function
10
16
“Preset Multiple Registers”
3
Starting Address Hi
03
16
Starting Register Address = 1020
4
Starting Address Lo
FB
16
5
No. of Registers Hi
00
16
Number of Registers = 2
6
No. of Registers Lo
02
16
7
CRC Lo
30
16
CRC Checksum
8
CRC Hi
7D
16