public interface

IS7Unit

implements IS7BlocksManager ICodeObjectUnit
com.pnfsoftware.jeb.core.units.code.simatic.IS7Unit

Class Overview

S7 container unit. Provide mapping support for blocks and MC7 execution environment artifacts into a VM managed by the native code analysis pipeline.

Summary

Public Methods
abstract long getAddressOfCode(S7.BlockType type, int number)
abstract long getAddressOfCounters()
abstract long getAddressOfData(S7.BlockType type, int number)
abstract long getAddressOfDigitalInputs()
abstract long getAddressOfDigitalOutputs()
abstract long getAddressOfGlobals()
abstract long getAddressOfRawBytes(IS7Block blk)
Retrieve the mapping address of the raw (uninterpreted) bytes of a block.
abstract long getAddressOfTimers()
abstract IS7Block getBlockAt(long address)
Retrieve the block whose data (if the block is a data block) or code (if the block is a logic block) is mapped at the provided address.
abstract IS7Block getBlockContaining(long address)
Retrieve the block whose data (if the block is a data block) or code (if the block is a logic block) whose mapping contains the provided address.
[Expand]
Inherited Methods
From interface com.pnfsoftware.jeb.core.IUnitCreator
From interface com.pnfsoftware.jeb.core.IUserDataSupport
From interface com.pnfsoftware.jeb.core.units.IBinaryUnit
From interface com.pnfsoftware.jeb.core.units.IUnit
From interface com.pnfsoftware.jeb.core.units.code.simatic.IS7BlocksManager
From interface com.pnfsoftware.jeb.core.units.codeobject.ICodeObjectUnit
From interface com.pnfsoftware.jeb.util.events.IEventSource

Public Methods

public abstract long getAddressOfCode (S7.BlockType type, int number)

Parameters
type one of OB, FB, FC, SFB, SFN
number block number
Returns
  • a VM address, -1 on error

public abstract long getAddressOfCounters ()

Returns
  • a VM address, -1 on error

public abstract long getAddressOfData (S7.BlockType type, int number)

Parameters
type one of DB, SDB
number block number
Returns
  • a VM address, -1 on error

public abstract long getAddressOfDigitalInputs ()

Returns
  • a VM address, -1 on error

public abstract long getAddressOfDigitalOutputs ()

Returns
  • a VM address, -1 on error

public abstract long getAddressOfGlobals ()

Returns
  • a VM address, -1 on error

public abstract long getAddressOfRawBytes (IS7Block blk)

Retrieve the mapping address of the raw (uninterpreted) bytes of a block.

Returns
  • a VM address, -1 on error

public abstract long getAddressOfTimers ()

public abstract IS7Block getBlockAt (long address)

Retrieve the block whose data (if the block is a data block) or code (if the block is a logic block) is mapped at the provided address.

Parameters
address start address
Returns
  • null on error

public abstract IS7Block getBlockContaining (long address)

Retrieve the block whose data (if the block is a data block) or code (if the block is a logic block) whose mapping contains the provided address.

Parameters
address an address (not necessarily the start address)
Returns
  • null on error