Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 07:28:00 PM
Home Help Login Register
News: Any Problems or Experience with Industrial Robots ?
Register and place your Question / Answer to worldwide Robotexperts right here !

+  Robotforum | Support for Robotprogrammer and Users
|-+  Industrial Robot Help and Discussion Center
| |-+  KUKA Robot Forum (Moderators: Werner Hampel, Martin H, SkyeFire)
| | |-+  krc1
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: krc1  (Read 738 times)
Master
Guest
« on: April 20, 2010, 09:15:17 AM »

what the problem when counter program can't reset for loop program.
Logged
mookie
Global Moderator
*****
Offline Offline

Gender: Male
Posts: 419



« Reply #1 on: April 20, 2010, 02:37:55 PM »

can you please post the code that you are using for it?
Logged
optimus_prime
Full Member
***
Offline Offline

Posts: 168


« Reply #2 on: April 20, 2010, 05:25:44 PM »

code needed for troubleshooting.
Logged
mookie
Global Moderator
*****
Offline Offline

Gender: Male
Posts: 419



« Reply #3 on: April 21, 2010, 05:08:36 PM »

im talking to myself but you can try this
Code:
DEF myCounter()
;FOLD --> Variables
INT iDontSupplyCodeForHelp, _targetValue
;ENDFOLD (Variables)

;FOLD --> Initial Values
iDontSupplyCodeForHelp = 0
_targetValue = 5
;ENDFOLD (Initial Values)

Loop

iDontSupplyCodeForHelp = iDontSupplyCodeForHelp + 1

; Do your Code here


if (iDontSupplyCodeForHelp >= _targetValue) Then
 Exit
ENDIF

Endloop


or you can do

Code:

repeat

iDontSupplyCodeForHelp = iDontSupplyCodeForHelp + 1

;do your code here


until (iDontSupplyCodeForHelp => _targetValue)



not trying to sound gauche, but it really does help us to help you when you supply example codes here. Skyefyre is the only one that can see inside of your brain
Logged
SkyeFire
Global Moderator
*****
Offline Offline

Posts: 1784



« Reply #4 on: April 21, 2010, 05:16:07 PM »

Not this time, I can't.  He must be wearing his tinfoil hat.

Without his code, or a better explanation of his problem, not much any of us can do.

Logged
RAS-Skordos GR
Full Member
***
Offline Offline

Gender: Male
Posts: 100



WWW
« Reply #5 on: April 29, 2010, 12:50:03 AM »

ROFL
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!