
Communication between object recognition sensor O2D2xx and Siemens Simatic S7
2
Contents
1 Preliminary note � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 3
1�1 Symbols used� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 3
2 General� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 3
3 Ethernet connection via TCP protocol � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 4
3�1 Principles � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 4
3�2 Sensor set-up � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 5
3�3 Set-up hardware configuration / NetPro Step7� � � � � � � � � � � � � � � � � � � � � � 8
4 Overview of the function blocks � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �11
4�1 FB54, DB54 – Communication block protocol version 1 � � � � � � � � � � � � � 12
4�1�1 Function block description FB54, DB54� � � � � � � � � � � � � � � � � � � � � � 13
4�2 FB55, DB55 – Communication block protocol version 2 � � � � � � � � � � � � � 14
4�2�1 Function block description FB55, DB55� � � � � � � � � � � � � � � � � � � � � � 15
4�3 FB56, DB56 – Communication block protocol version 3 � � � � � � � � � � � � � 16
4�3�1 Function block description FB56, DB56� � � � � � � � � � � � � � � � � � � � � � 17
4�3�2 Function block description FB 100 - Evaluation of data after the com-
mand "trigger" � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 18
4�3�3 Function block description FB 101 – Evaluation after the command
"read_stat" � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 19
4�3�4 Function block description FB 102 - Evaluation of data after the com-
mand "read_conf" � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 20
4�3�5 Function block description FB 103 - Evaluation after the command
"read_error" � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 21
4�3�6 Function block description FB 104 - Change protocol version� � � � � 22
4�3�7 Further function blocks � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 23
4�4 Implementation for an S7300 controller � � � � � � � � � � � � � � � � � � � � � � � � � � 23
Licences and trademarks
Microsoft®, Windows®, Windows XP® and Windows Vista®are registered trademarks of Microsoft Corporation�
All trademarks and company names are subject to the copyright of the respective companies�