EasyManuals Logo
Home>Siemens>Computer Hardware>SIMATIC NET CP 243-1

Siemens SIMATIC NET CP 243-1 User Manual

Siemens SIMATIC NET CP 243-1
82 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 #71 background imageLoading...
Page #71 background image
09/02 Example
CP 243-1
J31069-D0428-U001-A1-7618
67
Appendix B Example
The following example shows how the CP243-1 is handled as a client. It explains
how subroutines generated by the Ethernet Wizard, which is integrated in STEP 7
Micro/WIN 32, at the end of configuration are used in the program. The data block
in which the associated configuration is stored by the Ethernet Wizard is presented
after the program code.
The sample program provided here and the associated configuration is contained
on the QuickStart CD for SIMATIC NET as a STEP 7 Micro/WIN 32 project. To run
this program, a second S7-200 system on which an appropriately configured server
will run must be accessible through Ethernet.
Program code
Project name: Beispielprogramm_Client
Version: 01.00
Date 25.07.2002
Target hardware: CPU 224 with CP 243-1 in slot 0
Description: Sample program for communication between 2 S7-200 stations
via Industrial Ethernet.
A character string ("CP243") that is stored at address VB200 and higher and that
has a length of 5 bytes is sent from the local S7-200 system to another S7-200
system, stored there at the same address and then read back from there. This pro-
cedure is repeated continuously.
The associated server must be configured as a corresponding counterpart. The
user program that runs on the server merely has to call up the ETHx_CTRL sub-
routine. Calls of the ETHx_XFR subroutine are not required for operating the ser-
ver.
The CRC check is switched on.
The configuration (IP address, ...) must be adapted to the current conditions. The
"CP243" character string must be stored at address VB200 and higher.
Copyright: SIEMENS AG, A&D PT2 (c) 2002
NETWORK 1
The ETHT0_CTRL subroutine initializes and monitors the CP 243-1.
The SM0.0 status bit is generated at input "EN". It ensures that the subroutine is
always active. As soon as the CP 243-1 has finished booting, the "CP_Ready" and
"CH_Ready" outputs are set. If an error occurred in the configuration, the "Error"
output is set. The error code that is carried over is stored in flag word 2. It can be
read out in the status table.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SIMATIC NET CP 243-1 and is the answer not in the manual?

Siemens SIMATIC NET CP 243-1 Specifications

General IconGeneral
BrandSiemens
ModelSIMATIC NET CP 243-1
CategoryComputer Hardware
LanguageEnglish

Related product manuals