联系电话

010 - 62328579

传真

010 - 62315119

电子邮箱

wanglianpeng@aic-tech.com

通过TCP Connection连接S7 PLC

作者:admin     发布时间:2014-04-20    

  通过TCP Connection连接S7 PLC,这一过程主要有以下四个步骤:
  1. 配置网络连接
  2. 配置Fetch连接
  3. 配置Write连接
  4. 下载配置
  1. 配置网络连接
    • 在NetPro中,选中CPU315,增加连接配置:

    • 双击空白处,增加一个新的连接配置
  2. 配置Fetch连接

    • IP地址和端口

    • 选项
  3. 类似的,配置Write连接

    • 地址和端口

    • 选项
  4. 下载配置
    附录:
    What You Should Know About the Different Connection Types
    Introduction
    The following sections provide a brief overview of the connection types you can configure with STEP 7. The "Communicating with SIMATIC" manual provides a more detailed description of the communications possibilities in SIMATIC.
    S7 Connections
    • S7 connections offer the following features:
    • Can be configured in all S7/M7 devices
    • Can be used in all types of subnet (MPI, PROFIBUS, Industrial Ethernet)
    • When using the SFBs BSEND/BRCV: secure transfer of data between SIMATIC S7/M7-400 stations; for example, exchanging data block contents (up to 64 Kbytes)
    • Using CPU 317-2 PN/DP as well as CPU 31x and a CP with the FBs BSEND/BRCV from the SIMATIC_NET_CP library or Standard Library also allows secure transmission of data to S7-300 and S7-400.
    • When using the SFBs USEND/URCV: fast, unsecured transfer of data independent of the time processing of the communication partner, for example, for event messages and messages.
    • Acknowledgement of data transfer from the communication partner via layer 7 of the ISO reference model

    S7 Connections, Redundant
    • Properties as for S7 connections; however, restricted to S7 H CPUs as well as SIMATIC PC stations (such as OPC servers) and not on MPI subnets
    • Depending on the network topology, at least two connection paths between the connection end points are possible with a redundant S7 connection.

    Point-to-Point Connection
    • The local CP 441 provides the link for the connection between an S7-400 CPU and a communication partner connected via a point-to-point connection. On the CP, a conversion is made to the addressing mechanisms of the selected transfer procedure. For this reason, the point-to-point connection ends in the CP 441 and not at the communication partner as for other connection types. The number of connections to the CP depends on the set procedure.

    FMS Connection
    PROFIBUS FMS (Field bus Message Specification) has the following features:
    • For the transfer of structured data (FMS variables)
    • Fulfills the European standard EN 50170 Vol.2 PROFIBUS
    • For open communication with non-Siemens devices on PROFIBUS
    • Application on the remote communication partner acknowledges receipt of the data
    • Can be ordered in layer 7 of the ISO reference model
    • FMS services are provided on the PC as C functions

    FDL Connection
    PROFIBUS FDL (Field bus Data Link) has the following features:
    • For the transfer of data to a communication partner (for example, SIMATIC S5 or PC) that supports sending and receiving in accordance with the SDA function (Send Data with Acknowledge)
    • The receipt of data is confirmed by the FDL service of the communication partner with an acknowledgement
    • For PROFIBUS subnets only
    • Fulfills the European standard EN 50170 Vol.2 PROFIBUS
    • Can be ordered in layer 2 of the ISO reference model
    • FDL services are provided on the PC as C functions

    ISO Transport Connection
    The ISO Transport connection has the following features:
    • Suitable for large quantities of data owing to "data blocking"
    • Allows communication to a partner (for example, SIMATIC S5 or PC) that supports sending and receiving of data in accordance with ISO Transport
    • You can use the Send/Receive utilities and the Fetch and Write utilities to transmit data.  For Industrial Ethernet only
    • The receipt of data is confirmed by the ISO Transport service of the communication partner with an acknowledgement
    • ISO Transport (ISO 8073 class 4) corresponds to layer 4 of the ISO reference model
    • ISO Transport services are provided on the PC as C functions

    ISO_on_TCP Connection
    The ISO-on-TCP connection has the following features:
    • Fulfills the TCP/IP (Transmission Control Protocol/Internet Protocol) standard with the extension RFC 1006 in accordance with layer 4 of the ISO reference model. RFC 1006 describes how the services of ISO layer 4 can be mapped onto TCP
    • Allows communication to a partner (for example, SIMATIC S5 or PC) that supports sending and receiving of data in accordance with ISO-on-TCP
    • You can use the Send/Receive utilities and the Fetch and Write utilities to transmit data.
    • The receipt of data is confirmed with an acknowledgement
    • For Industrial Ethernet only
    • ISO-on-TCP services are provided on the PC as C functions

    TCP Connection
    The TCP connection has the following features:
    • Complies with the TCP/IP standard (Transmission Control Protocol/Internet Protocol)
    • Enables communication to a partner (such as a PC or non-Siemens device) that supports sending or receiving data according to TCP/IP.
    • You can transmit data by means of the utilities Send/Receive or Fetch and Write.
    • For Industrial Ethernet only
    As a rule, you can use the TCP/IP implementation in the operating system of the PC.
    UDP Connection
    The UDP (User Datagram Protocol) connection has the following features:
    • For Industrial Ethernet (TCP/IP protocol)
    • Allows unsecured transfer of contiguous blocks of data between two nodes
    • E-Mail Connection

    E-Mail Connection
    The e-mail connection has the following features:
    • For Industrial Ethernet (TCP/IP protocol)
    • Enables process data, for example, to be sent from data blocks via e-mail using an IT communications processor
    • Using the e-mail connection, you define the mail server via which all e-mails sent by an IT communications processor are delivered.