1.1 siemens s5/s7 series - m2i.co.kr siemen1.1 siemens s5/s7 series ... s5 95u s5 100u s5 115u s5...

Download 1.1 Siemens S5/S7 Series - m2i.co.kr Siemen1.1 Siemens S5/S7 Series ... S5 95U S5 100U S5 115U S5 135U S5 155U ... Select the ‘Siemens MPI Direct in the Target PLC type

Post on 20-Apr-2018

277 views

Category:

Documents

18 download

Embed Size (px)

TRANSCRIPT

  • 1.1 Siemens S5/S7 Series

    1.1.1 S5/ S7 Serial Interface

    The following section describes the system configuration and interface between Siemens S5/S7

    series PLC and TOP using serial communication through link unit.

    1.1.1.1 System Configuration

    The above figure shows system configuration to connect S5/S7 PLC to TOP. (Use 3964R

    protocol)

    PLC Comm. Unit Cable TOP

    S5 90U

    S5 95U

    S5 100U

    S5 115U

    S5 135U

    S5 155U

    S7-300

    S7-400

    CP525

    CP340

    CP441-2

    Refer Cable

    Connection.

    (RS-232 / RS-

    422)

    All TOP

    1.1.1.2 Cable Diagram

    (1) RS-232C (CP525 TOP (for 9/15 Pin Connector))

    PLC Comm. Link Module(25Pin) TOP (9/15Pin)

    1

    CD 2

    RD 3 SD

    4

    DTR 5 SG

    6

    DSR 7

    RTS 8

    CTS 9

    1 FG

    2 SD

    3

    RD 4

    RTS 5

    CTS 6

    DSR 7 SG

    8

    CD 20

    DTR

  • (2) RS-232C (CP340, CP441-2 TOP (for 9/15 Pin Connector))

    PLC Comm. Link Module (9Pin) TOP (9/15Pin)

    (3) RS-422 (CP340, CP441-2 TOP (for 5Pin terminal / 15Pin Connector)

    PLC Comm. Link Module(15Pin) TOP(5Pin Terminal / 9Pin)

    :

    11 R(B)

    9 T(B)

    :

    4 R(A)

    3

    2 T(A)

    1

    :

    11 R(B)

    9 T(B)

    :

    4 R(A)

    3

    2 T(A)

    1

    5(15) GND

    4(14) SDB

    3(13) SDA

    2(12) RDB

    1(11) RDA

    5(15) GND

    4(14) SDB

    3(13) SDA

    2(12) RDB

    1(11) RDA

    1

    CD 2

    RD 3 SD

    4

    DTR 5 SG

    6

    DSR 7

    RTS 8

    CTS 9

    1

    CD 3 SD

    2

    RD 7

    RTS 8

    CTS 6

    DSR 5 SG

    9 RI

    4

    DTR

  • (4) RS-485 (CP341, CP441-2 TOP)

    PLC(15Pin) TOP(5/9/15)

    9PIN DSUB TOP 422 Pin Connection (1,4,6,9,5)

    15PIN DSUB TOP 422 Pin Connection (11,12,13,14,15)

    1.1.1.3 CP525/CP340/ CP441-2 Setup

    PLC

    Baud Rate 110 bps ~ 76800 bps

    Data Length 8 bit

    Stop Bit 1 bit

    Parity Bit EVEN

    Error Detection BCC(SUM)

    Priority Low

    Select the RK-512 protocol for the S7, while the 3964R protocol for the S5. Also add the

    Receive Function Block FB7.

    The CP340 is not supported by the latest version of PC software.

    < Example Configuration of CPU314 and CP341 RS232C>

    Specify the RK512 protocol for the S7.

    1

    2 T(A)

    3

    4 R(A)

    :

    9 T(B)

    11 R(B)

    :

    RDA 1/1/11

    RDB 2/4/12

    SDA 3/6/13

    SDB 4/9/14

    GND 5/5/15

  • Define the communication parameters.

    Set the priority to low.

    Check the value of the local address LADDR for the configuration of the FB7.

  • Open OB1, and drag and retrieve the FB7 P_RCV_RK CP341 from the CP 341 folder in the

    program elements.

    Enter the DB number (DB7) to be used by the FB7 to receive the communication on the

    top. Then the corresponding DB is automatically created. Turn the EN_R ON to enable

    the communication. R is reset input, and LADDR is the local address value checked in

    the previous step.Enter one of DB Nos. to be used. The read/write communication is

    available within the assigned DB area only.

  • 1.1.2 < TOP Set up >

    (1) TOP Designer Setup

    Select the Siemens S5-3964R, S7-3964/RK512 (Link) in the external device.

    (2) TOP Serial Set Up

    The recommended setup information is as follows:

    Serial Baud Rate : 38400 bps

    Serial Data Bit : 8bit

    Serial Stop Bit: 1bit

    Serial Parity Bit : EVEN

    Serial Signal Level: RS-232

    Station Number (0-31) to Diagnose the Communication : N/A

    Available Address List

    Device Word Address

    Data Register *1

    D002:000 ~ D255:255

    Expansive Data Register *1

    X002:000 ~ X255:255

  • *1 : Data Register and Expansive Data Register are as follows.

    D002:000

    Data Word(DW) : 000~255

    Data Block(DB) : 000~255

    Expansive Data Register is available in only S5 135U/155U.

    Last two digits are used in Bits.

    D002:000:00

    REF.

  • 1.1.3 S7-300/400 (CPU MPI Direct Connection)

    S7-300/400 (Direct Connection to CPU via MPI Port

    The following section describes the system configuration and interface between Siemens S7-

    300/400 series PLC and XTOP using direct connection.

    1.1.3.1 System Configuration

    This figure shows system configuration to connect S7 PLC to TOP.

    PLC Comm. Unit Cable TOP

    CPU312IFM

    CPU313

    CPU314

    CPU315

    CPU315-2DP

    CPU MPI Port

    Refer Cable

    Connection

    (RS-485C)

    Only for XTOP

    Unsupported for

    ATOP

    1.1.3.2 Cable Diagram

    (1) RS-485 (CPU MPI port XTOP(for 9/15Pin Connector)

    PLC (9Pin) TOP (9/15Pin)

    1(11) RDA

    CD 2

    3

    4(12) RDB

    5(15) SG

    6(13) SDA

    7

    8

    9(14) SDB

    1

    2

    3 TRX+

    4

    5 SG

    6

    7

    8 TRX-

    9

  • 1.1.3.3 TOP Setup

    (1) TOP Designer Setup

    Select the Siemens MPI Direct in the Target PLC type.

    Configure the MPI Address of TOP on Station No.,the MPI Address of S7 on PLC Node

    (2) TOP Serial Setup

    Recommended settings are as follows.

    - Serial Baud Rate : 187500 bps

    - Serial Data Bit : 8bit(Auto set)

    - Serial Stop Bit: 1bit(Auto set)

    - Serial Parity Bit : EVEN(Auto set)

    - Serial Signal Level : RS-485

    - Controllers Station No. at Comm. Diagnosis(0~31) : Not effect.

    PLC node and Tops station No must be set differently each other.

    We recommend Highest Node 15.

    1:n, n:1 and n:m connection is not supported, but 1:1 connection is only

    supported.

    MPI Direct is supported only XTOP model.

    REF.

  • S7-300/400 (CPU MPI Port + PC Adapter)

    The following section describes the system configuration and interface between Siemens S7-

    300/400 series PLC and TOP using serial communication through PC adapter.

    1.1.3.4 System Configuration

    This figure shows system configuration to connect S7 PLC to TOP.

    PLC Comm. Unit Cable TOP

    CPU312IFM

    CPU313

    CPU314

    CPU315

    CPU315-2DP

    PC Adapter

    Refer Cable

    Connection

    (RS-232C)

    All TOP

    1.1.3.5 Cable Diagram

    (1) RS-232C (PC Adapter TOP(for 9/15Pin Connector)

    PLC PC Adapter(9Pin) TOP (9/16Pin)

    1

    CD 2

    RD 3 SD

    4

    DTR 5 SG

    6

    DSR 7

    RTS 8

    CTS 9

    1

    CD 3 SD

    2

    RD 7

    RTS 8

    CTS 6

    DSR 5 SG

    9 RI

    4

    DTR

  • 1.1.3.6 S7-300/400 CPU Setup

    PLC Setting

    Baud Rate 19200 ~ 38400 bps

    Data Length 8 bit

    Stop Bit 1 bit

    Parity Bit ODD

    Error Detection BCC(SUM)

    1.1.3.7 TOP Setup

    (1) TOP Designer Setup

    Select S7-300/400 MPI(LOADER) of Siemens Series in PLC type.

    (2) TOP Serial Setup

    Recommended settings are as follows.

    - Serial Baud Rate : 19200 bps

    - Serial Data Bit : 8bit

    - Serial Stop Bit: 1bit

    - Serial Parity Bit : ODD

    - Serial Signal Level : RS-232

    - Controllers Station No. at Comm. Diagnosis(0~31) : 1

  • PLC node and Controllers station No must be set differently each other.

    Highest node should not exceed PLC node. For example, If PLC node is set 16

    by user, highest node should be set 31 or above.

    1.1.4 < S7-300/400 CPU Set up >

    1.1.5 Configuration of S7-300/400 CPU >

    (1) Hardware Configuration

    Assign 187.5Kbps to the Transmission rate in the Network Setting tab of the MPI interface

    as shown in the figure below. Change the highest address to 15 for a fast connection in the

    communication network.

    REF.

  • (2) Options > Set PG/PC Interface > PC Adapter > MPI

    Assign 187.5 Kbps to the Transmission Rate as shown in the figure below. As the Highest

    Address is for the PC, the value is different from the MPI address.

    Select the Highest Node Address in the TOP Designer in case a PC Adapter is used. (see

    Project Information in the Designer)

  • (3) Options > Set PG/PC Interface > PC Adapter > Local Connection

    The Local Connection is the speed at which the PC communicates with the TOP in case a

    PC Adapter is used.