Communication between object recognition sensor O2D2xx and Siemens Simatic S7 1 Preliminary note These instructions serve for the set-up and parameter setting of the communi- cation between the object recognition sensor O2D2xx from ifm electronic and an Simatic S7 controller from Siemens� 1.1 Symbols used ►...
Communication between object recognition sensor O2D2xx and Siemens Simatic S7 3 Ethernet connection via TCP protocol 3.1 Principles The data of the TCP connection are transmitted as a data flow, i�e� there is no defined start or end character on the protocol level� The returned data is received byte-for-byte and stored in the receive buffer�...
Communication between object recognition sensor O2D2xx and Siemens Simatic S7 3.2 Sensor set-up ► Set Applications → Network parameters → IP address, Subnet mask, etc�...
Page 6
Communication between object recognition sensor O2D2xx and Siemens Simatic S7 ► Select the trigger type "TCP/IP" in the active configuration�...
Page 7
Communication between object recognition sensor O2D2xx and Siemens Simatic S7 ► Configure the process interface� If the detail output is deactivated in this setting, the parameter "Detail_akt" must also be deactivated in FB100�...
Communication between object recognition sensor O2D2xx and Siemens Simatic S7 3.3 Set-up hardware configuration / NetPro Step7 ► Set up and link the object recognition sensor as "Other Station" in NetPro�...
Page 9
Communication between object recognition sensor O2D2xx and Siemens Simatic S7 ► Create the TCP connection with the object recognition sensor� ► Note down the connection ID and CP address for the function block parameter setting�...
Page 10
Communication between object recognition sensor O2D2xx and Siemens Simatic S7 ► Set up the port number as in the parameter setting software�...
Communication between object recognition sensor O2D2xx and Siemens Simatic S7 4 Overview of the function blocks FB54, DB54 – Communication block protocol version 1 FB55, DB55 – Communication block protocol version 2 FB56, DB56 – Communication block protocol version 3 FB57, DB57 –...
Communication between object recognition sensor O2D2xx and Siemens Simatic S7 4.1 FB54, DB54 – Communication block protocol version 1 ► Indicate ID and LADDR (as set up in Net-Pro)�...
Communication between object recognition sensor O2D2xx and Siemens Simatic S7 4.1.1 Function block description FB54, DB54 The parameter RECV_BUF must be declared as absolute, because with some controller types the width of access may not be transmitted correctly in case of symbolic declaration� The function block establishes the messages to be sent to the sensor and creates a character string from the received data flow�...
Communication between object recognition sensor O2D2xx and Siemens Simatic S7 4.2 FB55, DB55 – Communication block protocol version 2 ► Indicate ID and LADDR (as set up in Net-Pro)�...
Communication between object recognition sensor O2D2xx and Siemens Simatic S7 4.2.1 Function block description FB55, DB55 The parameter RECV_BUF must be declared as absolute, because with some controller types the width of access may not be transmitted correctly in case of symbolic declaration� The function block establishes the messages to be sent to the sensor and creates a character string from the received data flow�...
Communication between object recognition sensor O2D2xx and Siemens Simatic S7 4.3 FB56, DB56 – Communication block protocol version 3 ► Indicate ID and LADDR (as set up in Net-Pro)�...
Communication between object recognition sensor O2D2xx and Siemens Simatic S7 4.3.1 Function block description FB56, DB56 The parameter RECV_BUF must be declared as absolute, because with some controller types the width of access may not be transmitted correctly in case of symbolic declaration� The function block establishes the messages to be sent to the sensor and creates a character string from the received data flow�...
Communication between object recognition sensor O2D2xx and Siemens Simatic S7 4.3.2 Function block description FB 100 - Evaluation of data after the command "trigger" With a positive edge on the input "Start", the data from the receive buffer is evalua- ted once and moved to the data block�...
Communication between object recognition sensor O2D2xx and Siemens Simatic S7 4.3.3 Function block description FB 101 – Evaluation after the command "read_stat" With a positive edge on the input "Start", the data from the receive buffer is evalua- ted once and provided on the output� ►...
Communication between object recognition sensor O2D2xx and Siemens Simatic S7 4.3.4 Function block description FB 102 - Evaluation of data after the command "read_conf" With a positive edge on the input "Start", the data from the receive buffer is evalua- ted once and moved to the data block�...
Communication between object recognition sensor O2D2xx and Siemens Simatic S7 4.3.5 Function block description FB 103 - Evaluation after the command "read_error" With a positive edge on the input "Start", the error codes from the receive buffer is evaluated once and provided on the output� ►...
Communication between object recognition sensor O2D2xx and Siemens Simatic S7 4.3.6 Function block description FB 104 - Change protocol version With a positive edge on the input "Change" the new protocol version is activated in the sensor� ► Set the input to the current and new protocol version�...
Communication between object recognition sensor O2D2xx and Siemens Simatic S7 4.3.7 Further function blocks FC11 – (Siemens Standard) FIND FC16 – (Siemens Standard) I_STRING FC26 – (Siemens Standard) MID FC37 – (Siemens Standard) STRING_DI FC38 – (Siemens Standard) STRING_I These blocks are taken from the S7 standard library IEC Function Blocks� FC40 –...