Using the Simulation Driver

You may prefer to use the SIM driver over the SM2 driver for one or more of the following conditions:

  • Generating a repeating pattern of random and predefined values to help you test your chains.
  • Using alarm counters to show the general alarm state of your SCADA server.

To use the SIM driver:

  1. In the primary block's Driver field, type SIM.
  2. Complete the I/O Address field with the following syntax:

register:bit

For analog values, the register ranges from 0 to 1999. The bit is not used.

For digital values, the register ranges from 0 to 1999. The bit is 0 to 15. The full range of register/bit settings is 0:0 to 1999:15.

NOTE: The SIM driver does not support analog scaling (A_SCALE_* and F_SCALE_* database fields).

Examples: SIM Addresses

0:0
50:2
63:15

The SIM driver shares only one set of registers for Analog and Digital blocks. As a result, you can address all 2000 registers as analog or digital values. The following table shows the digital bit values when a SIM register contains an analog value.

SIM Analog and Digital Values 

When the Analog Value is...

The Bits for Digital Values are...

65535

Bits 15 to 0 are set to 1

 
 

32768

Bit 15 is set to 1
Bits 14 to 0 are set to 0

 
 

32767

Bit 15 is set to 0
Bits 14 to 0 are set to 1

 
 

255

Bits 15 to 8 are set to 0
Bits 7 to 0 are set to 1

 
 

Database Manager does not accept entries into the Hardware Options and Signal Conditioning fields when using the SIM driver. In addition, the SIM driver supports:

  • Only five-digit precision instead of the standard seven-digit precision.
  • Time-based processing; you cannot use exception-based processing.
  • The output of good values. The SIM driver does not output bad values. If you are testing your system for fault tolerance, remember that the SIM driver does not send communication errors (BAD values).

 

See Also

How Do I...