Interface IS7Unit
- All Superinterfaces:
IBinaryUnit
,ICodeObjectUnit
,IEventSource
,IS7BlocksManager
,IUnit
,IUnitCreator
,IUserDataSupport
S7 container unit. Provide mapping support for blocks and MC7 execution environment artifacts
into a VM managed by the native code analysis pipeline.
-
Method Summary
Modifier and TypeMethodDescriptionlong
getAddressOfCode
(S7.BlockType type, int number) long
long
getAddressOfData
(S7.BlockType type, int number) long
long
long
long
Retrieve the mapping address of the raw (uninterpreted) bytes of a block.long
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.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.Methods inherited from interface com.pnfsoftware.jeb.core.units.IBinaryUnit
getInput, getMimeType
Methods inherited from interface com.pnfsoftware.jeb.core.units.codeobject.ICodeObjectUnit
convertFileOffsetToRelativeAddress, convertRelativeAddressToFileOffset, getExportedSymbols, getImportedSymbols, getLoaderInformation, getRawMemoryMappedImage, getSection, getSectionCount, getSections, getSections, getSegment, getSegmentCount, getSegments, getSegments, getSymbols, getSymbols, getValidSections, getValidSegments, map
Methods inherited from interface com.pnfsoftware.jeb.util.events.IEventSource
addListener, countListeners, getListeners, getParentSource, insertListener, notifyListeners, removeListener, setParentSource
Methods inherited from interface com.pnfsoftware.jeb.core.units.code.simatic.IS7BlocksManager
findBlock, getBlockEntryName, getBlocks
Methods inherited from interface com.pnfsoftware.jeb.core.units.IUnit
addChild, addChild, canBePersisted, dispose, generateQuickState, getChildren, getContributions, getCreationTimestamp, getDescription, getExtraInputs, getFormatter, getFormatType, getIconData, getInterpreters, getLock, getName, getNotes, getNotificationManager, getParent, getParentArtifact, getParentProject, getPropertyDefinitionManager, getPropertyManager, getRealName, getStatus, getUid, getUnitProcessor, initializePropertyObjects, isDisposed, isProcessed, isStale, isTransientChild, notifyGenericChange, postDeserialization, process, removeChild, setName, setNotes, setParent, setRealName, setUnitProcessor
Methods inherited from interface com.pnfsoftware.jeb.core.IUserDataSupport
clearAllData, getAllData, getData, setData
-
Method Details
-
getBlockAt
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
-
getBlockContaining
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
-
getAddressOfRawBytes
Retrieve the mapping address of the raw (uninterpreted) bytes of a block.- Parameters:
blk
-- Returns:
- a VM address, -1 on error
-
getAddressOfCode
- Parameters:
type
- one of OB, FB, FC, SFB, SFNnumber
- block number- Returns:
- a VM address, -1 on error
-
getAddressOfData
- Parameters:
type
- one of DB, SDBnumber
- block number- Returns:
- a VM address, -1 on error
-
getAddressOfGlobals
long getAddressOfGlobals()- Returns:
- a VM address, -1 on error
-
getAddressOfDigitalInputs
long getAddressOfDigitalInputs()- Returns:
- a VM address, -1 on error
-
getAddressOfDigitalOutputs
long getAddressOfDigitalOutputs()- Returns:
- a VM address, -1 on error
-
getAddressOfCounters
long getAddressOfCounters()- Returns:
- a VM address, -1 on error
-
getAddressOfTimers
long getAddressOfTimers()
-