Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2012, 08:03:59 AM
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
| |-+  Kawasaki Robots
| | |-+  jump or goto instructions
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: jump or goto instructions  (Read 758 times)
djoey2006
Guest
« on: November 15, 2010, 12:42:39 PM »

hi guys
i have some problems using the instructions jump or goto. in fact i want after a CASE instruction use ANY: and jump to a step at the beginning of the CASE instruction. My problem is that am using the step number as label. And it doesnt work. How can define a label? and what the diefference between label and step number.
D 40 Controller, FS006L robot and am programming with pc-roset right now.
Thanks
Logged
solega
Newbie
*
Offline Offline

Posts: 10


« Reply #1 on: November 16, 2010, 06:39:56 PM »

Well the step nubers it is just for counting code lines and it isn't for using it as labels.
For usnig label just insert before the line that you want to use "goto" the number or words with ":".
For example

1        LMOVE idle
2 10   LMOVE a
3        LMOVE b
4        IF n>3 goto 10
Logged
tony gast
Hero Member
*****
Offline Offline

Gender: Male
Posts: 711


Can I barrow a cup of robots?


« Reply #2 on: November 16, 2010, 08:14:21 PM »

2 examples cut right out of my programming as solega stated

top:
TIMER 1 = 0
WAIT TIMER(1)>0.1
IF SIG(1050) THEN
CALL clean
END
IF SIG(1051) THEN
IF SIG(1052) THEN
CALL usa
END
IF SIG(1053) THEN
CALL vision
END
END
TIMER 1 = 0
WAIT TIMER(1)>0.1
GOTO top

10
TWAIT 1
PRINT SIG(1021)
GOTO 10
Logged

Oh, well
djoey2006
Guest
« Reply #3 on: December 01, 2010, 08:05:46 AM »

hi
thanks for the answers. they helped a lot.
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!