Beckhoff am DEVICENET

  • Hallo Allerseits!


    Scheine ein extremes Brett vorm Kopf zu haben, bekomme einfach nicht raus, wie es richtig ist. Eine Beckhoff KL3064 Busklemme bietet 8 Analoge Eingänge. Die MAC ID und das {byte} stimmen, aber am Rest haperts. Das Teil bietet 12 bit Auflösung für 0-10V, daher die Wahl der restlichen Werte. Die Anzeige der Analogen Eingänge im Kontrollpanel zeigt jetzt allerdings Werte von 0 - 2047 an, das wären 11bit, nicht umgerechnet in Volt.
    Hier der Auszug aus der iosys.ini:


    ANIN1=5,0,12,2,CAL 10 ; beckhoff MAC ID = 5
    ; Form 2:
    ; {token}{num}={address},{byte},{res},{type}[,CAL{factor}]
    ;
    ; {token} ANIN or ANOUT
    ; {num} number of the analog channel (1..i)
    ; {address} address of a peripheral device (0..m)
    ; driver specific information, see descr. below
    ; {byte} byte offset at this peripheral device (0..m)
    ; Offset starts with 0 at the every device
    ; driver specific information, see descr. below
    ; {res} resolution of the analog value (number of bits)
    ; {type} type of analog value
    ; 0 : right justified without sign
    ; 1 : right justified with sign
    ; 2 : left justified without sign
    ; 3 : left justified with sign
    ; {factor} maximum analog value, decimal without prefix,
    ; hexadec. with prefix 0x or octal with prefix 0
    ; "CAL 0" or no entry sets factor to its maximum
    ; Example:
    ; ANIN3=30,0,16,2,CAL 0x6C00
    ; The analog input No.3 is used. The device address is 30,
    ; the byte offset at this device is 0, the resolution is
    ; 16 bit and the type of analog value is 2 (left justified
    ; without sign). The maximum binary analog value is 27648.
    ; The CAL-factor is especially required in case of using
    ; Profibus analog modules.


    Hoffentlich weiss irgendwer irgendwas, sonst artet das in Rumprobieren aus...
    Danke schon mal,


    Kai

    If you and DEAD people can read Hex, how many people can read Hex?

  • Schritt für Schritt zum Roboterprofi!
  • Weiss nicht warum, aber so gehts:


    ; {factor} maximum analog value, decimal without prefix,
    ; hexadec. with prefix 0x or octal with prefix 0
    ; "CAL 0" or no entry sets factor to its maximum


    Wenn Faktor auf 2047 steht, skaliert der von 0-10V, was allerdings nicht viel mit 12 bit Auflösung zu tun hat (da wäre ja 4096 das Maximum), aber wenigstens sehen jetzt die Werte glaubwürdig aus (und lassen sich auch nach messen).
    Trotzdem: Wenn jemand weiss, wieso das so ist, sag Bescheid!!!

    If you and DEAD people can read Hex, how many people can read Hex?

  • Das brachte leider keinen Erfolg, nur noch seltsameres Verhalten. Die $ANIN[1], die laut Doku ("Falls der Ausgabewert die Grenzen +-1.0
    überschreitet wird der Wert abgeschnitten.") immer zwischen -1 und +1 sein soll, ging hoch bis - keine Ahnung - 17 oder so.
    Mit den alten Einstellungen läufts ganz gut, obwohl ich nicht verstehe warum...

    If you and DEAD people can read Hex, how many people can read Hex?

  • Kann nicht sein, wenn ich die Spannung mit nem Multimeter messe bekomme ich die gleichen Werte wie sie auch unter ANZEIGE -> EIN/AUSGÄNGE -> ANALOGE E/A sehen kann. So schlecht sind die Einstellungen nicht, sie decken sich halt nicht mit dem in der Doku genannten...

    If you and DEAD people can read Hex, how many people can read Hex?

Erstelle ein Benutzerkonto oder melde dich an um zu kommentieren

Du musst ein Benutzerkonto haben um einen Kommentar hinterlassen zu können

Benutzerkonto erstellen
Neues Benutzerkonto für unsere Community erstellen. Geht einfach!
Neues Benutzerkonto erstellen
Anmelden
Du hast bereits ein Benutzerkonto? Melde dich hier an.
Jetzt anmelden