Process interface O2D5xx O2I4xx O2I5xx
3
4.3.7 Get IO state........................................................ 29
4.3.8 Set IO state........................................................ 30
4.3.9 Execute button function............................................... 31
4.3.10 Execute synchronous trigger........................................... 31
4.3.11 Execute gated software trigger......................................... 31
4.3.12 Activate asynchronous data output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
4.3.13 Use extended command.............................................. 32
4.3.14 Get next data segment............................................... 32
4.4 Extended commands .................................................... 32
4.4.1 ID 3: Enable / Disable data partitioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
4.4.2 ID 4: Set the content of a specific match string container . . . . . . . . . . . . . . . . . . . . . 33
4.4.3 ID 5: Get the content of a specific match string container . . . . . . . . . . . . . . . . . . . . . 34
4.4.4 ID 6: Toggle the viewindicator on/off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
4.4.5 ID 7/8: Set/Get the current focus distance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
4.4.6 ID 9: Reset current statistics........................................... 34
5 PROFINET................................................................. 35
5.1 Stack requirements...................................................... 35
5.2 Command structure...................................................... 37
5.2.1 Available slots...................................................... 37
5.2.2 Verifying the size of selected slots on connection setup . . . . . . . . . . . . . . . . . . . . . . 38
5.2.3 Module size for slot 2 ................................................ 38
5.2.4 Module sizes for slots 3…12........................................... 38
5.2.5 Module size for slot 13 ............................................... 38
5.2.6 Truncation of data................................................... 38
5.2.7 Data layout of slot 1 – Process status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5.2.8 Data layout of slots 2…12............................................. 39
5.2.9 Data layout of slot 13 ................................................ 40
5.2.10 Data layout of command word.......................................... 40
5.2.11 Identifier for synchronous and asynchronous messages . . . . . . . . . . . . . . . . . . . . . . 40
5.3 Command handling...................................................... 41
5.3.1 Number of supported PROFINET connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.3.2 Initialization of input and output buffers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.3.3 Default endianness.................................................. 41
5.3.4 Command execution................................................. 41
5.3.5 Handling of multiple command bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.3.6 Blocking of asynchronous messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.3.7 Handling of disconnections during command execution . . . . . . . . . . . . . . . . . . . . . . 42
5.3.8 Sending of response message to a command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.3.9 Reset of error bit.................................................... 43
5.3.10 Queuing of error codes............................................... 43
5.3.11 Functionality of asynchronous message bit. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
5.3.12 Bits for asynchronous message identifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
5.3.13 Message counter ................................................... 43
5.4 Command description.................................................... 43
5.4.1 Execute gated software trigger......................................... 43
5.4.2 Get last error....................................................... 44
5.4.3 Get connection ID................................................... 45
5.4.4 Get statistics....................................................... 45
5.4.5 Activate application.................................................. 45
5.4.6 Get application list................................................... 46
5.4.7 Get IO state........................................................ 46
5.4.8 Set IO state........................................................ 47
5.4.9 Execute button function............................................... 47
5.4.10 Execute synchronous trigger........................................... 47
5.4.11 Activate asynchronous data output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
5.4.12 Use extended command.............................................. 48
5.4.13 Get next data segment............................................... 48
5.5 Extended commands .................................................... 48
5.5.1 ID 3: Enable / Disable data partitioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
5.5.2 ID 4: Set the content of a specific match string container . . . . . . . . . . . . . . . . . . . . . 50
5.5.3 ID 5: Get the content of a specific match string container . . . . . . . . . . . . . . . . . . . . . 50