Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

Driver-specific Parameters

  • Last UpdatedMar 13, 2024
  • 7 minute read

The following table describes the citect.ini parameters that are specific to the OPCLX driver.

[OPCLX]
Parameters

Allowable values

Default value

Description

AddItemAsVtEmpty

0 - Specify data types
1 - Use native data type

1

Determines whether the OPCLX driver specifies a data type when adding an item, or whether it uses the native data type when adding items. This parameter is used to select whether the OPC client specifies a type to force the OPC server to coerce the data, or for the OPC server to provide the type as configured on the server.

ArrayRecordBase

Greater than total number of tags and less than (65000 – number of arrays)

30000

Specifies the base of the array record numbers. Plant SCADA communicates with the OPCLX client driver by the record number of the tag in variable.dbf, so this parameter needs to be greater than the total number of tags in the project.

CacheRead

0 – Value is refreshed and the latest value returned.
1 – Last known value returned.

1

Determines the value returned when an inactive item is read. See Overriding [OPCLX]CacheRead for information on how to override the value of this parameter for a particular tag.

DigitalQualityUncertainIsBad

0 - An uncertain quality is treated as GOOD when a digital quality reading is taken (normal INT version is unaffected)

1 - an uncertain quality is treated as BAD when a digital quality reading is taken (normal INT version is unaffected)

1

Determines how an uncertain quality result is treated when a digital quality reading is taken.

FailOnBadData

0 - If the OPC_QUALITY status for data from a tag is BAD, the driver returns the last known value, and reports no error detected.

1 - If the OPC_QUALITY status for data from a tag is BAD, the driver reports a severity error detected and displays #BAD on all tags of the read block.

2 - If the OPC_QUALITY status for data from a tag is BAD, the driver reports a severity error detected and displays #BAD on all tags of the read block. The start UnitAddress of the read block appears in the kernel window.

1

Determines whether read requests sent to the OPC client driver return a detected error if one or more of the requested tags are of bad quality data. Bad quality is still a valid value for a tag, and indicated by the OPC_QUALITY status of BAD.

FailOnUncertain

0 - Driver returns the last known tag value and the read succeeds.

1 - Driver returns ERROR_BAD_DATA_VALUE.

0

Determines the value returned when reading data from tags for which the OPC_QUALITY status is UNCERTAIN.

FillCacheOnStartup

0 - Subscriptions are created in the inactive state and are only activated as read request are received.

1 - Subscriptions are created in the active state.

0

Determines whether subscriptions are created in the active or inactive state initially.

GoOfflineForBadTag

0 - disabled. Do not go offline.

1 - enabled. Go offline.

0

Sets all tags on an OPC device to a OPC_QUALITY status of GOOD before Plant SCADA declares the I/O device online.

This parameter would only be set on the I/O server where the device is defined as primary. So it can only take over from a standby device definition when all tags and the status tag are valid. This minimizes the chances that com-breaks occur during switchover from standby to primary. It is recommended not to set it on a standby, as it may only be one tag that is invalid.

InhibitActivationOnStandby

0 - A standby server follows the same rules for subscription activation as the primary server.

1 - A standby server only activates a subscription if it believes that the primary server is not active.

0

This parameter allows a standby server to leave subscriptions in an inactive state deliberately, when the primary server is online. This is used when the primary and standby servers are talking to independent OPC servers to reduce the load that the standby OPC server would place on field devices.

On startup of a standby server, if this parameter is set to 1, items are not activated immediately. They are only activated when the unit itself becomes the active unit.

ItemLifeTime

Time (seconds)

5

Determines the time in before a tag is deemed inactive.

The global LeaveTagsActive parameter overrides the ItemLifeTime parameter to force OPCLX tags to remain active even though Plant SCADA is no longer requesting them from the driver.

The ItemLifeTime parameter can be individually overridden for any Allen Bradley OPC device by the active parameter.

LeaveTagsActive

0 - Do not leave tags active.

1 - Leave tags active.

0

Determines whether OPCLX tags remain active even though Plant SCADA is no longer requesting them from the driver. Normally tags are made inactive 5 seconds from the last time they are requested.

Some OPC servers take a long time to return a call to activate/inactivate tags, or doing so slows them down. Therefore leaving tags active can improve performance.

The global LeaveTagsActive parameter can be individually overridden by an Active parameter. See ItemLifeTime parameter (above).

Note: This parameter minimizes the likelihood of deactivation of tags on the currently active unit only. Tags on units that have become inactive (standby) still deactivates.

NumConcurrentServerInits

-1 - Unlimited

32767

-1

Represents the maximum number of concurrent initialization and shutdown operations that are performed on each configured OPC server. Higher values, or -1 (unlimited), incur greater load on the server. While 0 and 1 determine that initialization is serialized into effectively a single thread.

OPCGroupName

Any string
(maximum 32 characters)

CitectGroup_<n>

By default, each OPC server is allocated a sequential group name by the OPCLX driver, that is, CitectGroup_1, CitectGroup_2, and so on.

This parameter allows you to replace the default group name with a customized name.

You can set this parameter at a device level using OPCLX Device-specific Parameters.

ReadAfterWrite

0 - No read, rely on the normal polling/OnDataChange mechanism.

1 - Force sync read of item written from OPC server cache after write.

2 - Force sync read of item written from device after write.

0

Determines if a force read should be made, and if it should be from the OPC server cache or from the device.

Note: RefreshAfterWrite causes a refresh of all active items, whereas ReadAfterWrite reads only the item being written. You should use one or the other. Where both RefreshAfterWrite and ReadAfterWrite are set to 1, RefreshAfterWrite takes precedence, and ReadAfterWrite is set to 0.

RefreshAfterAdd

0 - No REFRESH.

1 - Request a REFRESH from the OPC server cache.

2 - Request a REFRESH from the device.

1

Determines whether an OPC REFRESH is requested from the OPC server after activating the group.

This parameter can be disabled if slow start-up time is experienced. The server could be automatically sending a REFRESH, in which case another request may be unnecessary.

RefreshAfterWrite

0 – Disable forced REFRESH.

1 - Enable forced REFRESH from OPC server cache.

2 - Enable forced REFRESH from device.

0

Determines whether to force an OPC REFRESH from the OPC server of ALL active items after Plant SCADA writes to an item.

RefreshBeforeArrayWrite

0 – No refresh command sent

1 – Read command sent to refresh the OPC server cache

2 – Read command sent to refresh the OPC device

0

Enables the driver to send a read command to the OPC server before a write command is sent to the OPC server for an array variant.

ServerOnlineStates

"RUNNING"

"FAILED"

"NOCONFIG"

"SUSPENDED"

"TEST"

"RUNNING"

Defines the list of OPC server states that the driver considers online. The format is a "|" separated string, without spaces. If you experience the OPC server shutting down on startup, it is recommended that the following states are used: "RUNNING | NOCONFIG | SUSPENDED"

ShutdownWait

Time (milliseconds)

30000

Determines the time the OPCLX driver waits before shutting down. On shutdown, the driver attempts to close the connection to the OPC server. If this takes longer than the time specified by this parameter, the driver shuts down anyway (sometimes with unexpected results). This parameter may be needed if the OPC server does not respond within the default wait time.

StatusWaitPeriod

Time (milliseconds)

50000

Determines the time the OPCLX driver waits before requesting tag status for an OPC I/O device. On startup, the OPCLX driver waits for a unit status from the OPC server before adding tags to the server. If the value of this parameter is exceeded, the tags are added anyway. The OPC server should respond within a few seconds. The default wait time of 5 seconds should usually be adequate.

SuppressData
NotYetValidError

0 – Displays "Data Not Yet Valid" errors in the Kernel window and logs them to the Syslog.dat file.

1 - Suppresses "Data Not Yet Valid" errors, which are not displayed in the Kernel window or logged. In the kernel, under View -> I/O Devices, Plant SCADA will display "Error Suppressed" in the Error Message field for the particular device.

0

Determines whether "Data Not Yet Valid" error messages are suppressed, or whether they are displayed in the Kernel window and written to the Syslog.dat file. For Plant SCADA to display the message "Error Suppressed", you need v5.50 or above.

UseArrays

0 - OPC array support disabled.

1 - OPC array support enabled.

1

Determines whether array support parameters in the [OPCArrays] section are active. See OPC Array Parameters.

UseAsyncWrites

0 - use synchronous writes.

1 - use asynchronous writes.

0

Determines whether writes are synchronous or asynchronous.

UseStatusTags

0 - disabled.

1 - enabled.

0

Determines whether parameters in the [OPCLXStatusTags] section are active. Individual overrides can be set using the OPCLX Device-specific Parameters to force the use of a particular status tag parameter with a particular I/O device.

ValidDataWaitPeriod

Time (milliseconds)

10 seconds

Determines the maximum time that the OPCLX driver waits for OPC_QUALITY to be GOOD for all tags before declaring the device online. This minimizes the likelihood of a client swapping from a standby to a primary prematurely and suppresses alarm flooding at startup. Set this parameter to 0 to allow units to be online regardless of whether all items for the unit have been verified as good quality.

Note: FillCacheOnStartup=1 needs to be set when ValidDataWaitPeriod>0.

WriteTrueAs1

0 - write true as VARIANT_TRUE(-1).

1 - write true as 1.

0

Determines whether a digital value of TRUE is written as "VARIANT_TRUE(-1)" or "1". This parameter should only be required for incorrectly designed OPC servers. When the Plant SCADA data type is digital, VARIANT_TRUE (-1) is used with VT_BOOL variant type to write a value of true. This happens even if [OPCLX]AddItemAsVtEmpty is set, as OPC servers should be designed to convert the value when they receive it.

TitleResults for “How to create a CRG?”Also Available in