Welcome to the Industrial Automation website!

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

S7-300 CPU 31xC 和 CPU 31x

来源: | 作者:佚名 | 发布时间 :2023-11-20 | 963 次浏览: | 🔊 Click to read aloud ❚❚ | 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


  • PHOENIX ST-SI-UK4 Fuse Terminal Block
  • PHOENIX FLMC10BASE-T/FO G850 Fiber Media Converter
  • PHOENIX CONTACT QUINT-PS-100-240AC/24DC/40 Power Supply
  • PHOENIX CONTACT QUINT-DIODE/40 Redundancy Module
  • Phoenix Contact 2884208 Wireless I/O MUX
  • Photonetics 3646 HE 1540 Tunable Laser Source
  • PI C-663.12 Mercury Multi-Axis Step Motor Controller
  • PI C-663.10 Mercury Step Motor Controller
  • Pillar CB6687-2L Industrial Communication Board
  • Pilz DE-106712 A.F.051.5/01 Safety Module
  • Pilz 680003 Safety Relay Module Set
  • Pilz 301140 PNOZ X3 Safety Relay
  • Pilz P1U-1NB Safety Relay
  • Pioneer PM3398B-6-1-3-E Power Supply
  • Pioneer Magnetics PM3326B-6-1-2-E Power Supply
  • Pioneer Magnetics HYRSP-1500-56 Power Supply
  • Pioneer Magnetics PM3398B-6-1-3-E Power Supply
  • Pioneer Magnetics PM3328BP-6 Power Supply
  • Potter & Brumfield SDAS-01-7Y2S1024 Relay
  • Powec PMP10.48 SIC High-Efficiency Rectifier
  • Powerbox PU200-31C Industrial DC-DC Converter
  • PIONEER MAGNETICS PM3398BP-6-1-3-E Power Supply Module
  • PIONEER MAGNETICS PM1253AL-6-3-Z03 Power Supply Module
  • Powerex PD411811 Rectifier Diode Module
  • Power-One MAP55-1024 AC-DC Power Supply
  • ProSoft MVI56-MDA4 ControlLogix Multi-Protocol
  • POLYSPED PRD2-200 Industrial Drive Module
  • P-OPEN P-OPEN-P4-150 PAC-OP150 Operator Panel
  • ABB Processor 958481321210 350211080320 Rugged CPU
  • ABB Processor 958481320201 350211080460 Safety CPU
  • ABB Processor 958481321200 350211080320 CPU Module
  • ABB Processor 958481321220 350211080320 CPU Module
  • ABB Processor 958481320100 350211080090 CPU Module
  • Pro-Face PL5901-T42-24V HMI Touch Panel
  • PROFIBUS PB3-VME-1-E V1.2.2 Interface Card
  • PROMESS 850040060P Force Displacement Monitor
  • PROSOFT AN-X2-AB-DHRIO DH+ and Remote I/O Gateway
  • PROSOFT RLX2-IFH24E Industrial Wireless Radio Module
  • PROSOFT 5202-DFNT-MCM4 DF1 to EtherNet/IP Gateway
  • PROSOFT PLX35-NB2 EtherNet/IP to Modbus TCP Gateway
  • ProSoft 5201-MNET-MCM-WEB Modbus TCP/Serial Gateway
  • ProSoft 5304-MBP-PDPMV1 Modbus Plus to PROFIBUS DP Master
  • ProSoft 5302-MBP-MCM4 Modbus Plus to Modbus Master/Slave
  • ProSoft 5301-MBP-DH485 Modbus Plus to DH485 Gateway
  • ProSoft 6104-WA-PDPM Wireless PROFIBUS DP Master
  • ProSoft MVI56-LTQ ControlLogix Limitorque Master
  • Prosoft 5304-MBP-PDPM PROFIBUS Master Module
  • Prosoft 1452-25M Relay Output Module
  • Prosoft MVI56-MNETR Modbus TCP/IP Module
  • Prosoft MVI69L-MBS Modbus Serial Module
  • Prosoft PLX32-EIP-SIE Ethernet Gateway
  • Prosoft MVI56-PDPS PROFIBUS DP Slave Module
  • Prosoft PMF1327205 Gateway Module
  • Prosoft PMF1216D61 FOUNDATION Fieldbus Module
  • PROSOFT MVI56-GSC Generic Serial Communication Module
  • PROSOFT 5601-RIO-MCM Remote I/O Communication Module
  • PROSOFT 1454-9F Communication Interface Module
  • PROTECH SYSTEMS PBI-6SA Industrial Single Board Computer
  • PRSTECH DMP10.24-20 DIN-Rail Power Supply
  • PRT PSA300R-81 Industrial Power Supply Module
  • PULS SLA8.100 AS-Interface Power Supply
  • QSI QTERM-K65 Industrial Operator Interface
  • R-2528Z R-2528Z Industrial Specialized Component
  • Radisys SBC486DX66 Single Board Computer
  • Radisys EPC-5 with EXM-13 Embedded System
  • Radisys EPC-16 Embedded Computer
  • Ramix PMC676TX PMC Ethernet Adapter
  • Ramix PMC008A PMC-to-VME Adapter
  • Ramix PMC237C-008EMI PMC Carrier
  • Ramix PMC661J PMC Carrier Board
  • Renata CR2450N Lithium Battery
  • Renault Circuit CU-8593-IND.A Control Module
  • Reotron 567LH-DP24 Voltage Regulator
  • RIFA IC693PWR321U GE Fanuc Series 90-30 Power Supply
  • RKC REX-B871NN-CS1B Intelligent Controller
  • RKC B871-RCU Digital Temperature Control Unit
  • ROBICON 469718 Variable Frequency Drive Control Board
  • IAI ROBO CYLINDER RC-S5-M-50-M Electric Actuator
  • Robo Cylinder RCA-T Electric Actuator
  • Rockwell 0-60066 Relay Output Module
  • Rockwell TC-303-02-4M0 Power Cable
  • Rockwell TC-302-02-4M0 Encoder Cable
  • Rockwell TC-205-02-8M5 Cable Assembly
  • Rockwell SA3100 AC Drive
  • Rockwell Automation T9110 Processor Module
  • Rockwell Automation 56AMXN I/O Module
  • ROD-L M100DC-5-10 High Voltage Dielectric Withstand Tester
  • ROE ELKO RAUH ⅡA 2200MFD 40V Electrolytic Capacitor
  • ROEMHEKD D35321 Hydraulic Clamping and Power Component
  • Rofin Laser HG-24 Industrial Laser Marking and Processing System
  • Ropex RES-402/400VAC Temperature Controller
  • Rorze RD-023MS Stepping Motor Driver
  • Rosemount 3D39861G01 Circuit Board Assembly
  • Rosemount SCL-C-003-M2 Interface Module
  • Rosemount 3051TG2A2B21AB4M5 Pressure Transmitter
  • ROSS 400C79 Pneumatic Valve Coil
  • RPSTECH DMP10.24 SIC DIN Rail Power Supply
  • RS NX-X16D Digital Output Module
  • RVSI SCANSTAR240 Barcode Scanner
  • SABO MPB.533.00 PLM500 PLC Module
  • SAC IOP313 Analog Input Module
  • SAC IOP310 Industrial I/O Module
  • GE P111-6052 Micro Controller Module
  • Samsung D0C-16C Digital I/O Control Module
  • SAMWONTECH TLC990ME-83 Multi-Channel PID Controller
  • SanDisk SDP3B-10 Industrial Flash Storage
  • SAC IOP351 Advanced Processor
  • SAC IOP331 Input/Output Processor Technical
  • Saftronics EZ6 40 Soft Starter Manual
  • Sagemcom 252720938AB Signal Processor
  • Sagemcom 252721117AC Interface Module
  • Sagemcom 252721013AF Controller
  • SAIA PCD2.W610 Analog Output Module
  • SAIA PCD3.R60X Flash Memory Storage Module
  • SAT RM3141-01-02 CM3141-01-02 System
  • SAT CM3142-01-03 CX3147-04 Overview
  • SAT CM3141-02-03 CX3149-05 Technical Manual
  • Sauter AVM234SF132 Valve Actuator Specs
  • SBS PFSK165 3BSE027778R1 Technical Specs
  • SBS VIPC616 91611524 VME Carrier Board
  • SBS PMC-HS-SERIAL Interface Module
  • Schenck FNT-L001 Network Terminal Guide
  • Schenck VEG20400 Weighing Electronics Specs
  • Schiele DL42N-22 Multi-Function Relay
  • Schiele DL22N-22 Monitoring Relay Specs
  • Schleicher SSY52 Safety Control Unit Manual
  • Schleicher UST21 Control Module
  • SanDisk 336A4940EZP1 Industrial SSD