Using the Simulation 2 Driver

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

  • You have more test data than the SIM driver can hold.
  • You want to determine how the database responds to 32-bit values.
  • You need to access the driver from a C program.

Accessing SM2 Registers

The SM2 driver matrix consists three independent sets of registers, one for analog values, one for digital values, and one for text values. Analog database blocks read from and write to analog registers only. Once a block writes a value, other analog blocks can read the value from the register written to. Digital database blocks work the same way, reading and writing from the digital registers. iFIX clears all SM2 values when iFIX starts.

The SM2 driver does not use the Hardware Options or Signal Conditioning fields.

To use the SM2 register:

  1. Enter SM2 in the primary block's Device field.
  2. Complete the I/O Address field with the following syntax:

    For Analog values: register

    For Digital values: register:bit

    For Text values: register

    SM2 Address Examples

    Analog Examples

    Digital Examples

    Text Examples

    1000

    5000:10

    2000

    16435

    23:15

    off

 

See Also

How Do I...