CP343-1 LEAN S7 Connection: Configuring Cross-Project Links
The error message appears when you insert an S7 connection in the CPU 300 project that carries the CP343-1 LEAN: NetPro reports that the equipment does not allow the S7 connection or a bilateral S7 connection. This is a hardware limitation, not a configuration mistake, and it dictates which side of the link must hold the connection.
Why the CP343-1 LEAN Rejects the Configured S7 Connection
It can act only as a server for S7 communication over an unspecified connection; no active (client) connection and no bilaterally configured connection may terminate on this CP. Your existing ISO-on-TCP link between the two CPU 300 stations is unaffected — it is a different communication service and continues to run in parallel with the new link.
Working Architecture: ET200S CPU as Client, LEAN as Server
The partner station is an ET200S CPU (IM 151-8 PN/DP CPU), whose integrated PROFINET interface supports S7 communication as the active partner. The viable design is one-directional: the ET200S CPU is the S7 client and executes FB14 “PUT” to write data into the CPU 300, while the CP343-1 LEAN simply serves the requests. Because PUT/GET communication requires connection configuration only on the client side, the LEAN limitation does not block the application — it only forces the connection to live in the ET200S project.
Configuring the Cross-Project S7 Connection in NetPro
For a link between two separate Step 7 projects, configure the connection once, in the project that contains the client CPU, against an unspecified partner:
- Open NetPro in the project containing the ET200S CPU and select the CPU.
- Insert New Connection, choose connection type “S7 connection”, and set the partner to “unspecified” (a station in another/unknown project).
- In the connection properties, enter the partner interface address — the IP address of the CP343-1 LEAN.
- Save and compile, then note the local connection ID NetPro assigns (hex value); FB14 needs this ID.
- Download the connection configuration to the ET200S CPU. No connection download is required — or possible — on the CPU 300 / CP343-1 LEAN side for this link.
Calling FB14 PUT and Verifying the Link
Call FB14 cyclically on the ET200S CPU and trigger each write job with a rising edge on REQ:
CALL "PUT", "DB_PUT" (
REQ := #trigger_pulse,
ID := W#16#0001,
ADDR_1 := P#DB10.DBX0.0 BYTE 10,
SD_1 := P#DB20.DBX0.0 BYTE 10,
RET_VAL:= #ret_val,
BUSY := #busy_flag,
DONE := #done_flag,
ERROR := #error_flag
);
The W#16#0001 ID and the DB addresses above are placeholders — use the actual connection ID from NetPro and existing DB areas on both CPUs. Verify by pulsing REQ for one scan: ERROR must remain 0 and DONE must pulse 1. If ERROR = 1, read STATUS and check the partner IP in the connection properties, plus that the target DB exists in the CPU 300 with sufficient length. Confirm data arrival by monitoring the target DB online in the CPU 300 project. For supported services and connection resources between these CPUs, verify against the Siemens compendium “CPU-CPU communication with SIMATIC controllers”.
Frequently Asked Questions
Why does NetPro say the CP343-1 LEAN does not allow an S7 connection?
Configure the connection on the partner CPU instead. The CP343-1 LEAN cannot initiate connections; it can only act as an S7 server.
How do I create an S7 connection between two different Step 7 projects?
Configure it once in the client project: in NetPro insert an S7 connection with an “unspecified” partner, enter the partner interface IP manually, and download only to the client CPU.
Which block writes data from an ET200S CPU to a CPU 300 with a CP343-1 LEAN?
FB14 “PUT”, called on the ET200S CPU with ID equal to the connection ID assigned in NetPro and ADDR_x pointing at the CPU 300 target area; the CP343-1 LEAN serves the request with no configuration on its side.
CP343-1 LEAN S7 Bağlantısı: Projeler Arası Link Yapılandırması
CP343-1 LEAN taşıyan CPU 300 projesinde bir S7 bağlantısı eklediğinizde şu hata mesajı görünür: NetPro, donanımın S7 bağlantısına veya çift taraflı (bilateral) S7 bağlantısına izin vermediğini bildirir. Bu bir konfigürasyon hatası değil, tamamen donanımsal bir sınırlamadır ve bağlantının hangi CPU tarafında kurulması gerektiğini belirler.
CP343-1 LEAN Neden Yapılandırılmış S7 Bağlantısını Reddeder?
CP343-1 LEAN, belirtilmemiş (unspecified) bir bağlantı üzerinden S7 haberleşmesi için yalnızca sunucu (server) rolünde hareket edebilir; bu CP üzerinde hiçbir aktif (client) bağlantı veya çift taraflı yapılandırılmış bağlantı sonlandırılamaz. İki CPU 300 istasyonu arasındaki mevcut ISO-on-TCP bağlantınız bu durumdan etkilenmez — bu farklı bir haberleşme hizmetidir ve yeni link ile paralel olarak çalışmaya devam eder.
Çalışma Mimarisi: İstemci Olarak ET200S CPU, Sunucu Olarak LEAN
Karşı istasyon, entegre PROFINET arayüzü S7 haberleşmesini aktif ortak (client) olarak destekleyen bir ET200S CPU’dur (IM 151-8 PN/DP CPU). Uygulanabilir tasarım tek yönlüdür: ET200S CPU, S7 istemcisidir ve CPU 300’e veri yazmak için FB14 “PUT” bloğunu çalıştırır; CP343-1 LEAN ise gelen istekleri yanıtlar. PUT/GET haberleşmesi yalnızca istemci tarafında bağlantı konfigürasyonu gerektirdiğinden, LEAN sınırlaması uygulamayı engellemez — sadece bağlantının ET200S projesinde barındırılmasını zorunlu kılar.
NetPro’da Projeler Arası S7 Bağlantısının Yapılandırılması
İki ayrı Step 7 projesi arasındaki bir bağlantı için, konfigürasyonu istemci CPU’yu içeren projede belirtilmemiş (unspecified) bir ortak ile bir kez yapılandırın:
- ET200S CPU’yu içeren projede NetPro’yu açın ve CPU’yu seçin.
- Yeni Bağlantı Ekle (Insert New Connection) seçeneğini seçin, bağlantı tipini “S7 connection” yapın ve ortağı “unspecified” (başka/bilinmeyen bir projedeki istasyon) olarak ayarlayın.
- Bağlantı özelliklerinde, karşı istasyon arayüz adresini — yani CP343-1 LEAN’in IP adresini girin.
- Kaydedip derleyin, ardından NetPro’nun atadığı yerel bağlantı kimliğini (hex ID) not edin; FB14 bloğu bu ID’ye ihtiyaç duyar.
- Bağlantı yapılandırmasını ET200S CPU’ya yükleyin. Bu bağlantı için CPU 300 / CP343-1 LEAN tarafında herhangi bir yükleme yapılması gerekmez ve zaten mümkün değildir.
FB14 PUT Çağrısı ve Bağlantının Doğrulanması
ET200S CPU’da FB14 bloğunu periyodik olarak çağırın ve her yazma işlemini REQ girişinde yükselen bir kenar ile tetikleyin:
CALL "PUT", "DB_PUT" (
REQ := #trigger_pulse,
ID := W#16#0001,
ADDR_1 := P#DB10.DBX0.0 BYTE 10,
SD_1 := P#DB20.DBX0.0 BYTE 10,
RET_VAL:= #ret_val,
BUSY := #busy_flag,
DONE := #done_flag,
ERROR := #error_flag
);
Yukarıdaki W#16#0001 ID’si ve DB adresleri temsilidir — NetPro’dan aldığınız gerçek bağlantı ID’sini ve her iki CPU’daki mevcut DB alanlarını kullanın. REQ sinyalini bir tarama (scan) süresince lojik-1 yaparak doğrulamayı gerçekleştirin: ERROR çıkışı 0 kalmalı ve DONE çıkışı anlık olarak 1 olmalıdır. Eğer ERROR = 1 ise, STATUS değerini okuyun, bağlantı özelliklerindeki karşı IP adresini kontrol edin ve hedef DB’nin CPU 300 içinde yeterli uzunlukta var olduğundan emin olun. CPU 300 projesinde hedef DB’yi çevrimiçi izleyerek verilerin ulaştığını doğrulayın. Bu CPU’lar arasında desteklenen servisler ve bağlantı kaynakları için Siemens’in “SIMATIC denetleyicileri ile CPU-CPU haberleşmesi” adlı el kitabını inceleyin.
Sıkça Sorulan Sorular
NetPro neden CP343-1 LEAN’in S7 bağlantısına izin vermediğini söylüyor?
Bağlantıyı bunun yerine karşı taraftaki CPU’da yapılandırın. CP343-1 LEAN bağlantı başlatamaz; yalnızca S7 sunucusu olarak çalışabilir.
İki farklı Step 7 projesi arasında nasıl S7 bağlantısı oluştururum?
İstemci projesinde bir kez yapılandırın: NetPro’da “unspecified” ortaklı bir S7 bağlantısı ekleyin, karşı IP’yi manuel girin ve konfigürasyonu yalnızca istemci CPU’ya yükleyin.
Bir ET200S CPU’dan CP343-1 LEAN taşıyan bir CPU 300’e veriyi hangi blok yazar?
FB14 “PUT” bloğu kullanılır. ET200S CPU tarafında, NetPro’da atanan bağlantı ID’si ve CPU 300 hedef alanını gösteren ADDR_x pointer’ı ile çağrılır; CP343-1 LEAN ise kendi tarafında hiçbir konfigürasyon gerektirmeden bu isteğe yanıt verir.