DeviceConfigUtil.UpdateSlotNumber (METH) ¶ METHOD UpdateSlotNumber : ConfigError Change the slot number of a device’s module Only possible if the device is in disabled state. InOut: Scope Name Type Comment Return UpdateSlotNumber ConfigError Input module DED.IDevice A module node below a Profinet Slave node SlotNumber UINT the new slot-number
DeviceConfigUtil.UpdateSubslotNumber (METH) ¶ METHOD UpdateSubslotNumber : ConfigError Change the subslot number of a devices’s submodule Only possible if the device is in disabled state. InOut: Scope Name Type Comment Return UpdateSubslotNumber ConfigError Input submodule DED.IDevice A submodule node below a Profinet Module node SubslotNumber UINT the new subslot-number
GetConfigType (FUN) ¶ FUNCTION GetConfigType : ProfinetConfigType Get the type of a Profinet device from a DED.IDevice - object in the device tree. InOut: Scope Name Type Comment Return GetConfigType ProfinetConfigType Input pnDevice DED.IDevice A node in the device tree that is an instance of IDevice
GetControllerNode (FUN) ¶ FUNCTION GetControllerNode : DED.IDevice Find the next node in in the device tree that represents a Profinet Controller instance. InOut: Scope Name Type Comment Return GetControllerNode DED.IDevice Input controllerIndex DINT Instance number of the controller, starting with 0 for the first controller
GetDeviceNode (FUN) ¶ FUNCTION GetDeviceNode : DED.IDevice Find the next node in in the device tree that represents a Profinet Device instance. InOut: Scope Name Type Comment Return GetDeviceNode DED.IDevice Input deviceIndex DINT Instance number of the device, starting with 0 for the first device
GetID (FUN) ¶ FUNCTION GetID : DWORD Get the ID of a Profinet Slave or Module from a DED.IDevice - object in the device tree. This ID may be used for function blocks of the CommFB or ProfinetCommon libraries. InOut: Scope Name Type Comment Return GetID DWORD Input pnDevice DED.IDevice A node in the device tree that is an instance of IDevice
ProfinetConfigType (ENUM) ¶ TYPE ProfinetConfigType : Attributes: qualified_only InOut: Name Initial Comment Undefined 0 Not initialized Controller 16#50 Profinet Controller Device 16#53 Profinet Device Controller_Slave 16#51 Profinet Slave Controller_Module 16#52 Profinet Module Controller_Submodule 16#54 Profinet Submodule Device_Module 16#57 Profinet Device Module Device_Submodule 16#56 Profinet Device Submodule
PNSlave.ID (PROP) ¶ PROPERTY ID : UDINT Returns the slave’s ID It is used for identifying the device in function blocks of CommFB- or ProfinetCommon-library. (e.g. CommFB.RDREC)
IDevice2 ¶ CheckCurrentSupportedCommunicationState (Method) SetCommunicationState (Method)
PNSlave.CheckCurrentSupportedCommunicationState (METH) ¶ METHOD CheckCurrentSupportedCommunicationState : BOOL Returns true if the driver in the current state supports the requested communications state The method CheckSupportedCommunicationState is used to check for the general availability of communications states Therefore the result of CheckCurrentSupportedCommunicationState and CheckSupportedCommunicationState could differ if the driver is for example in the startup procedure and not supporting currently some communication states. InOut: Scope Name Type Comment Return CheckCurrentSupportedCommunicationState BOOL Input eRequestedState DED.DEVICE_TRANSITION_STATE The communication state to check