Scale

<< Click to Display Table of Contents >>

 

Scale

The Simulator generates analog values ranging from 0 (zero) to 65535. As this exercise needs values inside another range, let's enable a scale function.

Values for a scale function

Address

Name

Min. EU

Max. Eu

EU

Min. I/O

Max. I/O

1

Temperature_T1

20

200

°C

0

65535

2

Temperature_T2

20

200

°C

0

65535

3

Level_T1

0

100

%

0

65535

4

Level_T2

0

100

%

0

65535

 

1.Change all Analog Tag properties according to the next figure.

Scale configuration

Scale configuration

2.Test the communication. The Value column already displays values with the configured scale and the Value (unscaled) column displays values sent by a device.

Testing communication

Testing communication

 

NOTE

In case Elipse Modbus Simulator is closed or stopped, Tags appear in red, indicating a communication error, as shown on the next figure. When reopening or reactivating the simulator, the connection is reestablished in the period of time indicated by the Retry failed connection every n seconds option on this Driver's Setup tab, which in this Tutorial was configured to 20 seconds.

 

Tags in I/O error

Tags in I/O error

Was this page useful?