Professional Documents
Culture Documents
Data Base Reference: Logic Functions
Data Base Reference: Logic Functions
BOOK 1:
System, I/O and Communications Functions for
2001P - MODCELL™ Logic Control Identity Module (Version 6)
2004P - MODCELL™ Advanced Control Identity Module (Version 3)
1800P - MOD 30ML™ Identity Module (Version 2)
MicroMod Automation, Inc.
The Company
MicroMod Automation is dedicated to improving customer efficiency by providing the most cost-effective, application-specific process
solutions available. We are a highly responsive, application-focused company with years of expertise in control systems design and
implementation.
We are committed to teamwork, high quality manufacturing, advanced technology and unrivaled service and support.
The quality, accuracy and performance of the Company's products result from over 100 years experience, combined with a continuous
program of innovative design and development to incorporate the latest technology.
Use of Instructions
Ì Warning. An instruction that draws attention to the risk of Note. Clarification of an instruction or additional
injury or death. information.
q Caution. An instruction that draws attention to the risk of i Information. Further reference for more detailed
the product, process or surroundings. information or technical details.
Although Warning hazards are related to personal injury, and Caution hazards are associated with equipment or property damage, it
must be understood that operation of damaged equipment could, under certain operational conditions, result in degraded process
system performance leading to personal injury or death. Therefore, comply fully with all Warning and Caution notices.
Information in this manual is intended only to assist our customers in the efficient operation of our equipment. Use of this manual for
any other purpose is specifically prohibited and its contents are not to be reproduced in full or part without prior approval of MicroMod
Automation, Inc.
The relevant sections of these instructions must be read carefully before proceeding.
1. Warning Labels on containers and packages must be observed.
2. Installation, operation, maintenance and servicing must only be carried out by suitably trained personnel and in accordance with the information
given or injury or death could result.
3. Normal safety procedures must be taken to avoid the possibility of an accident occurring when operating in conditions of high
4. pressure and/or temperature.
5. Chemicals must be stored away from heat, protected from temperature extremes and powders kept dry. Normal safe handling procedures must be
used.
6. When disposing of chemicals, ensure that no two chemicals are mixed.
Safety advice concerning the use of the equipment described in this manual may be obtained from the Company address on the back
cover, together with servicing and spares information.
CONTENTS
CONTENTS
Page
SECTION 1 - INTRODUCTION
1.1 GENERAL .......................................................................................................................................... 1-1
1.2 OVERVIEW OF INSTRUMENT SOFTWARE.................................................................................... 1-1
1.3 DATA BASE CONFIGURATION AND RUNTIME SUPPORT ........................................................... 1-1
1.4 RELATED DOCUMENTATION.......................................................................................................... 1-1
1.5 VERSION IDENTIFICATION ............................................................................................................. 1-2
i
Logic Functions - Book 1
CONTENTS
CONTENTS (Cont’d)
Page
3.6 CONFIGURED LIST BLOCK (CL)................................................................................................... 3-49
3.6.1 Configured List Block Operation............................................................................................... 3-49
3.6.2 Configured List Block Parameters ............................................................................................ 3-50
3.6.3 Typical Block Connections for Configured List Block ............................................................... 3-52
3.7 MODBUS LIST BLOCK (ML)........................................................................................................... 3-53
3.7.1 Modbus List Block Operation.................................................................................................... 3-54
3.7.2 Modbus List Block Parameters................................................................................................. 3-55
3.7.3 Typical Block Connections for Modbus List Block .................................................................... 3-56
ii
Logic Functions - Book 1
CONTENTS
CONTENTS (Cont’d)
Page
5.5 ANALOG OUTPUT MODULE BLOCK (AOM) ................................................................................. 5-47
5.5.1 Analog Output Module Block Capabilities ................................................................................. 5-50
5.5.2 Analog Output Module Block Parameters ................................................................................. 5-51
5.5.3 Typical Block Connections for Analog Output Module Block .................................................... 5-58
5.5.4 Analog Output Module Block Events......................................................................................... 5-58
iii
Logic Functions - Book 1
CONTENTS
CONTENTS (Cont’d)
Page
APPENDIX A - SUMMARY OF VERSION DIFFERENCES
iv
Logic Functions - Book 1
CONTENTS
ILLUSTRATIONS
Figure Page
2-1. Data Base Structure ................................................................................................................................. 2-2
3-1. Interface Block, Overview......................................................................................................................... 3-3
3-2. Interface Block (IF), Execution Menu ....................................................................................................... 3-4
3-3. Interface Block (IF), Startup Menu............................................................................................................ 3-4
3-4. Interface Block (IF), Diagnostic Menu ...................................................................................................... 3-5
3-5. Interface Block, Typical Connections...................................................................................................... 3-26
3-6. System Event Block (SE), Block Diagram .............................................................................................. 3-29
3-7. System Event Block (SE), General Menu............................................................................................... 3-30
3-8. System Event Block (SE), Diagnostic Menu........................................................................................... 3-30
3-9. System Event Block (SE), Alarms Menu ................................................................................................ 3-31
3-10. System Event Block, Typical Connections ........................................................................................... 3-41
3-11. Loop Block, Functional Block Diagram ................................................................................................. 3-43
3-12. Loop Block (LP), General Menu ........................................................................................................... 3-44
3-13. Loop Block (LP), Diagnostic Menu ....................................................................................................... 3-44
3-15. Configured List Block (CL), Edit Display, page 2.................................................................................. 3-49
3-16. Typical Block Connections for Configured List Blocks.......................................................................... 3-52
3-17. Modbus List Block (ML), Edit Display, page 2 ...................................................................................... 3-54
3-18. Typical Block Connections for Modbus List Block ................................................................................ 3-56
4-1. ICN Communication Block, Functional Block Diagram............................................................................. 4-3
4-2. ICN Communication Block (ICN), General Menu ..................................................................................... 4-4
4-3. ICN Communication Block (ICN), Authorized Source Menu .................................................................... 4-4
4-4. ICN Communication Block (ICN), Diagnostics Menu ............................................................................... 4-5
4-5. ICN Communication Block, Typical Connections ................................................................................... 4-16
4-6. Modcell Serial Communication Block, Functional Block Diagram .......................................................... 4-18
4-7. Modcell Serial Communication (MSC), Edit Block Display, Page 1........................................................ 4-19
4-8. Modcell Serial Communication (MSC), Edit Block Display, Page 2........................................................ 4-19
4-9. Modcell Serial Communication Block, Typical Block Connections ......................................................... 4-35
5-1. Analog Input Module and Input Function Block Relationships.................................................................. 5-2
5-2. Digital Input Module Block, Functional Block Diagram ............................................................................. 5-3
5-3. Digital Input Module (DIM), General Menu ............................................................................................... 5-4
5-4. Digital Input Module (DIM), Diagnostic Menu ........................................................................................... 5-4
5-5. Digital Output Module Block, Functional Block Diagram ........................................................................ 5-10
5-6. Dual Digital Output Module Block, Functional Block Diagram ................................................................ 5-11
5-7. Digital Output Module (DOM), General Menu ........................................................................................ 5-11
5-8. Dual Digital Output Module (DDOM), Channel 1 Configuration Menu ................................................... 5-13
5-9. Digital Output Module (DOM), Diagnostic Menu .................................................................................... 5-14
5-10a. Wide Digital Output Module (WDOM), General Menu........................................................................ 5-16
5-10b. Wide Digital Output Module (WDOM), Diagnostic Menu.................................................................... 5-16
5-11. Digital Output Block, Typical Connections............................................................................................ 5-23
5-12. Analog Input/Output Type Module Phased Scan Cycle ....................................................................... 5-26
5-13. Voltage/Current Input Module Block, Functional Block Diagram ......................................................... 5-27
5-14. Voltage/Current Input Module Block (VCIM), General Menu................................................................ 5-28
5-15. Voltage/Current Input Module Block (VCIM), Diagnostic Menu............................................................ 5-28
5-16. Thermocouple Input Module Block, Functional Block Diagram ............................................................ 5-30
5-17. Thermocouple Input Module (TIM), General Menu .............................................................................. 5-31
5-18. Thermocouple Input Module (TIM), Diagnostic Menu .......................................................................... 5-31
5-19. Functional Block Diagram, Resistance Input Module Block ................................................................. 5-33
5-20. Resistance Input Module (RIM), General Menu ................................................................................... 5-34
5-21. Resistance Input Module (RIM), Diagnostic Menu ............................................................................... 5-34
5-22. Wide Resistance Input Module Block, Functional Block Diagram ........................................................ 5-36
v
Logic Functions - Book 1
CONTENTS
ILLUSTRATIONS (Cont’d)
Figure Page
5-23. Wide Resistance Input Module (WRIM), General Menu ...................................................................... 5-37
5-24. Wide Resistance Input Module (WRIM), Diagnostic Menu .................................................................. 5-37
5-25. Typical Block Connections for Analog Input Module Block .................................................................. 5-46
5-26. Analog Output Module Block, Functional Block Diagram (Part 1)........................................................ 5-47
5-27. Analog Output Module Block, Functional Block Diagram (Part 2)........................................................ 5-48
5-28. Analog Output Module (AOM), General Menu..................................................................................... 5-49
5-29. Analog Output Module (AOM), Restart/Failsafe Menu ........................................................................ 5-49
5-30. Analog Output Module (AOM), Diagnostic Menu ................................................................................. 5-50
5-31. Analog Output Module Block, Typical Connections ............................................................................. 5-58
6-1. Remote I/O Interface Module Block, Functional Block Diagram .............................................................. 6-3
6-2. Remote I/O Interface Module Block, General Menu ................................................................................ 6-4
6-3. Remote I/O Interface Module Block, Typical Connections..................................................................... 6-10
6-4. Remote Digital Input Module Block, Functional Block Diagram ............................................................. 6-12
6-5. Remote Digital Input Module Block, General Menu ............................................................................... 6-13
6-6. Remote Digital Input Module Block, Channel Configuration Menu ........................................................ 6-13
6-7. Remote Digital Input Block, Typical Connections .................................................................................. 6-20
6-8. Remote Digital Output Module Block, Functional Block Diagram .......................................................... 6-22
6-9. Remote Digital Output Module Block, General Menu ............................................................................ 6-23
6-10. Remote Digital Output Module Block, Channel Configuration Menu ................................................... 6-23
6-11. Remote Digital Output Module Block, Diagnostics Menu..................................................................... 6-24
6-12. Remote Digital Output Module Block, Typical Connections................................................................. 6-32
7-1. Voltage/Current Input Block (VCI), Functional Block Diagram................................................................ 7-4
7-2. Voltage/Current Input Block (VCI), General Menu................................................................................... 7-5
7-3. Voltage/Current Input Block (VCI), Diagnostics Menu ............................................................................. 7-5
7-4. Thermocouple Transmitter Input Block (TTI), Functional Block Diagram ................................................ 7-7
7-5. Thermocouple Transmitter Input Block (TTI), General Menu .................................................................. 7-8
7-6. Thermocouple Transmitter Input Block (TTI), Diagnostics Menu............................................................. 7-8
7-7. Thermocouple Input Block (TI), Functional Block Diagram.................................................................... 7-10
7-8. Thermocouple Input (TI), General Menu................................................................................................ 7-11
7-9. Thermocouple Input (TI), Diagnostics Menu .......................................................................................... 7-11
7-10. Resistance Input Block (RI), Functional Block Diagram....................................................................... 7-13
7-11. Resistance Input Block (RI), General Menu......................................................................................... 7-14
7-12. Resistance Input Block (RI), Diagnostics Menu ................................................................................... 7-14
7-13. RTD Input Block (RTI), Functional Block Diagram............................................................................... 7-16
7-14. RTD Input Block (RTI), General Menu................................................................................................. 7-17
7-15. RTD Input Block (RTI), Diagnostics Menu ........................................................................................... 7-17
7-16. RTD Transmitter Input Block (RTTI), Functional Block Diagram ......................................................... 7-19
7-17. RTD Transmitter Input Block (RTTI), General Menu ........................................................................... 7-20
7-18. RTD Transmitter Input Block (RTTI), Diagnostics Menu...................................................................... 7-20
7-19. Typical Block Connections for Analog Input Type Block ...................................................................... 7-27
7-20. Digital Input Block, Functional Block Diagram ..................................................................................... 7-29
7-21. Digital Input Block (DI), General Menu................................................................................................. 7-30
7-22. Digital Input Block, Typical Connections .............................................................................................. 7-32
vi
Logic Functions - Book 1
CONTENTS
TABLES
Table Page
2-. Data Types ................................................................................................................................................. 2-6
2-2. State Change Actions............................................................................................................................... 2-9
3-1. Interface Block Attributes, Valid Values, Mnemonics, and Data Types .................................................... 3-6
3-2. System Event Block Attributes, Valid Values, Mnemonics, and Data Types.......................................... 3-33
3-3. Event Transition Codes and Descriptions .............................................................................................. 3-42
3-4. Loop Block Attributes, Valid Values, Mnemonics, and Data Types ........................................................ 3-45
3-5. Configured List Block Attributes, Valid Values, Mnemonics, and Data Types........................................ 3-50
3-6. Modbus List Block Attributes, Valid Values, Mnemonics, and Data Types............................................. 3-55
4-1. ICN Communication Block Attributes, Valid Values, Mnemonics, and Data Types.................................. 4-7
4-2. Modcell Serial Communication Block Attributes, Valid Values, Mnemonics, and Data Types................ 4-23
5-1. Digital Input Module Block Attributes, Valid Values, Mnemonics, and Data Types .................................. 5-6
5-2. Digital Output Module Block Attributes, Valid Values, Mnemonics, and Data Types ............................. 5-12
5-3. Dual Digital Output Module Block Attributes, Valid Values, Mnemonics, and Data Types ..................... 5-14
5-4. Wide Digital Output Module Block Attributes, Valid Values, Mnemonics, and Data Types .................... 5-17
5-5. Voltage/Current Input Module Attributes, Valid Values, Mnemonics, and Data Types........................... 5-29
5-6. Thermocouple Input Module Attributes, Valid Values, Mnemonics, and Data Types ............................. 5-32
5-8. Resistance Input Module Attributes, Valid Values, Mnemonics, and Data Types .................................. 5-35
5-9. Wide Resistance Input Module Attributes, Valid Values, Mnemonics, and Data Types ......................... 5-38
5-10. Analog Output Module Block Attributes, Valid Values, Mnemonics, and Data Types .......................... 5-51
6-1. RIO Module Block Attributes, Valid Values, Mnemonics, and Data Types............................................... 6-5
6-2. RDIM Block Attributes, Valid Values, Mnemonics, and Data Types....................................................... 6-14
6-3. RDOM Block Attributes, Valid Values, Mnemonics, and Data Types ..................................................... 6-25
7-1. Voltage/Current Input Attributes, Valid Values, Mnemonics, and Data Types.......................................... 7-6
7-2. Thermocouple Transmitter Input Attributes, Valid Values, Mnemonics, and Data Types......................... 7-9
7-3. Thermocouple Input Block Attributes, Valid Values, Mnemonics, and Data Types ................................ 7-12
7-4. Resistance Input Attributes, Valid Values, Mnemonics, and Data Types ............................................... 7-15
7-5. RTD Input Attributes, Valid Values, Mnemonics, and Data Types ......................................................... 7-18
7-6. RTD Transmitter Input Block Attributes, Valid Values, Mnemonics, and Data Types ............................ 7-21
7-7. Digital Input Block Attributes, Valid Values, Mnemonics, and Data Types ............................................. 7-31
vii
Logic Functions - Book 1
CONTENTS
viii
Logic Functions - Book 1
INTRODUCTION
1
INTRODUCTION
1.1 GENERAL
This document is the first of two books that includes database reference information for
instruments with logic functionality. Also included is information on database organization and
database memory block structure. The user of this document should be familiar with the
architecture of the MODCELL or the MOD 30ML instrument, configuration capabilities, and
message handling capabilities using either the Instrument Communications Network (ICN) or
the Modbus Protocol. For users developing their own runtime interface, this document
includes attribute numbers and data value number information.
1-1
Logic Functions - Book 1
INTRODUCTION
Additional ICN connection and loading information can be found in the following:
• IB-23A160 – Instrument Communications Network (ICN) Planning
Version number identification for specific blocks is obtained through the database. See
Appendix A for a summary of version differences.
1-2
Logic Functions - Book 1
DATABASE DESCRIPTION
2
DATABASE DESCRIPTION
2.1 GENERAL
This section describes the structures and global features that support the instrument database
and it describes general instrument operation and how the database is protected.
Understanding the basic elements that support database creation and operation is
fundamental in knowing how the configuration will affect instrument performance. How
individual parameters affect the function of the instrument during database execution is
described in the next section. Since commonality exists in certain basic functions, this section
is used as a common reference point to describe these global features.
2.2.1 Blocks
Blocks perform specific activities or algorithms based on their type. Each type of block within
the instrument is uniquely defined by an occurrence number (the number of the instance of a
block type in the database).
Blocks are comprised of attributes, which specify block input values or sources, block output
values calculated as a result of performing some specified activity, and other parameters
which affect the function of a block.
2-1
Logic Functions - Book 1
DATABASE DESCRIPTION
*
Function Interface System
* Block Loop Block (IF1) Event Block
Execution Block #1 (SE1)
Order
*
*
Function Main Block
* Block Loop Execution
Execution Block #n Order
Order
*
*
Function
* Block Loop Configured
Execution Block #64 List (CL)
Order
*
Types of Blocks
There are three basic categories of block types. They are:
• Environment blocks
Supports general instrument operation and do not directly perform the user defined
control functions. Of these, the interface and system event blocks (there can only be one
occurrence of each) are visible and always exist as part of any configuration. Other
service type blocks are transparent to the user.
• Module blocks
Specify the physical I/O complement of the instrument. The I/O configuration for the
instrument is flexible; there are 32 positions on one MODCELL for example, allowing
various combinations of I/O modules, and some limitations.
2-2
Logic Functions - Book 1
DATABASE DESCRIPTION
• Function blocks
Process input function blocks configure an interface between the instrument’s process
input module blocks and the control tasks. Algorithm function blocks define the user
configured control functions on the instrument. These building blocks include
expressions, linearization, notification messages, piecewise tables, process alarms, timers
and sequencers. Communication function blocks support the instrument communication
ports, and the transfer of data over them. The configured list block handles transfer of
data between groups, as well as transfer of data to the communication interfaces.
Block Parameters
Blocks are comprised of attributes, with each attribute containing a value of a specific type
such as floating point, discrete, state, and time (see Section 2.3.2 for data types). Some of
these attributes are internal to the block (not visible to the user through configuration), and
contain values processed during block execution; other attributes are accessible through
configuration. Some attributes are uniquely defined in the database and are therefore
addressable by name, coupled with the block type and occurrence number. This reference to
an attribute is called a Logical Source Pointer (LSP). Attributes can be input sources or
values, calculated output values, and parameters for specific execution of the block. For
example, the LSP to the Timer Block 1 time value would be constructed as TM1,TIME.
An input attribute provides data that is used by the block. Input data may be specified as a
local value, a remote pointer to a block attribute from which the input value is obtained, or
NONE, in which case this particular input is not used by this occurrence of the block. An
input, which specifies a block attribute as the source of its value, is referred to as a "logical
source pointer."
An output attribute contains a value produced as a result of the execution of the block. For
example, a block might produce a discrete value of TRUE or FALSE depending on the result
of a comparison of its inputs. This attribute can then be used as an input to another block.
Output attributes are always immediately followed by a data quality attribute. Data quality is
set to good if a valid output value has been produced. If an error occurred during the
execution of the block, or if block inputs had bad quality, the data quality attribute will be set to
a value indicating that the output value has bad quality. The quality attribute can be used by
other blocks, which use this block’s output as their input source, in order to determine whether
or not the value should be used.
Other attributes are configuration parameters which are not specifically inputs or outputs, but
effect the action taken by the block. For example, a block may have attributes to enable the
main function or sub functions, cause it to invert its normal output value, perform increment or
decrement operations, contain target or default values, and so forth.
2.2.2 Loops
All user configurable function blocks are placed into groups in the database preceded by loop
blocks. The reasons for this grouping of function blocks are:
• Control access of the instrument by computer or console sources is at this group level.
• All blocks in this group are executed at a rate specified for the loop block.
• Execution of this entire group can be turned off and on via an attribute in the loop block.
2-3
Logic Functions - Book 1
DATABASE DESCRIPTION
The loop block specifies which of the scan rates, specified in the interface block, are used
when executing the function blocks in the loop. All block groups having the same scan rate
are implicitly grouped. Within a group, loop blocks, and the function blocks following each
loop block, are executed in the order in which they are specified in the database.
2.2.3 Groups
A group is a collection of one or more loops, which runs at a specified rate. There are five
configurable group execution rates as specified in the interface block. Rates are allowed to be
a multiple of the base interval (50 milliseconds) from 50 milliseconds up to a maximum time of
about 1193 hours. A loop is specified to run at one of the specified rates by entering the
group number of the desired rate in the interface block into the scan group attribute of the loop
block. Loops are then implicitly grouped. Synchronization of data collection within a group is
not required; but it may be desirable for best results.
Groups are prioritized in order of their execution rates and group level; the group with the
shortest execution interval has the highest priority. If groups one and two have the same scan
rate, then group one (the lower number) has the higher priority. When a higher priority group
interrupts a lower priority group, the high priority group must run to completion before the
lower priority group can resume.
All groups must be able to run to completion within their specified execution interval. If a
group is rescheduled before it has completed, the instrument goes into an overrun situation.
When this happens, the base interval is increased by a fixed amount, and thus the execution
rate of the entire instrument is reduced. If overruns still occur, the base rate is continually
increased, until all groups can complete or until a maximum overrun base interval is reached.
If excessive idle time is present, the base interval is reduced until the original base value is
reached, or until overruns begin to occur again.
Groups run asynchronously with each other and with communications and process I/O.
Therefore, input source references from one group to another are double buffered to insure
the integrity and consistency of data within a group. When a block attribute is specified as an
input source for another block within the same group, the source attribute’s value is read
directly from the source block when the destination block is executed. When the source
attribute is from another group, the value is read from an input buffer which is filled with a
"snapshot" of data values from the output buffers of other groups when the this group begins.
Any outputs from this group, which are used as inputs by other groups, are placed into an
output buffer for this group. Data that comes from or goes to external communications, be it
the ICN or process I/O is also double buffered.
2-4
Logic Functions - Book 1
DATABASE DESCRIPTION
block is executed. However, if the input mode is configured to be manual, the initial data
value will be retained until it is written over by an operator through the status display, or until
input mode is changed to auto. If an input attribute is configured as NONE, then that attribute
is not part of the database and cannot be read.
Most blocks deal with quality in a standard way. There is a "Bad Inputs Accepted" parameter
in every function block. When this attribute is set to YES, the block will not check quality on its
inputs and will not change the quality of its outputs; quality of outputs in this case will default to
GOOD. When the "Bad Inputs Accepted" parameter set to NO, the block will check all of its
inputs for quality prior to executing its algorithm. If any of those which have quality are found
’not good’, the block will not execute its algorithm but will mark its output quality(s) bad,
leaving output data at its previous value.
Individual blocks may deal with data quality in a more specific manner, by offering separate
checks and "actions on bad quality" for individual inputs or groups of inputs, and by offering
different actions on different grades of quality.
Quality information is provided to the operator either by pointing an alarm block at the desired
quality attribute or by making quality one of the conditions you can alarm on when you point
an alarm block at a variable.
The current state or condition of any block is accessible to all other function blocks by
softwiring to the data in the block using the respective mnemonics. When other information in
a block is required, this too can be obtained by softwiring to the respective characteristic.
Softwiring is accomplished through the use of source codes. A logical source pointer (LSP) is
used to specify a field in one block as the data source for a field in another block. The LSP
code specifies the block type and occurrence number of the database block acting as the
source and the mnemonic for the field in the block (e.g. EX2,R is a LSP that identifies
Expression Block No. 2, Result Field). This LSP must be entered in a field of the block that is
receiving the data (the destination block).
As data in a function block is only referred to, and not physically used (as if it were similar to a
relay contact), there is no restriction to the amount of times or position in the logic
arrangement that reference is made, e. g., any LSP can be the source of data for as many
function block fields as necessary.
2-5
Logic Functions - Book 1
DATABASE DESCRIPTION
2-6
Logic Functions - Book 1
DATABASE DESCRIPTION
2-7
Logic Functions - Book 1
DATABASE DESCRIPTION
Instrument States
The instrument may be in one of the following states:
UPLOAD Instrument was powered up with memory module switch in the
upload position and will do nothing beyond copying the main
database (if it is ’complete’ and its checksums verify) into the
memory module.
POR Power up restart in process.
DEFAULT The instrument does not have a valid user generated database
and is therefore running a default database to sustain
communications, etc.
BEING_CONFIGURED An external device has configuration control and is authorized to
download. The instrument is running the default database in
expectation of downloads to the main.
HOLD The instrument has a valid user database, but is running only
overhead blocks. (No loops).
LOCAL_HOLD The instrument has a valid user database and would be in RUN;
but, the Run/Service switch is in Service (hold) and only
overhead blocks are running.
RUN Instrument has a valid user database and is running all blocks.
2-8
Logic Functions - Book 1
DATABASE DESCRIPTION
2-9
Logic Functions - Book 1
DATABASE DESCRIPTION
2.4.2 Startup
The instrument supports startup logic with configurable power-down/restart duration periods
for warm and cold starts. The startup definitions are:
WARM Instrument was down for less than a configurable amount of time. Timers,
stack, PC, and so forth are reinitialized. The WARM START DURATION
defines the power-down/restart interval in the Interface block as a
millisecond time value of NONE (zero) to INFINITY (Times less than 1
second are not useful because of potential drift between the battery backed
and run time clocks). Warm start values are also used when the user
wishes to switch from the default database to the main database without
forcing cold start initialization of the main database. The option to download
the memory module on a warm start is also allowed.
COLD Instrument was down for a period of time longer than the warm start duration
but less than a configurable cold start duration. Function blocks are fully
initialized. The default value is INFINITY. If a memory module is present, it
will download to the instrument. The memory module could be write
protected with cold start values if the user wishes.
FROZEN Instrument was down longer than the configurable cold start duration. After
power-up, the instrument will go to the HOLD state and the operator must
issue a request for the instrument to go to RUN. Initialization is same as
cold start.
A shutdown (for example, spurious interrupt, watchdog, bad main checksum) information data
area is set aside at the beginning of the main battery backed RAM area, before the database.
Information in this area is used during power up to determine if the instrument previously
powered down normally, or shut down due to a fault termination condition. The information is
copied to the memory module as well.
If, during power up, the shutdown information indicates that the instrument previously
terminated with a fault condition, a diagnostic is set and the instrument runs the default
database (DEFAULT state). A second fault termination will not overwrite the shutdown
information and an operator message is required to clear the fault condition information, in
order that it is not cleared erroneously by a non-maskable interrupt (NMI)/power-up.
2-10
Logic Functions - Book 1
DATABASE DESCRIPTION
2.4.4 LEDs
The LEDs on the main board are handled as follows:
both off =No power.
green off, red on =Initial Power-up condition, or Watchdog (not talking to I/O, default
state, etc.).
green on, red off =Normal; Running main database and talking to I/O.
green on, red on =Any instrument state other than RUN (eg. HOLD, UPLOAD, etc.). If
red LED stays on after power-up, fallback occurred and I/O
goes into failsafe.
green on, red flashing =Upload failure; Indicates failed attempt to upload main database to
instrument using switch on memory module.
If it is determined at end of configuration time that the I/O configuration does not match what is
specified in the database, a diagnostic event is generated, and the instrument comes up in a
non-run state.
2.5.2 Checksumming
In an attempt to maintain integrity of both the main database memory and the portable backup
memory, checksums are generated for both memories. The main and backup memories are
divided into segments and a checksum value is maintained for each segment when the
database is created. The checksum value is the exclusive ’or’ (XOR) of all of the four-byte
words in the segment. The end of the segment is called the checksum boundary.
Checksums are stored in a table containing one entry per checksum boundary. When new
values are written to a database segment, the old values are XOR’ed out of the checksum
table entry for that segment, and the new values are XOR’ed in. The main memory checksum
table is used for this operation; the result is then copied to the backup memory checksum
table.
Checksum values are verified by checking one segment every 250 ms. First the main
memory segments are checked, then the portable ram segments are checked. If a checksum
2-11
Logic Functions - Book 1
DATABASE DESCRIPTION
error is detected, a diagnostic event will be generated, and the instrument will go to a default
state.
Checksum boundaries are every 512 bytes (128 four-byte words). When a byte is written to
memory, its address is shifted right 9 bits to produce the checksum boundary table index.
A single database write typically involves more than one byte at a time. When multibyte writes
cross checksum boundaries, the two checksum table entries are updated as required.
Uploads are possible when the module is not switch or software write protected and the main
database is configured, version compatible, and has valid checksums.
The user of the download from module command will be required to go through a protocol to
get configuration control before the command will be accepted. This will be done by setting
Next Instrument State (NXTISTAT) attribute to BEING CONFIGURED.
Shutdown Information
Instrument status information is saved in the memory module and database when the
instrument shuts down for any reason. Shutdown information can be interpreted to determine
the cause of unrecoverable errors.
2-12
Logic Functions - Book 1
DATABASE DESCRIPTION
If an instrument with a memory module shuts down (watchdogs for example) and cannot run
again, the shut down information in the memory module can still be read. To do this, write
protect the memory module, put the module on another instrument, and read the shutdown
information using the STATUS display. Failure to write protect the memory module will cause
the data to be written over by the instrument when it is powered up.
In particular, a write in progress to the instrument database and to the backup memory
module (if present) will be completed, in order to insure the integrity of the database when
power is restored and the instrument comes back up and running. If a database write was in
progress, the instrument will return to complete the write after responding to the interrupt, and
then wait in an idle loop until a power on reset occurs or full power is restored.
If a brownout lasts for less than 50 milliseconds, the instrument will continue functioning
without any effect on the processing state. If a power failure is longer than 50 milliseconds,
the instrument will perform a complete power up sequence.
In floating point calculations, division by 0 or floating point overflow will generate a maximum
positive or negative value (floating point infinity less one as defined by the IEEE 754-1985
standard). If infinity is a partial result of any equation, the final result will also be infinity (in the
expression block, a saturation may take place as in the equation A+1/2B where B goes to
infinity). Thus, the resulting output value of a block in which a floating-point error was
generated can be compared against limits and rejected as out of range.
Floating point underflow (for example, a very small number added to a large number, the
result being no change to the large number) can be detected by checking the equation values
prior to the calculation.
2-13
Logic Functions - Book 1
DATABASE DESCRIPTION
Explanations for each attribute are given in the order presented in the block data table. The
block data table lists all valid attributes for the block. Attribute numbers (Attr column) can help
you find their descriptions; but, are only required for users developing their own interface.
Version attributes exist for future enhancement issues and are not explained further. The
following conventions are used in presenting the database reference information in the block
data tables.
The functional block diagrams show basic input/output structures and signal logic flow for the
block (signal flow is left to right top to bottom). Attributes are shown as selectable signal flow
paths or as possible values to the specified attribute in the attribute box. When a logical
source pointer (LSP) is selected, the data source becomes a softwired connection in the
instrument. The following conventions are used in presenting the database block diagrams.
The softwiring diagrams show basic input/output softwiring structures for connecting the block
in the database or to a strategy configured in an operator’s terminal. The following
conventions are used in presenting the database softwiring diagrams.
2-14
Logic Functions - Book 1
SYSTEM BLOCKS
3
SYSTEM DATABASE PARAMETERS
System blocks contain the overall instrument related information and functionality that does
not logically fall within any loop or function block. These blocks exist through the System
resource for instrument and loop Libraries. Only one interface and system event block is
supported as part of the instrument configuration. These blocks are automatically made
available with each instrument. Other system resources at the instrument level are the loop
compound, the configured list and Modbus list blocks.
LP CPD Loop Compound. The loop compound block is a list connected compound
that contains a Loop Block. Any function block placed in this compound
becomes part of the loop block scan group. To guarantee proper
execution, loop blocks must be assigned the same scan group number on
the interface block. Reference Section 3.5 for information on the loop
block. As a compound, this resource can be saved and loaded for use
elsewhere. Loop library resources are available within this compound.
Algorithm (function) blocks (those blocks that execute the logic) cannot operate independently
in the instrument database. Groups of related function blocks must be organized into loops. To
create a loop, a loop compound is used.
3-1
Logic Functions - Book 1
SYSTEM BLOCKS
The execution order of the system blocks may be indicated by a number that the block
displays in its upper right corner. The system blocks in order are: the Interface block (IF1), the
System Event block (SE1), the configured list blocks (CL10, CL11, etc.), the Modbus list
blocks (ML1, ML2, etc.), and the loop blocks (LP1, LP2, etc.). Occurrence numbers are used
in consecutive order (e.g., LP1, then LP2, then LP3 etc.). Using higher occurrence numbers
out of order will use up memory space.
HEAT EMERGENCY
IDLE
CONVERSION
COOL
Description Block
The description block allows you to place a description in your strategy any-where within an
instrument. Up to 30 characters are displayed. Additional characters are saved but not
displayed.
3-2
Logic Functions - Book 1
INTERFACE BLOCK
Instrument State
Next Instrument State
Command General
Time of Day and quality Instrument Status Interface Block
Date and quality
Day and quality
Scan interval
Execution Time
Filtered Execution Time Database
Maximum Execution Time Execution
Comm Blocks Locked Attributes Run GOOD
I/O Blocks Locked Complete
Run completion cycles Input
BAD
3-3
Logic Functions - Book 1
INTERFACE BLOCK
3-4
Logic Functions - Book 1
INTERFACE BLOCK
Block Type
IF This is the Interface Block type and one is always required.
Occurrence
1 There is only one ‘instance’ allowed of the interface block.
3-5
Logic Functions - Book 1
INTERFACE BLOCK
Table 3-1. Interface Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1 ––R Long State 000
Block Length BLKLEN ––R Count 001
State STATE RUN (0) ––R Short State 002
Bad Inputs Accepted BADINP NO (0), YES (1) CWR Discrete 003
Default Database Checksum DEFCKUAK NO (0), YES (1) – WR Discrete 004
Error Unacknowledged
Default Database Checksum DEFCKACT NO (0), YES (1) ––R Discrete 005
Error Active
Main Database Checksum MNCKUAK NO (0), YES (1) – WR Discrete 006
Error Unacknowledged
Main Database Checksum MNCKACT NO (0), YES (1) ––R Discrete 007
Error Active
Instrument is Unconfigured MUCFGUAK NO (0), YES (1) – WR Discrete 008
Unacknowledged
Instrument is Unconfigured MUCFGACT NO (0), YES (1) ––R Discrete 009
Active
Main Database Version Error MNVERUAK NO (0), YES (1) – WR Discrete 010
Unacknowledged
Main Database Version Error MNVERACT NO (0), YES (1) ––R Discrete 011
Active
Memory Module Checksum MDCKUAK NO (0), YES (1) – WR Discrete 012
Error Unacknowledged
Memory Module Checksum MDCKACT NO (0), YES (1) ––R Discrete 013
Error Active
Memory Module is MDUCFUAK NO (0), YES (1) – WR Discrete 014
Unconfigured
Unacknowledged
Memory Module is MDUCFACT NO (0), YES (1) ––R Discrete 015
Unconfigured Active
Memory Module Database MDVERUAK NO (0), YES (1) – WR Discrete 016
Version Error Unacknowledged
Memory Module Database MDVERACT NO (0), YES (1) ––R Discrete 017
Version Error Active
Memory module is write MDWPSUP ENABLE(0), SUPPRESS(1) CWR Discrete 018
protected
Memory Module is Write MDWPUAK NO (0), YES (1) – WR Discrete 019
Protected Unacknowledged
Memory Module is Write MDWPACT NO (0), YES (1) ––R Discrete 020
Protected Active
Memory module is soft write MDSWPSUP ENABLE(0), SUPPRESS(1) CWR Discrete 021
protected
Memory module is soft write MDSWPUAK NO (0), YES (1) – WR Discrete 022
protected Unacknowledged
Memory module is soft write MDSWPACT NO (0), YES (1) ––R Discrete 023
protected Active
3-6
Logic Functions - Book 1
INTERFACE BLOCK
Table 3-1. Interface Block Attributes, Valid Values, Mnemonics, and Data Types (Cont’d)
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Instrument is overconfigured OVRUNSUP ENABLE(0), SUPPRESS(1) CWR Discrete 024
Instrument is overconfigured OVRUNUAK NO (0), YES (1) – WR Discrete 025
Unacknowledged
Instrument is overconfigured OVRUNACT NO (0), YES (1) ––R Discrete 026
Active
Instrument powered up PWRUPSUP ENABLE(0), SUPPRESS(1) CWR Discrete 027
Instrument powered up PWRUPUAK NO (0), YES (1) – WR Discrete 028
Unacknowledged
Instrument powered up Active PWRUPACT NO (0), YES (1) ––R Discrete 029
Instrument powered down PWRDNSUP ENABLE(0), SUPPRESS(1) CWR Discrete 030
Instrument powered down PWRDNUAK NO (0), YES (1) – WR Discrete 031
Unacknowledged
Instrument powered down PWRDNACT NO (0), YES (1) ––R Discrete 032
Active
Communications Port COMPTUAK NO (0), YES (1) – WR Discrete 033
Mismatch Unacknowledged
Communications Port COMPTACT NO (0), YES (1) ––R Discrete 034
Mismatch Active
Instrument Shutdown Fault SHUTDUAK NO (0), YES (1) – WR Discrete 035
Unacknowledged
Instrument Shutdown Fault SHUTDACT NO (0), YES (1) ––R Discrete 036
Active
Module Shutdown Fault MSHUTUAK NO (0), YES (1) – WR Discrete 037
Unacknowledged
Module Shutdown Fault Active MSHUTACT NO (0), YES (1) ––R Discrete 038
Processor Watchdog Fault WDOGUAK NO (0), YES (1) – WR Discrete 039
Unacknowledged
Processor Watchdog Fault WDOGACT NO (0), YES (1) ––R Discrete 040
Active
Spurious Event Fault SPURUAK NO (0), YES (1) – WR Discrete 041
Unacknowledged
Spurious Event Fault Active SPURACT NO (0), YES (1) ––R Discrete 042
EPROM Checksum Fault EPCHKUAK NO (0), YES (1) – WR Discrete 043
Unacknowledged
EPROM Checksum Fault EPCHKACT NO (0), YES (1) ––R Discrete 044
Active
Bad RAM Fault BDRAMUAK NO (0), YES (1) – WR Discrete 045
Unacknowledged
Bad RAM Fault Active BDRAMACT NO (0), YES (1) ––R Discrete 046
I/O board 1 communications IO1CSUP ENABLE(0), SUPPRESS(1) CWR Discrete 047
error
I/O board 1 communications IO1CUAK NO (0), YES (1) – WR Discrete 048
error Unacknowledged
3-7
Logic Functions - Book 1
INTERFACE BLOCK
Table 3-1. Interface Block Attributes, Valid Values, Mnemonics, and Data Types (Cont’d)
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
I/O board 1 communications IO1CACT NO (0), YES (1) ––R Discrete 049
error Active
050/094 & 115/125 reserved
Bad Clock Chip BDCLKUAK NO (0), YES (1) – WR Discrete 095
Unacknowledged
Bad Clock Chip Active BDCLKACT NO (0), YES (1) ––R Discrete 096
Time and date not valid TIMNSSUP ENABLE(0), SUPPRESS(1) CWR Discrete 097
Time and date not valid TIMNSUAK NO (0), YES (1) – WR Discrete 098
Unacknowledged
Time and date not valid Active TIMNSACT NO (0), YES (1) ––R Discrete 099
I/O is Locked Unacknowledged IOLOKUAK NO (0), YES (1) – WR Discrete 100
I/O is Locked Active IOLOKACT NO (0), YES (1) ––R Discrete 101
Communication Blocks are CMLOKUAK NO (0), YES (1) – WR Discrete 102
Locked Unacknowledged
Communication Blocks are CMLOKACT NO (0), YES (1) ––R Discrete 103
Locked Active
DMA Unacknowledged DMAUAK NO (0), YES (1) – WR Discrete 104
DMA Active DMAACT NO (0), YES (1) ––R Discrete 105
I/O Overrun IOVRNSUP ENABLE(0), SUPPRESS(1) CWR Discrete 106
I/O Overrun Unacknowledged IOVRNUAK NO (0), YES (1) – WR Discrete 107
I/O Overrun Active IOVRNACT NO (0), YES (1) ––R Discrete 108
Comm Hdw Fault Unacked CMHWFUAK NO (0), YES (1) – WR Discrete 109
Comm Hdw Fault Active CMHWFACT NO (0), YES (1) ––R Discrete 110
EEPROM Fault Unacked EEPFUAK NO (0), YES (1) – WR Discrete 111
EEPROM Fault Active EEPFACT NO (0), YES (1) ––R Discrete 112
Mem Mod Dnld Fail Unacked MDDLFUAK NO (0), YES (1) – WR Discrete 113
Mem Mod Dnld Fail Active MDDLFACT NO (0), YES (1) ––R Discrete 114
Base Scan Time SCANTIME ––R Msec Time 126
Scan Idle Time IDLETIME ––R Msec Time 127
NOVRAM Clock Set error SNCLKERR Clock OK (0), ––R Short State 128
Bad Input Quality (7),
DMA Bus Error Source (8),
DMA Bus Error Dest (9)
NOVRAM Clock Read error RNCLKERR Clock OK (0), ––R Short State 129
Oscillator OFF (1)
Bad Year Data (2)
Bad Month Data (3)
Bad Day of Month Data (4)
Bad Day of Week Data (5)
Bad Time of Day Data (6)
Bad Input Quality (7),
DMA Bus Error Source (8),
DMA Bus Error Dest (9)
Clock Compare Error (10)
3-8
Logic Functions - Book 1
INTERFACE BLOCK
Table 3-1. Interface Block Attributes, Valid Values, Mnemonics, and Data Types (Cont’d)
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Select Module No Response SLNORSPS 0-65535 – WR Count 130
Select Module Checksum SLCHKSMS 0-65535 – WR Count 131
Errors
I/O Module No Response MDNORSPS 0-65535 – WR Count 132
I/O Module Checksum Errors MDCHKSMS 0-65535 – WR Count 133
Power Line Frequency FREQ 50 (0) or 60 (1) C–R Long State 134
User Tag USRTAG up to 27 ASCII characters CWR ASCII 135
Configurator Tag CFGTAG ASCII time stamp ––R ASCII 136
Database Size DBSIZE (number of bytes) ––R Floating Pt 137
I/O Mismatch IOMM NO (0), YES (1) ––R Discrete 138
Instrument State INSTATE Upload (0), Default (2), ––R Short State 139
Being Configured (3), Hold
(4), Local Hold (5), Run (6)
Next Instrument State NXTISTAT Default (2), Being Configured – WR Short State 140
(3), Hold (4), Run (6), Hold
Warm Start (7), Run Warm
Start (8)
Command CMD 1=Ack Shutdown Fault – WR Long State 141
2=Upload to Module
3=Download from Module
4=Set Module write Prot.
5=Clear Module write Prot.
6=Delete Main Database
7=Restore Main Database
8=Reset
9=Kill
10=Clear MTIMEs
Time of Day TIMEDAY Msec Time – WR Msec Time 142
Time of Day Quality TIMEDAYQ GOOD (0), BAD (1) ––R Discrete 143
Calendar Date DATE Year (0-99), Month (1-12), – WR Date 144
Day (1-31)
Calendar Date Quality DATEQ GOOD (0), BAD (1) ––R Discrete 145
Day of Week DAY 1=Sunday, 7=Saturday – WR Short State 146
Day of Week Quality DAYQ GOOD (0), BAD (1) ––R Discrete 147
Computer Status CPSTATUS 0=Free ––R Short State 148
1=Busy
2=Inactive
Console Status CNSTATUS 0=Free ––R Short State 149
1=Busy
3-9
Logic Functions - Book 1
INTERFACE BLOCK
Table 3-1. Interface Block Attributes, Valid Values, Mnemonics, and Data Types (Cont’d)
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Warm start duration WARMSDUR NONE, INFINITY, any time CWR Msec Time 150
greater than 1 second
Cold start duration COLDSDUR INFINITY, any time greater CWR Msec Time 151
than warm start duration
Run on I/O mismatch RUNMISMT NO (0), YES (1) CWR Discrete 152
Download on warm start DNLDWARM NO (0), YES (1) CWR Discrete 153
Power Out Duration POUTDUR Msec Time ––R Msec Time 154
Startup Type STARTYPE WARM (1), COLD (2), or ––R Short State 155
FROZEN (3)
Power Up Initialization PWRUP NO (0), YES (1) ––R Discrete 156
Runtime Initialization RUNINIT NO (0), YES (1) ––R Discrete 157
Lock ICN comm. blocks COMMLOCK NO (0), YES (1) CWR Discrete 158
Scan Group 1 Interval INT1 NONE, or h:mm:ss.sss C–R Msec Time 159
(msec/scan). Rounded to
multiple of base rate.
Scan Group 2 Interval INT2 NONE, or h:mm:ss.sss C–R Msec Time 160
Scan Group 3 Interval INT3 NONE, or h:mm:ss.sss C–R Msec Time 161
Scan Group 4 Interval INT4 NONE, or h:mm:ss.sss C–R Msec Time 162
Scan Group 5 Interval INT5 NONE, or h:mm:ss.sss C–R Msec Time 163
Scan 6 Interval (IF Block) INT6 NONE, or h:mm:ss.sss ––R Msec Time 164
Scan 7 Interval INT7 NONE, or h:mm:ss.sss ––R Msec Time 165
(Serial Comm Block)
Scan 8 Interval INT8 NONE, or h:mm:ss.sss ––R Msec Time 166
(Serial Comm Block)
Scan 9 Interval INT9 NONE, or h:mm:ss.sss ––R Msec Time 167
(Serial Comm Block)
Scan1 Execution Time XTIME1 Recent Scan Msec Time ––R Msec Time 168
Scan2 Execution Time XTIME2 Recent Scan Msec Time ––R Msec Time 169
Scan3 Execution Time XTIME3 Recent Scan Msec Time ––R Msec Time 170
Scan4 Execution Time XTIME4 Recent Scan Msec Time ––R Msec Time 171
Scan5 Execution Time XTIME5 Recent Scan Msec Time ––R Msec Time 172
Scan6 Execution Time XTIME6 Recent Scan Msec Time ––R Msec Time 173
Scan7 Execution Time XTIME7 Recent Scan Msec Time ––R Msec Time 174
Scan8 Execution Time XTIME8 Recent Scan Msec Time ––R Msec Time 175
Scan9 Execution Time XTIME9 Recent Scan Msec Time ––R Msec Time 176
Scan1 Filtered Execution Time FTIME1 Average Scan Msec Time ––R Msec Time 177
Scan2 Filtered Execution Time FTIME2 Average Scan Msec Time ––R Msec Time 178
Scan3 Filtered Execution Time FTIME3 Average Scan Msec Time ––R Msec Time 179
Scan4 Filtered Execution Time FTIME4 Average Scan Msec Time ––R Msec Time 180
Scan5 Filtered Execution Time FTIME5 Average Scan Msec Time ––R Msec Time 181
Scan6 Filtered Execution Time FTIME6 Average Scan Msec Time ––R Msec Time 182
Scan7 Filtered Execution Time FTIME7 Average Scan Msec Time ––R Msec Time 183
Scan8 Filtered Execution Time FTIME8 Average Scan Msec Time ––R Msec Time 184
Scan9 Filtered Execution Time FTIME9 Average Scan Msec Time ––R Msec Time 185
3-10
Logic Functions - Book 1
INTERFACE BLOCK
Table 3-1. Interface Block Attributes, Valid Values, Mnemonics, and Data Types (Cont’d)
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Scan1 Max. Execution Time MTIME1 Maximum Scan Msec Time – WR Msec Time 186
Scan2 Max. Execution Time MTIME2 Maximum Scan Msec Time – WR Msec Time 187
Scan3 Max. Execution Time MTIME3 Maximum Scan Msec Time – WR Msec Time 188
Scan4 Max. Execution Time MTIME4 Maximum Scan Msec Time – WR Msec Time 189
Scan5 Max. Execution Time MTIME5 Maximum Scan Msec Time – WR Msec Time 190
Scan6 Max. Execution Time MTIME6 Maximum Scan Msec Time – WR Msec Time 191
Scan7 Max. Execution Time MTIME7 Maximum Scan Msec Time – WR Msec Time 192
Scan8 Max. Execution Time MTIME8 Maximum Scan Msec Time – WR Msec Time 193
Scan9 Max. Execution Time MTIME9 Maximum Scan Msec Time – WR Msec Time 194
lock I/O blocks? IOLOCK NO (0), YES (1) CWR Discrete 195
Run completion cycles RCCYCLES 1 to 255 CWR Long State 196
Run complete input RUNCMPLT NONE, TRUE, FALSE, LSP CWR Discrete 197
Diagnostic Attributes
4 Default Database Checksum Error Unacknowledged (DEFCKUAK)............................ – WR
The unacknowledged default database checksum error diagnostic indicates if the error is or is
not acknowledged. The status can be read or acknowledged as follows:
YES 1 Diagnostic error is unacknowledged.
NO 0 Diagnostic error is acknowledged.
3-11
Logic Functions - Book 1
INTERFACE BLOCK
3-12
Logic Functions - Book 1
INTERFACE BLOCK
3-13
Logic Functions - Book 1
INTERFACE BLOCK
3-14
Logic Functions - Book 1
INTERFACE BLOCK
3-15
Logic Functions - Book 1
INTERFACE BLOCK
area in the battery backed up RAM and is examined through the configurator STATUS display
activity.
YES 1 “INSTRUMENT SHUTDOWN FAULT” is active.
NO 0 Diagnostic error is not active.
3-16
Logic Functions - Book 1
INTERFACE BLOCK
3-17
Logic Functions - Book 1
INTERFACE BLOCK
3-18
Logic Functions - Book 1
INTERFACE BLOCK
3-19
Logic Functions - Book 1
INTERFACE BLOCK
3-20
Logic Functions - Book 1
INTERFACE BLOCK
3-21
Logic Functions - Book 1
INTERFACE BLOCK
3-22
Logic Functions - Book 1
INTERFACE BLOCK
Clear Write Protect 5 Clears software write protect and uploads to the memory
module. Valid even in upload, where a failed upload will be
completed and the red LED will stop flashing.
Delete Main Database 6 Marks the main database bad and sets the instrument state to
DEFAULT. Valid anytime.
Restore Main Database 7 Marks the main database good (in case delete main database
was issued by mistake). Note that the database will actually be
good only if it passes normal verification, e.g. when attempting
to go to the RUN instrument state. Valid anytime.
Reset 8 Completes tasks and then does a power-up.
Kill 9 Performs an immediate power-up.
Clear MTIMEs 10 Clear the maximum scan time for all scan groups.
3-23
Logic Functions - Book 1
INTERFACE BLOCK
3-24
Logic Functions - Book 1
INTERFACE BLOCK
3-25
Logic Functions - Book 1
INTERFACE BLOCK
3-26
Logic Functions - Book 1
INTERFACE BLOCK
None No run complete input. Instrument will change state when commanded.
TRUE 1 Local input TRUE causes instrument to leave RUN when commanded.
FALSE 0 Local input FALSE causes instrument to wait ‘x’ run completion cycles before
leaving RUN when commanded.
Typical softwiring block structures used on softwiring diagrams are shown in Figure 3-5.
IF1
CMD Logical Source Pointer to
Logical Source Pointer from another Command another function block
function block
Instrument State
INSTATE
Operator indication of
User Tag Instrument State, Tag, and
USRTAG
Time of Day
Time of Day
TIMEDAY
The following event code errors (and their suggested text) must be acknowledged.
Informational events are not acknowledged. The order of values is not significant.
Event Codes (see referenced database attributes (in brackets) for descriptions)
4 DEFAULT DATABASE CHECKSUM ERROR (5)
5 MAIN DATABASE CHECKSUM ERROR (7)
6 INSTRUMENT IS UNCONFIGURED (9)
7 MAIN DATABASE VERSION ERROR (11)
8 MEMORY MODULE CHECKSUM ERROR (13)
9 MEMORY MODULE IS UNCONFIGURED (15)
10 MEMORY MODULE DATABASE VERSION ERROR (17)
11 MEMORY MODULE IS WRITE PROTECTED (20)
12 MEMORY MODULE IS SOFT WRITE PROTECTED (23)
3-27
Logic Functions - Book 1
INTERFACE BLOCK
Informational Events
128 DOWNLOAD FROM MEMORY MODULE
The memory module database was downloaded to main ram.
129 UPLOAD TO MEMORY MODULE
The user database was uploaded to the memory module.
130 DOWNLOAD FROM SYSTEM
A full or partial database download was received from the external system.
131 UPLOAD TO SYSTEM
A database was uploaded to the external system.
132 INSTRUMENT IN UPLOAD STATE
The instrument has entered the upload state and is now running the default database.
133 INSTRUMENT IN DEFAULT STATE
The instrument has entered the default state and is now running the default database.
134 INSTRUMENT BEING CONFIGURED
The instrument has entered the being configured state and is running the default database to
make the main database area available for downloading.
135 INSTRUMENT IN HOLD STATE
The instrument has entered the hold state and is now running only the i/o section of the user
database.
136 INSTRUMENT IN LOCAL HOLD STATE
The instrument has entered the local hold state and is now running only the i/o section of the
user database. It will enter the run state if the run/hold switch is moved to run.
137 INSTRUMENT IN RUN STATE
The instrument has entered the run state and is now running the full user database.
138 TIME STAMP CHANGED
Indicates that time of day, calendar date or day of week has been written to.
3-28
Logic Functions - Book 1
General Events
Report
Diagnostic Events Events
PA and NM Events (Yes/No)
NONE
Global GOOD
Acknowledge Suppression
Input Event Queue
Discrete LSP Size (Diagnostic
BAD (0 to 1000) Groups or ALL)
(Yes/No)
NONE
Diagnostic GOOD
Acknowledge ANYACT
Input
Discrete LSP
ANYUNK
BAD
NUMACT
QENDID
NONE
Notif/Req GOOD
Discrete LSP Msg. Acknowledge
Input
BAD
Write Only
Commands
State
(RUN)
Clear Queue
Global Acknowledge
Quality Check Diagnostic Ack.
Process Alarm Ack.
Bad Inputs
Accepted Notif/Req Msg Ack.
(YES/NO)
3-29
Logic Functions - Book 1
3-30
Logic Functions - Book 1
3-31
Logic Functions - Book 1
• Example of events displayed by a user’s display (PC-30 device tag and header shown
for example only):
HH:MM:SS.mmm TAGxxxxx DDOM125 Remaining message = 47 characters total
• The system event queue is cleared when a database is downloaded from the PC
configurator and when a database is downloaded from a write protected memory
module.
• The following Communication Link messages related to this block are supported by
the instrument:
READ EVENT QUEUE
READ DIAG STATUS
REFRESH DIAG STATUS
ALARM ACK
DIAGNOSTIC ACK
Block Type
SE This is the System Event Block type and is always present on the Main
Block Selection page.
Occurrence
1 There is only one ‘instance’ allowed of the system event block.
ACCEPTED 1 The four acknowledge inputs are used without regards to quality.
REJECTED 0 Block checks data quality on its inputs and will only use the data
pointed at if the data quality is good.
3-32
Logic Functions - Book 1
Table 3-2. System Event Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1 ––R Long State 00
Block Length BLKLEN ––R Count 01
State STATE RUN (0) ––R Short State 02
Bad Inputs BADINP Rejected (0), Accepted(1) CWR Discrete 03
All Groups Diag. Supp. SUPALL NO (0), YES (1) CWR Discrete 04
Group 1 Diag. Suppression SUPGP1 NO (0), YES (1) CWR Discrete 05
Group 2 Diag. Suppression SUPGP2 NO (0), YES (1) CWR Discrete 06
Group 3 Diag. Suppression SUPGP3 NO (0), YES (1) CWR Discrete 07
Group 4 Diag. Suppression SUPGP4 NO (0), YES (1) CWR Discrete 08
Group 5 Diag. Suppression SUPGP5 NO (0), YES (1) CWR Discrete 09
Group 6 Diag. Suppression SUPGP6 NO (0), YES (1) CWR Discrete 10
Group 7 Diag. Suppression SUPGP7 NO (0), YES (1) CWR Discrete 11
Report Event when Diag:
'Ack Only' goes unacked RAOU NO (0), YES (1) CWR Discrete 12
’Ack Only’ occurs while RAOAGN NO (0), YES (1) CWR Discrete 13
unacked
Goes active and unacked RDGAU NO (0), YES (1) CWR Discrete 14
Goes active while unacked RDGAWU NO (0), YES (1) CWR Discrete 15
Goes clear while unacked RDGCWU NO (0), YES (1) CWR Discrete 16
Goes clear while acked RDGCWA NO (0), YES (1) CWR Discrete 17
Cleared by suppression RDGCBYS NO (0), YES (1) CWR Discrete 18
Acknowledged RDGACK NO (0), YES (1) CWR Discrete 19
Globally acknowledged RDGGLAC NO (0), YES (1) CWR Discrete 20
K
Acked by suppression RDGABYS NO (0), YES (1) CWR Discrete 21
Suppressed RDGSUP NO (0), YES (1) CWR Discrete 22
Enabled RDGENA NO (0), YES (1) CWR Discrete 23
Report Event when Alarm:
Goes active and unacked RALAU NO (0), YES (1) CWR Discrete 24
Goes active but not RALANOT NO (0), YES (1) CWR Discrete 25
unacked U
Goes active while unacked RALAWU NO (0), YES (1) CWR Discrete 26
Goes clear while unacked RALCWU NO (0), YES (1) CWR Discrete 27
Goes clear while acked RALCWA NO (0), YES (1) CWR Discrete 28
Cleared by suppression RALCBYS NO (0), YES (1) CWR Discrete 29
Acknowledged RALACK NO (0), YES (1) CWR Discrete 30
Globally acknowledged RALGLACK NO (0), YES (1) CWR Discrete 31
Acked by suppression RALABYS NO (0), YES (1) CWR Discrete 32
Suppressed RALSUP NO (0), YES (1) CWR Discrete 33
Enabled RALENA NO (0), YES (1) CWR Discrete 34
3-33
Logic Functions - Book 1
Table 3-2. System Event Block Attributes, Valid Values, Mnemonics, and Data Types (Cont’d)
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
General Event Reporting
Informational Events RPTINF NO (0), YES (1) CWR Discrete 35
Block ‘State’ Chngs. RPTSTA NO (0), YES (1) CWR Discrete 36
Process Alarm Events RPTPA NO (0), YES (1) CWR Discrete 37
Notification Mesg Events RPTNM NO (0), YES (1) CWR Discrete 38
System Event Events RPTSE NO (0), YES (1) CWR Discrete 39
Global Acknowledge Cmd GLBACK FALSE (0), TRUE (1) – WR Discrete 40
Diagnostic Ack. Cmd DGACK FALSE (0), TRUE (1) – WR Discrete 41
Process Alarm Ack. Cmd PAACK FALSE (0), TRUE (1) – WR Discrete 42
Notif/Req Msg Ack. Cmd NMACK FALSE (0), TRUE (1) – WR Discrete 43
Clear Queue Command CLRQCMD FALSE (0), TRUE (1) – WR Discrete 44
Any Active Diagnostics ANYACT FALSE (0), TRUE (1) ––R Discrete 45
Any Unacked Diagnostics ANYUNK FALSE (0), TRUE (1) ––R Discrete 46
Number of Active Diags. NUMACT 0 to 65535 ––R Count 47
Number of Unacked Diags. NUMUNK 0 to 65535 ––R Count 48
Number of Abnormal Diags. NUMABN 0 to 65535 ––R Count 49
Diag. Transitions Counter DGCTR 0 to 65535 ––R Count 50
Queue Entry ID QID 0 to 65535 ––R Count 51
Event Queue Size EVQSIZ 0 to 1000 C–R Count 52
Queue End ID QENDID 0 to 65535 ––R Count 53
Global Acknowledge Input GLBINP NONE, Discrete LSP C–R Discrete 54
Diagnostic Ack. Input DGINP NONE, Discrete LSP C–R Discrete 55
Process Alarm Ack. Input PAINP NONE, Discrete LSP C–R Discrete 56
Notif/Req Msg Ack. Input NMINP NONE, Discrete LSP C–R Discrete 57
3-34
Logic Functions - Book 1
13 Report Diagnostic Event: ‘Ack only’ occurs while unacked (RAOAGN) ...............CWR
Used to enable the reporting of the event.
YES 1 Report ‘Acknowledge Only’ diagnostic event to the system event
queue when the event occurs again while it is still
unacknowledged.
NO 0 No reports are made.
3-35
Logic Functions - Book 1
3-36
Logic Functions - Book 1
25 Report Alarm Event: Goes active but not unacked (RALANOTU) ..........................CWR
Used to enable the reporting of the event.
YES 1 Report when a PA or NM alarm goes active but not
unacknowledged because it’s priority level is zero to the system
event queue.
NO 0 No reports are made.
3-37
Logic Functions - Book 1
3-38
Logic Functions - Book 1
3-39
Logic Functions - Book 1
3-40
Logic Functions - Book 1
SE1
Operator write access to Global Acknowledge Command
acknowledge alarm
3-41
Logic Functions - Book 1
3-42
Logic Functions - Book 1
LOOP BLOCK
Available to the user as block outputs are the remote state error active/unacknowledged
status and quality data, the loop’s composite state, and the computer or console status. A
functional block diagram of the block is shown in Figure 3-11. The menus used to configure
the block are shown in Figure 3-12 and 3.13.
Scan Group
(1 to 5)
NONE
RUN
RUN
HOLD
OFF Loop Block
LSP HOLD CSTATE
GOOD
DEBUG OFF
RUN LSP
DEBUG
HOLD BAD
OFF
DEBUG Remote State State CPSTATUS
Input
CNSTATUS
Remote Error
State
LSP RSTU
LSP Quality
RSTA
Quality and
Bad Inputs
Accepted RSTUQ
Error Check
(YES/NO)
RSTAQ
Remote State
State Invalid or has Diagnostic
(RUN, HOLD, bad quality Suppression
OFF, DEBUG) (ENAB/SUPP) Group
(NONE, 1-7)
3-43
Logic Functions - Book 1
LOOP BLOCK
3-44
Logic Functions - Book 1
LOOP BLOCK
The scan rate for the loop and its function blocks is determined by the scan interval configured
(in the interface block) for the group to which the loop block is assigned. Within a group, the
loops are executed in the order found in the database. When a loop block executes, if its
composite state is RUN, its function blocks whose states are also RUN are executed in the
order found in the database.
The loop block provides the following operator or computer control functions.
• TAKE CONTROL A request can be made to take control of a "LOOP" under which
a specified LSP exists. A check is made that no other source of
the same class (CONS/COMP) is currently controlling the
specified "LOOP". If the class is COMP, then a check is made
that the source is also authorized. Control access is defined in
the interface block.
• RELEASE CONTROL A request can be made to release control of a "LOOP" under
which a specified LSP exists. A check is made that the source is
currently controlling the specified "LOOP".
• OVERRIDE CONTROL A request can be made to demand control of a "LOOP" under
which a specified LSP exists. If class is COMP, then check is
made that the source is also authorized.
The mnemonics, valid values, and data types for all fields that may be selected for display
and/or be used in making softwiring connections are listed in Table 3-4. The following further
defines the Loop Block configuration parameters.
Block Type
LP This is the Loop Block type and is present within a loop compound.
Table 3-4. Loop Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1 ––R Long State 00
Block Length BLKLEN – – R Count 01
State STATE RUN(0), HOLD(1), OFF(2), CWR Short State 02
DEBUG(3)
Bad Inputs BADINP Rejected (0), Accepted (1) CWR Discrete 03
Diagnostic Suppression SUPPGRP NONE, 1, 2, 3, 4, 5, 6, or 7 CWR Long State 04
Group
Remote State Invalid or has RSTS ENABLE (0), CWR Discrete 05
bad quality SUPPRESS (1)
Remote state error RSTU NO (0), YES (1) –WR Discrete 06
unacknowledged
Remote state error unack RSTUQ GOOD (0) ––R Discrete 07
quality
Remote state error Active RSTA NO (0), YES (1) –WR Discrete 08
3-45
Logic Functions - Book 1
LOOP BLOCK
3-46
Logic Functions - Book 1
LOOP BLOCK
10 State value to use when remote state error occurs (REST) ..........................................CWR
The remote error state is a composite of state and remote state, indicating loop's actual
behavior. If block state is RUN and remote state has an invalid value, or bad quality when bad
inputs are not accepted, then composite state takes on this value. Valid values are:
RUN 0
HOLD 1
OFF 2
DEBUG 3
3-47
Logic Functions - Book 1
LOOP BLOCK
EX1 LP1
AUX
Auxiliary Result Remote State Input
State
3-48
Logic Functions - Book 1
Configured list blocks 1 through 9 are reserved for use as input lists for groups. The
configurator places these blocks in the database as necessary to double buffer user data that
passes between groups. This process is transparent to the user except that CL10 is the first
user configured list block (as seen in reports and cross reference files).
The display, which is used to configure the configured list block, is shown in Figure 3-15. Up
to 99 attribute sources can be connected to one configured list block.
3-49
Logic Functions - Book 1
this block. When the list data is demanded from this block, it will demand data from the other
block in the appropriate sequence. Configured list data is defined as foreground in the ICN
and MSC blocks (Foreground List attribute). All lists are made part of the Tagged Interface
File (TIF) or a comma delimited text Modcell Interface File (MIF).
When the configured list block is not being used to collect data (NO), no data is collected and
no database space is allocated to do so. This feature is used to identify variables that are not
part of ICN or MSC foreground data but are still needed for TIF or MIF generation. The TIF
file is used by PC-30 as a list of parameters available for device block building. The MIF file is
used by other device drivers as a list of parameters available for device block building. Any
attribute that is to be read or written from a computer display must be included in an interface
file.
Block Type
CL This is the configured list block type.
Table 3-5. Configured List Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1, 2 ––R Long State 00
Block Length BLKLEN ––R Count 01
Block State STATE RUN (0) ––R Short State 02
Bad Inputs Accepted BADINP YES (1) ––R Discrete 03
Collect Data COLLECT NO (0), YES (1) C–R Discrete 04
Packed Length PKDLEN ––R Count 05
Unpacked Length UNPKDLE ––R Count 06
N
List Signature LISTSIGN ––R Count 07
Collect Quality COLLQUAL NO (0), YES (1) C–R Discrete 08
Discrete Length DISCLEN ––R Count 09
Non Discrete Length NDISCLEN ––R Count 10
3-50
Logic Functions - Book 1
00 Version (VERSION)............................................................................................................– – R
Attributes 8, 9 and 10 were added for version 2 of this block.
02 State (STATE).....................................................................................................................– – R
This block is always RUN (block is executed). See Section 2.4.1, State Changes for
additional information on block states.
3-51
Logic Functions - Book 1
CL10 ICN1
DI1 LISTOUT FGLISTIN
R
Result Input 1 BGLISTIN
Input 2 Operator indication
LN1 of data.
R Input 3
Result
Input 4
DISCLEN
CL11
LISTOUT
MSC1
CL12 FGLISTIN
LISTOUT BGLISTIN
3-52
Logic Functions - Book 1
A Modbus List allows data (except ASCII and Hex) to be converted (a 2-byte positive value)
and mapped into a Modbus register memory area. Since the content of a Modbus register is a
2-byte (16 bit) positive binary value, the data is presented as follows:
The following example shows Floating Point values converted to 16 bit Modbus register
values:
If a VCIM input is 1 to 5 volts and the VCI block output range is -100000.0 to +100000.0, then
it is mapped into a Modbus register value by configuring the Top of Range as 100000.0 and
the Bottom of Range as -100000.0.
The following example shows millisecond time scaled to 16 bit Modbus register values:
The millisecond time data type is an unsigned four byte integer value, which is a count of
milliseconds from 0 to 4294967295. The scaling factor, which must be configured, will effect
the resolution of the time values. The scale factor indicates the number of milliseconds per
count. If a scale factor of 10 is configured, then each count is equal to 10 milliseconds as
described in the following table:
3-53
Logic Functions - Book 1
The display that is used to configure the Modbus list block is shown in Figure 3-17. Up to 99
attributes can be defined through the configurator for one Modbus list block.
3-54
Logic Functions - Book 1
Block Type
ML This is the Modbus list block type.
Table 3-6. Modbus List Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1 ––R Long State 00
Block Length BLKLEN ––R Count 01
Block State STATE RUN (0) ––R Short State 02
Bad Inputs Accepted BADINP YES (1) ––R Discrete 03
List Signature LISTSIGN ––R Count 04
02 State (STATE).....................................................................................................................– – R
This block is always RUN (block is executed). See Section 2.4.1, State Changes for
additional information on block states.
3-55
Logic Functions - Book 1
ML1
DI1 MSC1
LISTOUT
Result R SROIN1
Input 1
SRWIN1
Input 2
LN1
Result R
ML2
LISTOUT
3-56
Logic Functions - Book 1
4
COMMUNICATION MODULE DATABASE PARAMETERS
Communication module blocks define a physical interface port and are not part of a loop scan
group. The ICN and MSC communication module blocks are available outside of loop
compounds only and are placed somewhere at the instrument level. One of these modules is
required to talk to other devices on the network. Configuration activities such as download a
database, import a database or general activities for reading and writing instrument status
information all passes through a communication module.
Communication modules are selected from the instrument level Communication Library. The
Communications module types are:
ICN Instrument Communication Network Module. This block links configured lists,
input and output communications blocks, notification message blocks and
supervisory message blocks to other devices on the ICN through the ICN
module. The 2030N ICN Communication module can be located in the
following slot pairs (ICN numbers based upon assigned occurrence in .CRF
file).
ICN1 31-32;
MSC Modcell Serial Communication Module. This block links Modbus lists to
Modbus devices through an RS232 or RS485 module. The MSC module can
be located in the following slots.
For the 2033N RS232 and the 2034N RS485 Communication modules, which require
two slots:
MSC1 31-32;
For the 2032N RS485 Communication module, which requires one slot:
MSC1 32;
4-1
Logic Functions - Book 1
The baud rate, data bits, parity, and stop bits that match the device with which you are
communicating can be:
For the ICN module, these parameters are set at the link. For Modbus, the parameters are
configurable through the MSC block.
4-2
Logic Functions - Book 1
One ICN communication block is required to support one 2030N ICN Communication module
(requires two slots). ICN1 is configured as port number one (slots 31-32) on the I/O Module
Block Selection display in the configurator, ICN2 is port two (slots 28-29 or 29-30), and ICN3
is port three (slots 25-26, 26-27, or 27-28). This block is used to define what configured list is
to be broadcast on the ICN and what diagnostic errors are to be reported.
Available to the user as block outputs are the ICN load, status of all diagnostic errors and
count values for the same diagnostic errors. A functional block diagram of the block is shown
in Figure 4-1. The menus used to configure the block are shown in Figure 4-2, Figure 4-3 and
Figure 4-4.
ANY
Authorized
NONE Computer
Sources (1-5)
Device, Address
Write Msg
1 Receive Buffer Control
2030N ICN and Message
2 Module Contention
Checker
Group
Transmit Buffer Processors
and Foreground
Data
Foreground
List
(NONE, CL#)
4-3
Logic Functions - Book 1
LOOP BLOCK
4-4
Logic Functions - Book 1
4-5
Logic Functions - Book 1
LOOP BLOCK
A write message follows these rules: If from a computer source, then source must be
authorized; if another source of the same type is in control, then it is NAK’d; if the source is in
control, the write is done and the control timer is reset; if there is no controlling source, only
the write is done.
Block Type
ICN This is the Instrument Communication Block type and is configured on the I/O
Block Selection page.
Occurrence
1 to 3 There may be up to three ‘instances’ allowed of the ICN communication block.
Source 1 ............................................................................................................................. C – –
Source 2 ............................................................................................................................. C – –
Source 3 ............................................................................................................................. C – –
Source 4 ............................................................................................................................. C – –
Source 5 ............................................................................................................................. C – –
The source information provides the instrument with a complete source address of a computer
assigned to the instrument.
ANY Entry made in Source 1 only. All computer sources are allowed.
Remaining source entries are ignored.
NONE No authorized computer write source is defined. Computer status is
inactive.
ICN Addr ICN Address switch setting (0 to 15) of ICN device (such as
MODCELL, SLU, or Communication Link)
Device Type The device type must match what is written to the communications
link by the device. Communications source can be:
4-6
Logic Functions - Book 1
Table 4-1. ICN Communication Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION ––R Long State 00
Block Length BLKLEN ––R Count 01
State STATE RUN (0) ––R Short State 02
Bad Inputs Accepted BADINP YES (1) ––R Discrete 03
Diagnostic Group SUPPGRP NONE, 1, 2, 3, 4, 5, 6, or 7 CWR Long State 04
Module Missing or invalid MODMMS ENABLE(0), SUPPRESS(1) CWR Discrete 05
Module Missing Unacked MODMMU NO (0), YES (1) – WR Discrete 06
Module Missing Active MODMMA NO (0), YES (1) ––R Discrete 07
Access timeout RSTS ENABLE(0), SUPPRESS(1) CWR Discrete 08
Bus Restart Unacked RSTU NO (0), YES (1) – WR Discrete 09
Restart Failure FAILS ENABLE(0), SUPPRESS(1) CWR Discrete 10
Restart Failure Unacked FAILU NO (0), YES (1) – WR Discrete 11
Invalid message MSGS ENABLE(0), SUPPRESS(1) CWR Discrete 12
Invalid Message Unacked MSGU NO (0), YES (1) – WR Discrete 13
Message data invalid CRCS ENABLE(0), SUPPRESS(1) CWR Discrete 14
Check-Sum Error Unacked CRCU NO (0), YES (1) – WR Discrete 15
Framing error FRAMES ENABLE(0), SUPPRESS(1) CWR Discrete 16
Framing Error Unacked FRAMEU NO (0), YES (1) – WR Discrete 17
Noise error NOISES ENABLE(0), SUPPRESS(1) CWR Discrete 18
Noise Error Unacked NOISEU NO (0), YES (1) – WR Discrete 19
Overrun error ORUNS ENABLE(0), SUPPRESS(1) CWR Discrete 20
Overrun Error Unacked ORUNU NO (0), YES (1) – WR Discrete 21
Invalid message size LENS ENABLE(0), SUPPRESS(1) CWR Discrete 22
Invalid msg. Length Unacked LENU NO (0), YES (1) – WR Discrete 23
Too many messages received RFULLS ENABLE(0), SUPPRESS(1) CWR Discrete 24
for port
Receive Buffer Full Unacked RFULLU NO (0), YES (1) – WR Discrete 25
Too many messages to XFULLS ENABLE(0), SUPPRESS(1) CWR Discrete 26
transmit
Xmit. Buffer Full Unacked XFULLU NO (0), YES (1) – WR Discrete 27
Message received for UCOMMS ENABLE(0), SUPPRESS(1) CWR Discrete 28
unconfigured IC block
Unexp. Comm. Msg. Unacked UCOMMU NO (0), YES (1) – WR Discrete 29
ICN overload OLOADS ENABLE(0), SUPPRESS(1) CWR Discrete 30
ICN Overload Unacked OLOADU NO (0), YES (1) – WR Discrete 31
Too many messages received QFULLS ENABLE(0), SUPPRESS(1) CWR Discrete 32
for scan group
Req. Buffer Full Unacked QFULLU NO (0), YES (1) – WR Discrete 33
4-7
Logic Functions - Book 1
LOOP BLOCK
Table 4-1. ICN Communication Block Attributes, Valid Values, Mnemonics, and Data Types (Cont’d)
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Bus Restart Counter RSTC – WR Count 34
Restart Failure Counter FAILC – WR Count 35
Invalid Message Counter MSGC – WR Count 36
Check-Sum Error Counter CRCC – WR Count 37
Framing Error Counter FRAMEC – WR Count 38
Noise Error Counter NOISEC – WR Count 39
Overrun Error Counter ORUNC – WR Count 40
Invalid msg. Length Counter LENC – WR Count 41
Receive Buffer Full Counter RFULLC – WR Count 42
Xmit. Buffer Full Counter XFULLC – WR Count 43
Unexp. Comm. Msg. Counter UCOMMC – WR Count 44
ICN Overload Counter OLOADC – WR Count 45
Req. Buffer Full Counter QFULLC – WR Count 46
Foreground List FG NONE(0), CL10(10) to CLn CWR Count 47
ICN Load LOAD ––R Msec Time 48
Reset Diagnostic Ctrs RESET NO (0), YES (1) – WR Discrete 49
I/O Module Mismatch MODMM NO (0), YES (1) ––R Discrete 51
ICN Address ADDR ANY, 0 to 15 ––R Short State 52
Board number BOARD 1 ––R Long State 53
Slot number SLOT 32, 30, 29, 28, 27, 26 ––R Long State 54
Terminating Source TERM FALSE (0), TRUE (1) ––R Discrete 55
4-8
Logic Functions - Book 1
4-9
Logic Functions - Book 1
LOOP BLOCK
4-10
Logic Functions - Book 1
4-11
Logic Functions - Book 1
LOOP BLOCK
4-12
Logic Functions - Book 1
4-13
Logic Functions - Book 1
LOOP BLOCK
Background List
To allow a host PC access to background attributes, the Application Builder allows for a
connection from a configured list block (LISTOUT) to the BGLISTIN for this block. This data
will also be included in any interface files built for this port at compile time.
4-14
Logic Functions - Book 1
4-15
Logic Functions - Book 1
LOOP BLOCK
INPUT1
INPUT99 ICN1
4-16
Logic Functions - Book 1
A functional block diagram of the block is shown in Figure 4-6. The MSC block Application
Builder displays which are used to configure the block are shown in Figure 4-7 (page 1) and
Figure 4-8 (page 2). List connections are made to the MSC block.
Modbus Slave
Modbus Slave communications can only be used for reading and writing MODCELL attributes
as registers or coils. This is accomplished by attaching configured lists (CL) and Modbus lists
(ML) to the Discrete Read/Write Lists, Discrete Read Only Lists, Single Register Read/Write
Lists, Single Read Only Lists, Multiple Read/Write Lists and Multiple Read Only Lists. A
Modbus Reference File (MRF) is created for each MSC block in the database. The reference
file contains all configured lists and Modbus lists referenced in the MSC block. For each
referenced list, the file includes all of the points (or registers), LSPs, data types, and any range
or scale factors.
Modbus Master
This block can be used as a Modbus Master to any Modbus compatible devices. See
Appendix B, Modbus Master Configuration for details.
Communication Modules
One MSC block can support one RS485 (one or two slots) or one RS232 (two slots)
Communication module. Each MSC occurrence is associated with the port of the same
number. MSC1 is configured as port number one (slots 32 or 31-32) on the I/O Module Block
Selection display in the configurator; MSC2 is port two (slots 29 or 28-29, or 30 or 29-30); and
MSC3 is port three (slots 26 or 25-26, 27 or 26-27, or 28 or 27-28).
RS232 modules support point-to-point networks. RS485 modules support either point-to-point
or point-to-multipoint networks. The RS485 and the RS232 module with address switches
support Extended Modbus. When an RS485 communication bus is being used, the Modbus
Master is responsible for providing pull-up and pull-down resistors which will keep the bus in a
MARK/IDLE state when all the transmitters are tri-stated. Refer to IB-23C600, Issue 5 or later
for connection information.
4-17
Logic Functions - Book 1
PORTFUNC FG
WRTIMOUT WRACT
USEDEF
I/O Board Number
Selection
Slot Number ADDR
TARADDR
DATABITS
BAUDRATE
Error Checks
PARITY MODE
MODULE MISSING OR INVALID
STOPBITS MESSAGE CHECK ERROR
MODMM PARITY ERROR
COMMTYPE BREAK ERROR
FRAMING ERROR
NOISE ERROR
OVERRUN ERROR
Suppress INVALID MESSAGE ERROR
Diagnostic Errors RECEIVE BUFFER FULL
Reset Error
Counters SCAN BUFFER FULL
Counters DEFAULT COMM SWITCH SET
Diagnostic Group
Suppression
(NONE, 1-7)
CMD
4-18
Logic Functions - Book 1
Figure 4-7. Modcell Serial Communication (MSC), Edit Block Display, Page 1
Figure 4-8. Modcell Serial Communication (MSC), Edit Block Display, Page 2
4-19
Logic Functions - Book 1
A subset of the Modbus function codes are supported by MODCELL. The function codes
supported by MODCELL are listed in the following table along with the maximum number of
values the function can read or write. For more information on all Modbus function codes,
refer to the January 1985 version of the Gould Modbus Protocol Reference Guide.
Function Maximum Values
Code Description to Read/Write
01 Read discrete points from (00001 - 00099) 99 points
01 Read discrete points from (00101 - 00199) 99 points
01 Read discrete points from (00201 - 00299) 99 points
01 Read discrete points from (00301 - 00399) 99 points
01 Read discrete points from (00401 - 00499) 99 points
4-20
Logic Functions - Book 1
Modbus data types are bit (discrete) and word (count, 16 bit positive value). One Count
occupies one register. MODCELL data types can be mapped into the pure Modbus data
types of Discrete and Count. (MODCELL data types can also pass through without being
mapped, for those users who can already support these data types or who modify their
Modbus drivers. The multiple register read/write and multiple register read only lists are
intended for this purpose.) The following table describes how MODCELL data types are
mapped into Modbus data types. Refer to the Modbus List (ML) block for more detail on how
MODCELL data is mapped into pure Modbus data.
When a write message comes from the master to MODCELL, a response is immediately
returned by MODCELL to the master. This response indicates that MODCELL received the
message and that it will be processed internally by the MODCELL. It does not indicate that
the actual attribute or attributes have been changed. For example, if a write is made to the
output of a PID block and the output mode is AUTO, the write does not occur. Writes to the
Modbus network do not take control of the loop; they are one-shot writes. Note that on a
multiple write, all writes may not occur at the same time.
4-21
Logic Functions - Book 1
Block Type
MSC This is the Modcell Serial Communication Block type.
Occurrence
1 to 3 There may be up to three ‘instances’ allowed of the Modcell Serial communication
block.
Module location
Scrolled entry. Indicate the slot(s) that the module occupies. Make sure this is compatible with
the module type specified below. MSC modules can occupy 1 or 2 slots, and are associated
with a MODCELL port as follows:
PORT1 - slots 32, or 31-32
PORT2 - slots 29, 28-29, 30, or 29-30
PORT3 - slots 26, 25-26, 27, 26-27, 28, or 27-28
Wiring description
Keyed entry. Any text description.
4-22
Logic Functions - Book 1
Table 4-2. Modcell Serial Communication Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1, 2 ––R Long State 00
Block Length BLKLEN ––R Count 01
State STATE RUN (0) ––R Short State 02
Bad Inputs Accepted BADINP YES (1) ––R Discrete 03
Diagnostic Group SUPPGRP NONE, 1, 2, 3, 4, 5, 6, or 7 CWR Long State 04
Module missing or invalid MODMMS ENABLE(0), SUPPRESS(1) CWR Discrete 05
Module Missing Unacked MODMMU NO (0), YES (1) – WR Discrete 06
Module Missing Active MODMMA NO (0), YES (1) ––R Discrete 07
Message Check Error MSGCHKS ENABLE(0), SUPPRESS(1) CWR Discrete 08
Msg. Check Error Unacked MSGCHKU NO (0), YES (1) – WR Discrete 09
Parity Error PARS ENABLE(0), SUPPRESS(1) CWR Discrete 10
Parity Error Unacked PARU NO (0), YES (1) – WR Discrete 11
Break Error BRKS ENABLE(0), SUPPRESS(1) CWR Discrete 12
Break Error Unacked BRKU NO (0), YES (1) – WR Discrete 13
Framing error FRAMES ENABLE(0), SUPPRESS(1) CWR Discrete 14
Framing Error Unacked FRAMEU NO (0), YES (1) – WR Discrete 15
Noise error NOISES ENABLE(0), SUPPRESS(1) CWR Discrete 16
Noise Error Unacked NOISEU NO (0), YES (1) – WR Discrete 17
Overrun error ORUNS ENABLE(0), SUPPRESS(1) CWR Discrete 18
Overrun Error Unacked ORUNU NO (0), YES (1) – WR Discrete 19
Invalid Message Error INVMSGS ENABLE(0), SUPPRESS(1) CWR Discrete 20
Invalid Msg. Error Unacked INVMSGU NO (0), YES (1) – WR Discrete 21
Receive Buffer Full RFULLS ENABLE(0), SUPPRESS(1) CWR Discrete 22
Receive Buffer Full Unacked RFULLU NO (0), YES (1) – WR Discrete 23
Scan Buffer Full QFULLS ENABLE(0), SUPPRESS(1) CWR Discrete 24
Scan Buffer Full Unacked QFULLU NO (0), YES (1) – WR Discrete 25
Default comm switch set DEFCOMMS ENABLE(0), SUPPRESS(1) CWR Discrete 26
Default comm Unacked DEFCOMMU NO (0), YES (1) – WR Discrete 27
Default comm Active DEFCOMMA NO (0), YES (1) ––R Discrete 28
I/O Module Mismatch MODMM NO (0), YES (1) ––R Discrete 30
Board number BOARD 1 ––R Long State 31
Slot number SLOT 32, 30, 29, 28, 27, 26 ––R Long State 32
Message Check Counter MSGCHKC 0 to 65535 – WR Count 33
Parity Error Counter PARC 0 to 65535 – WR Count 34
Break Error Counter BRKC 0 to 65535 – WR Count 35
Framing Error Counter FRAMEC 0 to 65535 – WR Count 36
Noise Error Counter NOISEC 0 to 65535 – WR Count 37
Overrun Error Counter ORUNC 0 to 65535 – WR Count 38
Invalid Message Counter INVMSGC 0 to 65535 – WR Count 39
4-23
Logic Functions - Book 1
Table 4-2. Modcell Serial Communication Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Receive Buffer Full Counter RFULLC 0 to 65535 – WR Count 40
Scan Buffer Full Counter QFULLC 0 to 65535 – WR Count 41
Mode MODE Remote Terminal Unit (RTU) – – R Discrete 44
Modcell Serial Address ADDR 1 to 247 CWR Long State 45
Baud Rate BAUDRATE 150 (0), 300 (1), 600 (2), CWR Short State 46
1200 (3), 2400 (4),
4800 (5), 9600 (6),
19200 (7), 38400 (8)
Data Bits DATABITS 8 – – R Short State 47
Parity PARITY NONE(0), ODD(1), EVEN(2) CWR Short State 48
Stop Bits STOPBITS 1, 2 CWR Short State 49
Discrete RW List 1 DRWLIST1 NONE, CL10 to CL4096 C–R Count 50
Discrete RW List 2 DRWLIST2 NONE, CL10 to CL4096 C–R Count 51
Discrete RW List 3 DRWLIST3 NONE, CL10 to CL4096 C–R Count 52
Discrete RW List 4 DRWLIST4 NONE, CL10 to CL4096 C–R Count 53
Discrete RW List 5 DRWLIST5 NONE, CL10 to CL4096 C–R Count 54
Discrete RO List 1 DROLIST1 NONE, CL10 to CL4096 C–R Count 55
Discrete RO List 2 DROLIST2 NONE, CL10 to CL4096 C–R Count 56
Discrete RO List 3 DROLIST3 NONE, CL10 to CL4096 C–R Count 57
Discrete RO List 4 DROLIST4 NONE, CL10 to CL4096 C–R Count 58
Discrete RO List 5 DROLIST5 NONE, CL10 to CL4096 C–R Count 59
Single Reg. RW List 1 SRWLIST1 NONE, ML1 to ML4096 C–R Count 60
Single Reg. RW List 2 SRWLIST2 NONE, ML1 to ML4096 C–R Count 61
Single Reg. RW List 3 SRWLIST3 NONE, ML1 to ML4096 C–R Count 62
Single Reg. RW List 4 SRWLIST4 NONE, ML1 to ML4096 C–R Count 63
Single Reg. RW List 5 SRWLIST5 NONE, ML1 to ML4096 C–R Count 64
Single Reg. RO List 1 SROLIST1 NONE, ML1 to ML4096 C–R Count 65
Single Reg. RO List 2 SROLIST2 NONE, ML1 to ML4096 C–R Count 66
Single Reg. RO List 3 SROLIST3 NONE, ML1 to ML4096 C–R Count 67
Single Reg. RO List 4 SROLIST4 NONE, ML1 to ML4096 C–R Count 68
Single Reg. RO List 5 SROLIST5 NONE, ML1 to ML4096 C–R Count 69
Multiple Reg. RW List 1 MRWLIST1 NONE, CL10 to CL4096 C–R Count 70
Multiple Reg. RW List 2 MRWLIST2 NONE, CL10 to CL4096 C–R Count 71
Multiple Reg. RW List 3 MRWLIST3 NONE, CL10 to CL4096 C–R Count 72
Multiple Reg. RW List 4 MRWLIST4 NONE, CL10 to CL4096 C–R Count 73
Multiple Reg. RW List 5 MRWLIST5 NONE, CL10 to CL4096 C–R Count 74
Multiple Reg. RO List 1 MROLIST1 NONE, CL10 to CL4096 C–R Count 75
Multiple Reg. RO List 2 MROLIST2 NONE, CL10 to CL4096 C–R Count 76
Multiple Reg. RO List 3 MROLIST3 NONE, CL10 to CL4096 C–R Count 77
Multiple Reg. RO List 4 MROLIST4 NONE, CL10 to CL4096 C–R Count 78
Multiple Reg. RO List 5 MROLIST5 NONE, CL10 to CL4096 C–R Count 79
4-24
Logic Functions - Book 1
Table 4-2. Modcell Serial Communication Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
ModuleType COMMTYPE RS232 (0), C – R Short State 80
RS485 1 slot 2 wire (1)
RS232 with Address (5)
RS485 with Address (6)
Command CMD Reset Diag. Counters (1), – WR Long State 81
Initialize Serial Port (2)
Be a Master (251)
Be a Slave (252)
Reset Counters RESET NO (0), YES (1) – WR Discrete 82
Port Functionality PORTFUNC SLAVE (0), MASTER (1) CWR Short State 83
Target Address TARADDR ANY (0), 1 - 247 C – R Long State 84
Use Default Comm USEDEF NO (0), YES (1) ––R Discrete 85
Write Message Timeout WRTIMOUT 0 to 255 CWR Long State 86
Write Message Action WRACT Discard (0), Process (1) CWR Short State 87
Foreground List FG NONE, CL10-CL4096 C–R Count 88
4-25
Logic Functions - Book 1
4-26
Logic Functions - Book 1
4-27
Logic Functions - Book 1
4-28
Logic Functions - Book 1
4-29
Logic Functions - Book 1
44 Mode (MODE)..................................................................................................................... – – R
The Modbus transmission mode of this block. Currently the only valid value is RTU. This
value is read as 0.
4-30
Logic Functions - Book 1
4-31
Logic Functions - Book 1
4-32
Logic Functions - Book 1
NOTE: Every device on the network should be given a unique address (even a master). This
is important when the use defaults switch is YES or the instrument is not RUN or HOLD
because the MSC block will always be a slave device under these conditions (block will only
function as a Master if the instrument state is RUN or HOLD).
4-33
Logic Functions - Book 1
Background List
To allow a host PC access to background attributes, the Application Builder allows for a
connection from a configured list block (LISTOUT) to the BGLISTIN for this block. This data
will also be included in any interface files built for this port at compile time.
4-34
Logic Functions - Book 1
SRWIN1
ML2
Command
LISTOUT
INPUT1
Operator indication
CL10 MSC1 of data.
LISTOUT FGLISTIN
BGLISTIN
CL12
Command
LISTOUT
INPUT1
4-35
Logic Functions - Book 1
4-36
Logic Functions - Book 1
4-37
Logic Functions - Book 1
Occurrence number of
the configured list MULTIPLE REGISTER READ/WRITE LIST 1 CLs specified in Multiple
CL13 Register Read/Write or Read
specified in the MSC
Edit Block Display Only lists must be
REGISTER LSP DATA TYPE
(page 3) for Multiple 41001 EX3,I1 FLOAT PT configured and have a buffer
Register Read/Write 41003 EX3,I2 COUNT allocated. Nested lists are
41004 EX3,I3 MSEC TIME not allowed.
Memory, List 1. 41006 EX3,I4 DISCRETE
41007 EX3,I5 DATE
41009 EX3,I6 ASCII (SIZE 12) ASCII data of field size
Some data types use 41015 EX3,I7 LONG STATE 12 uses 6 registers.
more than one register 41016 EX3,I8 HEX (SIZE 9)
location. ASCII and Hex 41021 EX3,I9 SHORT STATE
41022 EX3,I10 FLOAT PT Hex data of field size 9
data can use any 41024 EX3,I11 ASCII (SIZE 13) uses 5 registers.
number of registers 41031 NONE
depending on their field 41032 NONE ASCII data of field size
size. MULTIPLE REGISTER READ/WRITE LIST 2 13 uses 7 registers.
NO LIST SPECIFIED
MULTIPLE REGISTER READ/WRITE LIST 3
NO LIST SPECIFIED
MULTIPLE REGISTER READ/WRITE LIST 4
NO LIST SPECIFIED
MULTIPLE REGISTER READ/WRITE LIST 5
NO LIST SPECIFIED
Occurrence number
of the configured list MULTIPLE REGISTER READ ONLY LIST 1
specified in the MSC CL14
Edit Block Display
(page 3) for Multiple REGISTER LSP DATA TYPE
31001 EX5,I1 FLOAT PT
Register Read Only 31003 EX5,I2 COUNT
Memory, List 1. 31004 EX5,I3 MSEC TIME
31006 EX5,I4 DISCRETE
31007 EX5,I5 DATE
31009 EX5,I6 ASCII (SIZE 12)
31015 EX5,I7 LONG STATE
31016 EX5,I8 HEX (SIZE 9)
31021 EX5,I9 SHORT STATE
31022 EX5,I10 FLOAT PT
31024 EX5,I11 COUNT
4-38
Logic Functions - Book 1
5
INPUT/OUTPUT MODULE DATABASE PARAMETERS
DIM Digital Input Module. Reference Section 5.2. This block links MODOUT for
the following modules to a DI block (MODIN).
2004A Solid State Relay Input,
2006A Unconditioned Digital Input
DOM Digital Output Module. Reference Section 5.3. This block has a discrete
attribute INPUT link for the following modules.
2005A Solid State Relay Output,
2007A Unconditioned Digital Output
WDOM Wide Digital Output Module. Reference Section 5.3. This block has a discrete
attribute INPUT link for the following module.
2011A Mechanical Relay Output – Single Form C Type (two slots)
DDOM Dual Digital Output Module. Reference Section 5.3. This block has two
discrete attribute INPUT links for the following module.
2011A Mechanical Relay Output – Dual SPST Type (two slots)
VCIM VCIM Voltage/Current Input Module. Reference Section 5.4. This block links
MODOUT for the following modules to a VCI, TTI or RTTI block (MODIN).
2001A Voltage Input Module,
2002A Current Input Module,
2012A Current Input with 2-Wire Transmitter Power
TIM TIM Thermocouple Input Module. Reference Section 5.4. This block links
RIM RIM Resistance Input Module. Reference Section 5.4. This block links
WRIM WRIM Wide Resistance Input Module. Reference Section 5.4. This block is
5-1
Logic Functions - Book 1
AOM Analog Output Module. Reference Section 5.5. This block has a floating pt.
attribute INPUT link for the following module.
2003A Current Output
In general, a digital or analog input or output module may be used in any location. However,
wiring considerations and power considerations, as described in the appropriate installation
book, may require separation of signal types into specific locations. The relationship between
the module blocks and the function blocks is shown in Figure 5-1.
RTD Transmitter
Input Block (RTTI) Degrees
Thermocouple
2013A Thermocouple Input Input Module
Block (TIM)
Thermocouple
Input Block (TI) Degrees
RTD Input
2009A RTD Input, 2 Wire Module Blocks
2009A RTD Input, 3 Wire (RIM, WRIM) RTD Input Block
(RTI) Degrees
Figure 5-1. Analog Input Module and Input Function Block Relationships
5-2
Logic Functions - Book 1
Block outputs are the data, data quality, and active and unacknowledged status of the block’s
diagnostic error. A functional block diagram of a digital input module block is shown in Figure
5-2. The displays used to configure the Digital Input Module block are shown in Figures 5-3
and 5-4.
Input Module
• Solid State Relay Input
• Unconditioned Digital Input
Discrete Value
Manual
GOOD Lock Result
1 Field Auto
Result
2 Unlock
BAD
Manual
Board Number GOOD
I/O Result
Selection Auto Quality
Slot Number Lock
Unlock
FRQ
5-3
Logic Functions - Book 1
5-4
Logic Functions - Book 1
For inputs, all valid data for a single instrument (up to 32 digital input modules) is read and
stored in these blocks every base scan cycle. The process input algorithm block (DI)
connected to the module block will filter the data according to the parameters found the DI
block’s configuration.
Digital input module blocks generate a diagnostic error based upon the unsuppressed I/O
mismatch condition. Events are reported for setting the block to auto or manual, the I/O
mismatch, or state changes.
During a warm or cold start condition, a pre-run read of the module value is performed to
initialize the field result, result, conditioning and I/O task buffer values. If no I/O
communications error is encountered these values are forward initialized and their qualities
marked GOOD, otherwise the previous values are held and their qualities marked BAD. If the
mode is MANUAL, the pre-run read value gets loaded into the field result, the result remains
at its previous value and its quality marked GOOD.
5-5
Logic Functions - Book 1
Block Type
DIM This is the Digital Input Module Block type.
Occurrence
1 to 32 There may be up to 32 ‘instances’ allowed of the DIM block type.
Table 5-1. Digital Input Module Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION ––R Long State 00
Block Length BLKLEN ––R Count 01
Block State STATE RUN (0) ––R Short State 02
Bad Inputs Accepted BADINP YES (1) ––R Discrete 03
Diagnostic Group SUPPGRP NONE, 1 to 7 CWR Long State 04
I/O Mismatch MODMMS ENABLE (0), SUPPRESS (1) CWR Discrete 05
Unacked I/O Mismatch MODMMU NO (0), YES (1) – WR Discrete 06
Active I/O Mismatch MODMMA NO (0), YES (1) ––R Discrete 07
I/O Module Mismatch MODMM 0, 1 ––R Discrete 08
Board number BOARD 1 ––R Long State 09
Slot number SLOT 1 through 32 ––R Long State 10
Mode MODE MANUAL (0), AUTO (1) CWR Discrete 11
Field Result FR FALSE (0), TRUE (1) ––R Discrete 12
Field Result Quality FRQ GOOD (0) or BAD (1) ––R Discrete 13
Initial Result Value (Result) R FALSE (0), TRUE (1) CWR Discrete 14
Result Quality RQ GOOD (0) or BAD (1) – WR Discrete 15
5-6
Logic Functions - Book 1
NOTE: This diagnostic cannot distinguish between an empty slot and a digital I/O
module or between different types of digital I/O modules.
SUPPRESS 1 Diagnostic error is suppressed. Acknowledgement status remains
clear. Even though the I/O mismatch diagnostic is suppressed, the
actual I/O mismatch condition is still determined (see Attribute 08,
MODMM).
ENABLE 0 Diagnostic error is not suppressed and errors are reported to the
System Event block. The error message is reported as I/O
MISMATCH.
5-7
Logic Functions - Book 1
Slot 1 DIM1
1
2
Field Result Softwiring connection to
R Digital Input Block (DI).
Result
RQ Operator indication of
Result Quality data quality and block
MODE mode.
Mode
5-8
Logic Functions - Book 1
The digital output module blocks are data repositories for the instrument. All outputs are
buffered in one of five possible task state tables. Process input and output routines use these
tables to pass data between the module blocks which run at the base scan rate (50 msec) and
the process algorithm blocks which run at the configured scan group interval. All valid output
data for a single instrument (up to 32 digital output modules) is written by the output module
blocks every base scan cycle.
Digital output blocks can generate diagnostic errors based upon the following possible
conditions:
• I/0 mismatch
• Digital output module error
Available to the user as block outputs are the result, read back, track status, quality for the
same, and active and unacknowledged status of the block’s diagnostic errors. A functional
block diagram of a digital output module block is shown in Figure 5-5. This diagram is for the
DOM or WDO block and is typical of one channel of the DDOM block as shown in Figure 5-6.
5-9
Logic Functions - Book 1
PART 1 Bad
Track Track
Lock OR Status
Not Run
Manual
FALSE
GOOD
TRUE Input
Unlock
LSP Auto
BAD
Normal
Lock
See PART 2
Bad Inputs Manual
Accepted Initialize
(YES/NO)
Quality Check
LSP Quality
Auto
RQ
Module Error RBQ
(SUPP/ENAB)
Error Check MODMM (init flag)
Diagnostic MODMMA
Group
(NONE, 1 - 7) MODMMU
I/O Mismatch
(SUPP/ENAB) DOMERRA
DOMERRU
PART 2
Module Error
DIRECT REVERSE
AND
PRESET
FALSE
Failsafe
Output Value
FS HOLD (from Select
Output to Preset
Output Circuit)
Use on TRUE
Restart Value (T/F)
5-10
Logic Functions - Book 1
Channel 1 MODMM
(Same as Digital I/O Board Number
Input Output Module MODMMA
Selection
signal flow) Slot Number MODMMU
Error Check
RQ1
DDOM1 Diagnostic
Module Error RBQ1
Group
Module (SUPP/ENAB) (NONE, 1 - 7)
Error DDOERRA1
Channel 2
Input (Same as Digital
Output Module
signal flow)
Figure 5-6. Dual Digital Output Module Block, Functional Block Diagram
5-11
Logic Functions - Book 1
Table 5-2. Digital Output Module Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1 ––R Long State 00
Block Length BLKLEN ––R Count 01
State STATE RUN (0) ––R Short State 02
Bad Inputs BADINP Rejected (0), Accepted (1) CWR Discrete 03
Diagnostic Group SUPPGRP NONE, 1 to 7 CWR Long State 04
I/O mismatch MODMMS ENABLE (0), SUPPRESS (1) CWR Discrete 05
Unacked I/O Mismatch MODMMU NO (0), YES (1) – WR Discrete 06
Active I/O Mismatch MODMMA NO (0), YES (1) ––R Discrete 07
DOM module error DOMERRS ENABLE (0), SUPPRESS (1) CWR Discrete 08
Unacked DO Module Error DOMERRU NO (0), YES (1) – WR Discrete 09
Active DO Module Error DOMERRA NO (0), YES (1) ––R Discrete 10
I/O Module Mismatch MODMM FALSE (0), TRUE (1) ––R Discrete 11
Board Number BOARD 1 ––R Long State 12
Slot Number SLOT 1 to 32 ––R Long State 13
Action ACTION REVERSE (0), DIRECT (1) CWR Discrete 14
Mode MODE MANUAL (0), AUTO (1) CWR Discrete 15
Output to use on restart RESTART PREVIOUS (0), PRESET (1) CWR Discrete 16
Preset Output Value PRESET FALSE (0), TRUE (1) CWR Discrete 17
Failsafe Output Value FSOUT FALSE (0), TRUE (1), CWR Short State 18
FS HOLD (2)
Track Status TRKSTAT NO TRACK (0), TRACK (1) – WR Discrete 19
Track Status Quality TRKQ GOOD (0), BAD (1) – WR Discrete 20
Initial Scaled Result Value RSC FALSE (0), TRUE (1) CWR Discrete 21
Scaled Readback RBSC FALSE (0), TRUE (1) ––R Discrete 22
Input INPUT LSP, FALSE (0), TRUE (1) CWR Discrete 23
Readback RB FALSE (0), TRUE (1) ––R Discrete 24
Readback Quality RBQ GOOD (0), BAD (1) ––R Discrete 25
Result R FALSE (0), TRUE (1) ––R Discrete 26
Result Quality RQ GOOD (0), BAD (1) – WR Discrete 27
5-12
Logic Functions - Book 1
NOTE: Channel 1 is the higher numbered module slot position and Channel 2 is the lower
numbered module slot position. For example, Channel 1 is associated with slot 6
when a DDOM module is located in slots 5 and 6. The configuration menus are
otherwise identical.
Figure 5-8. Dual Digital Output Module (DDOM), Channel 1 Configuration Menu
5-13
Logic Functions - Book 1
Table 5-3. Dual Digital Output Module Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1 ––R Long State 00
Block Length BLKLEN ––R Count 01
State STATE RUN (0) ––R Short State 02
Bad Inputs BADINP1 Rejected (0), Accepted (1) CWR Discrete 03
Diagnostic Group SUPPGRP NONE, 1 to 7 CWR Long State 04
I/O Mismatch MODMMS ENABLE (0), SUPPRESS (1) CWR Discrete 05
Unacked I/O Mismatch MODMMU NO (0), YES (1) – WR Discrete 06
Active I/O Mismatch MODMMA NO (0), YES (1) ––R Discrete 07
DDOM1 module error DDOERRS1 ENABLE (0), SUPPRESS (1) CWR Discrete 08
Unacked DO Module Error DDOERRU1 NO (0), YES (1) – WR Discrete 09
Active DO Module Error DDOERRA1 NO (0), YES (1) ––R Discrete 10
DDOM2 module error DDOERRS2 ENABLE (0), SUPPRESS (1) CWR Discrete 11
Unacked DO Module Error DDOERRU2 NO (0), YES (1) – WR Discrete 12
Active DO Module Error DDOERRA2 NO (0), YES (1) ––R Discrete 13
I/O Module Mismatch MODMM FALSE (0), TRUE (1) ––R Discrete 14
Board Number BOARD 1 ––R Long State 15
Slot Number SLOT 1 to 32 ––R Long State 16
5-14
Logic Functions - Book 1
Table 5-3. Dual Digital Output Module Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Action ACTION1 REVERSE (0), DIRECT (1) CWR Discrete 17
Mode MODE1 MANUAL (0), AUTO (1) CWR Discrete 18
Output to use on restart RESTART1 PREVIOUS (0), PRESET (1) CWR Discrete 19
Preset Output Value PRESET1 FALSE (0), TRUE (1) CWR Discrete 20
Failsafe Output Value FSOUT1 FALSE (0), TRUE (1), CWR Short State 21
FS HOLD (2)
Track Status TRKSTAT1 NO TRACK (0), TRACK (1) – WR Discrete 22
Track Status Quality TRKQ1 GOOD (0), BAD (1) – WR Discrete 23
Initial Scaled Result Value RSC1 FALSE (0), TRUE (1) CWR Discrete 24
Scaled Readback RBSC1 FALSE (0), TRUE (1) ––R Discrete 25
Bad Inputs Accepted BADINP2 YES (1) CWR Discrete 26
Action ACTION2 REVERSE (0), DIRECT (1) CWR Discrete 27
Mode MODE2 MANUAL (0), AUTO (1) CWR Discrete 28
Output to use on restart RESTART2 PREVIOUS (0), PRESET (1) CWR Discrete 29
Preset Output Value PRESET2 FALSE (0), TRUE (1) CWR Discrete 30
Failsafe Output Value FSOUT2 FALSE (0), TRUE (1), CWR Short State 31
FS HOLD (2)
Track Status TRKSTAT2 NO TRACK (0), TRACK (1) – WR Discrete 32
Track Status Quality TRKQ2 GOOD (0), BAD (1) – WR Discrete 33
Initial Scaled Result Value RSC2 FALSE (0), TRUE (1) CWR Discrete 34
Scaled Readback RBSC2 FALSE (0), TRUE (1) ––R Discrete 35
Input 1 INPUT1 LSP, FALSE (0), TRUE (1) CWR Discrete 36
Input 2 INPUT2 LSP, FALSE (0), TRUE (1) CWR Discrete 37
Readback RB1 FALSE (0), TRUE (1) ––R Discrete 38
Readback Quality RBQ1 GOOD (0), BAD (1) ––R Discrete 39
Result R1 FALSE (0), TRUE (1) ––R Discrete 40
Result Quality RQ1 GOOD (0), BAD (1) – WR Discrete 41
Readback RB2 FALSE (0), TRUE (1) ––R Discrete 42
Readback Quality RBQ2 GOOD (0), BAD (1) ––R Discrete 43
Result R2 FALSE (0), TRUE (1) ––R Discrete 44
Result Quality RQ2 GOOD (0), BAD (1) – WR Discrete 45
5-15
Logic Functions - Book 1
5-16
Logic Functions - Book 1
Table 5-4. Wide Digital Output Module Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1 ––R Long State 00
Block Length BLKLEN ––R Count 01
State STATE RUN (0) ––R Short State 02
Bad Inputs BADINP Rejected (0), Accepted (1) CWR Discrete 03
Diagnostic Group SUPPGRP NONE, 1 to 7 CWR Long State 04
I/O mismatch MODMMS ENABLE (0), SUPPRESS (1) CWR Discrete 05
Unacked I/O Mismatch MODMMU NO (0), YES (1) – WR Discrete 06
Active I/O Mismatch MODMMA NO (0), YES (1) ––R Discrete 07
WDOM Module Error WDOMERRS ENABLE (0), SUPPRESS (1) CWR Discrete 08
Unacked DO Module Error WDOMERRU NO (0), YES (1) – WR Discrete 09
Active DO Module Error WDOMERRA NO (0), YES (1) ––R Discrete 10
I/O Module Mismatch MODMM FALSE (0), TRUE (1) ––R Discrete 11
Board Number BOARD 1 ––R Long State 12
Slot Number SLOT 1 to 32 ––R Long State 13
Action ACTION REVERSE (0), DIRECT (1) CWR Discrete 14
Mode MODE MANUAL (0), AUTO (1) CWR Discrete 15
Output to use on restart RESTART PREVIOUS (0), PRESET (1) CWR Discrete 16
Preset Output Value PRESET FALSE (0), TRUE (1) CWR Discrete 17
Failsafe Output Value FSOUT FALSE (0), TRUE (1), CWR Short State 18
FS HOLD (2)
Track Status TRKSTAT NO TRACK (0), TRACK (1) – WR Discrete 19
Track Status Quality TRKQ GOOD (0), BAD (1) – WR Discrete 20
Initial Scaled Result Value RSC FALSE (0), TRUE (1) CWR Discrete 21
Scaled Readback RBSC FALSE (0), TRUE (1) ––R Discrete 22
Input INPUT LSP, FALSE (0), TRUE (1) CWR Discrete 23
Readback RB FALSE (0), TRUE (1) ––R Discrete 24
Readback Quality RBQ GOOD (0), BAD (1) ––R Discrete 25
Result R FALSE (0), TRUE (1) ––R Discrete 26
Result Quality RQ GOOD (0), BAD (1) – WR Discrete 27
5-17
Logic Functions - Book 1
Block Type
DOM This is the Digital Output Module Block type. It connects one 2005A
Solid State Relay Output or one 2007A Unconditioned Digital Output.
DDOM This is the Dual Digital Output Module Block type. It connects one 2011A
Mechanical Relay Output (Dual SPST relay).
WDOM This is the Wide Digital Output Module Block type. It connects one 2011A
Mechanical Relay Output (Single Form C relay).
Occurrence
1 to 32 There may be up to 32 ‘instances’ allowed of the digital output module
block types.
5-18
Logic Functions - Book 1
5-19
Logic Functions - Book 1
5-20
Logic Functions - Book 1
5-21
Logic Functions - Book 1
5-22
Logic Functions - Book 1
Slot 8
DO1
R 1
TM1 Result
HILIM 2
High Limit Input
MODE Operator indication of
Mode result and block mode.
Action
5-23
Logic Functions - Book 1
5-24
Logic Functions - Book 1
This section describes the analog input module block types and the relationship of their
configuration parameters to the block’s function. All parameters for these blocks are
described in one listing since many of the parameters are the same.
5-25
Logic Functions - Book 1
For analog inputs, all valid data for a single instrument (up to 32 analog input modules) is read
and stored in these blocks in a three phased scan cycle. This cycle is shown in Figure 5-12.
The analog input function block connected to the module block latches the data according to
the parameters found in the analog input block’s configuration.
Activity Transfer Analog I/O Data (Modules 1, 4, 7, ... 31) (buffers to module block)
Broadcast ‘Get Data’ (Modules 1, 4, 7, ... 31 perform 100 ms A/D conversion)
Read Analog I/O Data (Modules 2, 5, ... 32)
Write Analog Output Data (Modules 1, 4, 7, ... 31)
Transfer Analog I/O Data (Modules 2, 5, ... 32) (buffers to module block)
Broadcast ‘Get Data’ (Modules 2, 5, ... 32 perform 100 ms A/D conversion)
Read Analog I/O Data (Modules 3, ... 30)
Write Analog Output Data (Modules 2, 5, ... 32)
Transfer Analog I/O Data (Modules 3, ... 30) (buffers to module block)
Broadcast ‘Get Data’ (Modules 3, ... 30 perform 100 ms A/D conversion)
Read Analog I/O Data (Modules 1, 4, 7, ... 31)
Write Analog Output Data (Modules 3, ... 30)
Repeat scan cycle
Analog input module blocks can generate diagnostic errors based upon the
following possible conditions:
• Module mismatch error
• Module communications error
• Module status Error
5-26
Logic Functions - Book 1
VOLTS
MILLIVOLTS
Input Type
CURRENT
CURRENT Signal Range
2-WIRE Top
Extended Error
Input Module
• Voltage Input Manual
• Current Input
• Current Input GOOD Lock Result
2-Wire Xmtr Pwr. Auto
FR Unlock
BAD
Manual
GOOD
Result
Status Register Lock Quality
Auto
Quality Check Unlock
FRQ
Communications
Error Condition
I/O Lock
(from IF Mode
Board Number Block)
Slot Number
I/O
Selection
Module ID
MODMM
MODMMA
I/O VCIM
Communi- Module Error COMMERRA
cations Error
VCIMERRA
Error Checks
MODMMU
Diagnostic COMMERRU
I/O Mismatch
Group
VCIMERRU
5-27
Logic Functions - Book 1
5-28
Logic Functions - Book 1
Table 5-5. Voltage/Current Input Module Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1 ––R Long State 00
Block Length BLKLEN ––R Count 01
Block State STATE RUN (1) ––R Short State 02
Bad Inputs Accepted BADINP YES (1) ––R Discrete 03
Diagnostic Group SUPPGRP NONE, 1 to 7 CWR Long State 04
I/O mismatch MODMMS ENABLE (0), SUPPRESS (1) CWR Discrete 05
Unacked I/O Mismatch MODMMU NO (0), YES (1) – WR Discrete 06
Active I/O Mismatch MODMMA NO (0), YES (1) – WR Discrete 07
I/O communications error COMMERRS ENABLE (0), SUPPRESS (1) CWR Discrete 08
Unacked comm. error COMMERRU NO (0), YES (1) – WR Discrete 09
Active comm. error COMMERRA NO (0), YES (1) – WR Discrete 10
V/I module error VCIMERRS ENABLE (0), SUPPRESS (1) CWR Discrete 11
Unacked Input Module Error VCIMERRU NO (0), YES (1) – WR Discrete 12
Active Input Module Error VCIMERRA NO (0), YES (1) – WR Discrete 13
I/O Module Mismatch MODMM FALSE (0), TRUE (1) ––R Discrete 14
Board number BOARD 1 through 8 ––R Long State 15
Slot number SLOT 1 through 32 ––R Long State 16
Module id MODID FE0000 = Voltage ––R Hex 17
FE0100 = Current (passive)
FE0400 = Current (active)
Extended Error Code EXTERR 0 to 65535 – WR Count 18
Mode MODE AUTO (1), MAN (0) CWR Discrete 19
Input Type INTYPE VOLTS (0), MILLIVOLTS (1), C – R Short State 20
CURRENT (2),
CURRENT 2WIRE (3)
Not used. See Appendix A 21
Signal Range - Top SIGHI value in input units CWR Floating Pt 22
Signal Range - Bottom SIGLO value in input units CWR Floating Pt 23
Initial result (Result) R value CWR Floating Pt 24
Result Quality RQ GOOD (0), BAD (1) – WR Discrete 25
Field Result FR value ––R Floating Pt 26
Field Result Quality FRQ GOOD (0), BAD (1) ––R Discrete 27
Linearization Type TYPE NONE (0), B (1), E (2), J (3), K CWR Long State 28
(4), N (5), R (6), S (7), T(8),
Platinum, 0.003850 (24),
Platinum, 0.003923 (25),
Platinum, 0.003902 (26),
Platinum, 0.003911 (27),
Nickel, 0.006720 (28)
5-29
Logic Functions - Book 1
MODOUT
Cold Junction
Floating Point value Compensation
GOOD
EXTERR
BAD
Thermocouple
Type
Extended Error
Input Module
- Thermocouple Input Manual
- Millivolt Input Lock
GOOD Auto Result
FR
Unlock
BAD
Manual
GOOD
Lock Result
Status Register Quality
Auto
Quality Check Unlock
FRQ
Communications
Error Condition
I/O Lock
(from IF Block) Mode
Board Number
Module ID
MODMM
MODMMA
I/O TC Module
Communica- Error COMMERRA
tions Error
TIMERRU
Error Checks
MODMMU
5-30
Logic Functions - Book 1
5-31
Logic Functions - Book 1
Table 5-6. Thermocouple Input Module Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION ––R Long State 00
Block Length BLKLEN ––R Count 01
Block State STATE RUN (0) ––R Short State 02
Bad Inputs Accepted BADINP YES (1) ––R Discrete 03
Diagnostic Group SUPPGRP NONE, 1 to 7 CWR Long State 04
I/O mismatch MODMMS ENABLE (0), SUPPRESS (1) CWR Discrete 05
Unacked I/O Mismatch MODMMU NO (0), YES (1) – WR Discrete 06
Active I/O Mismatch MODMMA NO (0), YES (1) – WR Discrete 07
I/O communications error COMMERRS ENABLE (0), SUPPRESS (1) CWR Discrete 08
Unacked comm. error COMMERRU NO (0), YES (1) – WR Discrete 09
Active comm. error COMMERRA NO (0), YES (1) – WR Discrete 10
TIM module error TIMERRS ENABLE (0), SUPPRESS (1) CWR Discrete 11
Unacked Input Module Error TIMERRU NO (0), YES (1) – WR Discrete 12
Active Input Module Error TIMERRA NO (0), YES (1) – WR Discrete 13
I/O Module Mismatch MODMM FALSE (0), TRUE (1) ––R Discrete 14
Board number BOARD 1 through 8 ––R Long State 15
Slot number SLOT 1 through 32 ––R Long State 16
Module id MODID FE0200 ––R Hex 17
Extended Error Code EXTERR 0 to 65535 – WR Count 18
Mode MODE AUTO (1), MAN (0) CWR Discrete 19
Thermocouple Type TCTYPE B (1), E (2), J (3), K (4), N (5), CWR Short State 20
R (6), S (7), T (8)
Cold Junction Comp. CJCLOC NONE, CWR Floating Pt 21
MODOUT connection from
RIM, WRIM, or value with suffix
of C, F, K, or R
Initial Result (Result) R value CWR Floating Pt 22
Result Quality RQ GOOD (0), BAD (1) – WR Discrete 23
Field Result FR value ––R Floating Pt 24
Field Result Quality FRQ GOOD (0), BAD (1) ––R Discrete 25
5-32
Logic Functions - Book 1
RTD
Input Type
NON-RTD
Signal Range
Apply Only to Top
Non-RTD Input
Types
Signal Range
GOOD Bottom
EXTERR
BAD
RTD Type
Apply Only to
Extended Error RTD Input Types
Input Module Nominal
Resistance Input Resistance
FR
Manual
+ GOOD Lock Result
Auto
Sum Unlock
-
BAD
Leadwire
Resistance
Manual
GOOD
Lock Result
Status Register Auto Quality
Unlock
Quality Check
FRQ
Communications
Error Condition
I/O Lock
(from IF Block) Mode
Board Number
Module ID
MODMM
MODMMA
I/O
Communica- RIM
Module Error COMMERRA
tions Error
Error Checks RIMERRA
MODMMU
Diagnostic COMMERRU
Group I/O Mismatch
RIMERRU
5-33
Logic Functions - Book 1
5-34
Logic Functions - Book 1
Table 5-8. Resistance Input Module Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1 ––R Long State 00
Block Length BLKLEN ––R Count 01
Block State STATE RUN (0) ––R Short State 02
Bad Inputs Accepted BADINP YES (1) ––R Discrete 03
Diagnostic Group SUPPGRP NONE, 1 to 7 CWR Long State 04
I/O mismatch MODMMS ENABLE (0), SUPPRESS (1) CWR Discrete 05
Unacked I/O Mismatch MODMMU NO (0), YES (1) – WR Discrete 06
Active I/O Mismatch MODMMA NO (0), YES (1) – WR Discrete 07
I/O communications error COMMERRS ENABLE (0), SUPPRESS (1) CWR Discrete 08
Unacked comm. error COMMERRU NO (0), YES (1) – WR Discrete 09
Active comm. error COMMERRA NO (0), YES (1) – WR Discrete 10
RIM module error RIMERRS ENABLE (0), SUPPRESS (1) CWR Discrete 11
Unacked Input Module Error RIMERRU NO (0), YES (1) – WR Discrete 12
Active Input Module Error RIMERRA NO (0), YES (1) – WR Discrete 13
I/O Module Mismatch MODMM FALSE (0), TRUE (1) ––R Discrete 14
Board number BOARD 1 through 8 ––R Long State 15
Slot number SLOT 1 through 32 ––R Long State 16
Module id MODID FE0600 ––R Hex 17
Extended Error Code EXTERR 0 to 65535 – WR Count 18
Input Type INTYPE RTD (0), NON-RTD (1) C–R Short State 19
Mode MODE MANUAL (0), AUTO (1) CWR Discrete 20
RTD Material, Alpha RTDTYPE Platinum,0.003850 (24) CWR Long State 21
Platinum,0.003923 (25)
Platinum,0.003902 (26)
Platinum,0.003911 (27)
Nickel,0.006270 (28)
Signal Range - Top SIGHI positive 100% value in ohms CWR Floating Pt 22
Signal Range - Bottom SIGLO positive 0% value in ohms CWR Floating Pt 23
Nominal Resistance NOMRES positive value in ohms CWR Floating Pt 24
Leadwire Resistance LWRES value (not less than –4.0) in CWR Floating Pt 25
ohms
Initial Result Value (Result) R positive value in ohms CWR Floating Pt 26
Result Quality RQ GOOD (0), BAD (1) – WR Discrete 27
Field Result FR value ––R Floating Pt 28
Field Result Quality FRQ GOOD (0), BAD (1) ––R Discrete 29
5-35
Logic Functions - Book 1
RTD
Input Type
NON-RTD
Signal Range
Top
Apply Only to
Non-RTD Input Types
Signal Range
GOOD Bottom
EXTERR
BAD
RTD Type
Apply Only to
RTD Input Types
Nominal
Resistance
BAD
Manual
GOOD
Result
Status Register Quality
Lock Auto
Quality Check Unlock
FRQ
Communications
Error Condition
I/O Lock Mode
(from IF Block)
Board Number
Module ID MODMM
MODMMA
I/O WRIM Module
Communica- Error COMMERRA
tions Error
Error Checks WRIMERRA
MODMMU
COMMERRU
Diagnostic I/O Mismatch
Group WRIMERRU
Figure 5-22. Wide Resistance Input Module Block, Functional Block Diagram
5-36
Logic Functions - Book 1
5-37
Logic Functions - Book 1
Table 5-9. Wide Resistance Input Module Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1 ––R Long State 00
Block Length BLKLEN ––R Count 01
Block State STATE RUN (0) ––R Short State 02
Bad Inputs Accepted BADINP YES (1) ––R Discrete 03
Diagnostic Group SUPPGRP NONE, 1 to 7 CWR Long State 04
I/O mismatch MODMMS ENABLE (0), SUPPRESS (1) CWR Discrete 05
Unacked I/O Mismatch MODMMU NO (0), YES (1) – WR Discrete 06
Active I/O Mismatch MODMMA NO (0), YES (1) – WR Discrete 07
I/O communications error COMMERRS ENABLE (0), SUPPRESS (1) CWR Discrete 08
Unacked comm. error COMMERRU NO (0), YES (1) – WR Discrete 09
Active comm. error COMMERRA NO (0), YES (1) – WR Discrete 10
WRIM module error WRIMERRS ENABLE (0), SUPPRESS (1) CWR Discrete 11
Unacked Input Module Error WRIMERRU NO (0), YES (1) – WR Discrete 12
Active Input Module Error WRIMERRA NO (0), YES (1) – WR Discrete 13
I/O Module Mismatch MODMM FALSE (0), TRUE (1) ––R Discrete 14
Board number BOARD 1 through 8 ––R Long State 15
Slot number SLOT 1 through 32 ––R Long State 16
Module id MODID FE0500 ––R Hex 17
Extended Error Code EXTERR 0 to 65535 – WR Count 18
Input Type INTYPE RTD (0), NON-RTD (1) C–R Short State 19
Mode MODE MANUAL (0), AUTO (1) CWR Discrete 20
RTD Material, Alpha RTDTYPE Platinum,0.003850 (24) CWR Long State 21
Platinum,0.003923 (25)
Platinum,0.003902 (26)
Platinum,0.003911 (27)
Nickel,0.006270 (28)
Signal Range - Top SIGHI positive 100% value in ohms CWR Floating Pt 22
Signal Range - Bottom SIGLO positive 0% value in ohms CWR Floating Pt 23
Nominal Resistance NOMRES positive value in ohms CWR Floating Pt 24
Initial Result Value (Result) R positive value in ohms CWR Floating Pt 25
Result Quality RQ GOOD (0), BAD (1) – WR Discrete 26
Field Result FR value ––R Floating Pt 27
Field Result Quality FRQ GOOD (0), BAD (1) ––R Discrete 28
5-38
Logic Functions - Book 1
Block Type
The valid block types are:
VCIM Voltage/Current Input Module Block
TIM Thermocouple Input Module Block
RIM Resistance Input Module Block
WRIM Wide Resistance Input Module Block
Occurrence
1 to 32 There may be up to 32 ‘instances’ allowed of the VCIM, TIM, and RIM
module block types.
1 to 16 There may be up to 16 ‘instances’ allowed of the WRIM module block
type.
5-39
Logic Functions - Book 1
5-40
Logic Functions - Book 1
5-41
Logic Functions - Book 1
Bit Extended Errors (Lower Byte) Bit Status Errors (Upper Byte)
0 UART Timeout 8 VRAM (0=Low, 1=High)
1 Checksum Error 9 Calibration Data (0=Low, 1=High)
2 REG__ Range Error 10 Line Frequency Status (0=60Hz, 1=50Hz)
3 EPROM Error 11 Calculation Status (0=No Calc., 1=Calc.)
4 Calibration Error 12 *Module Error Status (0=No Error, =Error)
5 UART Error 13 Done Status (0=Not Complete, 1=Comp.)
6 A/D Converter Error 14 Under Range (0=Not Under, 1=Under)
7 Reserved 15 Over Range (0= Not Over, 1=Over)
5-42
Logic Functions - Book 1
5-43
Logic Functions - Book 1
5-44
Logic Functions - Book 1
Writeable data is entered as a floating point representation of a count value for VCIM and TIM
modules. The signal equivalents for the floating point values are:
Floating millivolts
Pt. ValueVolts (and TC) milliamps* milliamps**
32767.0 +13.1 +131 overrange overrange
27500.0 +11.0 +110 44.00 27.50
25000.0 +10.0 +100 40.00 25.00
12500.0 +5.0 +50 20.00 12.50
5000.0 +2.0 +20 8.00 5.00
2500.0 +1.0 +10 4.00 2.50
0.0 0.0 0 0.00 0.00
–2500.0 –1.0 –10 4.00 N/A
–5000.0 –2.0 –20 8.00 N/A
–12500.0 –5.0 –50 20.00 N/A
–25000.0–10.0 –100 40.00 N/A
–27500.0–11.0 –110 44.00 N/A
–32768.0–13.1 –131 overrange N/A
Writeable data is entered as a floating point representation of a count value for RIM and
WRIM modules. The signal equivalents for the floating point values are scaled between 0 and
50,000 using 0.08 ohms per count for RIM and 0.008 ohms per count for WRIM. Some
sample values are:
5-45
Logic Functions - Book 1
Slot 1 VCIM1
1
Field Result Softwiring connection to
2
R Voltage/Current Input Block (VCI).
Result
RQ Operator indication of
Result Quality data quality and block
MODE mode.
Mode
Slot 2 TIM1
1
Field Result
2
CJCIN
Figure 5-25. Typical Block Connections for Analog Input Module Block
5-46
Logic Functions - Book 1
Available to the user as block outputs are the result, scaled result, readback, and track status
and the data quality for each as well as the active and unacknowledged status of the block’s
diagnostic errors. A functional block diagram of a analog output block is shown in Figure 5-26
(part 1) and Figure 5-27 (part 2). The menus used to configure the Analog Output Module
block are shown in Figure 5-28 through 5-30.
PART 1
Bad
TRACK
Lock OR Track
Status
Not Run
Manual
FP Value
GOOD
Input Unlock
LSP
Auto See PART 2
BAD Normal
Lock
Manual
GOOD Initialize
Auto
Bad Inputs RQ
Manual
Accepted GOOD
(YES/NO) Quality Check
Auto
Bad
Initialize
AND
TRUE
(init flag) Sheet 1 of 2
Figure 5-26. Analog Output Module Block, Functional Block Diagram (Part 1)
5-47
Logic Functions - Book 1
PART 2
Result
Normaliza- Action
tion (DIR/REV) Scaling
Out of
Tolerance
In Tolerance
PREVIOUS
Initialize HOLD
Restart Preset
Value
PRESET
PRESET
Failsafe
Output to use Preset
on Restart RBQ Value
EXTERR
Output to use
MODMM on Failsafe
MODMMA
Module Status
COMMERRA
Sheet 2 of 2
Figure 5-27. Analog Output Module Block, Functional Block Diagram (Part 2)
5-48
Logic Functions - Book 1
5-49
Logic Functions - Book 1
For outputs, all valid data for a single instrument (all 32 analog output module locations) is
written, read, compared and stored in the blocks in a three phased scan cycle (see Figure 5-
12 in Section 5.4). The input connected to the module block is scaled and latched according
to the parameters found the analog output module block’s configuration. This data is then
sent to the output module on the next scan cycle.
Analog output blocks can generate diagnostic errors based upon the following possible
conditions:
• I/0 mismatch
• AO module communications error
• AO module error (used to determine when to get readback and extended error code)
The analog output module handles the digital to analog conversion of an input 2 byte count
value to a milliamp output signal. The signal range of the output module is 0 to 25 milliamps.
The output milliamp signal values for input count values are: 25 mA = 31250 (131.25% of
range), 20 mA = 25000 (100%), 4 mA = 5000 (0%), 0 mA = 0 (-25%). The floating point value
range for a 4 to 20 mA output is (25000 - 5000 = 20000), which provides between 14 and 15
bit resolution over this range or 8 µA/Cnt.
5-50
Logic Functions - Book 1
Table 5-10. Analog Output Module Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION ––R Long State 00
Block Length BLKLEN ––R Count 01
State STATE RUN (0) ––R Short State 02
Bad Inputs BADINP Rejected (0), Accepted (1) CWR Discrete 03
Diagnostic Group SUPPGRP NONE, 1 to 7 CWR Long State 04
I/O Mismatch MODMMS ENABLE (0), SUPPRESS (1) CWR Discrete 05
Unacked I/O Mismatch MODMMU NO (0), YES (1) – WR Discrete 06
Active I/O Mismatch MODMMA NO (0), YES (1) ––R Discrete 07
AO module comm. error COMMERRS ENABLE (0), SUPPRESS (1) CWR Discrete 08
Unacked AO comm. Error COMMERRU NO (0), YES (1) – WR Discrete 09
Active AO comm. Error COMMERRA NO (0), YES (1) ––R Discrete 10
AO module Error AOMERRS ENABLE (0), SUPPRESS (1) CWR Discrete 11
Unacked AO module Error AOMERRU NO (0), YES (1) – WR Discrete 12
Active AO module Error AOMERRA NO (0), YES (1) ––R Discrete 13
I/O Mismatch MODMM FALSE (0), TRUE (1) ––R Discrete 14
Board Number BOARD 1 ––R Long State 15
Slot Number SLOT 1 to 32 ––R Long State 16
Module ID MODID FD0500 ––R Hex 17
Extended Error EXTERR 0 to 65535 – WR Count 18
Mode MODE MANUAL (0), AUTO (1) CWR Discrete 19
Action ACTION REVERSE (0), DIRECT (1) CWR Discrete 20
Input Range, Top INHI Floating Pt Value, E.U. CWR Floating Pt 21
Input Range, Bottom INLO Floating Pt Value, E.U. CWR Floating Pt 22
Output Range, Top OUTHI Floating Pt Value, Sig. Rng. CWR Floating Pt 23
Output Range, Bottom OUTLO Floating Pt Value, Sig. Rng. CWR Floating Pt 24
Output to use on restart RESTART PREVIOUS (0), PRESET (1) CWR Discrete 25
Output to use on failsafe FSACT HOLD (0), PRESET (1) CWR Discrete 26
Restart preset value PRESET Floating Pt Value, E.U. CWR Floating Pt 27
Failsafe preset value FSOUT Floating Pt Value, E.U. CWR Floating Pt 28
Track status TRKSTAT NO TRACK (0), TRACK (1) – WR Discrete 29
Track status data quality TRKQ GOOD (0), BAD (1) – WR Discrete 30
Scaled result RSC Floating Pt Value, E.U. – WR Floating Pt 31
Scaled readback RBSC Floating Pt Value, E.U. ––R Floating Pt 32
Local Input INPUT LSP or Floating Pt Value, E.U. CWR Floating Pt 33
Readback RB Floating Pt Value, Sig. Rng. ––R Floating Pt 34
Readback Quality RBQ GOOD (0), BAD (1) ––R Discrete 35
Initial result (Result) R Floating Pt Value, Sig. Rng. C–R Floating Pt 36
Result Quality RQ GOOD (0), BAD (1) – WR Discrete 37
5-51
Logic Functions - Book 1
Block Type
AOM This is the Analog Output Module Block type.
Occurrence
1 to 32 There may be up to 32 ‘instances’ allowed of the AOM block type.
5-52
Logic Functions - Book 1
5-53
Logic Functions - Book 1
Bit Extended Errors (Lower Byte) Bit Status Errors (Upper Byte)
0 Failsafe Timeout Condition 8 Unused
1 Host Comm. Checksum Error 9 Output Mode (0=Standard, 1=Calibration)
2 Host Comm. Range Error 10 Readback Out of Range
3 EEPROM Comm. Error 11 Readback Invalid
4 EEPROM Calib. Data Error 12 Global Error
5 Host Comm. Invalid Cmd Error 13 Unused
6 Config. Checksum Error 14 Readback Value is Zero
7 Timeout Restart 15 Unused
5-54
Logic Functions - Book 1
5-55
Logic Functions - Book 1
5-56
Logic Functions - Book 1
33 Input (INPUT)......................................................................................................................CWR
The local engineering units value input can be written when the input source is local and the
block is in auto; otherwise, this value is the input source value and can not be written. When
the instrument state is not run, i/o lock is set or mode is manual, the scaled result (RSC) can
be written.
LSP The block input is a floating point logical source pointer.
value The block input is a local floating point value.
5-57
Logic Functions - Book 1
Slot 8
AOM1
R 1
LN1 Result
HILIM INPUT 2
Result Input
MODE Operator indication of
Mode input value, output value
RSC and mode.
Scaled Result
5-58
Logic Functions - Book 1
6
REMOTE INPUT/OUTPUT MODULE DATA BASE PARAMETERS
RIO Remote I/O Communication Module. Reference Section 6.2. This module
plugs into the multiloop processor board and serves as the interface between
MODCELL and a CS31 bus. The MODCELL database must have one RIO
block for each RIO module on the MODCELL board. The RIO module uses
CS31 bus address 0.
RDIM Remote Digital Input Module. Reference Section 6.3. This block represents
one or more digital input channels at an address (1-31) on a CS31 remote I/O
bus. Connect MODOUT of the RIO block to MODIN of this block. Modules
with remote digital inputs are:
ICSI 08 D1 (8 non-isolated 24Vdc input channels)
ICSI 08 E1 (8 isolated 24Vdc input channels)
ICSI 08 E3 (8 isolated 120Vac input channels)
ICSI 16 D1 (16 non-isolated 24Vdc input channels)
ICSI 16 E1 (16 isolated 24Vdc input channels)
ICSK 20 F1 (12 non-isolated 24VDC input channels)
ICSC 08 L1 (8 channels for 24VDC input)
RDOM Remote Digital Output Module. Reference Section 6.4. This block
represents one or more digital output channels at an address (1-31) on a
CS31 remote I/O bus. Connect MODOUT of the RIO block to MODIN of this
block. Modules with remote digital outputs are:
ICSO 08 R1 (8 relay output channels 2A)
ICSO 08 Y1 (8 transistor output channels 24Vdc 2A)
ICSK 20 F1 (8 isolated relay output channels)
ICSC 08 L1 (8 channels for 24VDC 500mA transistor output)
6-1
Logic Functions - Book 1
6-2
Logic Functions - Book 1
DBASERRS
Diagnostic Group
(NONE, 1 - 7)
MODMM
EXTERR
Figure 6-1. Remote I/O Interface Module Block, Functional Block Diagram
6-3
Logic Functions - Book 1
The remote I/O interface module block generates a diagnostic error based upon the following:
• Unsuppressed I/O mismatch condition
• CS-31 bus communications error
• I/O communications error
• CS-31 database checksum error
• Remote module error.
6-4
Logic Functions - Book 1
Table 6-1. RIO Module Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1 ––R Long State 00
Block Length BLKLEN ––R Count 01
State STATE RUN (0) ––R Short State 02
Bad Inputs Accepted BADINP YES(1) ––R Discrete 03
Diagnostic Group SUPPGRP NONE, 1, 2, 3, 4, 5, 6 or 7 CWR Long State 04
I/O Mismatch MODMMS ENABLE(0), SUPPRESS(1) CWR Discrete 05
Unacked I/O Mismatch MODMMU NO(0), YES(1) – WR Discrete 06
Active I/O Mismatch MODMMA NO(0), YES(1) – WR Discrete 07
I/O Communication Error BUSERRS ENABLE(0), SUPPRESS(1) CWR Discrete 08
Unacknowledged I/O BUSERRU NO(0), YES(1) – WR Discrete 09
Communication Error
Active I/O Communication Error BUSERRA NO(0), YES(1) – WR Discrete 10
Remote I/O Bus COMMERRS ENABLE(0), SUPPRESS(1) CWR Discrete 11
Communication Error
Unacknowledged Remote I/O COMMERRU NO(0), YES(1) – WR Discrete 12
Bus Communication Error
Active Remote I/O Bus COMMERRA NO(0), YES(1) – WR Discrete 13
Communication Error
Database Checksum Error DBASERRS ENABLE(0), SUPPRESS(1) CWR Discrete 14
Unacknowledged Database DBASERRU NO(0), YES(1) – WR Discrete 15
Checksum Error
Active Database Checksum DBASERRA NO(0), YES(1) – WR Discrete 16
Error
Module Error EXTERRS ENABLE(0), SUPPRESS(1) CWR Discrete 17
Unacknowledged Remote EXTERRU NO(0), YES(1) – WR Discrete 18
Module Error
Active Remote Module Error EXTERRA NO(0), YES(1) – WR Discrete 19
I/O Module Mismatch MODMM NO(0), YES(1) ––R Discrete 20
Slots SLOT 1, 2, ... 31 C–R Long State 21
Module Identification MODID FB0000 ––R Hex 22
Extended Error EXTERR 0 Not Supported – WR Long State 23
Bus Error Counter BUSERRCT – WR Count 30
6-5
Logic Functions - Book 1
6-6
Logic Functions - Book 1
6-7
Logic Functions - Book 1
6-8
Logic Functions - Book 1
6-9
Logic Functions - Book 1
6.2.3 Typical Block Connections for Remote I/O Interface Module Block
Typical RIO block connections are shown in Figure 6-3. The application builder software
provides special connections to simplify the database configuration procedure required to
transfer data between the interface block and its associated remote I/O module blocks. A
single softwiring connection is made between the special MODOUT source on the RIO block
and a special MODIN destination on each remote input and output module block. All data is
transferred through this connection in a form that is acceptable to both the interface block and
the I/O module blocks.
RIO1
RDIM1
MODIN
RDOM1
MODIN
MODOUT
RDIM2
MODIN
RDOM2
MODIN
6-10
Logic Functions - Book 1
The RDIM block receives the inputs from the CS-31 bus via a Remote I/O Interface (RIO)
Module installed in the instrument. The instrument database must have one RDIM block for
each remote digital input module on the CS-31 bus. The RDIM can be connected using the
RIO block MODOUT to this blocks MODIN connection.
Block outputs are the data, data quality, and active and unacknowledged status of the block’s
diagnostic error. A functional block diagram of an RDIM block is shown in Figure 6-4. Two of
the menus used to configure the block are shown in Figure 6-5 and Figure 6-6.
6-11
Logic Functions - Book 1
Channels 0-15.
RIO Module
Channel
INUSE
Manual
OFF Lock R0
GOOD Auto
FR0
ON Unlock
BAD PKDR
Repeat for
Digital Input
Channels 1-15 Manual
GOOD
Lock R0Q
Auto
BUSADDR Unlock
FR0Q
PKDRQ
(Remote) I/O Mismatch
(SUPP/ENAB) I/O Lock
(from IF Block) MODE
Quality &
(Remote) Module Error Error Check
(SUPP/ENAB)
MODMMU
Diagnostic Group
(NONE, 1 - 7) MODMMA
MODMM
PKDERRS
EXTERRA
EXTERR0
EXTERRU
Figure 6-4. Remote Digital Input Module Block, Functional Block Diagram
6-12
Logic Functions - Book 1
Figure 6-6. Remote Digital Input Module Block, Channel Configuration Menu
6-13
Logic Functions - Book 1
Table 6-2. RDIM Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1 ––R Long State 00
Block Length BLKLEN No. of database bytes used ––R Count 01
State STATE RUN (0) ––R Short State 02
Bad Inputs Accepted BADINP YES (1) ––R Discrete 03
Diagnostic Group SUPPGRP NONE, 1, 2, 3, 4, 5, 6 or 7 CWR Long State 04
I/O Mismatch MODMMS ENABLE(0), SUPPRESS(1) CWR Discrete 05
Unacked I/O Mismatch MODMMU NO(0), YES(1) – WR Discrete 06
Active I/O Mismatch MODMMA NO(0), YES(1) – WR Discrete 07
(Remote) Module Error EXTERRS ENABLE(0), SUPPRESS(1) CWR Discrete 08
Unacknowledged Remote EXTERRU NO(0), YES(1) – WR Discrete 09
Module Error
Active Remote Module Error EXTERRA NO(0), YES(1) – WR Discrete 10
I/O Module Mismatch MODMM NO(0), YES(1) ––R Discrete 11
Slot number SLOT 1 to 32 C–R Long State 12
Remote I/O Bus Address BUSADDR 1 to 31 C–R Long State 13
Channel INUSE 0 to 15 C–R Count 14
Extended Error: Channel 0 to EXTERR0 0 No Error – WR Long State 15
Channel 15 to Internal error in remote unit to
EXTERR15 Cut wire (open circuit) 30
Overload
Overload + open circuit
Short circuit
Short Circuit+open circuit
Overload + short circuit
Short circuit + overload + open
circuit
Remote unit not present
No remote I/O present
Mode: Channel 0 to MODE0 MANUAL(0), AUTO(1) CWR Discrete 31
Channel 15 to to
MODE15 46
Packed Result PKDR FALSE(0), TRUE(1) C WR Count 60
Packed Result Quality PKDRQ GOOD(0), BAD(1) – WR Count 61
6-14
Logic Functions - Book 1
Table 6-2. RDIM Block Attributes, Valid Values, Mnemonics, and Data Types (Cont’d)
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Field Result, Channel 0 FR0 FALSE(0), TRUE(1) ––R Discrete 62
Field Result Quality, Ch 0 FR0Q GOOD(0), BAD(1) ––R Discrete 63
Initial Result, Channel 0 R0 FALSE(0), TRUE(1) CWR Discrete 64
Result Quality,Ch 0 R0Q GOOD(0), BAD(1) – WR Discrete 65
Field Result, Channel 1 FR1 FALSE(0), TRUE(1) ––R Discrete 66
Field Result Quality, Ch 1 FR1Q GOOD(0), BAD(1) ––R Discrete 67
Initial Result, Channel 1 R1 FALSE(0), TRUE(1) CWR Discrete 68
Result Quality,Ch 1 R1Q GOOD(0), BAD(1) – WR Discrete 69
Field Result, Channel 2 FR2 FALSE(0), TRUE(1) ––R Discrete 70
Field Result Quality, Ch 2 FR2Q GOOD(0), BAD(1) ––R Discrete 71
Initial Result, Channel 2 R2 FALSE(0), TRUE(1) CWR Discrete 72
Result Quality,Ch 2 R2Q GOOD(0), BAD(1) – WR Discrete 73
Field Result, Channel 3 FR3 FALSE(0), TRUE(1) ––R Discrete 74
Field Result Quality, Ch 3 FR3Q GOOD(0), BAD(1) ––R Discrete 75
Initial Result, Channel 3 R3 FALSE(0), TRUE(1) CWR Discrete 76
Result Quality,Ch 3 R3Q GOOD(0), BAD(1) – WR Discrete 77
Field Result, Channel 4 FR4 FALSE(0), TRUE(1) ––R Discrete 78
Field Result Quality, Ch 4 FR4Q GOOD(0), BAD(1) ––R Discrete 79
Initial Result, Channel 4 R4 FALSE(0), TRUE(1) CWR Discrete 80
Result Quality,Ch 4 R4Q GOOD(0), BAD(1) – WR Discrete 81
Field Result, Channel 5 FR5 FALSE(0), TRUE(1) ––R Discrete 82
Field Result Quality, Ch 5 FR5Q GOOD(0), BAD(1) ––R Discrete 83
Initial Result, Channel 5 R5 FALSE(0), TRUE(1) CWR Discrete 84
Result Quality,Ch 5 R5Q GOOD(0), BAD(1) – WR Discrete 85
Field Result, Channel 6 FR6 FALSE(0), TRUE(1) ––R Discrete 86
Field Result Quality, Ch 6 FR6Q GOOD(0), BAD(1) ––R Discrete 87
Initial Result, Channel 6 R6 FALSE(0), TRUE(1) CWR Discrete 88
Result Quality,Ch 6 R6Q GOOD(0), BAD(1) – WR Discrete 89
Field Result, Channel 7 FR7 FALSE(0), TRUE(1) ––R Discrete 90
Field Result Quality, Ch 7 FR7Q GOOD(0), BAD(1) ––R Discrete 91
Initial Result, Channel 7 R7 FALSE(0), TRUE(1) CWR Discrete 92
Result Quality,Ch 7 R7Q GOOD(0), BAD(1) – WR Discrete 93
Field Result, Channel 8 FR8 FALSE(0), TRUE(1) ––R Discrete 94
Field Result Quality, Ch 8 FR8Q GOOD(0), BAD(1) ––R Discrete 95
Initial Result, Channel 8 R8 FALSE(0), TRUE(1) CWR Discrete 96
Result Quality,Ch 8 R8Q GOOD(0), BAD(1) – WR Discrete 97
Field Result, Channel 9 FR9 FALSE(0), TRUE(1) ––R Discrete 98
Field Result Quality, Ch 9 FR9Q GOOD(0), BAD(1) ––R Discrete 99
Initial Result, Channel 9 R9 FALSE(0), TRUE(1) CWR Discrete 100
Result Quality,Ch 9 R9Q GOOD(0), BAD(1) – WR Discrete 101
6-15
Logic Functions - Book 1
Table 6-2. RDIM Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Field Result, Channel 10 FR10 FALSE(0), TRUE(1) ––R Discrete 102
Field Result Quality, Ch 10 FR10Q GOOD(0), BAD(1) ––R Discrete 103
Initial Result, Channel 10 R10 FALSE(0), TRUE(1) CWR Discrete 104
Result Quality,Ch 10 R10Q GOOD(0), BAD(1) – WR Discrete 105
Field Result, Channel 11 FR11 FALSE(0), TRUE(1) ––R Discrete 106
Field Result Quality, Ch 11 FR11Q GOOD(0), BAD(1) ––R Discrete 107
Initial Result, Channel 11 R11 FALSE(0), TRUE(1) CWR Discrete 108
Result Quality,Ch 11 R11Q GOOD(0), BAD(1) – WR Discrete 109
Field Result, Channel 12 FR12 FALSE(0), TRUE(1) ––R Discrete 110
Field Result Quality, Ch 12 FR12Q GOOD(0), BAD(1) ––R Discrete 111
Initial Result, Channel 12 R12 FALSE(0), TRUE(1) CWR Discrete 112
Result Quality,Ch 12 R12Q GOOD(0), BAD(1) – WR Discrete 113
Field Result, Channel 13 FR13 FALSE(0), TRUE(1) ––R Discrete 114
Field Result Quality, Ch 13 FR13Q GOOD(0), BAD(1) ––R Discrete 115
Initial Result, Channel 13 R13 FALSE(0), TRUE(1) CWR Discrete 116
Result Quality,Ch 13 R13Q GOOD(0), BAD(1) – WR Discrete 117
Field Result, Channel 14 FR14 FALSE(0), TRUE(1) ––R Discrete 118
Field Result Quality, Ch 14 FR14Q GOOD(0), BAD(1) ––R Discrete 119
Initial Result, Channel 14 R14 FALSE(0), TRUE(1) CWR Discrete 120
Result Quality,Ch 14 R14Q GOOD(0), BAD(1) – WR Discrete 121
Field Result, Channel 15 FR15 FALSE(0), TRUE(1) ––R Discrete 122
Field Result Quality, Ch 15 FR15Q GOOD(0), BAD(1) ––R Discrete 123
Initial Result, Channel 15 R15 FALSE(0), TRUE(1) CWR Discrete 124
Result Quality,Ch 15 R15Q GOOD(0), BAD(1) – WR Discrete 125
Packed Extended Errors PKDERRS ––R Count 126
6-16
Logic Functions - Book 1
02 State (STATE).....................................................................................................................– – R
Not configurable in this block (always equal to RUN). See Section 2.4.1, State Changes for
additional information. This block, when configured, is always executed in the RUN state
(Normal Operation).
6-17
Logic Functions - Book 1
14 Channel (INUSE)................................................................................................................C – R
This attribute is read as 16 bits indicating which channels are in use and thus represent active
digital inputs from the remote digital input module. Channel 0 is the least significant bit, and
the status of each channel is identified as follows:
NOT IN USE 0 Value when leaving the in use box blank for specific channel.
IN USE 1 Value when marking the in use box for specific channel.
6-18
Logic Functions - Book 1
63, 67... 123 Field Result Quality Channel 0 (FR0Q) through Channel 15 (FR15Q).............................– – R
This data quality attribute is marked BAD (1) if any diagnostic error in the block becomes
active.
6-19
Logic Functions - Book 1
64, 68...124 Initial Result Channel 0 (R0) through Channel 15 (R15) CWR
The initial result is the value used for each channel when the block is initially downloaded.
This value is overwritten when the block first executes. Subsequent values are the result of
block evaluation after action is applied. This value is writeable only when the block mode is
manual, when I/O is locked, or the instrument state is not run.
65, 69...125 Result Quality Channel 0 (R0Q) through Channel 15 (R15Q) ..........................................– WR
This data quality field will go BAD if any of the blocks diagnostic errors becomes active while
the block is in auto. When the block is in manual or the I/O is locked, this is the last value
written to the result quality. Any write to the result causes the result quality to be set GOOD.
The result quality is writeable in manual, when the I/O is locked, or the instrument state is not
run.
6.3.3 Typical Block Connections for Remote Digital Input Module Block
Typical RDIM block connections are shown in Figure 6-7. The application builder software
provides special connections to simplify the database configuration procedure required to
make data transfer connections between the remote digital input block and its associated
blocks. A single softwiring connection between the special MODOUT source and the special
MODIN destination provides for data transfer in a form that is acceptable to all of the
connected blocks.
DI16
MODOUT15 MODIN
Mode Channel 0 MODE0
Operator indication of
Extended Error 0 attributes (through CL block).
Operator write access to set mode. EXTERR0
6-20
Logic Functions - Book 1
The RDOM block provides its outputs to the CS-31 bus via a Remote I/O Interface (RIO)
Module installed in the instrument. The instrument database must have one RDOM block for
each remote digital output module on the CS-31 bus. The RDOM can be connected using the
RIO block MODOUT to this blocks MODIN connection.
Block outputs are the data, data quality, and active and unacknowledged status of the block’s
diagnostic error. A functional block diagram of a RDOM block is shown in Figure 6-8. The
displays, which are used to configure this block, are shown in Figures 6-9, 6-10, and 6-11.
Remote digital output module blocks generate a diagnostic error based upon an
unsuppressed I/O mismatch condition or remote module error. Events are reported for
switching the block mode to auto or manual, and for the diagnostic errors.
During a warm start condition, a pre-run read is performed to determine if the module is
performing a power restart. If power is restarted, the result is sent to the module, result quality
is marked bad and track status is set to track. If power is not restarted, the result is initialized
to the previous value, result quality is marked good, and track status is set to track.
During a cold or frozen start condition, the result is set depending on the configuration of the
Restart Output attribute (False, True, or Previous) where previous indicates the previous
database value.
6-21
Logic Functions - Book 1
Bad Track
OR TRKSTA0
Lock
Manual
I/O Lock
(from IF Block) MODE0
DIRECT REVERSE
FALSE
GOOD ACTION0
TRUE Input (I0) Unlock
LSP Auto
BAD
Lock Normal
Auto
TRKQ0
(init flag)
(Remote) I/O Mismatch EXTERRU
(SUPP/ENAB)
Error Check
EXTERRA
(Remote) Module Error
(SUPP/ENAB) MODMMU
PREVIOUS Channel
INUSE EXTERR0
FALSE
PKDERRS
TRUE
OFF
R0
RIO Module
RESTART0 ON
FALSE
PKDR
PREVIOUS FSOUT0
Repeat for Digital Output Channels 1-15
TRUE
Channels 0-15.
Figure 6-8. Remote Digital Output Module Block, Functional Block Diagram
6-22
Logic Functions - Book 1
Figure 6-10. Remote Digital Output Module Block, Channel Configuration Menu
6-23
Logic Functions - Book 1
6-24
Logic Functions - Book 1
6-25
Logic Functions - Book 1
Table 6-3. RDOM Block Attributes, Valid Values, Mnemonics, and Data Types (Cont’d)
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
CPU Failsafe Output FSOUT0 FALSE(0) CWR Short State 95
to TRUE(1) to
FSOUT15 PREVIOUS(3) 110
Track Status, Channel 0 TRKSTA0 NO TRACK(0), TRACK(1) – WR Discrete 111
Track Status Quality, Ch 0 TRKQ0 GOOD(0), BAD(1) – WR Discrete 112
Track Status, Channel 1 TRKSTA1 NO TRACK(0), TRACK(1) – WR Discrete 113
Track Status Quality, Ch 1 TRKQ1 GOOD(0), BAD(1) – WR Discrete 114
Track Status, Channel 2 TRKSTA2 NO TRACK(0), TRACK(1) – WR Discrete 115
Track Status Quality, Ch 2 TRKQ2 GOOD(0), BAD(1) – WR Discrete 116
Track Status, Channel 3 TRKSTA3 NO TRACK(0), TRACK(1) – WR Discrete 117
Track Status Quality, Ch 3 TRKQ3 GOOD(0), BAD(1) – WR Discrete 118
Track Status, Channel 4 TRKSTA4 NO TRACK(0), TRACK(1) – WR Discrete 119
Track Status Quality, Ch 4 TRKQ4 GOOD(0), BAD(1) – WR Discrete 120
Track Status, Channel 5 TRKSTA5 NO TRACK(0), TRACK(1) – WR Discrete 121
Track Status Quality, Ch 5 TRKQ5 GOOD(0), BAD(1) – WR Discrete 122
Track Status, Channel 6 TRKSTA6 NO TRACK(0), TRACK(1) – WR Discrete 123
Track Status Quality, Ch 5 TRKQ6 GOOD(0), BAD(1) – WR Discrete 124
Track Status, Channel 7 TRKSTA7 NO TRACK(0), TRACK(1) – WR Discrete 125
Track Status Quality, Ch 7 TRKQ7 GOOD(0), BAD(1) – WR Discrete 126
Track Status, Channel 8 TRKSTA8 NO TRACK(0), TRACK(1) – WR Discrete 127
Track Status Quality, Ch 8 TRKQ8 GOOD(0), BAD(1) – WR Discrete 128
Track Status, Channel 9 TRKSTA9 NO TRACK(0), TRACK(1) – WR Discrete 129
Track Status Quality, Ch 9 TRKQ9 GOOD(0), BAD(1) – WR Discrete 130
Track Status, Channel 10 TRKSTA10 NO TRACK(0), TRACK(1) – WR Discrete 131
Track Status Quality, Ch 10 TRKQ10 GOOD(0), BAD(1) – WR Discrete 132
Track Status, Channel 11 TRKSTA11 NO TRACK(0), TRACK(1) – WR Discrete 133
Track Status Quality, Ch 11 TRKQ11 GOOD(0), BAD(1) – WR Discrete 134
Track Status, Channel 12 TRKSTA12 NO TRACK(0), TRACK(1) – WR Discrete 135
Track Status Quality, Ch 12 TRKQ12 GOOD(0), BAD(1) – WR Discrete 136
Track Status, Channel 13 TRKSTA13 NO TRACK(0), TRACK(1) – WR Discrete 137
Track Status Quality, Ch 13 TRKQ13 GOOD(0), BAD(1) – WR Discrete 138
Track Status, Channel 14 TRKSTA14 NO TRACK(0), TRACK(1) – WR Discrete 139
Track Status Quality, Ch 14 TRKQ14 GOOD(0), BAD(1) – WR Discrete 140
Track Status, Channel 15 TRKSTA15 NO TRACK(0), TRACK(1) – WR Discrete 141
Track Status Quality, Ch 15 TRKQ15 GOOD(0), BAD(1) – WR Discrete 142
Input Value: Channel 0 to I0 LSP, FALSE(0), TRUE(1) CWR Discrete 170
Channel 15 to to
I15 185
Packed Results PKDR FALSE(0), TRUE(1) C WR Count 210
Packed Results Quality PKDRQ GOOD(0), BAD(1) – WR Count 211
6-26
Logic Functions - Book 1
Table 6-3. RDOM Block Attributes, Valid Values, Mnemonics, and Data Types (Cont’d)
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Initial Result, Channel 0 R0 FALSE(0), TRUE(1) CWR Discrete 212
Result Quality, Ch 0 R0Q GOOD(0), BAD(1) – WR Discrete 213
Initial Result, Channel 1 R1 FALSE(0), TRUE(1) CWR Discrete 214
Result Quality, Ch 1 R1Q GOOD(0), BAD(1) – WR Discrete 215
Initial Result, Channel 2 R2 FALSE(0), TRUE(1) CWR Discrete 216
Result Quality, Ch 2 R2Q GOOD(0), BAD(1) – WR Discrete 217
Initial Result, Channel 3 R3 FALSE(0), TRUE(1) CWR Discrete 218
Result Quality, Ch 3 R3Q Good(0), Bad(1) – WR Discrete 219
Initial Result, Channel 4 R4 FALSE(0), TRUE(1) CWR Discrete 220
Result Quality, Ch 4 R4Q GOOD(0), BAD(1) – WR Discrete 221
Initial Result, Channel 5 R5 FALSE(0), TRUE(1) CWR Discrete 222
Result Quality, Ch 5 R5Q GOOD(0), BAD(1) – WR Discrete 223
Initial Result, Channel 6 R6 FALSE(0), TRUE(1) CWR Discrete 224
Result Quality, Ch 6 R6Q GOOD(0), BAD(1) – WR Discrete 225
Initial Result, Channel 7 R7 FALSE(0), TRUE(1) CWR Discrete 226
Result Quality, Ch 7 R7Q GOOD(0), BAD(1) – WR Discrete 227
Initial Result, Channel 8 R8 FALSE(0), TRUE(1) CWR Discrete 228
Result Quality, Ch 8 R8Q GOOD(0), BAD(1) – WR Discrete 229
Initial Result, Channel 9 R9 FALSE(0), TRUE(1) CWR Discrete 230
Result Quality, Ch 9 R9Q GOOD(0), BAD(1) – WR Discrete 231
Initial Result, Channel 10 R10 FALSE(0), TRUE(1) CWR Discrete 232
Result Quality, Ch 10 R10Q GOOD(0), BAD(1) – WR Discrete 233
Initial Result, Channel 11 R11 FALSE(0), TRUE(1) CWR Discrete 234
Result Quality, Ch 11 R11Q GOOD(0), BAD(1) – WR Discrete 235
Initial Result, Channel 12 R12 FALSE(0), TRUE(1) CWR Discrete 236
Result Quality, Ch 12 R12Q GOOD(0), BAD(1) – WR Discrete 237
Initial Result, Channel 13 R13 FALSE(0), TRUE(1) CWR Discrete 238
Result Quality, Ch 13 R13Q GOOD(0), BAD(1) – WR Discrete 239
Initial Result, Channel 14 R14 FALSE(0), TRUE(1) CWR Discrete 240
Result Quality, Ch 14 R14Q GOOD(0), BAD(1) – WR Discrete 241
Initial Result, Channel 15 R15 FALSE(0), TRUE(1) CWR Discrete 242
Result Quality, Ch 15 R15Q GOOD(0), BAD(1) – WR Discrete 243
Packed Extended Errors PKDERRS ––R Count 244
00 Version (VERSION)............................................................................................................– – R
Version number of RDIM block. Presently 1.
02 State (STATE).....................................................................................................................– – R
Not configurable in this block (always equal to RUN). See Section 2.4.1, State Changes for
additional information. This block, when configured, is always executed in the RUN state
(Normal Operation).
6-27
Logic Functions - Book 1
6-28
Logic Functions - Book 1
6-29
Logic Functions - Book 1
95 - 110 CPU Failsafe Output,Channel 0 (FSOUT0) through Channel 15 (FSOUT15) .................. CWR
This is the output value used when communication between the instrument CPU and the
remote I/O interface module is lost. A write to the failsafe output value causes the value to be
downloaded to the module.
FALSE 0 Failsafe output value is low.
TRUE 1 Failsafe output value is high.
PREVIOUS 3 The last value output by the RIO module.
6-30
Logic Functions - Book 1
112 ,114.. 142 Track Status Quality,Channel 0 (TRKQ0) through Channel 15 (TRKQ15)...................... – WR
This data quality field is not changed by any internal logic and is always be GOOD unless
written otherwise.
170 - 185 Input Value, Channel 0 (I0) through Channel 15 (I15) CWR
This is the input to each block channel used to determine the output of the channel. The input
type can be configured as either local or remote.
Input Type - Local
Value is local discrete data. This value can be written when the block is in auto.
FALSE 0
TRUE 1
Input Type - Remote
Value is obtained from a connection to any discrete logical source pointer.
6-31
Logic Functions - Book 1
6.4.3 Typical Block Connections for Remote Digital Output Module Blocks
Typical RDOM block connections are shown in Figure 6-12. The application builder software
provides special connections to simplify the database configuration procedure required to
make data transfer connections between the remote digital output block and its associated
blocks. A single softwiring connection between the special MODOUT source and the special
MODIN destination provides for data transfer in a form that is acceptable to all of the
connected blocks.
RDOM1 RIO1
PID1
TS
Track Status Input Value Channel 15 (I15)
MODE0
Mode Channel 0 Operator indication of
EXTERR0 attributes (through CL
Extended Error 0 block).
Operator write access to set mode.
6-32
Logic Functions - Book 1
7
INPUT FUNCTIONS DATABASE PARAMETERS
DI Digital Input Block. Reference IB-23G600 Section 7.3. This block links a
Digital Input Module (DIM) block to a loop.
VCI Voltage/Current Input Block. Reference IB-23G600 Section 7.2. This block
links a Voltage/Current Module (VCIM) block to a loop.
RI Resistance Input Block. Reference IB-23G600 Section 7.2. This block links a
Resistance Input Module (RIM) or a Wide Resistance Input Module (WRIM)
block to a loop.
RTI RTD Input Block. Reference IB-23G600 Section 7.2. This block links a RTD
input from a Resistance Input Module (RIM) or a Wide Resistance Input
Module (WRIM) block to a loop.
RTTI RTD Transmitter Input Block. Reference IB-23G600 Section 7.2. This block
links a Voltage/Current Module (VCIM) block to a loop.
7-1
Logic Functions - Book 1
7-2
Logic Functions - Book 1
7.2 ANALOG INPUT BLOCKS (VCI, TTI, TI, RI, RTI RTTI)
The analog input blocks (VCI, TTI, TI, RI, RTI and RTTI) provide an input link from a physical
analog input module (VCIM, TIM, RIM, WRIM, RAIM) to a loop. The relationship between
these blocks is discussed in Sections 5 and 6. Functions performed by these blocks include
input filtering, action, normalization, linearization, and scaling. The types of analog input block
are:
• VCI Voltage Input Block
• TTI Temperature Transmitter Input Block
• TI Thermocouple Input Block
• RI Resistance Input Block
• RTI RTD Input Block
• RTTI RTD Transmitter Input Block
An input block is a loop function block that provides a logical input link to an input module (one
physical input point). As many input blocks as required can be connected to a module block
source. The input value is buffered in the task state table for the loop. Process input and
output routines use these tables to pass data between the module blocks and the process
algorithm blocks which run at the scan group interval configured for the task. The local
modules described in Section 5.4, Analog Input Module Blocks VCIM, TIM, RIM, WRIM are
updated every 150 milliseconds.
An input block uses the Input Module pointer specified during configuration to set the
connection between the block and the module. This connection is fixed by configuration and
can not be changed through the database.
This section describes the analog input block types and the relationship of their configuration
parameters to the block’s function. All parameters for these blocks are described in one listing
since many of the parameters are the same.
7-3
Logic Functions - Book 1
Input Module
Floating Point Count Action Linearization Type
Filter Normalization
(DIR/REV)
Filter Time
(minutes) Output Range
Top
Output Scaling
NONE
Output Range
Bottom
AUTO Filter Type
USER
Range Check
Diagnostic Calculation
Group Error Quality Limit Quality Limit
(NONE, 1-7) (ENAB/SUPP) - Top - Bottom
CERRA
Quality and
Bad Inputs Error Check CERRAQ
Result
Accepted CERRU
(YES/NO)
CERRUQ
Set Quality
Bad on
Input Module Result Quality Calculation
Error (Y/N)
Result Quality
7-4
Logic Functions - Book 1
7-5
Logic Functions - Book 1
Table 7-1. Voltage/Current Input Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1 – – R Long State 00
Block Length BLKLEN – – R Count 01
State STATE RUN(0), HOLD(1), OFF(2), CWR Short State 02
DEBUG(3)
Bad Inputs Accepted BADINP NO (0), YES (1) CWR Discrete 03
Diagnostic Group Supp. SUPPGRP NONE, 1, 2, 3, 4, 5, 6, 7 CWR Long State 04
Calculation Error CERRS ENABLE (0), SUPPRESS (1) CWR Discrete 05
Calc. Error Unacked CERRU NO (0), YES (1) – WR Discrete 06
Calc. Error Unacked Quality CERRUQ NO (0), YES (1) – WR Discrete 07
Calc. Error Active CERRA NO (0), YES (1) – WR Discrete 08
Calc. Error Active Quality CERRAQ NO (0), YES (1) – WR Discrete 09
Set quality bad on calc err? SETQBAD NO (0), YES (1) CWR Discrete 10
Action ACTION REVERSE (0), DIRECT (1) CWR Discrete 11
Linearization Type LINTYPE LINEAR(17), SQR(20), CWR Long State 12
SQRT(21), MOD_SQR(22),
MODSQRT(23)
Filter Type FILTYPE NONE(0), AUTO(1), USER(2) CWR Short State 13
Filter Time FILTIME 0 to 1000 (minutes) CWR Floating Pt 14
Output Range - Top OUTHI value (in scaled units) CWR Floating Pt 15
Output Range - Bottom OUTLO value (in scaled units) CWR Floating Pt 16
Quality Limit - Top QUALHI value (in scaled units) CWR Floating Pt 17
Quality Limit - Bottom QUALLO value (in scaled units) CWR Floating Pt 18
Initial Value (Result) R value (in scaled units) CWR Floating Pt 19
Result Data Quality RQ GOOD (0), BAD (1) – WR Discrete 20
7-6
Logic Functions - Book 1
Input Module
Floating Point Count Normalization Action
Filter and Temperature Scale
(DIR/REV)
Linearization
Range Check
Diagnostic Calculation
Group Error Quality Limit Quality Limit
(NONE, 1-7) (ENAB/SUPP) - Top - Bottom
CERRA
Quality and
Bad Inputs Error Check CERRAQ
Result
Accepted CERRU
(YES/NO)
CERRUQ
Set Quality
Input Module Result Quality Bad on
Calculation
Error (Y/N)
Result Quality
Figure 7-4. Thermocouple Transmitter Input Block (TTI), Functional Block Diagram
7-7
Logic Functions - Book 1
7-8
Logic Functions - Book 1
Table 7-2. Thermocouple Transmitter Input Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1 – – R Long State 00
Block Length BLKLEN – – R Count 01
State STATE RUN(0), HOLD(1), OFF(2), CWR Short State 02
DEBUG(3)
Bad Inputs Accepted BADINP NO (0), YES (1) CWR Discrete 03
Diagnostic Group Supp. SUPPGRP NONE, 1, 2, 3, 4, 5, 6, 7 CWR Long State 04
Calculation Error CERRS ENABLE (0), SUPPRESS (1) CWR Discrete 05
Calc. Error Unacked CERRU NO (0), YES (1) – WR Discrete 06
Calc. Error Unacked Quality CERRUQ NO (0), YES (1) – WR Discrete 07
Calc. Error Active CERRA NO (0), YES (1) – WR Discrete 08
Calc. Error Active Quality CERRAQ NO (0), YES (1) – WR Discrete 09
Set quality bad on SETQBAD NO (0), YES (1) CWR Discrete 10
calculation error?
Action ACTION REVERSE (0), DIRECT (1) CWR Discrete 11
Temperature Scale SCLTYPE FAHRENHEIT(0),CELSIUS(1), CWR Short State 12
RANKINE(2), KELVIN(3)
Filter Type FILTYPE NONE(0), AUTO(1), USER(2) CWR Short State 13
Filter Time FILTIME 0 to 1000 (minutes) CWR Floating Pt 14
Transmitter Range - Top TRANSHI value (in microvolts) CWR Floating Pt 15
Transmitter Range - Bottom TRANSLO value (in microvolts) CWR Floating Pt 16
Output Calibrate - Zero ZERO value (in temperature units) CWR Floating Pt 17
Output Calibrate - Span SPAN value (multiplier) CWR Floating Pt 18
Quality Limit - Top QUALHI value (in temperature units) CWR Floating Pt 19
Quality Limit - Bottom QUALLO value (in temperature units) CWR Floating Pt 20
Initial Value (Result) R value (in temperature units) CWR Floating Pt 21
Result Data Quality RQ GOOD (0), BAD (1) – WR Discrete 22
7-9
Logic Functions - Book 1
Input Module
Floating Point Count Microvolt Temperature
Filter Calculation Linearization Scale
Filter Time
(minutes)
NONE +
Sum
AUTO Filter Type
+
USER Output
Sum Calibrate
RIM, WRIM, CJIM or Local - Zero
Floating Point Count Deg C Inverse
Filter Calculation Linearization
Output
NONE Mult Calibrate
- Span
Cold Junction
Value Compensation
Input
LSP Range Check
Diagnostic Calculation
Group Error Quality Limit Quality Limit
(NONE, 1-7) (ENAB/SUPP) - Top - Bottom
CERRA
Quality and
Bad Inputs Error Check CERRAQ
Result
Accepted CERRU
(YES/NO)
CERRUQ
Set Quality
Input Module Result Quality Bad on
Calculation
Error (Y/N)
Result Quality
7-10
Logic Functions - Book 1
7-11
Logic Functions - Book 1
Table 7-3. Thermocouple Input Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1 – – R Long State 00
Block Length BLKLEN – – R Count 01
State STATE RUN(0), HOLD(1), OFF(2), CWR Short State 02
DEBUG(3)
Bad Inputs Accepted BADINP NO (0), YES (1) CWR Discrete 03
Diagnostic Group Supp. SUPPGRP NONE, 1, 2, 3, 4, 5, 6, 7 CWR Long State 04
Calculation Error CERRS ENABLE (0), SUPPRESS (1) CWR Discrete 05
Calc. Error Unacked CERRU NO (0), YES (1) – WR Discrete 06
Calc. Error Unacked Quality CERRUQ NO (0), YES (1) – WR Discrete 07
Calc. Error Active CERRA NO (0), YES (1) – WR Discrete 08
Calc. Error Active Quality CERRAQ NO (0), YES (1) – WR Discrete 09
Set quality bad on calc err? SETQBAD NO (0), YES (1) CWR Discrete 10
Temperature Scale SCLTYPE FAHRENHEIT(0),CELSIUS(1), CWR Short State 11
RANKINE(2), KELVIN(3)
Filter Type FILTYPE NONE(0), AUTO(1), USER(2) CWR Short State 12
Filter Time FILTIME 0 to 1000 (minutes) CWR Floating Pt 13
Output Calibrate - Zero ZERO value (in temperature units) CWR Floating Pt 14
Output Calibrate - Span SPAN value (multiplier) CWR Floating Pt 15
Quality Limit - Top QUALHI value (in temperature units) CWR Floating Pt 16
Quality Limit - Bottom QUALLO value (in temperature units) CWR Floating Pt 17
Initial Value (Result) R value (in temperature units) CWR Floating Pt 18
Result Data Quality RQ GOOD (0), BAD (1) – WR Discrete 19
Cold Junction Comp. Input CJCINP NONE, value, LSP CWR Floating Pt 20
7-12
Logic Functions - Book 1
Input Module
Floating Point Count Action
Filter Normalization
(DIR/REV)
Filter Time
(minutes) Output Range
Top
Output Scaling
NONE
Output Range
Bottom
AUTO Filter Type
USER
Range Check
Diagnostic Calculation
Group Error Quality Limit Quality Limit
(NONE, 1-7) (ENAB/SUPP) - Top - Bottom
CERRA
Quality and
Bad Inputs Error Check CERRAQ
Result
Accepted CERRU
(YES/NO)
CERRUQ
Set Quality
Input Module Result Quality Bad on
Calculation
Error (Y/N)
Result Quality
7-13
Logic Functions - Book 1
7-14
Logic Functions - Book 1
Table 7-4. Resistance Input Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1 – – R Long State 00
Block Length BLKLEN – – R Count 01
State STATE RUN(0), HOLD(1), OFF(2), CWR Short State 02
DEBUG(3)
Bad Inputs Accepted BADINP NO (0), YES (1) CWR Discrete 03
Diagnostic Group Supp. SUPPGRP NONE, 1, 2, 3, 4, 5, 6, 7 CWR Long State 04
Calculation Error CERRS ENABLE (0), SUPPRESS (1) CWR Discrete 05
Calc. Error Unacked CERRU NO (0), YES (1) – WR Discrete 06
Calc. Error Unacked Quality CERRUQ GOOD (0), BAD (1) – WR Discrete 07
Calc. Error Active CERRA NO (0), YES (1) – WR Discrete 08
Calc. Error Active Quality CERRAQ GOOD (0), BAD (1) – WR Discrete 09
Set quality bad on calc err? SETQBAD NO (0), YES (1) CWR Discrete 10
Action ACTION REVERSE (0), DIRECT (1) CWR Discrete 11
Filter Type FILTYPE NONE(0), AUTO(1), USER(2) CWR Short State 12
Filter Time FILTIME 0 to 1000 (minutes) CWR Floating Pt 13
Output Range - Top OUTHI value (in scaled units) CWR Floating Pt 14
Output Range - Bottom OUTLO value (in scaled units) CWR Floating Pt 15
Quality Limit - Top QUALHI value (in scaled units) CWR Floating Pt 16
Quality Limit - Bottom QUALLO value (in scaled units) CWR Floating Pt 17
Initial Value (Result) R value (in scaled units) CWR Floating Pt 18
Result Data Quality RQ GOOD (0), BAD (1) – WR Discrete 19
7-15
Logic Functions - Book 1
RTD Type
Input Module Nominal Resistance FAHRENHEIT KELVIN
No.
CELSIUS RANKINE
Input Module
Floating Point Count RTD Temperature Scale
Filter Linearization
Filter Time
(minutes)
Range Check
Diagnostic Calculation
Group Error Quality Limit Quality Limit
(NONE, 1-7) (ENAB/SUPP) - Top - Bottom
CERRA
Quality and
Bad Inputs Error Check CERRAQ
Result
Accepted CERRU
(YES/NO)
CERRUQ
Set Quality
Input Module Result Quality Bad on
Calculation
Error (Y/N)
Result Quality
7-16
Logic Functions - Book 1
7-17
Logic Functions - Book 1
Table 7-5. RTD Input Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1 – – R Long State 00
Block Length BLKLEN – – R Count 01
State STATE RUN(0), HOLD(1), OFF(2), CWR Short State 02
DEBUG(3)
Bad Inputs Accepted BADINP NO (0), YES (1) CWR Discrete 03
Diagnostic Group Supp. SUPPGRP NONE, 1, 2, 3, 4, 5, 6, 7 CWR Long State 04
Calculation Error CERRS ENABLE (0), SUPPRESS (1) CWR Discrete 05
Calc. Error Unacked CERRU NO (0), YES (1) – WR Discrete 06
Calc. Error Unacked Quality CERRUQ GOOD (0), BAD (1) – WR Discrete 07
Calc. Error Active CERRA NO (0), YES (1) – WR Discrete 08
Calc. Error Active Quality CERRAQ GOOD (0), BAD (1) – WR Discrete 09
Set quality bad on SETQBAD NO (0), YES (1) CWR Discrete 10
calculation error?
Temperature Scale SCLTYPE FAHRENHEIT(0),CELSIUS(1), CWR Short State 11
RANKINE(2), KELVIN(3)
Filter Type FILTYPE NONE(0), AUTO(1), USER(2) CWR Short State 12
Filter Time FILTIME 0 to 1000 (minutes) CWR Floating Pt 13
Output Calibrate - Zero ZERO value (in temperature units) CWR Floating Pt 14
Output Calibrate - Span SPAN value (multiplier) CWR Floating Pt 15
Quality Limit - Top QUALHI value (in temperature units) CWR Floating Pt 16
Quality Limit - Bottom QUALLO value (in temperature units) CWR Floating Pt 17
Initial Value (Result) R value (in temperature units) CWR Floating Pt 18
Result Data Quality RQ GOOD (0), BAD (1) – WR Discrete 19
7-18
Logic Functions - Book 1
RTD Type
Input Module Signal Range - Top
No. FAHRENHEIT KELVIN
Signal Range - Bottom
CELSIUS RANKINE
Input Module
Floating Point
Count RTD
Filter Normali- Action Resistance Temperature Scale
zation (DIR/REV) Calculation Lineariza-
tion
Filter Time
(minutes) Transmitter Transmitter
Range Top Range Bottom
Range Check
Diagnostic Calculation
Group Error Quality Limit Quality Limit
(NONE, 1-7) (ENAB/SUPP) - Top - Bottom
CERRA
Quality and
Bad Inputs Error Check CERRAQ
Result
Accepted CERRU
(YES/NO)
CERRUQ
Set Quality
Bad on
Input Module Result Quality Calculation
Error (Y/N)
Result Quality
Figure 7-16. RTD Transmitter Input Block (RTTI), Functional Block Diagram
7-19
Logic Functions - Book 1
7-20
Logic Functions - Book 1
Table 7-6. RTD Transmitter Input Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1 – – R Long State 00
Block Length BLKLEN – – R Count 01
State STATE RUN(0), HOLD(1), OFF(2), CWR Short State 02
DEBUG(3)
Bad Inputs Accepted BADINP NO (0), YES (1) CWR Discrete 03
Diagnostic Group Supp. SUPPGRP NONE, 1, 2, 3, 4, 5, 6, 7 CWR Long State 04
Calculation Error CERRS ENABLE (0), SUPPRESS (1) CWR Discrete 05
Calc. Error Unacked CERRU NO (0), YES (1) – WR Discrete 06
Calc. Error Unacked Quality CERRUQ GOOD (0), BAD (1) – WR Discrete 07
Calc. Error Active CERRA NO (0), YES (1) – WR Discrete 08
Calc. Error Active Quality CERRAQ GOOD (0), BAD (1) – WR Discrete 09
Set quality bad on calc err? SETQBAD NO (0), YES (1) CWR Discrete 10
Action ACTION REVERSE (0), DIRECT (1) CWR Discrete 11
Temperature Scale SCLTYPE FAHRENHEIT(0),CELSIUS(1), CWR Short State 12
RANKINE(2), KELVIN(3)
Filter Type FILTYPE NONE(0), AUTO(1), USER(2) CWR Short State 13
Filter Time FILTIME 0 to 1000 (minutes) CWR Floating Pt 14
Transmitter Range - Top TRANSHI value (in temperature units) CWR Floating Pt 15
Transmitter Range - Bottom TRANSLO value (in temperature units) CWR Floating Pt 16
Output Calibrate - Zero ZERO value (in temperature units) CWR Floating Pt 17
Output Calibrate - Span SPAN value (multiplier) CWR Floating Pt 18
Quality Limit - Top QUALHI value (in temperature units) CWR Floating Pt 19
Quality Limit - Bottom QUALLO value (in temperature units) CWR Floating Pt 20
Initial Value (Result) R value (in temperature units) CWR Floating Pt 21
Result Data Quality RQ GOOD (0), BAD (1) – WR Discrete 22
7-21
Logic Functions - Book 1
Block Type
The following are valid analog input block types. The block type field, on the edit block
display, identifies the block being edited.
VCI Voltage/Current Input Block
TTI Thermocouple Transmitter Input Block
TI Thermocouple Input Block
RI Resistance Input Block
RTI RTD Input Block
RTTI RTD Transmitter Input Block
Occurrence
1 to 4096 Distinguishes a particular ‘instance’ of the block. The next logical
block number is automatically assigned to the block on the Function
Block Selection Page.
7-22
Logic Functions - Book 1
7-23
Logic Functions - Book 1
7-24
Logic Functions - Book 1
Note that exceptionally large values tend to maintain the previous value whereas very small
values tend to maintain the most recent sampled value.
7-25
Logic Functions - Book 1
7-26
Logic Functions - Book 1
VCIM1 VCI1
MODOUT MODIN
R Softwiring connection to other
Result function block (result quality is
RQ automatically connected).
CL11 Result Data Quality
ACTION Operator indication
I1 Action
of input action.
I2 Filter Time
Figure 7-19. Typical Block Connections for Analog Input Type Block
7-27
Logic Functions - Book 1
7-28
Logic Functions - Book 1
Block outputs are the data and data quality. A functional block diagram of a digital input block
is shown in Figure 7-20. The menu used to configure the Digital Input block is shown in
Figure 7-21.
Number of
Millisecond Filter Time
(0 to 65500)
ANY
TRUE
Latch Type
FALSE
TRANS.
Bad Inputs
Accepted
(YES/NO)
Block State
RUN, HOLD,
OFF, DEBUG)
7-29
Logic Functions - Book 1
An input block uses the Input Module pointer specified during configuration to set the
connection between the block and the module. This connection is fixed by configuration and
can not be changed through the database.
Block Type
DI This is the digital input block type.
Occurrence
1 to 4096 There may be up to 4096 ‘instances’ allowed of the DI block type.
7-30
Logic Functions - Book 1
Table 7-7. Digital Input Block Attributes, Valid Values, Mnemonics, and Data Types
Field Name / Attribute Mnemonic Valid Values CWR Data Type Attr
Version VERSION 1 – – R Long State 00
Block Length BLKLEN – – R Count 01
Block State STATE RUN(0), HOLD(1), OFF(2), CWR Short State 02
DEBUG(3)
Bad Inputs Accepted BADINP NO (0), YES (1) CWR Discrete 03
Filter type FILTYPE NONE (for future use) CWR Short State 04
Filter Time FILTIME 0 to 65500 (milliseconds) CWR Count 05
Latch Value LATCH ANY(0), FALSE(1), TRUE(2), CWR Short State 06
TRANS.(3)
Action ACTION REVERSE (0), DIRECT (1) CWR Discrete 07
Initial Result Value R FALSE (0), TRUE (1) CWR Discrete 08
Result Quality RQ GOOD (0), BAD (1) – WR Discrete 09
02 State (STATE).....................................................................................................................CWR
All block state changes are reported as events. See Section 2.4.1, State Changes for
additional information.
RUN 0 Normal Operation. Block is executed.
HOLD 1 Block is not executed. Qualities retain previous values.
OFF 2 Block is not executed. Qualities will be BAD.
DEBUG 3 Block is not executed. No fields are updated. All attributes are
writeable.
7-31
Logic Functions - Book 1
DIM1 DI1
MODOUT MODIN
R
Softwiring connection to
Result another block (quality
RQ connection is linked to result).
CL11 Result Quality
ACTION
I1 Operator indication
Action of block action.
I2 Filter Time
7-32
Logic Functions - Book 1
APPENDIX A
SUMMARY OF VERSION DIFFERENCES
A.1 GENERAL
This document is written to reflect the latest model and version of the instrument. The
summary provided below notes the differences between the current instrument and the
previous versions. Current functionality is: Logic 6, Advanced 3, MOD 30ML 2.
At present, upgrades are possible using the configurator. When an upgrade is done, any
blocks in the original database, which have later versions at the selected upgrade level, will be
upgraded to those later versions. This process will normally be irreversible, and the database
cannot be downgraded to its original level. A downgrade is possible if the database has only
those functions available in the earlier version.
The configurator tags each database it produces with the declared instrument version and the
minimum instrument version, which is the lowest instrument version capable of running the
database. The configurator determines, at the start of download, whether or not the target
instrument is capable of running the database and allows or disables the download
accordingly. The instrument itself makes a similar check when an attempt is made to
download from a memory module. The configurator will create a database based on the
declared instrument version when a database is uploaded.
In addition, the Version 1 Configured List Block does not support attributes 8, 9 and
10.
A-1
Logic Functions - Book 1
In addition, the Version 1 Expression Block does not include the following operators:
In addition, configuration choices for RTD type linearizations are not included in the following
Version 1 blocks (the version attribute for these blocks changed to version 2):
• LN Linearization Block (Linearization Type attribute does not include options for
platinum and nickel RTD sensors)
• VCIM Voltage/Current Input Module (was Thermocouple Type short state attribute 21,
TCTYPE, and is now Linearization Type long state attribute 28, TYPE)
• TIM Thermocouple Input Module (Cold Junction Compensation attribute does not
include options for NONE, RIM and WRIM)
• TI Thermocouple Input Block (Cold Junction Compensation Input attribute does not
exist)
A-2
Logic Functions - Book 1
APPENDIX B
MODBUS MASTER CONFIGURATION
B.1 OVERVIEW
Modbus Master communication functionality was introduced on the MODCELL Multiloop
Processor firmware (version 3.1 logic controller, version 2.1 regulatory controller) without
adding any new function blocks. This has been accomplished by adding new code and making
changes to the existing firmware in the MODCELL Serial Communication (MSC) (formerly
known as the Modbus Slave Communication) and Expression (EX) blocks. The attributes for
these blocks have not been changed in any way that required changes in the Application
Builder version 1 (the 1706S version 5.0B may be used as a configuration tool when at this
version level). Extended Modbus, requires the Application Builder version 2 or later software.
Function codes:
1 Read Coil Status
2 Read Input Status
3 Read Holding Registers
4 Read Input Registers
5 Force Coil*
6 Preset Single Register*
15 Force Multiple Coils*
16 Preset Multiple Registers*
* Supports Global Writes.
Communication Parameters:
Slave Addr 1 to 247
Parity None, Odd, Even
Stop Bit 1 or 2
Baud Rate 150 to 38.4K
Communication Type:
RS232 2 Slot
RS485 1 Slot 2 Wire
RS485 2 Slot 2 Wire
RS485 2 Slot 4 Wire
When an RS485 communication bus is being used, the Modbus Master is responsible for
providing pull-up and pull-down resistors which will keep the bus in a MARK/IDLE state when
all the transmitters are tri-stated. Modbus Network installation instructions can be found in
IB-23C600 Issue 5 or later.
B-1
Logic Functions - Book 1
CFG,MM,PORTz Modbus Master EX block used for configuration items. There must
be one of these blocks configured for each port used as a modbus master. See
section B.3.1
RCS,MM,PORTz Modbus Master EX block used to read the Coil Status (Discrete
Read/Write memory) area 00001 to 09999. See section B.3.2
RIS,MM,PORTz Modbus Master EX block used to read the Input Status (Discrete
Read Only memory) area 10001 to 19999. See section B.3.3
RIR,MM,PORTz Modbus Master EX block used to read the Input Register (Read Only
memory) area 30001 to 39999. See section B.3.4
NO If the quality of any INPUT LSP used by the EX modbus master is bad, the
message will not be sent.
B-2
Logic Functions - Book 1
The Expression in the Expression block can still be used. The Modbus Master code will
execute first and then the expression will be evaluated.
When an Expression block is used for a Modbus Master interface it’s message handler routine
will not allow writes to attributes that are configuration parameters for the Modbus Master
function.
The EX block and the LOOP block it is under must both be in the RUN state for Modbus
Master message transactions to occur.
Modbus is a half duplex protocol. Therefore, except for a global write message, the
master will send a message and wait for a response message or until a specified
timeout occurs.
If a global write message has been sent the driver will wait at least 100 msec plus the
configured INTER MESSAGE DELAY time before sending the next message.
Messages are queued up in the order that they are triggered by Modbus Master EX
blocks.
If no response is received from a slave for the NUMBER OF RETRIES configured the
driver will timeout all messages in the queue destined for this slave’s address. This
eliminates wasting time on a slave that is not on the bus.
MODBUS MASTER Read EX blocks will copy data read from a slave device into it’s
INPUT attribute storage locations when the EX block executes.
MODBUS MASTER Write EX blocks will copy the data from it’s INPUTS into the
message to be sent to the slave device when the EX block executes.
B-3
Logic Functions - Book 1
The following table describes how many registers the Modcell data types use and how the
data is expected to be organized. See MODCELL Logic Controller Data Base Reference
Manual IB-23G600 Section 2.3.4 for further Data Type description.
B-4
Logic Functions - Book 1
Value Description
0 Valid response message received.
*1 Illegal MFC
*5 Acknowledge
*7 Nak-Negative Acknowledgment
241 At least one of the attributes that was read was out of it’s data type range.
For instance a value of 300 was read and the data type is long state
which allows 0 through 255. The input value will be set to it’s minimum
value or maximum value or left unchanged per CFG item OUT OF
RANGE VALUE READ.
242 Response message invalid; it was not the expected response to the
message that was sent.
247 This modbus master function of the EX block has just initialized.
248 Modbus Master Configuration error in this block, therefore this block will
not execute as a MASTER.
249 Out of RAM memory, therefore this block will not execute as a MASTER.
B-5
Logic Functions - Book 1
The configuration of a Modbus Master EX block used to hold some configuration parameters
is defined as:
Value 0 indicates there are no EX blocks used for modbus master with a
configuration error.
Value 65534 indicates there is more than one of these EX blocks configured
for this modbus master port; therefore, this one is not used.
Value 65535 indicates the port that this EX block is configured for is not a
modbus master port.
Else, this is the occurrence number of the first Ex block found with a
configuration error.
Value 0 indicates there are no EX blocks used for modbus master that did not
get ram allocated to it.
Value 65534 indicates there is more than one of these EX blocks configured
for this modbus master port; therefore, this one is not used.
Value 65535 indicates the port that this EX block is configured for is not a
modbus master port.
Else, this is the occurrence number of the first Ex block that there was not
enough ram to allocate for it.
Value 65534 indicates there is more than one of these EX blocks configured
for this modbus master port; therefore, this one is not used.
Value 65535 indicates the port that this EX block is configured for is not a
modbus master port.
Else, this is the number of ram bytes remaining which can be used for EX
modbus master blocks. There are a total of 3000 bytes available.
B-6
Logic Functions - Book 1
This value indicates the number of Modbus Master EX blocks that are
configured with no errors and have ram space allocated.
Value 65534 indicates there is more than one of these EX blocks configured
for this modbus master port; therefore, this one is not used.
Value 65535 indicates the port that this EX block is configured for is not a
modbus master port.
Determine the maximum time the various slave devices take to respond to a
message (a Modcell Multiloop Processor will respond within 100 milliseconds
and a Modcell 2050R will respond within 250 miliseconds). Next, determine
the RIR (Read Input Register) or RHR (Read Holding Register) message that
requests the largest number of registers for each of the different slave
devices. Now use the following formula to calculate the response timeout for
each slave device (use the largest value plus some additional slop time).
OVERHEAD = 8.5 Characters (addr, mfc, byte cnt, 2 crc, 3.5 char idle for
EOM)
TOTAL # CHARACTERS = (Number Registers Requested x 2) +
OVERHEAD
BUS TIME = TOTAL # CHARACTERS x BUS TIME PER CHARACTER
TOTAL RESPONSE TIME = BUS TIME + Respone Time of Slave Device +
Slop
RESPONSE TIMEOUT VALUE = TOTAL RESPONSE TIME / 50
B-7
Logic Functions - Book 1
If no response is received from a slave all other messages that are currently
queued up for that slave address will be marked as no response and removed
from the queue. This will help wasting too much time on a slave device that is
no longer functioning.
If there are more than one of these EX blocks in the database the lowest
occurrence number EX block will be used.
If there are more than one of these EX blocks in the database the lowest
occurrence number EX block will be used.
If there are more than one of these EX blocks in the database the lowest
occurrence number EX block will be used.
Value 0 indicates the Modbus code 5 (force single coil) or Modbus code 6
(preset single register) should be used.
Value 1 indicates the Modbus code 15 (force multiple coils) or Modbus code
16 (preset multiple registers) should be used.
If there are more than one of these EX blocks in the database the lowest
occurrence number EX block will be used.
B-8
Logic Functions - Book 1
This value is the number of attribute values that should be read and stored at
this block’s INPUT11 through INPUTn. Valid values are 1 through 2000.
Specifies whether the message transaction has been completed. The value
will be set to 1 (TRUE) when the message is triggered and remains set until
the transaction is complete or until failure is determined.
IF REFRESH STATE = 0
Previous send input value. Used in detecting low->high trip transaction.
B-9
Logic Functions - Book 1
IF REFRESH STATE = 0
Value 0 indicates the SEND INPUT is used and INPUT8 (SEND INPUT) must
be configured. The value 0 can only be written through the message handler
if the SEND INPUT is present.
IF REFRESH STATE = 0
This input must be present. This signal is used to trigger this EX block’s
message. Signal is edge trigged, 0 (FALSE) to 1 (TRUE). Send input triggers
are ignored while this message transaction is ACTIVE.
INPUT11 will contain the value from the STARTING COIL NUMBER,
INPUT12 will contain the value from the next coil etc.
B-10
Logic Functions - Book 1
This value is the number of attribute values that should be read and stored at
this block’s INPUT11 through INPUTn. Valid values are 1 through 2000.
Specifies whether the message transaction has been completed. The value
will be set to 1 (TRUE) when the message is triggered and remains set until
the transaction is complete or until failure is determined.
IF REFRESH STATE = 0
Previous send input value. Used in detecting low->high trip transaction.
B-11
Logic Functions - Book 1
IF REFRESH STATE = 0
Value 0 indicates the SEND INPUT is used and INPUT8 (SEND INPUT) must
be configured. The value 0 can only be written through the message handler
if the SEND INPUT is present.
IF REFRESH STATE = 0
This input must be present. This signal is used to trigger this EX block’s
message. Signal is edge trigged, 0 (FALSE) to 1 (TRUE). Send input triggers
are ignored while this message transaction is ACTIVE.
INPUT11 will contain the value from the STARTING COIL NUMBER,
INPUT12 will contain the value from the next coil etc.
B-12
Logic Functions - Book 1
This value is the number of attribute values that should be read and stored at
this block’s INPUT11 through INPUTn. The minimum value is 1. The
maximum value is dependent on the number of attributes that can be read
from 125 registers.
Specifies whether the message transaction has been completed. The value
will be set to 1 (TRUE) when the message is triggered and remains set until
the transaction is complete or until failure is determined.
IF REFRESH STATE = 0
Previous send input value. Used in detecting low->high trip transaction.
B-13
Logic Functions - Book 1
IF REFRESH STATE = 0
Value 0 indicates the SEND INPUT is used and INPUT8 (SEND INPUT) must
be configured. The value 0 can only be written through the message handler
if the SEND INPUT is present.
IF REFRESH STATE = 0
This input must be present. This signal is used to trigger this EX block’s
message. Signal is edge trigged, 0 (FALSE) to 1 (TRUE). Send input triggers
are ignored while this message transaction is ACTIVE.
INPUT11 will contain the value from the STARTING REGISTER NUMBER.
Depending on the data type the data may be contained in multiple registers.
See Modcell datatype to register mapping table above.
B-14
Logic Functions - Book 1
This value is the number of attribute values that should be read and stored at
this block’s INPUT11 through INPUTn. The minimum value is 1. The
maximum value is dependent on the number of attributes that can be read
from 125 registers.
Specifies whether the message transaction has been completed. The value
will be set to 1 (TRUE) when the message is triggered and remains set until
the transaction is complete or until failure is determined.
IF REFRESH STATE = 0
Previous send input value. Used in detecting low->high trip transaction.
B-15
Logic Functions - Book 1
IF REFRESH STATE = 0
Value 0 indicates the SEND INPUT is used and INPUT8 (SEND INPUT) must
be configured. The value 0 can only be written through the message handler
if the SEND INPUT is present.
IF REFRESH STATE = 0
This input must be present. This signal is used to trigger this EX block’s
message. Signal is edge trigged, 0 (FALSE) to 1 (TRUE). Send input triggers
are ignored while this message transaction is ACTIVE.
INPUT11 will contain the value from the STARTING REGISTER NUMBER.
Depending on the data type the data may be contained in multiple registers.
See Modcell datatype to register mapping table above.
B-16
Logic Functions - Book 1
This value is the number of attribute values that should be written. The values
to be written are stored at this block’s INPUT11 through INPUTn. Valid values
are 1 through 2000.
Specifies whether the message transaction has been completed. The value
will be set to 1 (TRUE) when the message is triggered and remains set until
the transaction is complete or until failure is determined.
IF REFRESH STATE = 0
Previous send input value. Used in detecting low->high trip transaction.
B-17
Logic Functions - Book 1
IF REFRESH STATE = 0
Value 0 indicates the SEND INPUT is used and INPUT8 (SEND INPUT) must
be configured. The value 0 can only be written through the message handler
if the SEND INPUT is present.
IF REFRESH STATE = 0
This input must be present. This signal is used to trigger this EX block’s
message. Signal is edge trigged, 0 (FALSE) to 1 (TRUE). Send input triggers
are ignored while this message transaction is ACTIVE.
INPUT11 will contain the value for the STARTING COIL NUMBER, INPUT12
will contain the value for the next coil etc.
B-18
Logic Functions - Book 1
This value is the number of attribute values that should be written. The values
to be written are stored at this block’s INPUT11 through INPUTn. The
minimum value is 1. The maximum value is dependent on the number of
attributes that can fit in 127 registers.
Specifies whether the message transaction has been completed. The value
will be set to 1 (TRUE) when the message is triggered and remains set until
the transaction is complete or until failure is determined.
IF REFRESH STATE = 0
Previous send input value. Used in detecting low->high trip transaction.
B-19
Logic Functions - Book 1
IF REFRESH STATE = 0
Value 0 indicates the SEND INPUT is used and INPUT8 (SEND INPUT) must
be configured. The value 0 can only be written through the message handler
if the SEND INPUT is present.
IF REFRESH STATE = 0
This input must be present. This signal is used to trigger this EX block’s
message. Signal is edge trigged, 0 (FALSE) to 1 (TRUE). Send input triggers
are ignored while this message transaction is ACTIVE.
INPUT11 through INPUTn DATA LSP or Local Data Any Data Type
except momentary discrete
This is the data which will be written to the slave device. See Modcell
datatype to register mapping table above.
INPUT11 will contain the value for the STARTING REGISTER NUMBER.
Depending on the data type the data may be put into multiple registers. See
Modcell datatype to register mapping table above.
If the data fits in 1 register Modbus function code 6 or 16 is used per CFG
item SINGLE WRITE FUNCTION CODE. If more than 1 register is to be
written the Modbus function code 16 is used.
B-20
Logic Functions - Book 1
B.4 EXAMPLES
B.4.1 Example 1
NOTE: The entry for input 1 must be all UPPER CASE (ASCII is case sensetive).
EX1
EX2
Read 10 Holding Registers from slave address 1 starting with register number 1 and store as
Count data in the MODCELL Multiloop Processor database.
EX3
Write 8 Discrete Values to slave address 3 starting with coil 1.
B-21
Logic Functions - Book 1
EX4
Read 10 Discrete (coils) from slave address 4 starting with coil 21 and store as discrete data in the
MODCELL Multiloop Processor database.
EX5
Write 1 Count Value to slave address 4, Register 12
B-22
Logic Functions - Book 1
B.4.2 Example 2
NOTE: The entry for input 1 must be all UPPER CASE (ASCII is case sensetive).
EX1
EX2
Read 10 Floating Point values from 20 Holding Registers in slave address 2 starting with register
number 1001 and store as Floating Point data in the MODCELL Multiloop Processor database.
EX3
Write 9 different data types to slave address 3 starting with register number 1001.
B-23
Logic Functions - Book 1
B-24
Logic Functions - Book 1
APPENDIX C
BLOCK DATA
C.1 GENERAL
This block data is provided to aid users needing to interpret the address of a database
attribute. A full description of the LSP (Logical Source Pointer) four byte address is given in
IB-23G001, Programmers Guide for ICN Communication Link.
Table C-1. Block Data
Block Name Block Code Block Type Max. No.
Interface 01 IF 1
System Event 02 SE 1
ICN Module 03 ICN 3
Omega Clock 04 OMC 1
Event Sequence 05 ES 1
Loop 06 LP 64
Configured List 07 CL 4096
Notification Message 09 NM 4096
Timer 10 TM 4096
Totalizer 11 TOT 4096
Linearization 12 LN 4096
Piecewise Table 13 PW 4096
Process Alarm 14 PA 4096
Expression 15 EX 4096
Input Communication 16 IC 32
Output Communication 17 OC 32
Digital Input 18 DI 4096
Voltage Current Input 19 VCI 4096
Cold Junction Input 20 CJI 4096
Thermocouple Input 21 TI 4096
TC Transmitter Input 22 TTI 4096
Digital Input Module 23 DIM 32
Digital Output Module 24 DOM 32
Dual Digital Output Module 25 DDOM 16
Wide Digital Output Module 26 WDOM 16
Voltage/Current Input Module 27 VCIM 32
Cold Junction Input Module 28 CJIM 32
Thermocouple Input Module 29 TIM 32
C-1
Logic Functions - Book 1
C-2
The Company’s policy is one of continuous product improvement and the right
is reserved to modify the information contained herein without notice, or to
make engineering refinements that may not be reflected in this bulletin.
Micromod Automation assumes no responsibility for errors that may appear in
this manual.
© 2004 MicroMod Automation, Inc. Printed in USA