Welcome to the Industrial Automation website!

NameDescriptionContent
HONG  KANG
E-mail  
Password  
  
Forgot password?
  Register
当前位置:

S7-300 CPU 31xC 和 CPU 31x

来源: | 作者:佚名 | 发布时间 :2023-11-20 | 861 次浏览: | Share:

Routing and data record routing

Routing is the transmission of data across network boundaries. Information can be sent from sender to receiver across several networks.

The data logging route is an extension of the common route. For example, when the programming device is not directly connected to the target device

PROFIBUS DP subnets, but when connected to the CPU's PROFINET interface, SIMATIC PDM will make

Record routes with data. The data sent through the data recording route includes parameters of the participating field devices (slave stations)

Configuration, and device-specific information (e.g., set values, limit values, etc.). Data records the destination address structure of the route

Depends on the content of the data, i.e. the secondary station receiving the data.

When a programming device is assigned a different subnet from the target slave station, the data record route can also be read using the programming device

Set of parameters that already exist on the field device, edit them, and return them to the field device.

The field devices themselves do not need to support data record routing because they do not forward the received information.

Clock synchronization

1:intro

The CPU interface supports clock synchronization. The CPU can be programmed to act as a time master (with a default synchronization interval)

Interval) or time to run from the station.

Default value: No clock synchronization

Set synchronization mode

In the properties dialog box of HW Config, set the synchronization mode as follows:

In AS (on the central I/O bus) : Tab → Diagnostics/Clock (Tab → Diagnostics/Clock)

(Also applicable to MPI on CPU without DP interface)

● For MPI/DP or DP interface: Tab → Clock

● For PROFINET interface: Tab → Clock synchronization


2: interface

The following interfaces support clock synchronization:

● MPI interface

The CPU can be configured as either a time master or a time slave.

● DP interface

The CPU can be configured as either a time master or a time slave.

● PROFINET interface

The clock is synchronized with the CPU on the client through NTP.

● On the automation system in the central rack

The CPU can be configured as either a time master or a time slave.

Instructions

On many of these interfaces, the CPU cannot be used as a time slave.

CPU as time slave station

When acting as a time slave, a CPU receives synchronization frames only from a time master and uses that time as an internal time for that CPU

Between.

The CPU serves as the time master

When acting as a time master, the CPU broadcasts clock-sync frames at set synchronization intervals to synchronize them in the subnet to which they are connected

It stands.

Requirement: The CPU clock is no longer in the default state. The clock must be set at least once.

Clock synchronization as a time master begins with:

● After this time is initialized by SFC 0 "SET_CLK" or programming device function

● Use another time master, provided that the CPU is also programmed as an MPI/DP or PROFINET interface

Time operates from the station.

Instructions

The real-time clock of the CPU is not set in the following cases:

 before delivery

 after the mode selector switch is reset to factory Settings

 After firmware update

3. Point-to-point connection

Stats:

Point-to-point connections allow data to be exchanged over serial interfaces. Point-to-point connections can be used to interconnect programmable controllers, computations

Computer or third party system with communication function. It can also be adjusted according to the procedures of the communication partner.

3.1 Data Consistency

Stats:

A data area is consistent if it can be read or written to in the operating system as a block. Station to station

The data exchanged centrally between them should belong to a whole and originate from a processing cycle, that is, the data is consistent. If user

Programs that include programmed communication capabilities (for example, using XSEND/XRCV to access shared data) can pass

The "BUSY" parameter itself coordinates access to the corresponding data area.

Use the PUT/GET function

For some S7 communication functions that do not require blocks in CPU (server mode) user programs (e.g.,

In terms of PUT/GET or write/read access via OP communication, the scope of data consistency must be considered during programming.

The PUT/GET function of the S7 communication or the read/write variable operation through the OP communication are executed at the cycle control point of the CPU

Fine. To guarantee the defined hardware interrupt response time, the communication variables need to be in the form of blocks of up to 240 bytes, to/from

The copied user memory in the operating system loop control point is continuously copied. There is no guarantee for larger data areas

Data consistency.

Using PUT/GET functions and "Prioritized OCM communication"

If the operation is configured as "OCM communication by priority", the specified data consistency is lost (see the chapter "OP Communication (page 80)"). Therefore, data consistency must be ensured through user programs.

Keep the following consistent:

● Byte, word, double-word access (e.g. LMDx)

● SFC 14 "DPRD_DAT"

● SFC 15 "DPWR_DAT"

SFC 81 "UBLKMOV" (for copying up to 512 bytes of data)

It should also be understood that if OCM Communication by Priority is configured, the communication will not be changed at the loop control point

Quantities are continuously copied to/from working memory in blocks of up to 240 bytes. Therefore, it should be done while the user program is running

Copy the data.

                                                                                    Quantity name

                                                                                    ① Analog input and analog output

                                                                                    ② Digital input

                                                                                    ③ digital output

3.2 SNMP Communication Service

availability

SNMP V1, MIB-II communication services can be used with integrated PROFINET interfaces and using version 2.2 or later

Firmware for the CPU.

Stats

SNMP (Simple Network Management Protocol) is the standard protocol for TCP/IP networks.

3.3 Open communication over Industrial Ethernet

demand

● Since STEP 7 V5.4 + SP4

Feature

Cpus with integrated PROFINET interfaces support over industrial Ethernet starting with firmware V2.3.0 or V2.4.0

Open communication function (referred to as: Open IE communication)

Open IE communication provides the following services:

● Connection-oriented protocols

- TCP compliant with RFC 793, connection type B#16#01, firmware V2.3.0 and later

- TCP compliant with RFC 793, connection type B#16#11, firmware V2.4.0 and later

- ISO-on-TCP compliant with RFC 1006, firmware V2.4.0 and higher

● No connection protocol

- UDP compliant with RFC 768, firmware V2.4.0 and later

Attributes of the communication protocol

The following protocol types are included in data communication:

● Connection-oriented protocols:

These protocols establish a (logical) connection to a communication partner before the data transfer and then after the transfer is complete

The connection needs to be closed. When the security of data transmission is particularly important, connection-oriented protocols are used. Usually pass

Multiple logical connections can be established over a single physical cable.

FB for open communication over "Industrial Ethernet" supports the following connection-oriented protocols:

- TCP compliant with RFC 793 (connection types B#16#01 and B#16#11)

- ISO-on-TCP according to RFC 1006 (connection type B#16#12)

● No connection protocol:

These protocols can work without establishing a connection. This means there is no need to establish and terminate connections to remote partners

Answer. Connectionless protocols do not require confirmation to transmit data to remote partners; Therefore, data transmission is not secure.

FB for open communication over industrial Ethernet supports the following connectionless protocols:

- UDP compliant with RFC 768 (connection type B#16#13)


How to communicate with Open IE?

To allow the exchange of data with other communication partners, STEP 7 provides the following FB and under Communication Blocks in the Standard Library

UDT:

● Connection-oriented protocols: TCP, ISO-on-TCP

- FB 63 "TSEND" for sending data

- FB 64 "TRCV" for receiving data

- FB 65 "TCON" for connection

- FB 66 "TDISCON" for disconnection

- UDT 65 "TCON_PAR", whose data structure allows the connection to be parameterized

● No connection protocol: UDP

- FB 67 "TUSEND" for sending data

- FB 68 "TURCV" for receiving data

- FB 65 "TCON" for establishing local communication access points

- FB 66 "TDISCON" for parsing local communication access points

- UDT 65 "TCON_PAR", whose data structure can be parameterized to local communication access points

- UDT 66 "TCON_ADR" with remote partner addressing parameter data structure

Operator controls and indicators for CPU 313C-2 DP

                                                                                            Quantity name

                                                                                            ① Status and error indicators

                                                                                            ② Slot of SIMATIC MMC card (including eject device)

                                                                                            ③ Integrated input and output terminals

                                                                                            ④ Power connection

                                                                                            ⑤ 2. Interface X2 (DP)

                                                                                            ⑥ 1. Interface X1 (MPI)

                                                                                            ⑦ Mode selector

A block of data for parameterization

A block of data for parameterizing TCP and ISO-on-TCP connections

To use TCP and ISO-on-TCP configuration connections, you need to create a number that contains UDT 65 "TCON_PAR" medians

According to the structure of DB. This data structure contains all the parameters needed to establish the connection. Each connection requires such a number

According to the structure, you can arrange it in the global data store.

The CONNECT parameter of FB 65 "TCON" contains a reference to the address of the corresponding connection description (e.g.,

P#DB100.DBX0.0 Byte 64).

A block of data used to parameterize local communication access points using UDP

To assign parameters to the local communication access point, create one that contains the UDT 65 "TCON_PAR" data structure

DB. This data structure contains the parameters needed to establish a connection between the user program and the communication layer of the operating system

The CONNECT parameter of FB 65 "TCON" contains a reference to the address of the corresponding connection description (e.g.,

P#DB100.DBX0.0 Byte 64).

Instructions

Setting Connection Instructions (UDT 65)

You need to enter the communication interface in the "local_device_id" parameter of UDT65 "TCON_PAR" (for example

B#16#03: Communication via IE interface integrated with CPU 319-3 PN/DP).


Establish communication connection

● Suitable for TCP and ISO-on-TCP

Both communication partners call FB 65 "TCON" to establish a connection. Define which communication partner is used as master during parameterization

Dynamic communication endpoints and which are used as passive communication endpoints. To determine the number of possible connections, see your CPU's technology

The technical specifications.

The CPU automatically monitors and maintains active connections.

If the connection is interrupted, for example due to an open circuit or a telecommunication partner, the active party will attempt to re-establish the connection

Answer. You don't have to call FB 65 "TCON" again.

The active connection is terminated by calling FB 66 "TDISCON" or when the CPU is in STOP mode. Want to re-

To establish a connection, you must call FB 65 "TCON" again.

● Suitable for UDP

Both communication partners call FB 65 "TCON" to set up their local communication access point. This will be in the user program and operation

Connections are established between the communication layers of the system. Connections to remote partners are not established.

The local access point is used to send and receive UDP packets.

Distinguish between PROFINET IO and PROFINET CBA features

                                           PROFINET IO and CBA represent automation equipment for "industrial Ethernet" from two different perspectives.

Component-based automation divides the entire device into different functions. These functions are configured and programmed separately.

The device view provided by PROFINET IO is very similar to the PROFIBUS view. You can continue to configure and configure individual programmable controllers


  • Metso A413177 Digital Interface Control Module
  • METSO A413222 8-Channel Isolated Temperature Input Module
  • Metso A413313 Interface Control Module
  • METSO D100532 Control System Module
  • METSO A413310 8-Channel Digital Output Module
  • METSO A413659 Automation Control Module
  • Metso D100314 Process Control Interface Module
  • METSO A413665 8-Channel Analog Output Module
  • METSO A413654 Automation Control Module
  • Metso A413325 Interface Control Module
  • METSO A413110 8-Channel Analog Input Module
  • METSO A413144 Automation Control Module
  • Metso A413160 Digital Interface Control Module
  • METSO A413152 8-Channel Digital Input Module
  • METSO A413240A Automation Control Module
  • METSO A413146 Digital Interface Control Module
  • METSO A413150 Multi-Role Industrial Automation Module
  • METSO A413125 Automation Control / I/O Module
  • Metso A413111 Interface Control Module
  • METSO A413140 Automation Control Module
  • METSO 020A0082 Pneumatic Control Valve Component
  • METSO 02VA0093 Automation Control Module
  • METSO 02VA0153 Actuator Control Module
  • METSO 02VA0190 Automation Control Module
  • Metso 02VA0193 Pneumatic Control Valve Component
  • METSO 02VA0175 Valve Actuator Module
  • METSO D100308 Industrial Control Module
  • MOOG QAIO2/2-AV D137-001-011 Analog Input/Output Module
  • MOOG D136-002-002 Servo Drive or Control Module
  • MOOG D136-002-005 Servo Drive Control Module
  • MOOG D136E001-001 Servo Control Card Module
  • MOOG M128-010-A001B Servo Control Module Variant
  • MOOG G123-825-001 Servo Control Module
  • MOOG D136-001-008a Servo Control Card Module
  • MOOG M128-010 Servo Control Module
  • MOOG T161-902A-00-B4-2-2A Servo-Proportional Control Module
  • MOTOROLA 21255-1 Electronic Component Module
  • MOTOROLA 12967-1 / 13000C Component Assembly
  • MOTOROLA 01-W3914B Industrial Control Module
  • Motorola MVME2604-4351 PowerPC VMEbus Single Board Computer
  • MOTOROLA MVME162-513A VMEbus Embedded Computer Board
  • MOTOROLA MPC2004 Embedded PowerPC Processor
  • Motorola MVME6100 VMEbus Single Board Computer
  • MOTOROLA MVME162PA-344E VMEbus Embedded Computer Board
  • MOTOROLA RSG2PMC RSG2PMCF-NK2 PMC Expansion Module
  • Motorola APM-420A Analog Power Monitoring Module
  • MOTOROLA 0188679 0190530 Component Pair
  • Motorola 188987-008R 188987-008R001 Power Control Module
  • MOTOROLA DB1-1 DB1-FALCON Control Interface Module
  • MOTOROLA AET-3047 Antenna Module
  • Motorola MVME2604761 PowerPC VMEbus Single Board Computer
  • MOTOROLA MVME761-001 VMEbus Single Board Computer
  • MOTOROLA 84-W8865B01B Electronic System Module
  • Motorola MVIP301 Digital Telephony Interface Module
  • MOTOROLA 84-W8973B01A Industrial Control Module
  • MOTOROLA MVME2431 VMEbus Embedded Computer Board
  • MOTOROLA MVME172PA-652SE VMEbus Single Board Computer
  • Motorola MVME162-223 VMEbus Single Board Computer
  • MOTOROLA BOARD 466023 Electronic Circuit Board
  • Motorola MVME333-2 6-Channel Serial Communication Controller
  • MOTOROLA 01-W3324F Industrial Control Module
  • MOTOROLA MVME335 VMEbus Embedded Computer Board
  • Motorola MVME147SRF VMEbus Single Board Computer
  • MOTOROLA MVME705B VMEbus Single Board Computer
  • MOTOROLA MVME712A/AM VMEbus Embedded Computer Board
  • MOTOROLA MVME715P VMEbus Single Board Computer
  • Motorola MVME172-533 VMEbus Single Board Computer
  • Motorola TMCP700 W33378F Control Processor Module
  • MOTOROLA MVME188A VMEbus Embedded Computer Board
  • Motorola MVME712/M VME Transition Module
  • Motorola 30-W2960B01A Industrial Processor Control Module
  • MOTOROLA FAB 0340-1049 Electronic Module
  • Motorola MVME162-210 VME Single Board Computer
  • Motorola MVME300 VMEbus GPIB IEEE-488 Interface Controller
  • MOTOROLA CPCI-6020TM CompactPCI Processor Board
  • Motorola MVME162-522A VMEbus Single Board Computer
  • MOTOROLA MVME162-512A VMEbus Single Board Computer
  • MOTOROLA MVME162-522A 01-W3960B/61C VMEbus Single Board Computer
  • MOTOROLA MVME162-220 VMEbus Embedded Computer Board
  • Motorola MVME162-13 VMEbus Single Board Computer
  • MOTOROLA MVME162-10 VMEbus Single Board Computer
  • RELIANCE 57C330C AutoMax Network Interface Module
  • RELIANCE 6MDBN-012102 Drive System Module
  • RELIANCE 0-60067-1 Industrial Drive Control Module
  • Reliance Electric 0-60067-A AutoMax Communication Module
  • RELIANCE S0-60065 System Control Module
  • RELIANCE S-D4006-F Industrial Drive Control Module
  • Reliance Electric S-D4011-E Shark I/O Analog Input Module
  • RELIANCE S-D4009-D Drive Control Module
  • RELIANCE S-D4043 Drive Control Module
  • Reliance DSA-MTR60D Digital Servo Motor Interface Module
  • RELIANCE 0-60063-2 Industrial Drive Control Module
  • RELIANCE S-D4041 Industrial Control Module
  • Reliance Electric SR3000 2SR40700 Power Module
  • RELIANCE VZ7000 UVZ701E Variable Frequency Drive Module
  • RELIANCE VZ3000G UVZC3455G Drive System Module
  • Reliance Electric S-D4039 Remote I/O Head Module
  • RELIANCE 0-57210-31 Industrial Drive Control Module
  • RELIANCE 0-56942-1-CA Control System Module
  • Reliance Electric 0-57100 AutoMax Power Supply Module
  • RELIANCE 0-54341-21 Industrial Control Module
  • RELIANCE 0-52712 800756-21B Drive Interface Board
  • KEBA PS242 - Power Supply Module
  • KEBA BL460A - Bus Coupling Module
  • KEBA K2-400 OF457/A Operating Panel
  • KEBA T200-M0A-Z20S7 Panel PC
  • KEBA K2-700 AMT9535 Touch Screen Panel
  • KEBA T20e-r00-Am0-C Handheld Terminal
  • KEBA OP350-LD/J-600 Operating Panel
  • KEBA 3HAC028357-001 DSQC 679 IRC5 Teach Pendant
  • KEBA E-32-KIGIN Digital Input Card
  • KEBA FP005 Front Panel
  • KEBA BT081 2064A-0 Module
  • KEBA FP-005-LC / FP-004-LC Front Panel
  • KEBA SI232 Serial Interface
  • KEBA T70-M00-AA0-LE KeTop Teach Pendant
  • KEBA KEMRO-BUS-8 Bus Module
  • KEBA IT-10095 Interface Terminal
  • KEBA RFG-150AWT Power Supply Unit
  • KEBA C55-200-BU0-W Control Unit
  • KEBA Tt100-MV1 Temperature Module
  • KEBA E-HSI-RS232 D1714C / D1714B Interface Module
  • KEBA E-HSI-CL D1713D Interface Module
  • KEBA D1321F-1 Input Module
  • KEBA E-32-D Digital Input Card
  • KEBA C5 DM570 Digital Module
  • KEBA XE020 71088 Module
  • KEBA E-16-DIGOUT Digital Output Card