很好的一天!
Good day!
我们工厂有两个CPU。i、 e.CPU 417-4H(6ES7 417-4HL04-0AB0)和s7-200(6AG1214-1BD23-2XB0)。带有两个IM153-2(153-2BA02-0XB0)和EM277 Profibus DP(6AG1277-0AA22-2XA0)的Y型耦合器(153-2BA 02-0XB)。概述请参见附图。
We have two CPUs in our plant. i.e. CPU 417-4H (6ES7 417-4HL04-0AB0) and s7-200 ( 6AG1214-1BD23-2XB0). Y-coupler (153-2BA02-0XB0) with two IM153-2 (153-2BA02-0XB0) and EM277 Profibus DP (6AG1277-0AA22-2XA0) . Please find attached picture for overview.
现在我面临的挑战是在两个PLC之间发送和接收数据。
Now the challenge for me is to send and receive data between two PLC.
s7200 V内存地址从V0.0到V28.7。
s7200 V memory address starts from V0.0 till V28.7.
输入V0.0至V3.7-类型bool
inputs V0.0 to V3.7 - type bool
输入VD4、VD8、VD12、VD16-类型Real
inputs VD4,VD8,VD12,VD16 - type Real
输出VD20、VD24-实型
outputs VD20, VD24 - type real
输入v28.0到v28.7-类型bool
inputs v28.0 to v28.7 - type bool
我已经根据V内存的数据类型在DB100(附图片)中分配了地址。使用FC100(附图片),我从PIW/PID加载输入并将其传输到相应的DB地址。类似地,对于来自s7200的输出,我正在加载相应的DB地址并将数据传输到相应的PQD。我正在为上面提到的所有V内存地址进行此练习。
I have assigned addresses in DB100 (picture attached) according to data type of V memory. Using FC100 (picture attached) I am loading inputs from PIW/PID and transfering it to respective DB addresses. similarly in case of outputs from s7200 I am loading respective DB addresses and transfer data to respective PQD. I am doing this practice for all above mentioned V memory addresses.
现在,关键是我没有在DB100中获得任何值,在监视时也看不到FC100中的任何数据。
Now the holding point is I am not getting any values in my DB100 ,I cant see any data in FC100 as well while in monitoring.
我上传了图片并测试了zip格式的项目备份。
I have uploaded pictures and test project backup in zip format.
我非常感谢您在主题问题上的支持。谢谢
I would really appreciate your support in subject problem.Thanks
你好,Jawadbaig,
Hi Jawadbaig,
使用访问I/O的传输指令,最多只能写入4个连续字节。因此,您必须使用SFC15在DP slave中写入数据,或使用SFC14从DP slaver读取dta。
you can only write a maximum of 4 continuous bytes using the transfer instructions that access the I/Os.So, you have to use SFC15 to write the data in DP slave or SFC14 to read the dta from DP slave.
希望能有所帮助。
Hope it helps.
任何查询都会恢复。
Any queries revert back.
非常感谢。
Thank You
你好
Hello,
如何确保S7-200从您定义的V0.0偏移量读取/写入?你有来自S7-200的相同信息吗?这一点很重要。
how you can be sure that S7-200 is reading/writing from V0.0 offset as you have defined? Do you have same info from S7-200 side? This is inportant to know.
你好,jawadbaig;
Hello jawadbaig;
请确保您已逐步遵循以下常见问题解答,以便在S7 CPU和EM 277之间建立Profibus DP交换。请特别注意第7点,该点显示了您如何在S7-200中配置V数据内存。
Please make sure that you have followed step-by-step the following FAQ, to establish Profibus-DP exchanges between your S7 CPU and the EM 277. Pay special attention to point 7, showing how you configure the V-data memory in the S7-200.
如何通过PROFIBUS DP在S7-200和S7-300之间通信数据?
How can you communicate data between the S7-200 and the S7-300 via PROFIBUS DP?
不幸的是,您前面的zip没有显示这个特定的配置,这是至关重要的。
Unfortunately your earlier zip does not show this particular configuration, and it is crucial.
希望这能有所帮助,
Hope this helps,
丹尼尔·查蒂尔
Daniel Chartier
你好
Hello,
sry,我很感兴趣,有消息吗
sry, very interesting to me, any news?
很好的一天!
Good Day!
我真的很抱歉这么晚才回复,因为我正忙于同时执行其他两个项目。
I am really sorry to reply so late as I was busy in two other projects executing at the same time.
更新:我成功地通过em277从s7200读取了所需数据,但仍无法将值写入s7200。
Updates : I am successful in reading the required data from s7200 via em277 but still I cant write the values to s7200.
我如何解决阅读数据的挑战:
how I solved the reading data challenge:
描述:我必须阅读两个单词,其中包含数字值的状态。此外,我必须读取一个双字的模拟值。总共阅读4个单词。
Description: I have to read two words, containing the status of digital values. Additionally, I have to read one double word for analog value. In total reading 4 words.
s7200中V地址的结构为:
structure of V addresses in s7200 is :
V0.0、V0.1、V0.2至V3.7-------->用于数字状态(两个字)
V0.0 , V0.1, V0.2 till V3.7 -------> for digital status (two words)
模拟值VD4----------------------------------->(两个字)
VD4 ----------------------------------> for analog value (two words)
解决方案:在s7400硬件视图中,使用EM277 profibus-DP通用模块,添加了4个总长度一致的输入字
Solution: In s7400 hardware view, using universal module for EM277 profibus DP , 4 input words consistent over total length were added.
在编译和下载硬件之后,我得到了这些地址的值。
After compile and download of hardware, I got the value on these addresses.
给s7200写一个设定值对我来说仍然是一个挑战。谢谢你的反馈。
Writing a set points to s7200 is still a challenge for me. Your feedback will be appreciated.
谢谢
Thanks
你好
Hello,
我看不出问题,在您的S7-400 HW cfg中,如果单击添加到Profibus子网的EM277模块,您会看到定义的插槽和定义的I/O区域缓冲区。查看O地址。这是您的S7-200控制区地址。在S7-200交换区内定义后,您可以轻松计算S7-400的数据可以作为输入读取的位置,I/O缓冲区的长度在插槽中定义
I don't see problem, in your S7-400 HW cfg if you click on EM277 module added to Profibus subnet, you see defined slot with defined I/O area buffer. Look to O Address. This is your control area address for S7-200. With defined inside S7-200 Exchange area you then easy count where data from S7-400 can be read as INPUTs, length of I/O buffer is defined in slot.
问题描述我正在尝试通过以太网在0BA7和WinCC flexible 2008 Runtime(PC充当HMI)之间建立连接,当然。。。 I'm trying to establish connection between 0BA7 and WinCC flexible 2008 Runtime (PC act as HMI) via Ethernet, of course...我做得不好 And I'm doing it BAD发生血...
...块? what is sync module ?推荐答案2两个S7400 H系统之间的通信通过FOC电缆通过接收器模块完成。这有助于400系统的内部同步和通信 the communication between two S7400 H system is accomplished through FOC cable via sink module.this helps in internal syncronisation a...
...及集成PROFINET接口的S7 CPU。然后可以选择其中一个节点。通过“分配IP配置”按钮,您可以为所选模块分配新的IP配置。 In STEP 7, you can use the menu function "PLC -> Edit Ethernet Node ..." to search a network for SIMATIC communication modules. The search c...
...ow link:演示项目 Demo Projects 推荐答案6你好您也可以在这里通过一些应用程序示例来学习如何使用S7-400H带有PROFINET的S7-400H的配置示例用S7-400H实现容错隧道照明系统希望这能有所帮助。 Hello,You can go through some application examples here as w...
...添加任何通信模块来允许IM 153-4与2个CPU通信,或者我可以通过IM 153-42上可用的2个PROFINET端口进行通信? Question 1: Am i in need to add any communication module to allow IM 153-4 to communicate with the 2 Nos of CPUs or i can make it via the available 2 PROFINET ports...
...r Experts,我需要一些关于S7-200 PLC与与S7-400H系统集成的EM 277通信的帮助。我实际上想知道我们将在哪个PROFIBUS网络上添加EM277,以及它将如何工作?就像我把它连接到PROFIBUS网络一样,我的RACK 1 CPU和它工作正常,但当我关闭我的RACK ...
... Dear experts,我对安装了EM 277的两个S7-224 CPU与S7-400H系统的通信有点困惑。 I am little bit confused regarding the communication of two S7-224 CPUs with EM 277 installed in it with the S7-400H system.我的问题是,我将在哪个PROFIBUS网络上添加EM277,以及如果CPU...
...换机。我们是否要从配置中删除Cp443?CPU中的Profinet和CP443之间的基本区别是什么 in advanced really appreciate it for your reply.If i want to say very simple;in every S7400H we use 2CPU (E.g:2*CPu4145h) and 2* CP443 .I was wondering to know ,in this CPU we have Profinet port...
...s. Then 300 and 400 are the same?有人曾经告诉我,在PLC中,PID是通过数字控制近似连续控制来实现的。添加的循环越多,此近似值越差,这将影响控制的数量。在s7400的情况下,CPU有能力并行处理模拟输入,所以这种近似值将与100个PID...
...子: Just use a search here in forum. Example:如何使用S7基本通信通过MPI在S7-300/S7-400和S7-200之间进行数据通信? How does data communication work between S7-300/S7- 400 and S7-200 via MPI using S7 basic communication? 如何配置S7-200与工业以太网上的S7-300或S7-400...
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!