Click or drag to resize

DeviceDefinitionGetDeviceImageOffset Method

Computes the device image offset. Returns the number of bytes into the device PLC type of the start of the device image.

Namespace:  Demo3D.PLC.Rockwell.Emulator.DeviceEmulators
Assembly:  PLC (in PLC.dll) Version: 18.04.00
Syntax
C#
public virtual int GetDeviceImageOffset(
	IOEntry deviceEntry,
	DeviceArea area
)

Parameters

deviceEntry
Type: Demo3D.PLC.Rockwell.Comms.CIPIOEntry
The device IO entry.
area
Type: Demo3D.PLC.Rockwell.CommsDeviceArea
The device image area.

Return Value

Type: Int32
Return the numer of bytes into the device PLC type before the device image starts.
Remarks

For some devices (such as the 1732ES-IB16 or 1408-PowerMonitor1000) the device symbol PLC type (and therefore the memory image in the PLC) contains header information (RunIdle or ConnectionStatus, etc) which isn't sent across the wire (to the memory image in the device). This function returns the numer of bytes into the device PLC type before the device image starts.

The default for the 'I' image is the value of InputDeviceImageOffset. The default for other image areas is 0.

See Also