internal registers/flags AB Micrologix 1000

Dcook87

Member
Join Date
Aug 2013
Location
Boston, MA
Posts
5
I'm new to PLC programming. I'm trying to write a program that turns on a LED and flashes it.

I'm trying to find some way to set an internal flag/register that can execute a timer enable function. What instruction do I use to do this?

In the attached image, I want to latch a "flag" on when I turn on "TOG1" and press the "GRN_PB" switch. That flag will turn on the timer and start flashing.

I want to disable (unlatch) this flag when I press "REDPB"

I don't need to use one of the discrete outputs on the PLC since this is internal, so what should I use here?

plc.jpg
 
With the revision to an Input bit it should work. To be frank - the logic could have been a lot more compact but whatever works - works.

If it is working then we can talk about minimizing and optimizing.
 
With the revision to an Input bit it should work. To be frank - the logic could have been a lot more compact but whatever works - works.

If it is working then we can talk about minimizing and optimizing.

So the program works, but in its current state, I'm setting an output bit O:0/4 to on to enable the timer. The plc I have only has four outputs, so I'm addressing an imaginary output. Is this the right way to set an "internal flag" or is there another function to use?

Also, is there an easier way to have an output "strobe" like this? What's your suggestion for minimizing the steps in the program?
 

Similar Topics

Hi all, I have tried to move real/float variable constant to Proface Hmi thro' Ladder program & i get the attached error. Can any one give...
Replies
1
Views
2,038
The client has an application that when communication between the PLC and the Factory Talk VIEW supervisory fails, the object in the supervisory...
Replies
5
Views
279
Hello everyone; I have Mitsubishi PLC FX3U 32M in hydropower plant governor, an error message popped up when a technician was working on an...
Replies
2
Views
359
Kindly, we are having a problem on a machine during night shifts, while no engineering tool is online. So, we were thinking of programming some...
Replies
9
Views
757
Hello. If anybody has seen this before and could provide some clues I and some other people would be extremely grateful if you can share such...
Replies
2
Views
1,326
Back
Top Bottom