Roboterforum Willkommen Gast. Bitte einloggen oder registrieren.
Haben Sie Ihre Aktivierungs E-Mail übersehen?
18. Mai 2012, 11:23:17
Übersicht Hilfe Suche Kalender Einloggen Registrieren
News: English and international Robotsupport now on Robot Forum. Also Supported by the Moderators of the roboterforum.de

Roboterforum für Industrieroboter Anwender  |  Industrieroboter Helpcenter  |  ABB Roboter (Moderatoren: burlibua, Sven Weyer, rmac)  |  Thema: GetNextMechUnit \Active is not working? 0 Mitglieder und 1 Gast betrachten dieses Thema. « vorheriges nächstes »
Seiten: [1] Nach unten Drucken
Autor Thema: GetNextMechUnit \Active is not working?  (Gelesen 644 mal)
Joan
Member
***
Offline Offline

Beiträge: 86


« am: 31. Juli 2008, 15:53:51 »

Hello all,

If from my program I try to use GetNextMechUnit, I cannot get the desired result...  I want to get the names of active units.

I've made this code snippet to test it:

******************************************************************
MODULE mainmodule

  PROC Main ()

    VAR num listno := 0;
    VAR string name := "";
    VAR bool b := FALSE;
    TPWrite "List of mechanical units:";
    WHILE GetNextMechUnit(listno, name \Active := b)
    DO
        IF (b)
        THEN
           TPWrite "ACTIVE: " + name;
        ELSE
           TPWrite "INACTIVE: " + name;
        ENDIF
       ! listno := listno + 1 is done by GetNextMechUnit
    ENDWHILE

  ENDPROC

ENDMODULE
******************************************************************

The problem here is that all the robots seem that are active even if I have deactivated them from the flex pendant... (you know, that first icon over the yellow gears on the right side of the flex pendant).

Any idea on why it is happening?

As always thank you in advance.
Gespeichert
Seiten: [1] Nach oben Drucken 
Roboterforum für Industrieroboter Anwender  |  Industrieroboter Helpcenter  |  ABB Roboter (Moderatoren: burlibua, Sven Weyer, rmac)  |  Thema: GetNextMechUnit \Active is not working? « vorheriges nächstes »
Gehe zu:  


Einloggen mit Benutzername, Passwort und Sitzungslänge

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2006, Simple Machines Prüfe XHTML 1.0 Prüfe CSS