March 23, 2019, 08:58:28 AM
Robotforum | Industrial Robots Community

 need to know function, why and how

Author Topic:  need to know function, why and how  (Read 431 times)

0 Members and 1 Guest are viewing this topic.

January 02, 2019, 07:33:49 AM
Read 431 times
Offline

Fatihah Tiah


IF FirstCycle=TRUE THEN
            rPlaceReader1 pPlaceReader1;
            FirstCycle:=FALSE;
            RETURN;
        ENDIF

        WaitUntil (DI11_PassExtChecker = 1 OR DI11_PassExtChecker = 0)\MaxTime:=5;
        PassExtChecker:=ExtChecker();
!        rPickCheckPoint pPickCheckPoint;
        bQcheck := FALSE;
        bQmove := TRUE;
        rPickReader1 pPickReader1;
        bQcheck := TRUE;
        IF PassExtChecker=FALSE THEN             
            rRejectBin pRejectBin;
            RETURN;

from above pick n place program... i need to change  rPickReader1 pPickReader1 to rPickReaderNew1 pPickRdr1 but red line appear when i changed it.. then my boss say that routine rPickReaderNew1 missing something in () what i should put n how it function.. thank you

Today at 08:58:28 AM
Reply #1

Advertisement

Guest

January 02, 2019, 04:19:19 PM
Reply #1
Offline

Iowan


Perhaps you could post the rPickReaderNew1 routine.
« Last Edit: January 02, 2019, 04:21:19 PM by Iowan »

January 09, 2019, 09:26:26 AM
Reply #2
Offline

Fatihah Tiah


PROC rPickReaderNew1()
        !robot in home position go to reader 1 using unload vacuum
      MoveL Offs(pPickRdr1,0,0,100),v1000,z50,Tool_UnLoad\WObj:=wobjLoadTray;
        MoveL pPickRdr1, v1000,fine,Tool_Unload\WObj:=wobjLoadTray;
        rUnloadgVacuumOn;
        MoveL Offs(pPickRdr1,0,0,100),v1000,z50,Tool_UnLoad\WObj:=wobjLoadTray;

January 09, 2019, 01:06:22 PM
Reply #3
Offline

SAABoholic



Your original rPickReader1 is an instruction (i.e. a routine with data fed into it on a line-level).
 rPickReader1 pPickReader1;
Pickreader1 is called with reference to (what I assume is) the position pPickReader.

Your new routine is just a routine (no additional data being fed into it) and that's why you get a syntax error.
PROC rPickReaderNew1()

Compare the routine declaration of the original to your new and you'll see that the original has something within the ()

January 17, 2019, 11:32:48 AM
Reply #4
Offline

Fatihah Tiah


Thank you for your help!! I appreciate it :) :icon_smile:


Share via facebook Share via linkedin Share via pinterest Share via reddit Share via twitter

xx
What is AR function??

Started by FerreroSteve on Fanuc Robot Forum

3 Replies
1268 Views
Last post May 03, 2017, 12:11:10 PM
by Racermike123
xx
Bas Function

Started by MissM on KUKA Robot Forum

2 Replies
1455 Views
Last post January 19, 2017, 03:58:04 PM
by SkyeFire
xx
TCP Function

Started by Kushal Patel on Yaskawa Motoman Robot Forum

2 Replies
904 Views
Last post August 09, 2017, 12:03:15 PM
by 95devils
xx
Mod Function

Started by ebieder on Fanuc Robot Forum

1 Replies
234 Views
Last post January 11, 2019, 02:58:26 PM
by Lemster68