asd-a2-e ... lcec driver?

More
03 Oct 2023 20:11 - 03 Oct 2023 20:12 #282200 by jjdege
Replied by jjdege on topic asd-a2-e ... lcec driver?
I believe the lcec_deasda driver is crucial for creating the pins in LCNC
here is another similar link, it was useful to me
forum.strojirenstvi.cz/viewtopic.php?t=25321
Hi
Last edit: 03 Oct 2023 20:12 by jjdege.
The following user(s) said Thank You: bkt

Please Log in or Create an account to join the conversation.

More
04 Oct 2023 10:22 #282263 by bkt
Replied by bkt on topic asd-a2-e ... lcec driver?
using asda-soft I upoload new parameter as suggested on github link posted by jjdege ..... so I able to read on terminal:
:~$ ethercat upload -p 0 -t int32 0x6064 00
0x0011f851 1177681
:~$ ethercat upload -p 0 -t int16 0x6041 00
0x0000 0
:~$ ethercat upload -p 0 -t int16 0x6040 00
0x0004 4

so seems all was ok about register and CoE cia402 ..... but using axis gui and generic driver I obtain nothing .... so think was about sync and probabily because not use deasda driver .... but not sure about .... if someone can explain me was perfect ... some link for self learning is perfect too.

Please Log in or Create an account to join the conversation.

More
04 Oct 2023 10:42 #282265 by bkt
Replied by bkt on topic asd-a2-e ... lcec driver?
so now I try complete version of github guide .... and I use siitool for name changing .... plus I insert in my xml file that row, so from teminal:
:~$ ethercat slaves -v
=== Master 0, Slave 0 ===
Device: Main
State: PREOP
Flag: +
Identity:
  Vendor Id:       0x000001dd
  Product code:    0x10305070
  Revision number: 0x02040608
  Serial number:   0x00000000
DL information:
  FMMU bit operation: no
  Distributed clocks: yes, 32 bit
  DC system time transmission delay: 0 ns
Port  Type  Link  Loop    Signal  NextSlave  RxTime [ns]  Diff [ns]   NextDc [ns]
   0* MII   up    open    yes             -   1457545430           0           0
   1  MII   up    open    yes             1   1457551430        6000        1540
   2  N/A   down  closed  no              -            -           -           -
   3  N/A   down  closed  no              -            -           -           -
Mailboxes:
  Bootstrap RX: 0x0000/0, TX: 0x0000/0
  Standard  RX: 0x1000/128, TX: 0x10c0/128
  Supported protocols: CoE
General:
  Group: Servo Drive
  Image name:
  Order number: ASDA-A2-E
  Device name: ASDA-A2-E
  CoE details:
    Enable SDO: yes
    Enable SDO Info: yes
    Enable PDO Assign: yes
    Enable PDO Configuration: yes
    Enable Upload at startup: yes
    Enable SDO complete access: no
  Flags:
    Enable SafeOp: no
    Enable notLRW: no
  Current consumption: 0 mA


from xml:
    <slave idx="7" type="ASDA-A2-E" name="3A1">
      <dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="-25000"/>
    </slave>


and error from axis gui:
Debug file information:
Can not find -sec DISPLAY -var INTRO_GRAPHIC -num 1
Can not find -sec DISPLAY -var INTRO_TIME -num 1
Note: Using POSIX realtime
[color=#e74c3c]lcec_conf: ERROR: Invalid slave type ASDA-A2-E[/color]
lcec_conf: ERROR: Parse error at line 4: parsing aborted

that was not as expected ..... prefer something other like .... pin xxxx not find instead ... seems means symply slave type was not see

Please Log in or Create an account to join the conversation.

More
04 Oct 2023 11:16 #282269 by jjdege
Replied by jjdege on topic asd-a2-e ... lcec driver?
in lcec_conf the name of the servo is DeASDA and must be reported in the .xml file,
it is not <slave idx="7" type="ASDA-A2-E" name="3A1">
but        <slave idx="7" type="DeASDA" name="3A1">
See if it goes wrong

Please Log in or Create an account to join the conversation.

More
04 Oct 2023 11:36 #282271 by bkt
Replied by bkt on topic asd-a2-e ... lcec driver?
try before see your reply .... and obtain the right error instead the wrong one ...

Please Log in or Create an account to join the conversation.

More
04 Oct 2023 11:41 #282273 by bkt
Replied by bkt on topic asd-a2-e ... lcec driver?
A BIG POINT TO KNOW BEFORE: dowload ASDA_soft for first and go to "tuning" menu before any action. If not is not possible to moove motor for every positiv test. After parameter save repeat these tuning operation.

Please Log in or Create an account to join the conversation.

More
04 Oct 2023 11:53 #282275 by bkt
Replied by bkt on topic asd-a2-e ... lcec driver?
not understand how to set PDO's ....

Please Log in or Create an account to join the conversation.

More
04 Oct 2023 15:56 #282298 by jjdege
Replied by jjdege on topic asd-a2-e ... lcec driver?
sorry, I can't follow you
The following user(s) said Thank You: bkt

Please Log in or Create an account to join the conversation.

More
04 Oct 2023 17:18 #282302 by bkt
Replied by bkt on topic asd-a2-e ... lcec driver?
I read lcec_deasda.c file.... seems was set for CSV only and not possible set for CSP mode ....
static ec_pdo_entry_info_t lcec_deasda_in[] = {
   {0x6041, 0x00, 16}, // Status Word
   {0x606C, 0x00, 32}, // Current Velocity
   {0x6064, 0x00, 32}, // Current Position
   {0x2511, 0x00, 32}  // external encoder
};

static ec_pdo_entry_info_t lcec_deasda_out[] = {
   {0x6040, 0x00, 16}, // Control Word
   {0x60FF, 0x00, 32}  // Target Velocity
};

static ec_pdo_info_t lcec_deasda_pdos_out[] = {
    {0x1602,  2, lcec_deasda_out}
};

static ec_pdo_info_t lcec_deasda_pdos_in[] = {
    {0x1a02, 4, lcec_deasda_in}
};

static ec_sync_info_t lcec_deasda_syncs[] = {
    {0, EC_DIR_OUTPUT, 0, NULL},
    {1, EC_DIR_INPUT,  0, NULL},
    {2, EC_DIR_OUTPUT, 1, lcec_deasda_pdos_out},
    {3, EC_DIR_INPUT,  1, lcec_deasda_pdos_in},
    {0xff}
};

there are not code for pdo idx=1600 and pdo idx 1a00 ..... so only cyclic position mode is possible with these drive .... ok .... previously think was possible set somethings .... my error

It would be interesting to create the drive for position mode with PDO 1600 and 1A00 ... even just to learn.
 

Please Log in or Create an account to join the conversation.

More
04 Oct 2023 17:27 #282303 by bkt
Replied by bkt on topic asd-a2-e ... lcec driver?
IN SUMMARY:

lcec_deasda driver admit to work only in Cyclic synchronous velocity mode --- WARNING NO OTHER MODE ---

For First dowload ASDA_soft on windows, connect motor to drive, connect usb to asda drive, connect and than go to Tuning for autotuning of motor .... after these you can moove something and see encoder feedback (not possible whitout these step).

After go to link shared from jjdege: github.com/liuzq71/LinuxCNC-ASDA-A2-E/blob/master/README.md Build siitool from source $ git clone github.com/synapticon/siitool.git $ make$ sudo make install Write EEPROM for ASDA-A2-E nat@linuxcnc:~/siitool/delta$sudo ethercat -p0 sii_write Delta-asda.binnat@linuxcnc:~/siitool/delta$sudo ethercat rescannat@linuxcnc:~/siitool/delta$sudo ethercat slave Config ASDA-A2-E Driver Use ASDA_soft write parameter from file ASDA-A2-E Servo_Ethercat.par


AFTER you can use delta asda-a2-E only in Cyclic synchronous velocity mode --- WARNING NO OTHER MODE ---

regards

Please Log in or Create an account to join the conversation.

Time to create page: 0.095 seconds
Powered by Kunena Forum