Sei sulla pagina 1di 37

6,0$7,&1(74XLFN6WDUW

Industrial Ethernet Communication: S7 CP 443-1 ISO with S5 CP 1430 SEND/RECEIVE


1
1 About this Document
This document contains information on the samples for Industrial Ethernet
communication between an S7 and an SIMATIC S5 station using the
LSEND/LRECEIVE service on the basis of the ISO protocol.
For a brief overview of this sampIe, refer to Chapter 2.
For detaiIed information, refer to Chapter 3 and the chapters
foIIowing.
The document covers the following topics:
System structure
Introduction to the required blocks and their communication structure
Program structures and extracts of code
Operator control and monitoring
Troubleshooting
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with CP 1430 SEND/RECEIVE
2
2 Overview of the SampIe
Schematic of the System
Checking the FunctionaIity of the SampIe
The variable table of the active S7 station allows you to determine if the sample is
functioning correctly. The variable table is contained in the Blocks folder of the
STEP 7 project.
Data being sent and received has continuously changing values (see also
"Operator Control and Monitoring").
PG/PC with STEP 7 and STEP 5
as
MPI port
PG interface on
CPU and CP
Active Partner
S7-400 Station
Passive Partner
S5 Station
Local Ethernet with
hub, e.g., ELM
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with S5 CP 1430 SEND/RECEIVE
3
Function Diagram
The following diagram illustrates how the sample works:
Data Exchange
400 bytes of data are exchanged cyclically by the stations involved in communication.
Active / Passive Partner
The active partner initiates connection establishment and the sending of new data. The
passive partner returns the received data to the active partner. Return means that
received data is sent back after it has been completely received.
Connection Type
The ISO protocol is used in this sample. This means that a connection of the type "ISO
connection" must be configured.
Prepare data
for sending
Save received
data
Receive data and copy
it to the send buffer
Send data (400 bytes)
Send data (400 bytes)
Active SIMATIC S7-400 Station Passive SIMATIC S5 Station
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with CP 1430 SEND/RECEIVE
4
Program Overview
Description of the active end:
An "AG_LSEND" FC is called every cycle to
send 400 bytes of data.
Parallel to the send job an "AG_LRECV" FC
is called to fetch data from the CP.
The data is saved once it has been
completely received.
Once the RECEIVE job has been processed
without error, the first word in the send data
area is incremented by 1 and the receive
cycle begins again.
Description of the passive end:
A "RECEIVE" FB is triggered in every cycle.
When the "RECEIVE" FB signals newly
received data, "SEND" FB is triggered with
the newly received data to send the
received data back.
The RECEIVE ALL and SEND functions run
in the background to receive and return the
data.
AG_LRECV
AG_LSEND
MY_RECEIVE_CALL
MY_SEND_CALL
FC40
FC41
FC50
FC60
Passive End (S5) Active End (S7)
SEND
FB40
FB-RECEIVE
FB121
FB-SEND
FB120
FB41
RECEIVE
OB1
OB1
SEND/
RECEIVE-
ALL
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with S5 CP 1430 SEND/RECEIVE
5
Operator ControI and Monitoring
An operator control and monitoring function is available using the supplied variable
table.
The following conditions must be met to allow you to use the "Monitoring and
Modifying Variables" program:
There must be an online connection to the CPU.
"Monitor variables" must be activated.
The values to be modified must be marked as valid.
If the conditions listed above are met, you can determine whether the sampIe is
functioning correctIy by observing that the data sent and received from the active
station is changing continuousIy.
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with CP 1430 SEND/RECEIVE
6
3 System Structure
This chapter lists the hardware and software required to run the sample.
Note
Scope of AppIication of this Document
The content of this document assumes a specific configuration (CP 443-1 at the
active end, CP 1430 TCP at the passive end).
This documentation can, however, be used for all SEND/RECEIVE samples of
communication between a SIMATIC S7 and a SIMATIC S5 station.
GeneraI Structure
Bus system Industrial Ethernet
Communications protocol ISO
Active End SIMATIC S7
Passive end SIMATIC S5
Communications processors CP 443-1, CP 1430
Services SEND / RECEIVE with long data
The sample uses the ISO protocol. Using this protocol and the SEND / RECEIVE
services for long data there is data exchange between SIMATIC S7 and SIMATIC
S5 stations. A CP 443-1 for the ISO protocol is used as the communication
processor in the active SIMATIC S7-400. A CP 1430 is used at the passive
SIMATIC S5 end.
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with S5 CP 1430 SEND/RECEIVE
7
Hardware Required for the Active End
SIot ModuIe
1 PS407 10A
3 CPU 414-1
4 CP 443-1
Note
The CPs should be version 3.0 or later.
You can check the version of the CP using NCM S7 INDUSTRIAL ETHERNET
Diagnostics (Start -> Simatic -> NCM S7 IndustriaI Ethernet -> IndustriaI
Ethernet Diagnostics).
If your CPs are earlier than version 3.0 it is possible to update their software
(download a new version from Internet/Intranet and load it into the CP with the
NCM S7 Industrial Ethernet firmware loader).
Note
Using a different CPU
If you want to use a different CPU for the sample, please read the document
"Change_CPU".
Note
Using a different CP
If you want to use a different CP for the sample, please read the document
"Change_CP".
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with CP 1430 SEND/RECEIVE
8
Hardware Required for the Passive End
SIot ModuIe
1 CPU 135 U
2 CP 1430 TF
!
Caution
The samples relate to specific hardware configurations. These must exist to
ensure problem-free operation.
If you want to use a different configuration, you must make modifications (refer to
the notes below).
CabIes and Other Hardware Required
MPI cable
Ethernet cable: Type depending on the medium used, for example, AUI or ITP
Hub or fan-out unit, for example, ELM, SSV 104
PG or PC with MPI port
Required Software
You require the following software to run the sample:
Microsoft Windows 95 or Windows NT 4.0 as the operating system
STEP 7 V4.021 or later (See also "Note")
NCM S7 INDUSTRIAL ETHERNET for STEP 7 V4.021
STEP 5 V6.65 or later
SINEC NCM COM for CP 1430, Version V5.01 or later
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with S5 CP 1430 SEND/RECEIVE
9
4 Introduction to the Required BIocks and their
Communication Structure
This chapter covers the following topics:
How the sample works
Blocks required for communication and their communication structure
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with CP 1430 SEND/RECEIVE
10
4.1 How the SampIe Works
Data Exchange
2 bytes of data are exchanged cyclically by the stations involved in communication.
Active / Passive End
The active SIMATIC S7 end initiates the SEND / RECEIVE function. The passive
SIMATIC S5 end receives the data and sends it back to the active end.
Industrial Ethernet with the ISO protocol is used as the network medium.
Step-by-Step Execution of the User Program at the Active End
SEND:
A data block of 2 bytes is sent to the passive partner in every cycle.
RECEIVE:
A receive job is triggered in every cycle and, depending on the return value, the
received data is written to the receive buffer.
Incrementing data:
The value of the data to be sent is incremented by 1 and the send/receive cycle
starts again.
Step-by-Step Execution of the User Program at the Passive End (SIMATIC S5)
SEND:
A send job is triggered when new data is received.
RECEIVE:
A receive job is triggered at the passive end every cycle. When new data is
received, it is entered in the common receive/send buffer.
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with S5 CP 1430 SEND/RECEIVE
11
4.2 BIocks Required for Communication and their
Communication Structure
This chapter provides a detailed description of the AG_LSEND and AG_LRECV
blocks required for SEND / RECEIVE communication.
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with CP 1430 SEND/RECEIVE
12
4.2.1 S7 Function AG_LSEND (FC50)
Purpose of the BIock
The AG_LSEND function (FC) transfers data from the specified send buffer of the PLC
to the configured partner station. The send buffer pointer can point to a process image
area, a bit memory area, or a data block area. The length of the data field to be sent
must not exceed a maximum of 8 Kbytes.
The addresses and TSAPs of the partners are specified during configuration and are
assigned a connection ID with which the AG_LSEND function sends the data.
The bIock parameters are described in detaiI in Chapter 5.
4.2.2 S5 Function SEND (FB120)
Purpose of the BIock
The function block sends the PLC data from the specified send buffer to the specified
address area of the CP.
The addresses and TSAPs of the partners are set in the CP configuration.
The bIock parameters are described in detaiI in Chapter 5.
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with S5 CP 1430 SEND/RECEIVE
13
4.2.3 S7 Function AG_LRECV (FC60)
Purpose of the BIock
The AG_LRECV function (FC) transfers data received from the partner station in the
specified receive buffer of the PLC. The receive buffer can reference a process image
area, a bit memory area, or data block area. The receive buffer must be at least as
long as the longest data field that can be expected.
The addresses and TSAPs of the partners are specified during configuration and are
assigned a connection ID with which the AG_LRECV function receives the data.
The bIock parameters are described in detaiI in Chapter 5.
4.2.4 S5 Function RECEIVE (FB121)
Purpose of the BIock
The function block transfers the CP data from the specified address area to the
specified send buffer of the PLC. The receive buffer can reference a process image
area, a bit memory area, or data block area. The receive buffer must be at least as
long as the longest data field that can be expected.
The addresses and TSAPs of the partners are set in the CP configuration.
The bIock parameters are described in detaiI in Chapter 5.
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with CP 1430 SEND/RECEIVE
14
5 Program Structures and Extracts of Code
This chapter introduces you to the structure of the program for both the active and
passive ends and important sections of code are shown and explained.
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with S5 CP 1430 SEND/RECEIVE
15
5.1 Program Structure of the Active Partner
No
Program/cycle start
Call
AG_LSEND
Error occurred
with
AG_LSEND?
Save error
number
Yes
Yes
No
Call
AG_LRECV
Error occurred
with
AG_LRECV?
AG_LRECV job
complete?
Save error
number
Increment send
data
Yes
No
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with CP 1430 SEND/RECEIVE
16
5.2 Extracts of Code for the Active Partner
5.2.1 Active End: SymboIs
SymboI TabIe Used for the Send / Receive SampIes
Uses
The use of symbols makes the code easier to read. The symbolic name then
appears in the program instead of the address.
Example: Instead of "MW50" you see "RECEIVE_DATA" in the code.
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with S5 CP 1430 SEND/RECEIVE
17
5.2.2 Active End: OB1
Purpose
OB1 is responsible for cyclic execution of the user program.
In this sample program, the blocks that implement the send / receive functionality
(AG_LSEND and AG_LRECV) are called.
CaII
OB1 is called in every CPU cycle.
Name
OB1
Code
Description
OB1 calls the blocks named "MY_SEND_CALL" (call FC AG_LSEND) and
MY_RECEIVE_CALL" (call AG_LRECV) in every cycle.
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with CP 1430 SEND/RECEIVE
18
5.2.3 Active End: AG_LSEND Job
Purpose
400 bytes of data are sent to the configured partner using the Send / Receive
service AG_LSEND.
CaII
Called within OB1.
Name
MY_SEND_CALL (FC40)
Code
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with S5 CP 1430 SEND/RECEIVE
19
Meaning of the Parameters for the S/R service "AG_LSEND"
ACT:
Edge signal for executing the block.
ID:
This identifier identifies the S/R connection (obtained with "CPU -> Connections").
LADDR:
This parameter provides the address of the local CP (assigned in "HW Config" and can
also be read out using "Netpro")
SEND:
Address of a local data area from which the values are transferred.
LEN:
Length of the data area to be sent.
DONE:
Indicates error-free execution of the job.
ERROR:
Indicates whether or not an error has occurred.
STATUS:
Provides detailed information about states or errors during execution of the job.
Description
CALL "AG_LSEND":
The S/R service "send data" is called. Depending on the "SEND_ERROR" bit, the
status word is saved or the function is exited using a conditional block end (BEC).
Summary
The send block is triggered in every cycle to send data from the send buffer
(DB40). When an error occurs during sending, the returned status value is saved in
a data block (DB43).
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with CP 1430 SEND/RECEIVE
20
5.2.4 Active End: AG_LRECV Job
Purpose
400 bytes of data are sent by the configured partner using the Send / Receive
service AG_LRECV.
CaII
Called within OB1.
Name
MY_RECEIVE_CALL (FC41)
Code
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with S5 CP 1430 SEND/RECEIVE
21
Meaning of the Parameters for the S/R Service "AG_LRECV"
ID:
This identifier identifies the S/R connection (obtained with "CPU -> Connections").
LADDR:
This parameter provides the address of the local CP (assigned in "HW Config" and can
also be read out using "Netpro")
RECV:
Address of a local data area from which the values are transferred.
NDR:
Indicates error-free execution of the job.
ERROR:
Indicates whether or not an error has occurred.
STATUS:
Provides detailed information about states or errors during execution of the job.
LEN:
Length of the data area to be sent.
Description
CALL "AG_LRECV":
The S/R service "receive data" is called. Depending on the "RECV_ERROR" bit,
the status value is saved. Otherwise the received data length is accepted and if
received correctly the data word is incremented.
Summary
The receive block is triggered in every cycle to receive data and write it to the
receive buffer (DB41). If an error occurs during sending, the returned status value
is saved to a data block (DB43). If no error occurs in reception the data is
incremented.
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with CP 1430 SEND/RECEIVE
22
5.3 Program Structure for the Passive Partner
Yes
Yes
No
Program/cycle start
Call RECEIVE
Error occurred
with RECEIVE?
Save error
number
Call SEND
with send bit
Receive
complete
Save error
number
Reset send bit
No
Yes
No
Error occurred
with SEND?
Call SEND/
RECEIVE-
ALL
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with S5 CP 1430 SEND/RECEIVE
23
5.4 Extracts of Code for the SIMATIC S5 Passive Partner
5.4.1 Passive End: OB1
Purpose
OB1 is responsible for cyclic execution of the user program.
The following sample program calls the blocks (SEND/RECEIVE) for executing the
send / receive functions.
CaII
OB1 is called in every CPU cycle.
Name
OB1
Code
OB1
Segment 1
: example for send/receive with
: data length 400 byte (ISO)
:
:
:JU FB 231 all functions for cp 1430
Name :ALL-SS 0
:
:JU FB 41 call receive function
Name :REC<-ISO
:
:JU FB 40 call send function
Name :SEND>ISO
:
:BE
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with CP 1430 SEND/RECEIVE
24
5.4.2 Passive End: SEND Job
Purpose
400 bytes of data are sent to the configured partner using the SEND FB (and
SEND-ALL) .
CaII
Called within OB1.
Code
FB 40
Segment 1
Name :SEND>ISO send to remote station (200 words)
:
:A F 45.7 "call-send-bit"
:JC FB 120
Name :SEND
SSNR : KY 0,0
A-NR : KY 0,2 order number (ncm1430)
ANZW : FW 56
QTYP : KS DB send buffer type is db
DBNR : KY 0,40 send buffer is db40
QANF : KF +1 send buffer offset is dw1
QLAE : KF +200 send length (200 word/400 byte)
PAFE : FY 54
:
:A F 57.5 anzw "data transfer completed"
:AN F 55.0
:= F 55.1 edge flag "data transfer
: completed"
:A F 57.5
:= F 55.0
:
:A F 55.1 edge flag "data transfer
: completed"
:AN F 54.0 no pafe by send
:R F 45.7 reset "call-send-bit"
:
:BE
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with S5 CP 1430 SEND/RECEIVE
25
Meaning of the Parameters for the "SEND" FB (FB120)
SSNR:
Interface number of CP 1430.
A-NR:
The job number identifies the S/R connection of the CP 1430.
ANZW:
Conditional code word (status) of the job.
QTYP:
Type of buffer area.
DBNR:
The DB number for data blocks.
QANF:
Offset within the buffer area.
QLAE:
Length of the area to be sent.
PAFE:
Error display of the block.
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with CP 1430 SEND/RECEIVE
26
5.4.3 Passive End: RECEIVE Job
Purpose
400 bytes of data received from the specified partner are sent to the CPU using the
RECEIVE FB (and RECEIVE-ALL).
CaII
Called within OB1.
Code
FB 41
Segment 1
Name :REC<-ISO receive data from remote station
:
:O F 0.0
:ON F 0.0
:JU FB 121 call receive data
Name :RECEIVE
SSNR : KY 0,0
A-NR : KY 0,1 order number (ncm 1430)
ANZW : FW 46
ZTYP : KS DB receive buffer type is db
DBNR : KY 0,40 db number is 40
ZANF : KF +1 receive buffer offset is dw1
ZLAE : KF -1 receive length is joker
PAFE : FY 44
:
:A F 47.6 anzw "data acceptance complete"
:AN F 45.0
:= F 45.1 edge flag "data acceptance complete"
:A F 47.6
:= F 45.0
:
:A F 45.1 edge flag "data acceptance complete"
:AN F 44.0 no pafe error
:S F 45.7 set "call-send-bit"
:
:BE
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with S5 CP 1430 SEND/RECEIVE
27
Meaning of the Parameters for the "RECEIVE" FB (FB121)
SSNR:
Interface number of CP 1430.
A-NR:
The job number identifies the S/R connection of the CP 1430.
ANZW:
Conditional code word (status) of the job.
ZTYP:
ID for type of receive buffer.
DBNR:
Number of the data block.
ZANF:
Offset of the receive buffer.
ZLAE:
Length of the data area to send. If "1" is set, the length of the data is obtained when
the data is received.
PAFE:
Process image error in executing the receive block.
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with CP 1430 SEND/RECEIVE
28
6 Operator ControI and Monitoring
This chapter covers the following topics:
Operator control and monitoring
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with S5 CP 1430 SEND/RECEIVE
29
6.1 Operator ControI and Monitoring
Note
If problems occur during operator control and monitoring, please read Chapter 7
Troubleshooting, Variable Table.
Monitoring
You can monitor the functions using the variable table provided with the sample.
The following table explains how to use the table.
Step Description
1 Insert this end of the MPI cable in the MPI port of the S7 CPU in the active
station
2 Select "Blocks" in the project window of the SIMATIC Manager under the active
station.
3 Double-click "VAT1".
4 In the program "Monitoring and Modifying Variables", select "PLC" ->
"Connect To" -> "Configured CPU".
5 To monitor the specified variable, select "VariabIe" -> "Monitor".
Note
The monitor function is active when "Online" is displayed in the status bar in the
"Monitoring and Modifying Variables" program and you can see a continuously
changing progress bar.
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with CP 1430 SEND/RECEIVE
30
After you have completed the steps above, you will see the following variable table
(the values may be different!):
SEND Parameter
In the upper part, "SEND", you can see the parameters of the AG_SEND
Send/Receive service.
If the sampIe is working correctIy:
Amongst other things, the parameter "SEND_DONE" (AG_LSEND job
compIete) shouId show a continuousIy changing status of "0" -> "1".
RECEIVE Parameter
In the lower part, "RECEIVE", you should observe the same for the Send/Receive
service, AG_LRECV.
If the sampIe is working correctIy:
Amongst other things, the parameter "RECV_NDR" (receive data) shouId
show a continuousIy changing status of "0" -> "1".
If the error output is set, you will see the status messages of the blocks in "last error
in program".
If the sampIe is working correctIy:
Due to the update cycIe of the variabIe tabIe, the written and read data shouId
be different.
If the sampIe is functioning correctIy, the data shouId be continuousIy
changing!
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with S5 CP 1430 SEND/RECEIVE
31
Note
The meaning of the values of the parameters for AG_LSEND and AG_LRECV is
explained in detail in the relevant documentation and in the NCM online help (for
example, "Start" -> "Simatic" -> "NCM S7 INDUSTRIAL ETHERNET" -> "HeIp
Functions (FC)" -> "EngIish".
Note
The sample is functioning correctly when the value of the data read and written
changes continuously.
! Dont forget!
The variable table must be online and monitoring must be active before the values
will be updated.
Operator ControI
You can call the functions using the variable table provided with the sample. How to
start and activate it was described above.
Note
To call up the functions, the variable table must be "Online" and "Monitor" must be
active so that the values can be updated (see above).
The following table shows you how to change the value of the data sent to (and
then read by) the passive end.
Step Description
1 Enter a value between 0 and 32767 in the last column ("Modify Value") of the
line "MW 52" "SEND_DATA" in the variable table.
2 Select "Variable" -> "Activate Modify Value"
Correct function:
If the value has been successfully modified, then value read should also return a
new value.
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with CP 1430 SEND/RECEIVE
32
Exiting Operator ControI and Monitoring
Step Description
1 Select "TabIe" -> "Exit" in the "Monitoring and Modifying Variables" program.
2 Click the "No" button in the subsequent dialog.
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with S5 CP 1430 SEND/RECEIVE
33
7 TroubIeshooting
This chapter is intended to help you if you encounter problems installing and
starting up the sample.
ProbIems DownIoading the Hardware Configuration, the Connection, or the
BIocks
Run the following checks.
If your answer is "NO" to a question, go straight to the corresponding steps in
"Remedies".
Step Description
1 Is the MPI cable connected to both the PG/PC and the S7 CPU?
2 In the "Setting the PG/PC Interface" program is the correct interface parameter
set assigned to the "Access point of application" "S7ONLINE (STEP 7)"? For
example, "MPI-ISA on board (MPI)" if you are using the PG-MPI port?
3 Is the hardware configuration in the project (offline configuration) identical in
every way with the actual configuration (online configuration)?
4 Has the CPU been reset?
Remedies
Correct the problem by working through the steps below if your answer was no to
one of the questions above.
Answer to Step 1 was "NO"
No connection can be established to the S7 CPU, it is not possible to download to
the CPU.
Step Description
1 Insert one end of the MPI cable in the MPI port on your PG or PC.
2 Insert the other end of the MPI cable in the MPI port of your S7 CPU.
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with CP 1430 SEND/RECEIVE
34
Answer to Step 2 was "NO"
No connection can be established to the S7 CPU, it is not possible to download to
the CPU.
Step Description
1 Start the "Setting the PG/PC Interface" program: "Start" -> "Simatic" -> "STEP
7" -> "Setting the PG/PC Interface".
2 Set the module you want to use as the MPI port in "Interface parameter
assignment used".
For example, "MPI-ISA on board (MPI)" if you are using the PG-MPI port.
3 Click the "OK" button.
Your answer to step 3 was "NO"
Step Description
1 Adapt the actual hardware configuration to that of the project or read the
documentation "Change_CPU" or "Change_CP" if you want to use a different
CPU or CP than the one used in the sample.
Your answer to step 4 was "NO"
Step Description
1 Reset your S7 CPU.
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with S5 CP 1430 SEND/RECEIVE
35
VariabIe TabIe: Written and read data do not change.
Run the following checks.
If your answer is "NO" to a question, go straight to the corresponding steps in
"Remedies".
Step Description
1 Is the Ethernet cable connected to both the active and passive stations?
2 When using Industrial Twisted Pair:
Is a plug-in transceiver connected to the CP 1413 station?
3 Can you see "Online" in the status bar of the variable table?
4 Can you see a continuously changing progress bar in the status bar?
Remedies
Correct the problem by working through the steps below if your answer was no to
one of the questions above.
The answer to step 1 was "NO"
No connection can be established between the stations and data exchange is not
possible.
Step Description
1 Connect one end of the Ethernet cable to the Ethernet port of the CP in the
active station.
2 Connect the other end to your hub or fan-out unit (SSV).
3 Repeat steps 1 and 2 for the passive station.
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with CP 1430 SEND/RECEIVE
36
The answer to step 2 was "NO"
No connection can be established between the two stations; without a plug-in
transceiver it is not possible to establish a connection using Industrial Twisted Pair.
Step Description
1 Install a plug-in transceiver between the twisted pair cable and the AUI port of
the S5 CP 143.
Your answer to Step 3 was "NO"
No connection was established to the S7 CPU and monitoring was not possible.
Step Description
1 In the program "Monitoring and Modifying Variables", select "PLC" ->
"Connect To" -> "Configured CPU".
Your answer to step 4 was "NO"
The monitoring function is not activated.
Step Description
1 Select "VariabIe" -> "Monitor" in the "Monitoring and Modifying Variables"
program.
6,0$7,&1(74XLFN6WDUW
Industrial Ethernet Communication: S7 CP 443-1 ISO with S5 CP 1430 SEND/RECEIVE
37
VariabIe TabIe: Operator controI is not working.
Run the following checks.
If your answer is "NO" to a question, go straight to the corresponding steps in
"Remedies".
Step Description
1 Have you activated "VariabIe" -> ,Modify VaIue VaIid" in the "Monitoring and
Modifying Variables" program?
2 Is the value you entered for memory word 52 (MW52) between 0 and 32767?
Remedies
Correct the problem by working through the steps below if your answer was no to
one of the questions above.
Your answer to step 1 was "NO"
Step Description
1 Select "VariabIe" -> "Modify VaIue VaIid" in the "Monitoring and Modifying
Variables" program.
Your answer to step 2 was "NO"
Step Description
1 Enter a value between 0 and 32767 in the last column ("Modify Value") of the
line "MW 52" "SEND_DATA" in the variable table.
Note
If you do not find the solution to your problem in this chapter, reinstall the sample.

Potrebbero piacerti anche