Connections describe communication between two devices. In the following case, the connection must be configured:
Established between the two SIMATIC S7 S7 communication (“communication via aconfiguration connection“).
Communication partners are not SIMATIC S7.
Note: for programming and debugging, programming the device directly connected online to the MPI network, does not require configuration connection. If you are programming the device reached the configured on other connected nodes on the network, it must be configuration, programming devices of connection: network workstation the double-click to select PG/PC in the object list; in the network window, double click to open PG/PC; select the interface and configure it to a network.
1. Join tables
Communications connection configuration in the connection table. Condition has created a project with all workstations that need to Exchange data, and has a communications module has been configured to network.
CPU container objects in the Connections (connections) indicates that the connection table, double-click on it to start the network connection, as in the project on the network, double-click in the container.
The connection configuration, network configuration, select a S7-400 CPU. In the network window is the connection in the lower part of the table (as shown in table 2-1,if you do not see the table, position the mouse pointer on the bottom edge of thewindow, widen the window edge after deformation the mouse pointer). Insert → New Connection or double-click on an empty row to enter the new communication connection.
For each “active“ CPU to create junction table. Please note, you cannot create a junction table for S7-300 CPU, S7-300 CPU only as S7 connection in the “passive“ partner.
In the “Insert New Connection (insert a new connection)“ in the window “Station (station)“ and “Module (module)“ dialog box, select the communication partners (as shown in Figure 2-6), stations and modules must already exist. This window also determines the type of communication.
Communications connection configuration
If you want to set more communication features, activate the check box “Before inserting:display properties (insert: display characteristics)“.
All the data connections table includes the configuration connection. If you want todisplay more clearly, select View → View → Display Columns and Optimize Column width.
2. Connection ID
The number of connections associated with the CPU. STEP 7 define a connection IDfor each connection and each partner. When using a communication block in your program, it is necessary to use this definition.
You can modify the local ID (the module ID of the connection being opened). If thecommunication block has finished programming, and local ID to define the connection, it is necessary to use this function.
Enter a hexadecimal number as a new local ID. This number must be in the following range, depending on the connection type, and there is no use:
S7 connection, a range of values is 0001H~0FFFH
S7 ‘s S7 connection can be mounted (S7-300), a range of values is 0001H~008FH
For point to point connections, a range of values is 1000H~1400H
Changing partners (communication objects) when the ID, enter the partner connection table changes after the local ID of the CPU (which is local): select the connectionline and choose Edit → Object Properties. If STEP 7 does not enter a partner ID, thenit is a one-way connection (see below).
This column displays the connection partner. If you want to save the connection source for a unnamed partners, then in the workstation dialog box, enter “unspecified(unspecified)“.
In a one-way connection, communication can only be initiated by a partner, such asS7-400 and S7-300 ‘s S7 communication. Even if S7-300 CPU S7 communication function, or S7-400 CPU with SFB 14 GET and SFB 15 PUT to Exchange data. S7-300 CPU, users without this communication process, handled by the operating system fordata exchange.
One-way connection in the “active“ CPU configuration in the connection table, STEP7 to configure “local ID“, just loading the connection on the local workstation.
For bidirectional connections, both partners can initiate communication, such as two communication SFB 8 SEND and SFB 9 BRCV S7-400 CPU.
As long as the configuration of one of the two partners can be a two-way connection, STEP 7 and then configure “local ID“ and “partner ID“, and generated for two workstations to connect to data. Load for each partner must be given its own connections table.
4. Connection type
STEP 7 basic package provides the following types of connections in the network configuration:
Point to point connections, allowing PTP S7 communication network [3964 (r) and RK 512 program]. PtP (point to point) connection is a serial connection between the two partners. Can be two SIMATIC S7 with appropriate interface device, or CP, or they can be non-Siemens SIMATIC S7 devices and equipment, such as printers or barcode reader.
S7, S7 MPI, PROFIBUS or industrial Ethernet network. S7 connection is a connectionbetween SIMATIC S7, including programmable devices and human interfacedevices. Data exchanged through S7 connection, or programming and performing control functions.
Fault-tolerant S7 connection for use of industrial Ethernet and PROFIBUS S7 communication network. Fault-tolerant S7 connection is established between the fault-tolerant SIMATIC S7, can also be used on a suitably equipped PC.
Software components “SIMATIC NCM” is part of STEP 7, use to set parameters for CP. The following connection types to choose from: FMS, FDL connect connection, ISO transport connection ISO connection, based on TCP, TCP connections, UDP and E-mail connections.
5. Establish an active connection
Before the actual data transfer, we must establish a connection (initialize). If partners have the ability to specify which device to establish a connection, use check box inthe connection properties window “Active Connection Buildup“ to specify (select connection, and then choose Edit → Object Properties).
6. Send status message
Configured for bi-directional connection partners can exchange status messages. Ifthe local node operational status message to be sent, activate the corresponding check box in the connection properties window. CPU users in partner program, SFB 23USTATUS for these messages can be received.
7. Connection path
Connection properties window shows the end of the connection endpoints and connections running network, this is the connection path. If there is a choice of severalsub-networks, STEP 7 the selection order is: industrial Ethernet, industrial Ethernet,/TCP-IP, MPI, and finally the PROFIBUS.
Running connect workstations and CPU as the end of the connection Endpoints. Module with communications capabilities in the “Interface (interface)“ is listed, and alsodetermine the frame number and the slot. If the CPU is in the same frame (such as the S7-400 CPU in multiprocessor mode), the display box shows “PLC intemal (PLC)“.
In the “Type (type)“, and select the network connections run. For example, if two partners is available in the same “MPI” on the network, and on to a PROFIBUS networkare “Type. (Type) “is specified as“ MPI “. You can now change the description “PROFIBUS” STEP 7 will automatically change the other settings. In the “Address (address)“see the MPI or PROFIBUS address of the node.
8. Connection between the projects
To belong to a different Exchange data between two S7 SIMATIC project module, enter in the table for this connection partners “unspecified (unspecified)“ (in two projects for the local workstation).
Verify that the connection data in the two projects together (STEP 7 does not test), save and compile the connection data is loaded into the local workstation for each project.
If the project went on to become a part of multiple projects and its connecting partners in a project of this multiple item, select “In unknown project (unknown)“ as theconnection partner, and then in the Properties window, enter the connection nameestablished (refer to).
9. Connect the S7 station
In a project, you can also define S7 workstation workstations as connectionpartners:
Other stations (non-Siemens S7 workstation in the equipment and other items)
SIMATIC S5 workstation
Prerequisites for configuration, this connection is S7 workstation project exists as anobject in a container, and you have workstation characteristics will be S7 workstation–connected to the network (such as network configuration, select workstation, useEdit → Object Properties in the “Interface (interface)“ tab on a workstation connected to the network of hope).