Siemens 200 instruction manual Writing Parameters, Format Register, Bits Values Description

Models: 200

1 282
Download 282 pages 42.81 Kb
Page 125
Image 125

Writing Parameters

To set parameters through Modbus do the following steps:

1.Send the parameter, its primary index, and its secondary index (usually 0) to registers 40,090, 40,091, and 40,092.

2.Write the value to registers 40,096 and 40,097.

3.Write the desired format word to register 40,093 to enable the MultiRanger to interpret the value correctly.

Format Register

Bits

Values

Description

1-8

0-2

Error Code

9-11

0-7

3-bit number representing decimal offset

12

0/1

direction of offset (0 = right, 1 = left)

13

0/1

Numeric format: Fixed (0) or Float (1)

14

0/1

Read or Write of data, Read (0), Write (1)

15

0/1

Word order: Most Significant Word first (0), Least

 

 

Significant Word first (1)

16

 

Reserved

 

 

 

For example, to format the level reading so that it is shown in percent with two decimal places shifted left, the format bits would look like this:

Bit

16

15

14

13

12

11

10

09

08

07

06

05

04

03

02

01

Numbers

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit Values

0

0

0

0

0

0

1

0

0

0

0

0

0

0

0

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

reserved

most significant first

read

fixed format

offset direction to right

 

decimal offset of 2

 

 

 

 

no error code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The value sent to the MultiRanger is 0001001000000000 binary or 512 decimal. The value 512 is sent as an integer to register 40,093 to format the output words 40,094 and 40,095 accordingly.

If the numeric data type is set for integer and the value contains decimal places, they are ignored. In this situation, use the decimal offset to ensure that you have an integer value and then write your code to recognize and handle the decimal offset.

Communication Appendix A

7ML19981FB06

MultiRanger 100/200 – INSTRUCTION MANUAL

Page 115

Page 125
Image 125
Siemens 200 instruction manual Writing Parameters, Format Register, Bits Values Description