<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[REXYGEN Community Forum / S7200]]></title>
	<link rel="self" href="https://www.rexygen.com/oldforum/extern.php?action=feed&amp;tid=392&amp;type=atom"/>
	<link href="http://www.rexygen.com/oldforum/viewtopic.php?id=392"/>
	<updated>2017-12-12T12:06:02Z</updated>
	<generator>FluxBB</generator>
	<id>http://www.rexygen.com/oldforum/viewtopic.php?id=392</id>
	<entry>
		<title type="html"><![CDATA[Re: S7200]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1844#p1844"/>
		<content type="html"><![CDATA[<p>Dear falvib,<br />sorry for the delay in communication. Please find the <a href="https://www.rexygen.com/oldforum/img/members/3/Lectura.mdl" rel="nofollow">modified Lectura.mdl task</a>, which uses an INHEXD block to retrieve 16 word values from the S7-200. Reading data in bigger chunks greatly reduces communication overhead and thus improves the response time. Please replace all the remaining rows of Similarly you can use the INQUAD and INOCT input blocks.</p><p>Your task on Level0 runs each 100 milliseconds (0.1 s). See the EXEC function block,&#160; <br />tick x ntick0 = 0.01 x 10 = 0.1 s</p><p>Your task on Level1 runs each 500 milliseconds (0.5 s). See the EXEC function block,&#160; <br />tick x ntick1 = 0.01 x 50 = 0.5 s</p><p>Communication with Siemens LOGO! is performed each 50 milliseconds <br />(0.05 s). See the S7C function block,<br />tick x factor = 0.01 x 5 = 0.05 s</p><p>Hope this helps, let me know.</p><p>With kind regards,<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2017-12-12T12:06:02Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1844#p1844</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: S7200]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1840#p1840"/>
		<content type="html"><![CDATA[<p>Hi dear Jaroslav</p><p>-About the signals there are 150. <br />-About the cycle time is 0.22[useg].<br />-About the sampling rate of my REX algorithm...I don&#039;t know where to set that parameter.</p><p>I have uploaded my project (<a href="https://www.rexygen.com/oldforum/img/members/171/Targets_Ejemplos.rar" rel="nofollow">Targets_Ejemplos.rar</a>), I&#039;ll be waiting your replay. Thank you.</p>]]></content>
		<author>
			<name><![CDATA[falvib]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=171</uri>
		</author>
		<updated>2017-12-01T17:55:42Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1840#p1840</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: S7200]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1836#p1836"/>
		<content type="html"><![CDATA[<p>Dear falvib,<br />this is unexpectedly slow response. Please provide additional information:</p><ul><li><p>How many signals are you exchanging with the S7 PLC?</p></li><li><p>How busy is the S7 PLC (CPU load)?</p></li><li><p>What is the cycle time of the S7 PLC?</p></li><li><p>What sampling rate is your REX algorithm using?</p></li><li><p>Can you provide the REX project source files so I can have a look?</p></li></ul><p>With that information I might be able to give you some hints for speeding things up.</p><p>Best regards,<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2017-11-27T14:07:29Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1836#p1836</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: S7200]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1831#p1831"/>
		<content type="html"><![CDATA[<p>I mean that it takes around 4-6 seconds to read/write a register or a bit, I&#039;d like at least 1 or 2 seconds of delay, I hope you can help me if there is any parameter to set up, thanks again</p>]]></content>
		<author>
			<name><![CDATA[falvib]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=171</uri>
		</author>
		<updated>2017-11-23T20:16:40Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1831#p1831</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: S7200]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1830#p1830"/>
		<content type="html"><![CDATA[<p>By &#039;slow&#039; you mean that it takes too long to process one individual reading or that the reading happens in too long intervals?</p><p>Precise numbers would help - how long does it take and how fast reading do you need?</p><p>Best regards,<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2017-11-21T12:32:31Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1830#p1830</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: S7200]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1827#p1827"/>
		<content type="html"><![CDATA[<p>Dear Jaroslav, I have to say that i have finished my project and I am ready to install it in the facility, I&#039;ve noticed that the reading of the data from PLC is too slow, do you know about a parameter to set up and make the the read faster?, I&#039;ll appreciate your help again</p>]]></content>
		<author>
			<name><![CDATA[falvib]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=171</uri>
		</author>
		<updated>2017-11-21T11:47:01Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1827#p1827</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: S7200]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1824#p1824"/>
		<content type="html"><![CDATA[<p>Dear falvib,<br />you can use Goto block S7C__Q3w and From block S7C__Q3. The appended &#039;w&#039; stands for write, but basically you can use any character. This way you can control the output signal and read back its status.</p><p>You can find this in the example 0403-12 in our <a href="https://github.com/rexcontrols/REXexamples/archive/master.zip" rel="nofollow">GitHub repository of example projects</a>.</p><p>Hope this answers your question.</p><p>Kind regards,<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2017-11-21T08:42:37Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1824#p1824</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: S7200]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1810#p1810"/>
		<content type="html"><![CDATA[<p>Hi dear Jaroslav<br />Thank you so much for your help now I am almost finishing my rexhmi project, about that Id like to ask you if there is a block which let you read and write an I/O tag, like a mix between from and goto. Thanks again dear Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[falvib]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=171</uri>
		</author>
		<updated>2017-11-10T12:59:41Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1810#p1810</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: S7200]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1798#p1798"/>
		<content type="html"><![CDATA[<p>Dear falvib,<br />I have very little experience with Siemens PLCs so my answer might be imprecise. I believe it is necessary to study the memory mapping of your project. From REX you can access the DB0, DB1, etc. memory areas. Therefore you should look for the way your variables are mapped to the DB memory areas. Once you know that, you&#039;ll know how to address the data from REX.</p><p>Hope this at least guides you in the right direction.</p><p>Kind regards<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2017-11-02T12:50:45Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1798#p1798</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: S7200]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1790#p1790"/>
		<content type="html"><![CDATA[<p>Dear Jaroslav, <br />Thank you! It worked, I followed the pdf and I could write registers in OB1 (according to the picture)&#160; using the notation S7C__DW1_100 for VW100.</p><p><span class="postimg"><img src="https://www.rexygen.com/oldforum/img/members/171/VWS.jpg" alt="VWS.jpg" /></span></p><p>Now I would like to ask you if I have a register in TIEMPOS (SBR7) or in SBR21 (according to the picture).. what would be the notation to access a register for that part of my PLC program? because I tried the same for OB1 and it didn&#039;t work, I hope you can help me with that and thanks again.</p>]]></content>
		<author>
			<name><![CDATA[falvib]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=171</uri>
		</author>
		<updated>2017-10-30T13:55:16Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1790#p1790</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: S7200]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1784#p1784"/>
		<content type="html"><![CDATA[<p>Dear falvib,<br />thanks for the update. I can see you have already achieved a lot!</p><p>The &#039;V&#039; registers are specific for Siemens LOGO. For your S7-200, you should use e.g. S7C__DW0_0, which should read register 0 from DB0 area and interpret it as Word data type. For word 5 in DB1 use S7C__DW1_5.</p><p>For details on the correct syntax please refer to <a href="https://www.rexcontrols.com/media/doc/PDF/ENGLISH/S7Drv_ENG.pdf" rel="nofollow">https://www.rexcontrols.com/media/doc/P … rv_ENG.pdf</a></p><p>Hope this helps, let me know.</p><p>With kind regards<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2017-10-25T13:20:25Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1784#p1784</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: S7200]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1775#p1775"/>
		<content type="html"><![CDATA[<p>Dear jaroslav<br />Thanks for your replay.<br />I am really needing a hand with this. I put the mode 0x31, with that now I can read and write IW and MW registers of S7200, but V bits, VW, VD registers I can&#039;t read/write.<br />I can tell because with the PPI interface I check online the PLC program, so I&#039;m already connected by TCP/IP and yes<br />in this picture </p><p><span class="postimg"><img src="https://www.rexygen.com/oldforum/img/members/171/IP.jpg" alt="IP.jpg" /></span></p><p>I have the IP 192.168.1.10 for communication between RP and S7200<br />and the 192.168.0.14 is the IP for charge rex projects. I will be waiting your comments thanks again</p>]]></content>
		<author>
			<name><![CDATA[falvib]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=171</uri>
		</author>
		<updated>2017-10-20T19:11:43Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1775#p1775</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: S7200]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1768#p1768"/>
		<content type="html"><![CDATA[<p>Dear falvib,<br />can you please upload a photo of your setup? Is there an Ethernet connection between the Raspberry Pi and the S7-200? </p><p>Can you ping the S7-200 from the Raspberry Pi command line (ping 192.168.1.10)?</p><p>Thanks!</p><p>Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2017-10-20T08:04:12Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1768#p1768</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: S7200]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1758#p1758"/>
		<content type="html"><![CDATA[<p>Dear jaroslav</p><p>Thanks for the configurations. I made the changes you told me but I can&#039;t read or write the registers of the PLC yet. When I set the project in run mode I see the registers as the picture:<br /><a href="https://www.rexygen.com/oldforum/img/members/171/Registers.jpg" rel="nofollow"><span class="postimg"><img src="https://www.rexygen.com/oldforum/img/members/171/mini_Registers.jpg" alt="mini_Registers.jpg" /></span></a><br />So I can&#039;t read my VW or VD registers.<br />This is the information of my .rio file<br /><strong>S7comm {<br />&#160; Address&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&quot;192.168.1.10&quot;<br />&#160; Mode&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 0x31<br />&#160; Rack&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 0<br />&#160; Slot&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 1<br />&#160; LocalTSAP&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;256<br />&#160; RemoteTSAP&#160; &#160; &#160; &#160; &#160; &#160; &#160; 256<br />&#160; ForceWrite&#160; &#160; &#160; &#160; &#160; &#160; &#160; 100<br />&#160; #Comment1&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&quot;Mode: 0=use TSAP, 1=PG, 2=OP, 3=basic, 8=lock data,&quot;<br />#&quot; 16=swap bytes, 32=single item query, 256=read info, 512=server configuration&quot;<br />&#160; #Comment2&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&quot;Area: 129=Input, 130=Output, 131=Memory, 132=DataBl&quot;<br />#&quot;ock, 28=Counter, 29=Timer, 16=LogoNI, 17=LogoNQ, 18=LogoAI, 19=LogoAQ, 20=Log&quot;<br />#&quot;oAM, 21=LogoNAI, 22=LogoNAQ 22=LogoNVW&quot;<br />&#160; #GUID&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;1a1a5c07-9936-4aef-a0dc-fd0196b615ae<br />}</strong></p><p>I was thinking that in #Comment2 doesn&#039;t show the VW or VD registers. Could it be the problem?.<br />I&#039;ll be waiting your comments. Thank you again.</p>]]></content>
		<author>
			<name><![CDATA[falvib]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=171</uri>
		</author>
		<updated>2017-10-17T12:45:17Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1758#p1758</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: S7200]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1754#p1754"/>
		<content type="html"><![CDATA[<p>Dear falvib,<br />thanks for the files. In your case it seems you&#039;ll have to edit the .rio file manually. Please try changing Mode to 0x31, Rack to 0 and Slot to 1 or 2. Supposing you have a single S7-200 CPU with a Communication Processor (CP) next to it, these settings might help.</p><p>The meaning of individual bits of the Mode parameter are listed in Comment1 in your .rio file. The most important is that the Raspberry Pi acts as PG.</p><p>Hope this helps, let me know.</p><p>With kind regards,<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2017-10-17T08:38:52Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1754#p1754</id>
	</entry>
</feed>
