paulscherrerinstitute / ecmccfg

Module to handle configuration scripts for EtherCATMotion Controller (ECMC)
GNU General Public License v3.0
7 stars 21 forks source link

add small utility to read a bunch of PDOs #211

Closed kivel closed 8 months ago

kivel commented 8 months ago

tiny helper to read nameplates for instance.

./readDataObjects.py -m0 -p21 -y EL7xxx_motor_nameplate.yaml

INDEX ==== 0x9009 ====
0x01: Motor vendor = Beckhoff
0x02: Motor type = AM8112-xFx1
0x03: Serial number = aa400i07
0x04: Order number = AM8112-0F21-0000
0x05: Type of motor = sync, rot
0x06: Number of pole pairs = 0x00000003 3
0x07: Standstill current (rms) = 0x0000125c 4700
0x08: Rated current (rms) = 0x00001194 4500
0x09: Peak current (rms) = 0x00004074 16500
0x0a: Nominal voltage (rms) = 0x0000846c 33900
0x0b: Max voltage (rms) Maximum voltage = 0x00017700 96000
0x0c: Max winding du/dt = 0x007a1200 8000000
0x0d: Max torque = 0x0550 1360
0x0e: Torque constant = 0x0050 80
0x0f: EMF (rms) = 0x00000005 5
0x10: Winding resistance = 0x04e2 1250
0x13: Maximum velocity = 0x00002710 10000
0x15: Motor temp warn level = 0x04b0 1200
0x16: Motor temp shutdown level = 0x0578 1400
0x17: Time constant I2T model = 0x01a3 419
INDEX ==== 0x8010 ====
0x12: Current loop integral time = 0x0006 6
0x13: Current loop proportional gain = 0x0085 133
0x14: Velocity loop integral time = 0x00000032 50
0x15: Velocity loop proportional gain = 0x00000096 150
0x29: Amplifier I2T warn level = 0x50 80
0x2a: Amplifier I2T error level = 0x69 105
INDEX ==== 0x8011 ====
0x11: Maximum current = 0x00004074 16500
0x12: Rated current = 0x00001194 4500
0x13: Number of pole pairs = 0x03 3
0x15: Commutation offset = 0xffa6 -90
0x16: Torque constant = 0x00000050 80
0x18: Rotor moment of inertia = 0x0000004b 75
0x19: Winding inductance = 0x0007 7
0x1b: Motor speed limitation = 0x0000161f 5663
0x29: I2T warn level = 0x50 80
0x2a: I2T error level = 0x69 105
0x2b: Motor Temperature warn level = 0x04b0 1200
0x2d: Motor thermal time constant = 0x01a3 419
INDEX ==== 0x8012 ====
0x11: Release delay = 0x0014 20
0x12: Application delay = 0x0008 8
0x14: Brake moment of inertia = 0x0000 0
anderssandstrom commented 8 months ago

Very nice!