You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

EFM Device Connection configurations can be created through scripting using the standard Ignition function

system.device.addDevice()


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 in bold are mandatory properties that must be included in the addDevice call

Emerson ROC Keys

Device PropertyKeyDefault SettingDatatype
Protocol Type

ProtocolType (ROC or ROC_PLUS)


String
HostnameHostname
String
TCP PortPort
Integer
Socket TimeoutSocketTimeout10Integer
ROC Unit CodeRocUnitCode
Integer
ROC Group CodeRocGroupCode
Integer
Host Unit CodeHostUnitCode
Integer
Host Group CodeHostGroupCode
Integer
Periodic MappingPeriodicMappingIdNoneLong
Configuration MappingConfigurationMappingIdNoneLong
Add All TLP DefinitionsAddAllTLPDefinitionsFalseBoolean
Security EnabledSecurityEnabledFalseBoolean
Operator IDOperatorIdLolString
PasswordPassword
String
Access Level EnabledAccessLevelEnabledFalseBoolean
Access LevelAccessLevel0Integer
Date Time OffsetDateTimeOffset0Integer
Sync ROC RTCSyncDateTimeFalseBoolean
Sync ExpressionSyncDateTimeExpression0 0 0 * * ?String
Alarm Scan RateAlarmScanRate-1Integer
Event Scan RateEventScanRate-1Integer
Minute History Scan RateHistoryMinuteScanRate-1Integer
Periodic History Scan RateHistoryPeriodicScanRate-1Integer
Daily History Scan RateHistoryDailyScanRate-1Integer
Enable SignatureEnableSignatureFalseBoolean
Algorithm

HashingAlgorithm

NoneString
PasswordSignaturePassword
String
Group IDGroupIdNoneString
Edge IDEdgeIdNoneString
Device IDDeviceIdNoneString


Emerson ROC Sample Script
#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)


ABB Totalflow Keys

Device PropertyKeyDefault SettingDatatype
Board TypeBoardType
String
HostnameHostname
String
TCP PortPort
Integer
Socket TimeoutSocketTimeout10Integer
Connection TypeConnectionTypeON_DEMANDString
Enable Auto-discoveryEnableAutoDiscoveryTrueBoolean
Add All Totalflow Application Definitions

AddAllTotalflowApplicationDefinitions

TrueBoolean
Add All Array-Register Definitions

AddAllArrayRegisterDefinitions

TrueBoolean
Auto-generate Templates and Poll Group

AutoGenerateDefaultTemplatesAndPollGroup

TrueBoolean
Array-Register Template Import Policy

ArrayRegisterTemplateImportPolicy

UPDATEString
Poll Group Import Policy

PollGroupImportPolicy

UPDATEString
Station ID

StationId

NoneString
Keep Alive

ConnectionKeepAlive

0Integer
Host Timeout

HostTimeout

3000Long
Number Retries

NumberRetries

3Integer
Supervisory Frames

SupervisoryFrames

3Integer
Password

String
RBAC Enabled

RbacEnabled

FalseBoolean
Operator ID

OperatorId

NoneString
Password

OperatorPassword


String
Date Time Offset

DateTimeOffset

0Integer
Alarm Source

AlarmSourceSelector

PERIODIC_HISTORY_SETTINGSString
Alarm Scan Rate

AlarmScanRate

-1Integer
Event Scan Rate

EventScanRate

0Integer
Periodic History Scan Rate

HistoryPeriodicScanRate

0Integer
Daily History Scan Rate

HistoryDailyScanRate

0Integer
Record Info Scan Rate

RecordInfoScanRate

-1Integer
Max Records To Read

MaxRecordsToRead

100Integer
Periodic Mapping

PeriodicMappingId

NoneLong
Enable Signature

EnableSignature

FalseBoolean
Hashing Algorithm

HashingAlgorithm

NoneString
Password

SignaturePassword


String
Group IDGroupIdNoneString
Edge IDEdgeIdNoneString
Device IDDeviceIdNoneString

??

Db2BlockSize

Db2PacketSize

SecurityCode


ABB Totalflow Sample Script
#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)


Opto 22 groov EPIC and SNAP PAC

Device PropertyKeyDefault SettingDatatype
AddressAddress192.168.1.100String
TCP/IP PortPort22001Integer
TimeoutTimeout3000Long
Data Scan RateDataScanRate1000Long

Opto22 Sample Script
#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)




  • No labels