random element on ladder programming
random element on ladder programming
(OP)
I 'd like to know if we can use a random function on ladder programming
For example, if we have -lets say- 12 memories (M1, M2...M12), can we activate/deactivate randomly?
thanks a lot
For example, if we have -lets say- 12 memories (M1, M2...M12), can we activate/deactivate randomly?
thanks a lot





RE: random element on ladder programming
Im not entirely sure what you mean but if you have say "12 memories" or data memory areas, then each particular memory will contain a piece of information which may or may not change like if you are monitoring an analouge input it will change. When you say activate or deactivate randomly im not sure what you are trying to achieve? As each of the twelve areas maybe used in twelve different circumstances. If you can be a bit more specific then maybe i or others could help.
Regards
Taggy
RE: random element on ladder programming
RE: random element on ladder programming
Taggy
RE: random element on ladder programming
Can you tell me the function your PLC uses?
I use Microsmart PLC. Maybe it swiches :/
RE: random element on ladder programming
RE: random element on ladder programming
RE: random element on ladder programming
RE: random element on ladder programming
With a timer, each time the PLC program scans the logic it should see a different accumulated time, since the program scan and the timer typically run asynchronous.
If you have a system clock, you could just look at the current seconds or milliseconds value, each time the program scans the rung. Again, if the clock and program scan are asynchronous, you should get a different value on each program scan.
RE: random element on ladder programming
i would look up the source code for those functions to see if it could be translated into ladder logic.
RE: random element on ladder programming
RE: random element on ladder programming
RE: random element on ladder programming
this has been discussed many times there.
Bob
RE: random element on ladder programming
respectfully