Hello,
Kuka KR30-3 KRC4 V8.3.14.
Is it posible for continuous pulse while waiting for input?
Thanks guys
Is it posible for continuous pulse?
-
Robotony -
October 27, 2016 at 10:21 PM -
Thread is marked as Resolved.
-
-
To be clear: you want to generate clock signal on output, till you are waiting for input? or maybe you want to set signal high and hold it, while waiting for input?
-
Something like that will work and its not a bad idea since you do not have to worry about dropping the output later.
While (not $in[1])
pulse($out[1], true, 0.1)
Endwhile -
The pulse is for green light. I want it blinking while waiting for input.
Kr16_ 2 did the code you wrote and light stays on all the time.
Thanks for reply. -
Try to add one more line:
WHILE (NOT $IN[1])
PULSE($OUT[1], TRUE, 0.5)
WAIT SEC 0.5
ENDWHILENow it should flash
-
No! Still solid!
-
WHILE (NOT $IN[1])
PULSE($OUT[1], TRUE, 0.5)
WAIT SEC 1
ENDWHILETry this. I forgot that pulse is not stoping program till end of pulse.
-
This should work since pulse is 0.5 second and wait is 1 second but this pauses robot code for 1 second while waiting for input.
Not a good idea since digital input can come in for 0.1 second while robot is in WAIT state. Therefore it may never catch it.You need some clever piece of code that will utilize a timer in this WHILE loop.
Based on timer value you will turn output on/off (pulsing action)
WHILE condition keeps going and no WAIT commands. -
one can create one pulsing bit or flag and use it in many places...
for example in $config.dat add
in your SPS add
in your loop you may use
-
Hello again!
This code works perfectlyQuoteWHILE (NOT $IN[1])
PULSE($OUT[1], TRUE, 0.5)
WAIT SEC 1
ENDWHILE
Thanks guys!