Instrution GRT

dandrade

Member
Join Date
Jan 2004
Posts
374
More quick reply, oposite get the manual.
One explanation GRT instrution this part.
Delete GRT change EQU, is worked?!

The Counter:

PB +---- CTU ---+
----| |---------| COUNTER |
| Preset: 2 |
+------------+

+----- EQU ---+ Out1
------| COUNTER.ACC |----------( )
| 1 |
+-------------+

+----- GRT ---+ COUNTER
------| COUNTER.ACC |---------[RES]
| 1 |
+-------------+



 
What happens when it changes to 1 after it has scanned the EQU output rung?

The Counter is preset for 2, you could use EQU and set it at 2 for reset. I think GRT is used to cover any glitches..ie overcounts etc, its possible for counters, timers etc to go past their presets.
 
I use the GRT instruction for hi speed applications, such as pulse inputs. Because if EQU is used you may miss the exact match.

example:
scan, register = 99
Scan, register =101

if EQU 100 was used the rung would miss the true condition.
so use GRT 99 instead, that way if next scan is 100 or 101 still evaluated as true.
 

Similar Topics

ENET, 2, 10.4.52.13, 1, 0 I have this on Communication Path under MSG instruction, I am not really sure how to interpret this ENET, 2...
Replies
12
Views
7,339
EBDB := B#(84,201) does any body knows the address of "B#(84,201)"?
Replies
3
Views
1,607
Find about indexing.No alert I found. In a project in the decade of 1990, the use indirect addressing caused: *Registers not in use, in...
Replies
0
Views
1,607
I have been searching and cannot find a reason for why this is happening. This programming was factory installed by a machine vendor and I have...
Replies
5
Views
1,012
in a PLC-5 the sign bit of an integer makes the GRT instruction think that -1 is greater than +1000. I currently use bit 15 of the integer as a...
Replies
14
Views
5,399
Back
Top Bottom