IFM Electronic efector 250 O2D2 Series Programming Manual
IFM Electronic efector 250 O2D2 Series Programming Manual

IFM Electronic efector 250 O2D2 Series Programming Manual

Communication between object recognition sensor and siemens simatic s7

Advertisement

Quick Links

Programming manual
Addition
UK
Communication between
object recognition sensor O2D2xx
and Siemens Simatic S7

Advertisement

Table of Contents
loading

Summary of Contents for IFM Electronic efector 250 O2D2 Series

  • Page 1 Programming manual Addition Communication between object recognition sensor O2D2xx and Siemens Simatic S7...
  • Page 2: Table Of Contents

    Communication between object recognition sensor O2D2xx and Siemens Simatic S7 Contents 1 Preliminary note � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � 3 1�1 Symbols used�...
  • Page 3: Preliminary Note

    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 ►...
  • Page 4: Ethernet Connection Via Tcp Protocol

    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�...
  • Page 5: 3�2 Sensor Set-Up

    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�...
  • Page 8: 3�3 Set-Up Hardware Configuration / Netpro Step7

    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�...
  • Page 11: Overview Of The Function Blocks

    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 –...
  • Page 12: 4�1 Fb54, Db54 - Communication Block Protocol Version 1

    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)�...
  • Page 13: 4�1�1 Function Block Description Fb54, Db54

    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�...
  • Page 14: 4�2 Fb55, Db55 - Communication Block Protocol Version 2

    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)�...
  • Page 15: 4�2�1 Function Block Description Fb55, Db55

    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�...
  • Page 16: 4�3 Fb56, Db56 - Communication Block Protocol Version 3

    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)�...
  • Page 17: 4�3�1 Function Block Description Fb56, Db56

    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�...
  • Page 18: Mand "Trigger

    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�...
  • Page 19: 4�3�3 Function Block Description Fb 101 - Evaluation After The Command

    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� ►...
  • Page 20: Mand "Read_Conf

    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�...
  • Page 21: 4�3�5 Function Block Description Fb 103 - Evaluation After The Command

    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� ►...
  • Page 22: 4�3�6 Function Block Description Fb 104 - Change Protocol Version

    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�...
  • Page 23: 4�3�7 Further Function Blocks

    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 –...

Table of Contents