Click or drag to resize

DeviceDefinition Class

The definition of a standard device/module.
Inheritance Hierarchy

Namespace:  Demo3D.PLC.Rockwell.Emulator.DeviceEmulators
Assembly:  PLC (in PLC.dll) Version: 18.04.00
Syntax
C#
public class DeviceDefinition

The DeviceDefinition type exposes the following members.

Properties
  NameDescription
Public propertyAssemblyConfigUseCfgSize
Assembly uses a config format (Forward Open simple data segment) where the first 8 bytes of the config data type are CfgSize and CfgIDNum, but those bytes are not sent over in the Forward Open config simple data segment.
Public propertyAssemblyVersion
Sets the Assembly class version. (-1 for default, 0 to suppress.)
Public propertyConfigureStandardSymbols
True to add in standard pseudo symbols.
Public propertyEthernetLinkVersion
Sets the EthernetLink class versions. (-1 for default, 0 to suppress.)
Public propertyEthernetPorts
Ethernet port definition. (Null to disable adding comms ports.)
Public propertyExtendedDeviceVersion
Sets the ExtendedDevice class version. (-1 for default, 0 to suppress.)
Public propertyFileVersion
Sets the File class version. (-1 for default, 0 to suppress.)
Public propertyHasUsbPort
Defines whether this module has a USB port.
Public propertyHwRevision
Hardware revision. Exposed through the Rockwell Extended Identity object. (Defaults to the empty array to use the module EDS Info. Set to null to disable.)
Public propertyInputDeviceImageOffset
The Input device image offset. Returns the number of bytes into the device PLC type of the start of the input device image.
Public propertyName
Module name.
Public propertyPortVersion
Sets the Port class version. (-1 for default, 0 to suppress.)
Public propertySerial
Module serial number. Exposed through the Identity object and EtherNetIP requests.
Public propertyStatus
Module status.
Public propertySubMinor
Version sub-minor number. Exposed through the Rockwell Extended Identity object.
Public propertySuppressPortDescriptions
Defines whether Port descriptions are registered with the Rockwell ExtendedDevice class.
Public propertyTcpIpIfaceVersion
Sets the TcpIpInterface class versions. (-1 for default, 0 to suppress.)
Public propertyTimeSyncVersion
Sets the TimeSync class version. (-1 for default, 0 to suppress.)
Top
Methods
  NameDescription
Public methodAdapterConfiguration
Find the configuration of an adpater device.
Public methodChassisSize
Return the chassis size for a rack device. (Return -1 for a module, non-rack device, or where the ChassisSize can't be determined.)
Public methodConfigureAssembly
Configure assembly.
Public methodConfigureDevice
Optionally configure the IO device.
Public methodConfigureModule
Optionally configure the module.
Public methodFindModuleDefinition
Find the device definition for a module in a backplane device.
Public methodGetDeviceImageOffset
Computes the device image offset. Returns the number of bytes into the device PLC type of the start of the device image.
Public methodIncludeModule
Decide whether to include the module in the emulation.
Public methodStatic memberInstall(String, IOMapType, DeviceDefinition)
Registers a device definition for a device given the specified IOMapType.
Public methodStatic memberInstall(String, EDSInfo, EDSMask, DeviceDefinition)
Registers a device definition for a device given the specified EDS info.
Public methodStatic memberInstall(String, IOMapType, EDSInfo, EDSMask, DeviceDefinition)
Registers a device definition for a device given the specified EDS info and IOMapType.
Public methodIsSafety(IOEntry)
Determine whether the module is a safety module.
Public methodIsSafety(IOEntry, ConnectionInfo, AccessRights)
Determine whether the module is a safety module, and which safety 'direction' (producer/consumer) this connection services.
Public methodStartDevice
Optionally start the IO device. Called after all the emulators have been configured and IPC processes started.
Top
Fields
  NameDescription
Public fieldStatic memberStdDeviceEthernetPorts
Standard device ethernet ports definition.
Top
See Also