time base control logic

Specify the system you are referring to. I suppose you are referring to a free running clock bit but different AB systems have a different time base.
 
Bernie,

I think when he said "control logic" he meant to say "ControlLogix" ... if so, the picture below might give some basic ideas ...

note that since the ControlLogix "CurrentValue" increments in micro-seconds you'll have to play around to select a useful bit number ... (the bit "1" mentioned in the original question is probably going to be toggling WAY too fast) ...

secret handshake: the S:4 "Free Running Clock" available in RSLogix500 isn't built-in with RSLogix5000 ... you have to use a GSV instruction to retrieve the data - store the data in an appropriate set of tags - and then you can use the data in your program ...

if this "CurrentValue" data location doesn't meet your needs, give us more details about what you're trying to accomplish ... the GSV can access other data too ... and to be honest, if you just want to toggle a bit on and off, a "home brew" free running timer rung might be easier to set up in the long run ...

GSV_flasher.JPG
 
Last edited:
In addition to using WALLCLOCK time as Ron mentioned, you can also create your own free running timer in RSLogix5000 by just creating an unconditional timer and using the .ACC bits of the timer. Never reset this timer, it will never reach its preset.


Free_Running_Clock.30
--------(OTU)-----------------+-TON---------------------+-(EN)
|Timer Free_Running_Clock +-(DN)
|PRE 2000000000|
|ACC 0|
+-------------------------+




Unconditionally unlatch Free_Running_Clock.ACC.30 so that the timer will never time out. It will count to 1073741.824 seconds and then start over.

Now you can access each bit in the ACC word, with each bit behaving similar to the S:4, except now you have 29 bits available for use instead of 16.

The bit on time is 2Y milliseconds where Y is the bit number 0-29. The duty cycle is 2 times the bit on time, just like in S:4.

Free_Running_Timer.ACC.0 = 1mS (2mS duty cycle)
Free_Running_Timer.ACC.1 = 2mS
Free_Running_Timer.ACC.2 = 4ms
etc.
 

Similar Topics

I was wondering if anyone had an success finding a Database driven managment program that can save&print all the following...
Replies
1
Views
2,264
Hello, For my general information and knowledge, how is querying and storing data from a AB PLC (Compact or Control Logix) typically...
Replies
15
Views
7,351
Hello, I have a tough situation. Recently, a computer crashed at a site. The computer had ProcessLogix 300.1 and RSLinx OEM 2.1 on it, among...
Replies
2
Views
4,446
Has anyone every used the Adodc_1 data control to connect to a database? I am trying and it keeps giving me compile errors. "Fatal ERROR: screen...
Replies
3
Views
2,710
Hello to Everyone all over the world: I don't want to reinvent the wheel so I am asking others if they have programmed something similar to this...
Replies
6
Views
270
Back
Top Bottom