Simulation 2 Driver
Simulation 2 Driver
Simulation 2 Driver
The information contained in this manual is believed to be accurate and reliable. However, GE Intelligent Platforms,
Inc. assumes no responsibilities for any errors, omissions or inaccuracies whatsoever. Without limiting the foregoing,
GE Intelligent Platforms, Inc. disclaims any and all warranties, expressed or implied, including the warranty of mer-
chantability and fitness for a particular purpose, with respect to the information contained in this manual and the
equipment or software described herein. The entire risk as to the quality and performance of such information, equip-
ment and software, is upon the buyer or user. GE Intelligent Platforms, Inc. shall not be liable for any damages, includ-
ing special or consequential damages, arising out of the use of such information, equipment and software, even if GE
Intelligent Platforms, Inc. has been advised in advance of the possibility of such damages. The use of the information
contained in the manual and the software described herein is subject to GE Intelligent Platforms, Inc. standard
license agreement, which must be accepted by the buyer or user before the use of such information, equipment or
software.
Trademark Notices
Proficy is a trademark of GE Intelligent Platforms, Inc., a wholly-owned subsidiary of General Electric Company.
All other product names and marks identified throughout this book are trademarks or registered trademarks of their
respective companies. They are used throughout this book in editorial fashion only. No such use, or the use of any
trade name, is intended to convey endorsement or affiliation.
No part of this publication may be reproduced in any form, or stored in a database or retrieval system, or transmitted
or distributed in any form by any means, electronic, mechanical photocopying, recording or otherwise, without the
prior written permission of GE Intelligent Platforms. Information contained herein is subject to change without notice.
We want to hear from you. If you have any comments, questions, or suggestions about our documentation, send them
to the following email address:
[email protected]
Table of Contents
Simulation 2 Driver 2
Index 9
The Simulation 2 (SM2) driver provides a matrix of addresses that lets you test your process database to
learn how its block and chains respond to different conditions. You can also use the SM2 driver with a C
application to extract data from legacy systems and store it in a process database.
The SM2 driver has no driver configuration program so no configuration of the driver is required. Instead,
you specify the SM2 address you want to use in a database block's I/O Address field and then place the
block on scan. To learn more about using SM2 addresses, refer to Accessing SM2 Registers.
The SM2 driver is similar to the SIM driver supplied with your FIX and iFIX software. Both drivers:
l Provide a matrix of addresses that database blocks can read from and write to.
l Support analog and digital database blocks.
l Support text blocks.
However, the SM2 driver differs from the SIM driver in several important ways:
Obviously, you can use the SIM driver for many of the same tasks as the SM2 driver. However, you may
prefer to use the SM2 driver when one or more of the following conditions occur:
l You have more test data than the SIM driver can hold.
l You want to determine how the database responds to 32-bit values.
l You need to access the driver from a C program.
The SM2 driver matrix consists of 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 data-
base blocks work the same way, reading and writing from the digital registers. FIX (or iFIX) clears all SM2
values when FIX or iFIX starts.
The SM2 driver does not use the Hardware Options or Signal Conditioning fields.
The SM2 driver provides an S register to simulate a communication error. Using this register, all analog
and digital reads return an error as if communication to the process hardware has been lost.
iFIX and FIX can process alarm status information from I/O drivers. This information complements the
alarms generated by iFIX and FIX database blocks. When an alarm is returned from a driver, iFIX and FIX
compares the driver alarm against the block alarm. The alarm with the higher severity is used as the block
alarm and the other alarm is ignored.
Using the preceding tables, you can see that if a driver returns a HIHI alarm to a block that is in HI alarm,
iFIX or FIX changes the alarm state to HIHI because the driver alarm is more severe. However, if the
alarms are of equal severity, iFIX or FIX does not change the alarm state of the block. For example, if the
block is in HI alarm and the driver returns a LO alarm, the block's alarm state does not change because
both alarms have equal severity. Once an operator acknowledges the HI alarm, iFIX or FIX changes the
block's alarm state.
NOTE: If you set a communication error to the S register with the SetCommError function, then all SM2 registers
show a COMM alarm status. When examining the alarm status of text, only the status of the first character (byte)
is read. You can control the alarm status functions of the SM2 driver using its C API only. Refer more information
about this API, refer to the Using the SM2 C API section.
addresses 4
digital blocks 3
exception-based processing 3
features 3
latched data 3, 5
S register 6
SIM driver 3