<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://smartbox.benryves.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=COUNT</id>
	<title>COUNT - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://smartbox.benryves.com/mediawiki/index.php?action=history&amp;feed=atom&amp;title=COUNT"/>
	<link rel="alternate" type="text/html" href="https://smartbox.benryves.com/mediawiki/index.php?title=COUNT&amp;action=history"/>
	<updated>2026-09-15T02:43:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://smartbox.benryves.com/mediawiki/index.php?title=COUNT&amp;diff=40&amp;oldid=prev</id>
		<title>Benryves: Created page with &quot;== Syntax ==  COUNT input  == Description ==  The count function returns the number of pulses counted on a digital sensor. The value of COUNT can be reset by the command COUNT CLEAR. A special feature of the motor commands also clears the value of COUNT. Any command issued to Motor A will reset COUNT 0, Motor B will reset COUNT 1 etc. The count function will normally return an integer showing the number of times a sensor, for example a switch, has closed. Every time the...&quot;</title>
		<link rel="alternate" type="text/html" href="https://smartbox.benryves.com/mediawiki/index.php?title=COUNT&amp;diff=40&amp;oldid=prev"/>
		<updated>2023-10-06T19:01:15Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Syntax ==  COUNT input  == Description ==  The count function returns the number of pulses counted on a digital sensor. The value of COUNT can be reset by the command COUNT CLEAR. A special feature of the motor commands also clears the value of COUNT. Any command issued to Motor A will reset COUNT 0, Motor B will reset COUNT 1 etc. The count function will normally return an integer showing the number of times a sensor, for example a switch, has closed. Every time the...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Syntax ==&lt;br /&gt;
&lt;br /&gt;
COUNT input&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
The count function returns the number of pulses counted on a digital sensor.&lt;br /&gt;
The value of COUNT can be reset by the command COUNT CLEAR.&lt;br /&gt;
A special feature of the motor commands also clears the value of COUNT.&lt;br /&gt;
Any command issued to Motor A will reset COUNT 0, Motor B will reset COUNT 1 etc.&lt;br /&gt;
The count function will normally return an integer showing the number of times a sensor, for example a switch, has closed.&lt;br /&gt;
Every time the switch changes state and goes back again will register as 1 count, i.e. from off to on and off again.&lt;br /&gt;
The count function can also be used to record the number of changes of ''state'', i.e. the number of times the sensor has changed from either on to off or off to on.&lt;br /&gt;
Every transition registers as 0.5&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
Reset counter on INPUT 0 to zero&lt;br /&gt;
&lt;br /&gt;
 COUNT CLEAR 0&lt;br /&gt;
&lt;br /&gt;
Reset all counters to zero&lt;br /&gt;
&lt;br /&gt;
 COUNT CLEAR&lt;br /&gt;
&lt;br /&gt;
Switch on a motor until INPUT 0 registers 10 counts.&lt;br /&gt;
&lt;br /&gt;
 COUNT CLEAR&lt;br /&gt;
 FORWARD A&lt;br /&gt;
 WAIT UNTIL COUNT 0 &amp;gt;=10&lt;br /&gt;
&lt;br /&gt;
== Associated keywords ==&lt;br /&gt;
&lt;br /&gt;
* [[SENSOR]]&lt;br /&gt;
* [[INPORT]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Reference]]&lt;br /&gt;
[[Category:Procedure]]&lt;/div&gt;</summary>
		<author><name>Benryves</name></author>
	</entry>
</feed>