- Home
- Function/Function Block Reference
- PLCnext Controller Function Blocks
- Profinet
- GET_MODULE_DIFF_BLOCK
GET_MODULE_DIFF_BLOCK
Type | Function block | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description | The function block can be used to read out module difference blocks (ModuleDiffBlock) for Profinet devices. A ModuleDiffBlock contains information about the differences between the real hardware configuration and the expected configuration (configuration set by the engineering tool) as well as diagnosis information.Reading ModuleDiffBlocks is triggered with a rising edge at the REQ input. A rising edge at the NEW output indicates that new ModuleDiffBlocks are available. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes | Function blocks of this type have to be instantiated. The instance name of the function block has to be declared in the 'Variables' table of the POU where the FB is going to be used. The instance name must be unique within the POU. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameters | Inputs
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MODULE_DIFF_BLOCK content | ![]()
![]()
![]() The block element STATE in the MODULE_DIFF_BLOCK structure describes the module status. It can contain the following values:
![]() The bit-coded block element STATE in the SUBMODULE structure describes the submodule status. It contains multiple information which have to be read by applying different bit masks on the value. For example, applying bit mask 0x0010 on the value extracts bit 4 (MaintenanceRequired) as shown in the table below.
Evaluation of format indicator (bit 15)
SubmoduleState
Meaning of the state value when the format indicator (bit 15) is 0 (Bit mask 0x7FFF applied on the STATE value.)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Error codes | ![]()
|