ProfinetDeviceInstance (FB)¶
FUNCTION_BLOCK ProfinetDeviceInstance
- InOut:
Scope
Name
Type
Initial
Comment
Output
DeviceIDDWORDCommFB.Constants.INVALID_ID
Device ID for usage in Profinet service function blocks (e.g. ProfinetCommon.DeviceAR, ProfinetCommon.SubmoduleIterator, CommFB.SUBSLOT_ID …)
interfaceNameWSTRING(255)Configured name of ethernet interface
deviceIdentConfigured identification data
xInitBOOLFunction block is initialized with all required paramters (methods ConfigureDevice() and ConfigureModules()
xStartupBOOLProtocol stack is in startup phase
xOnlineBOOLProfinet device is online
IPActiveBOOLIP Stack is operating (valid IP-Address assigned)
xErrorBOOLAny error occured (Details see output DeviceStatus)
DeviceStatusProfinet.DeviceStateProfinet.DeviceState.NotInit
Current Status of the Device.
StationNameSTRING(240)Currently active Stationname
IPParameterProfinetCommon.IPParameterValueCurrently active IP-Address
NumPortsDINTNumber of configured / active ethernet ports (for this device instance)
PortStatusARRAY [0..7] OF PortStatus
Current status of Ethernet ports
EthernetStatisticEthernet Statistics
Methods:
Structure: