Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

EFM Device Connection connection configurations for the Cirrus Link drivers can be created through scripting using the standard Ignition function

system.device.addDevice()


Note

The Description and Enabled properties may not be configured with this function. By default, the Enabled property is set to true and can be disabled with a call to system.device.setDeviceEnabled() after creating the connection.

...

The device driver types for the Cirrus Link EFM Modules are listed in the table below:


Below are the table of properties callable by system.device.addDevice.Properties

Note
Device properties in bold are mandatory properties that must be included in the addDevice call

Anchor
EmersonRoc
EmersonRoc
Emerson ROC Keys

Device PropertyKey
Default Setting
Datatype
Protocol Type

ProtocolType

(ROC or ROC_PLUS)

String
HostnameHostnameString
TCP PortPortInteger
Socket TimeoutSocketTimeout
10
Integer
ROC Unit CodeRocUnitCodeInteger
ROC Group CodeRocGroupCodeInteger
Host Unit CodeHostUnitCodeInteger
Host Group CodeHostGroupCodeInteger
Periodic MappingPeriodicMappingId
None
Long
Configuration MappingConfigurationMappingId
None
Long
Add All TLP DefinitionsAddAllTLPDefinitions
False
Boolean
Security EnabledSecurityEnabled
False
Boolean
Operator IDOperatorId
Lol
String
PasswordPasswordString
Access Level EnabledAccessLevelEnabled
False
Boolean
Access LevelAccessLevel
0
Integer
Date Time OffsetDateTimeOffset
0
Integer
Sync ROC RTCSyncDateTime
False
Boolean
Sync ExpressionSyncDateTimeExpression
0 0 0 * * ?
String
Alarm Scan RateAlarmScanRate
-1
Integer
Event Scan RateEventScanRate
-1
Integer
Minute History Scan RateHistoryMinuteScanRate
-1
Integer
Periodic History Scan RateHistoryPeriodicScanRate
-1
Integer
Daily History Scan RateHistoryDailyScanRate
-1
Integer
Enable SignatureEnableSignature
False
Boolean
Algorithm

HashingAlgorithm

None
String
PasswordSignaturePasswordString
Group IDGroupId
None
String
Edge IDEdgeId
None
String
Device IDDeviceId
NoneString
String
Serial NumberSerialNumberString
History Time StampHistoryTimestampBoolean
Read DelayReadDelayLong
Poll Watchdog RatePollerWatchdogRateInteger
Enable CFXEnableCfxBoolean
Flow Computer BrandCfxFlowComputerBrandString
Flow Computer ModelCfxFlowComputerModelString
Flow Computer Software VersionCfxFlowComputerSwVerisonString
CFX Publish TimeCfxPublishTimeExpressionString
CFX Cutoff TimeCfxCuttoffTimeExpressionString
CFX File TransferCfxFileTransferIdLong


Warning
Cirrus Link provides these scripts as examples only, they are not supported or guaranteed to meet any particular functionality. Cirrus Link cannot provide any assistance to modify these scripts to meet a particular need.


Code Block
languagepy
titleEmerson ROC Sample Script
# Cirrus Link provides these scripts as examples only, they are not supported or guaranteed to meet any particular functionality. Cirrus Link cannot provide any assistance to modify these scripts to meet a particular need.
#new device connection using default settings
newProps = {}
newProps["ProtocolType"] = "ROC"
newProps["Hostname"] = "10.1.2.3"
newProps["Port"] = 2000
newProps["RocUnitCode"] = 10
newProps["RocGroupCode"] = 100
newProps["HostUnitCode"] = 20
newProps["HostGroupCode"] = 200
newProps["HashingAlgororithm"] = "SHA_1"
system.device.addDevice(deviceType = "EmersonRoc",deviceName = "MyROC",deviceProps = newProps)


Anchor
AbbTotalflow
AbbTotalflow
ABB Totalflow Keys

Device PropertyKey
Default Setting
Datatype
Board TypeBoardTypeString
HostnameHostnameString
TCP PortPortInteger
Socket TimeoutSocketTimeout
10
Integer
Connection TypeConnectionType
ON_DEMAND
String
Enable Auto-discoveryEnableAutoDiscovery
True
Boolean
Add All Totalflow Application Definitions

AddAllTotalflowApplicationDefinitions

True
Boolean
Add All Array-Register Definitions

AddAllArrayRegisterDefinitions

True
Boolean
Auto-generate Templates and Poll Group

AutoGenerateDefaultTemplatesAndPollGroup

True
Boolean
Array-Register Template Import Policy

ArrayRegisterTemplateImportPolicy

UPDATE

String
Poll Group Import Policy

PollGroupImportPolicy

UPDATE

String
Station ID

StationId

None
String
Keep Alive

ConnectionKeepAlive

0

Integer
Host Timeout

HostTimeout

3000

Long
Number Retries

NumberRetries

3

Integer
Supervisory Frames

SupervisoryFrames

3
Integer
PasswordSecurityCodeString
RBAC Enabled

RbacEnabled

False
Boolean
Operator ID

OperatorId

None
String
Password

OperatorPassword

String
Date Time Offset

DateTimeOffset

0
Integer
Alarm Source

AlarmSourceSelector

PERIODIC_HISTORY_SETTINGS

String
Alarm Scan Rate

AlarmScanRate

-1
Integer
Event Scan Rate

EventScanRate

0

Integer
Periodic History Scan Rate

HistoryPeriodicScanRate

0
Integer
Daily History Scan Rate

HistoryDailyScanRate

0
Integer
Record Info Scan Rate

RecordInfoScanRate

-1

Integer
Max Records To Read

MaxRecordsToRead

100

Integer
Periodic Mapping

PeriodicMappingId

None

Long
Enable Signature

EnableSignature

False
Boolean
Hashing Algorithm

HashingAlgorithm

None
String
Password

SignaturePassword

String
Group IDGroupId
None
String
Edge IDEdgeId
None
String
Device IDDeviceId
NoneString

??

Db2BlockSize

Db2PacketSize

String
Use INI CategoriesUseIniCategoriesBoolean
Poller Watchdog RatePollerWatchdogRateInteger
Enable CFXEnableCfxBoolean
Flow Computer BrandCfxFlowComputerBrandString
Flow Computer ModelCfxFlowComputerModelString
Flow Computer Software VersionCfxFlowComputerSwVerisonString
CFX Publish TimeCfxPublishTimeExpressionString
CFX Cutoff TimeCfxCuttoffTimeExpressionString
CFX File TransferCfxFileTransferIdLong


Warning
Cirrus Link provides these scripts as examples only, they are not supported or guaranteed to meet any particular functionality. Cirrus Link cannot provide any assistance to modify these scripts to meet a particular need.

...


Code Block
languagepy
titleABB Totalflow Sample Script
# Cirrus Link provides these scripts as examples only, they are not supported or guaranteed to meet any particular functionality. Cirrus Link cannot provide any assistance to modify these scripts to meet a particular need.
#new device connection using default settings
newProps = {}
newProps["BoardType"] = "G4"
newProps["Hostname"] = "10.1.2.3"
newProps["Port"] = 2000
system.device.addDevice(deviceType = "AbbTotalflow",deviceName = "MyABB",deviceProps = newProps)


Anchor
SnapPacDriver
SnapPacDriver
Opto 22 groov EPIC and SNAP PAC

Device PropertyKey
Default Setting
Datatype
AddressAddress
192.168.1.100
String
TCP/IP PortPort
22001
Integer
TimeoutTimeout
3000
Long
Data Scan RateDataScanRate
1000Long
Long


Warning
Cirrus Link provides these scripts as examples only, they are not supported or guaranteed to meet any particular functionality. Cirrus Link cannot provide any assistance to modify these scripts to meet a particular need.


Code Block
languagepy
titleOpto22 Sample Script
# Cirrus Link provides these scripts as examples only, they are not supported or guaranteed to meet any particular functionality. Cirrus Link cannot provide any assistance to modify these scripts to meet a particular need.
#new device connection using default settings
newProps = {}
system.device.addDevice(deviceType = "SnapPacDriver",deviceName = "MyOpto22",deviceProps = newProps)

#new device connection
newProps = {}
newProps["Address"] = "156.23.25.42"
newProps["Port"] = 22001
newProps["Timeout"] = 3500
newProps["DataScanRate"] = 1500
system.device.addDevice(deviceType = "SnapPacDriver",deviceName = "MyOpto22",deviceProps = newProps)


...