EasyManuals Logo

Siemens SIMATIC NET S7-300 User Manual

Siemens SIMATIC NET S7-300
317 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #92 background imageLoading...
Page #92 background image
4 SEND/RECEIVE Interface in the User Program
A-92
S7-CPs for Industrial Ethernet Configuring and Commissioning
Release 01/2007
C79000-G8976-C182-07
4.2 Programming the SEND/RECEIVE Interface
Principle of Job and Data Transfer
The user program triggers the transfer of the user data areas with FC calls and
monitors the transfer by evaluating the return codes of the FCs.
The following parameters are transferred when the FCs are called:
The number of the connection (ID)
The location of the user data area in the CPU
For detailed information about the call interface see Chapter 7.
Purpose of the FCs
Calling the function blocks has the following effects:
The user data area is transferred to the Ethernet CP or received from the
Ethernet CP.
The execution of the job is confirmed positively or negatively in a status
message.
Procedure
Program the SEND/RECEIVE interface in the user program as follows:
1. Use the following functions (FCs) for data transmission on connections:
- AG_SEND / AG_LSEND for transferring the user data area to the Ethernet
CP
- AG_RECV / AG_LRECV for entering data received from the Ethernet CP in
the user data area
2. Evaluate the following bits in the FCs:
- for AG_SEND / AG_LSEND the parameters DONE, ERROR, STATUS
- for AG_RECV / AG_LRECV the parameters NDR, ERROR, STATUS
Notice
Connection numbers (IDs) must be taken from the configuration when
programming.
To ensure correct parameter settings for the block calls, The LAD/STL/FBD editor
in STEP 7 provides you with the option of accepting all the relevant parameters
from the hardware configuration (HW Config) and from the connection
configuration. For more information, refer to Section 7.2

Table of Contents

Other manuals for Siemens SIMATIC NET S7-300

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SIMATIC NET S7-300 and is the answer not in the manual?

Siemens SIMATIC NET S7-300 Specifications

General IconGeneral
Product Type DesignationSIMATIC NET S7-300
MountingDIN rail mounting
Protection ClassIP20
CPU ModelsVarious models available (e.g., CPU 312, CPU 314)
Communication InterfacesMPI, PROFIBUS DP
Power Supply24 V DC power supply required. Different power supply modules available.
I/O ModulesDigital input modules, digital output modules, analog input modules, analog output modules
ProgrammingSTEP 7 software
Supply Voltage24V DC or 120/230V AC (depending on model)
Digital InputsAvailable via digital input modules
Digital OutputsAvailable via digital output modules
Analog InputsAvailable via analog input modules
Analog OutputsAvailable via analog output modules
Communication FunctionsMPI, PROFIBUS DP, Ethernet (depending on model)
ProtocolsMPI, PROFIBUS DP, TCP/IP (depending on model)
Operating Temperature0°C to 60°C
Storage Temperature70 °C
MemoryDepends on CPU model (e.g., 32 KB to 1.5 MB)

Related product manuals