sittner / linuxcnc-ethercat

LinuxCNC EtherCAT HAL driver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hello, scale AX5000 + sync + lcec_write_idn

robochime opened this issue · comments

Hello, can you help me with the enlargement of the scale for the AX5000 in speed mode ?, tried to follow the example of the file Stmds5K.c but I can not get it to work well, can you help me?
Thank you.

Hello Sascha,
I thank you, thank you very much for the help.

regards
Chimeno

Hi,

the AX5200 stuff is commited, please check if that helps.

Regards
Sascha

Hello Sasha,
thank you I will make a clean installation with your new code and I will tell you.

regards
Chimeno

hi Sasha,
I'm with your code, I have a couple of questions the same is error:
signal, post-fb should be float type, linuxcnc does not allow S32, connected axis.0.motor-pos-fb
signal, vel-cmd should be float type, linuxcnc does not allow S32 connected x-pid.output

regards
Chimeno

They are float:

{ HAL_FLOAT, HAL_OUT, offsetof(lcec_class_enc_data_t, pos), "%s.%s.%s.%s-pos" },

{ HAL_FLOAT, HAL_IN, offsetof(lcec_ax5200_chan_t, velo_cmd), "%s.%s.%s.ch%d.srv-velo-cmd" },

Hello Sasha,
I was silly, use the example linuxcnc-ethercat / examples / initcmds / ethercat-conf.xml, now I already use the specific module lcec_ax5000, I'll try to see how it works ...
regards
Chimeno

hi Sasha,
I am ultilizando and I have a problem that already had in the old version of linuxcnc-ethercat, the module AX5206 is connected and disconnected during the time, you know what I can do?
The configuration that I have is:

 appTimePeriod ="1000000" refClockSyncCycle="1000"
dcConf assignActivate = "730" sync0Cycle = "250000" sync0Shift = "50000" sync1Cycle = ""750000" sync1Shift = "250000"

regards
Chimeno

hello currently the problem of synchronism placing a buffer in the reading of the signals, is the only way found to not lose the connection with the AX5000, example:
/pos_fb = EC_READ_S32 (& pd [chan-> pos_fb_pdo_os]);
/if (pos_fb! = 0) {
/* (chan-> pos_fb) = pos_fb;
/}

Thank you

hi Sasha,
I would like to know if it is possible that you can add "lcec_write_idn"? I would like to be able to unlock the motor brake using the functions P-0-0096, what was tested in the initial configuration and it works well, tried to use the ecrt_master_write_idn function, but it does not work for me, do not know if you can help me?
Thank you
Chimeno

solved thanks to the patch.