Rapid help!
andy_c
✭
Hi!
PROC init()
TPErase;
TPReadFK programID,"1 XXX 2 XXX","1","2","","","";
TPErase;
Test programID
case 1:
TPErase;
TPReadNum ProgramNR, "ProgramID"; !THE CHOOSE PART OF WICH PROGRAM!
TPErase;
case 2:
TPErase;
TPReadNum BorrData{1,1,1}, "XXXX";
TPErase;
TPReadNum BorrData{1,1,2}, "XXXX";
TPErase;
TPReadNum BorrData{1,1,3}, "XXX";
TPErase;
TPReadNum BorrData{1,1,4}, "XXXX ";
TPErase;
TPReadNum BorrData{1,1,5}, "XXXX";
TPErase;
TPReadNum BorrData{1,1,6}, "XXXX";
TPErase;
EndTest
EndProc
PROC CCC()
Speed.v_tcp:=BorrData{1,1,6};
ZZZZZ:=Borrdata{1,1,2};
WHILE AntalRakning < BorrData{1,1,5} DO
WHILE Klart < BorrData{1,1,2} DO
!**Manipulerar possitionen i Z led**
Start:=Offs(Start,(0),0,(BorrData{1,1,3}));
!**
MoveL StartBorr,BorrSpeed,z50,toolborr1WObj:=wobjborr1;
!**
Add BorrningKlart, BorrData{1,1,3};
WaitTime 0.5;
ENDWHILE
!**
Start:=Offs(Start,(0),0,-nollLage);
MoveL start,Speed,z50,toolborr1WObj:=wobjborr1;
WaitTime 2.0;
!**
INCR AntalRakning;
!**
Klart:=0;
!**
StartBorr:=Offs(StartBorr,0,(BorrData{1,1,4}),0);
!**RA-RELSE FRAM**
MoveL Start,Speed,z50,toolborr1WObj:=wobjborr1;
WaitTime 2.0;
ENDWHILE
EndProc
A'
Im greateful of any kind of help!
BR
Im doing a program witch i have an array {10,10,10}. And i want to in the beginning choose som parameters for the operation, with then is saved in the array like this example.
After i did it once i want to, add some new parameters but this time not in the same array (area!?) so that i can ex enter ten different programs and then choose them from a question.
PROC init()
TPErase;
TPReadFK programID,"1 XXX 2 XXX","1","2","","","";
TPErase;
Test programID
case 1:
TPErase;
TPReadNum ProgramNR, "ProgramID"; !THE CHOOSE PART OF WICH PROGRAM!
TPErase;
case 2:
TPErase;
TPReadNum BorrData{1,1,1}, "XXXX";
TPErase;
TPReadNum BorrData{1,1,2}, "XXXX";
TPErase;
TPReadNum BorrData{1,1,3}, "XXX";
TPErase;
TPReadNum BorrData{1,1,4}, "XXXX ";
TPErase;
TPReadNum BorrData{1,1,5}, "XXXX";
TPErase;
TPReadNum BorrData{1,1,6}, "XXXX";
TPErase;
EndTest
EndProc
PROC CCC()
Speed.v_tcp:=BorrData{1,1,6};
ZZZZZ:=Borrdata{1,1,2};
WHILE AntalRakning < BorrData{1,1,5} DO
WHILE Klart < BorrData{1,1,2} DO
!**Manipulerar possitionen i Z led**
Start:=Offs(Start,(0),0,(BorrData{1,1,3}));
!**
MoveL StartBorr,BorrSpeed,z50,toolborr1WObj:=wobjborr1;
!**
Add BorrningKlart, BorrData{1,1,3};
WaitTime 0.5;
ENDWHILE
!**
Start:=Offs(Start,(0),0,-nollLage);
MoveL start,Speed,z50,toolborr1WObj:=wobjborr1;
WaitTime 2.0;
!**
INCR AntalRakning;
!**
Klart:=0;
!**
StartBorr:=Offs(StartBorr,0,(BorrData{1,1,4}),0);
!**RA-RELSE FRAM**
MoveL Start,Speed,z50,toolborr1WObj:=wobjborr1;
WaitTime 2.0;
ENDWHILE
EndProc
A'
Im greateful of any kind of help!
BR
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings