<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[REXYGEN Community Forum / EPC (EXEC) Run once at startup]]></title>
	<link rel="self" href="https://www.rexygen.com/oldforum/extern.php?action=feed&amp;tid=403&amp;type=atom"/>
	<link href="http://www.rexygen.com/oldforum/viewtopic.php?id=403"/>
	<updated>2017-11-21T09:39:04Z</updated>
	<generator>FluxBB</generator>
	<id>http://www.rexygen.com/oldforum/viewtopic.php?id=403</id>
	<entry>
		<title type="html"><![CDATA[Re: EPC (EXEC) Run once at startup]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1825#p1825"/>
		<content type="html"><![CDATA[<p>Hi, <br />the MP block cannot be used for such a purpose. MP stands for manual pulse and therefore it only reacts to manual changes in the BSTATE parameter. See the <a href="https://www.rexcontrols.com/media/doc/ENGLISH/MANUALS/BRef/MP.html" rel="nofollow">documentation of the MP block</a>.</p><p>Whenever the algorithm is restarted, the blocks start from scratch. Therefore your use of the BIS block is correct, it will generate 1 second pulse whenever the algorithm is (re)started and it will repeat each hour.</p><p>If you need to generate pulses hourly, regardless of restarts, use the TIME block as a trigger.</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-21T09:39:04Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1825#p1825</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: EPC (EXEC) Run once at startup]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1818#p1818"/>
		<content type="html"><![CDATA[<p>Kudos to both,</p><p>I feel really logically ashamed of myself. My original code was and still is using the BIS block. Almost in the same manner. After I wrote the code and put it to test my code seemed to be ok, but I was thinking the data I was seeing was still in RAMDRIVE, after leaving for work for the day this stayed heavily on my mind that in the event that a reboot was needed that I would have to wait till the BIS completed its time of 3600 SEC to get first update.</p><p>I guess my Rockwell PLC logic thinking was kicking in. Shame on me!!!</p><p>For some reason I found that I am doing this method though. <br />No.1 - Y0 - OFF<br />No.2 - t1 - 0<br />No.3 - t2 - 1<br />No.4 - t3 - 3600<br />No.5 - t4 - 0<br />No.6 - t5 - 5<br />No.7 - t6 - 6<br />No.8 - t7 - 7<br />No.9 - t8 - 8<br />No.10 - RPT - on</p><p>I do not remember why I did this, this way, it was part of some early code in this project but it always worked I just modified between NO. 2 - 4 and left No.10 on. </p><p>Any suggestions on if this causes an inefficacy issue in the code? My project is growing larger as I keep adding code, I am at 882 blocks. 4 tasks at the moment. As I continue this project I want to make sure my efficacy maintains well. </p><p>Thanks,</p>]]></content>
		<author>
			<name><![CDATA[gizmo]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=129</uri>
		</author>
		<updated>2017-11-16T03:01:36Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1818#p1818</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: EPC (EXEC) Run once at startup]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1816#p1816"/>
		<content type="html"><![CDATA[<p>Hi,</p><p><span class="bbs">it is possible to use MP block.</span> I often use BIS block setup as follows:<br /><span class="postimg"><img src="https://www.rexygen.com/oldforum/img/members/39/BIS.png" alt="BIS.png" /></span></p><p>Hope it helps.</p><p>Regards, Tomas</p>]]></content>
		<author>
			<name><![CDATA[tomáš čechura]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=39</uri>
		</author>
		<updated>2017-11-15T12:13:27Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1816#p1816</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: EPC (EXEC) Run once at startup]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1815#p1815"/>
		<content type="html"><![CDATA[<p>Mike,</p><p>I was thinking of the same thing myself. I have not tried this yet but logically it should work. In the back of my mind I have this thought maybe a rule is in existence and this would not be best practice. :-)&#160; I will let you know how this works out. </p><p>I have also read your post on fan speed control. I would have posted a reply but I am afraid at this moment I will not be much of use for this in the REX environment. I can think of several methods in other PLC formats that would make this work for you, but unfortunately in the REX environment I don&#039;t not have a variable speed fan handy that I can adapt over quickly. </p><br /><p>Thanks very much for the help.</p>]]></content>
		<author>
			<name><![CDATA[gizmo]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=129</uri>
		</author>
		<updated>2017-11-14T21:24:42Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1815#p1815</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: EPC (EXEC) Run once at startup]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1814#p1814"/>
		<content type="html"><![CDATA[<p>Hi gizmo,</p><p>I may be very wrong here, as I haven&#039;t tried this and it&#039;s possibly not how the block was intended to work. Can you use an MP block with say a 2 second pulse but with BSTATE set to &quot;on&quot; as default? On boot it will start in an on state and turn off once the pulse has expired.</p><p>In my head it works, in reality it might not..!</p>]]></content>
		<author>
			<name><![CDATA[mikeyh]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=60</uri>
		</author>
		<updated>2017-11-14T18:54:26Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1814#p1814</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[EPC (EXEC) Run once at startup]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1812#p1812"/>
		<content type="html"><![CDATA[<p>Hi,</p><p>I may be missing something altogether but I am using a few EPC blocks that get triggered at different times, but I also need to trigger all of these one time only after boot, or program startup, then continue to operate normally from the timer based math.</p><p>Everything seems to be working fine except for not being able to find a run once block in any of the libraries.</p><p>Thanks,</p><p>Gizmo</p>]]></content>
		<author>
			<name><![CDATA[gizmo]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=129</uri>
		</author>
		<updated>2017-11-14T18:22:28Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1812#p1812</id>
	</entry>
</feed>
