General Questions about using ethercat

More
1 year 5 months ago - 1 year 5 months ago #327885 by Hakan
That's what the cia402 component does. You have already set cia402.0.csp-mode to 1 in the hal file.
You can go into halshow and find the pin lcec.0.X.target-position and lcec.0.X.actual-position.
The difference between them is the following error and one always accepts some error but when it becomes too large lcnc stops.
You have the cia402.0.pos-scale to play with. The manual should say how many "steps" per revolution it uses, or how to found out. Calculate how many steps per axis unit (mm?) you have (thread pitch).

However I looked at your ethercat-conf.xml. You got to remove those pdos from syncmanager 0 and 1, actually remove sm0 and sm1 completely and only use those in sm2 and sm3.
Like this

Code:
<dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0"/> <syncManager idx="2" dir="out"> <pdo idx="1600"> <pdoEntry idx="6040" subIdx="00" bitLen="16" halPin="controlword" halType="U32"/> <pdoEntry idx="607a" subIdx="00" bitLen="32" halPin="target-position" halType="S32"/> <pdoEntry idx="60ff" subIdx="00" bitLen="32" halPin="target-velocity" halType="S32"/> <pdoEntry idx="6060" subIdx="00" bitLen="8" halPin="opmode" halType="S32"/> </pdo> </syncManager> <syncManager idx="3" dir="in"> <pdo idx="1a00"> <pdoEntry idx="6041" subIdx="00" bitLen="16" halPin="statusword" halType="U32"/> <pdoEntry idx="6064" subIdx="00" bitLen="32" halPin="actual-position" halType="S32"/> <pdoEntry idx="606c" subIdx="00" bitLen="32" halPin="actual-velocity" halType="S32"/> <pdoEntry idx="6061" subIdx="00" bitLen="8" halPin="opmode-display" halType="S32"/> </pdo> </syncManager>

Keep dccconf line and all other lines. If I made a type above I hope you can correct it.
Last edit: 1 year 5 months ago by Hakan.
The following user(s) said Thank You: Tntmold

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

More
1 year 5 months ago #327910 by Tntmold
I made those changes to the xml but I see no difference.
ethercat slaves shows both drives in OP but I can't get them to move and the motor shafts act as if no power is present

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

More
1 year 5 months ago #327924 by Hakan
The config should be ok now and I don't know of any obvious thing to do..
I made a quick search and there seems to be a problem with the CL3-E57H, in which order power, linuxcnc and network cable are activated, I might have got that wrong. Maybe you find something in that thread
forum.linuxcnc.org/ethercat/47534-etherc...e-configuration-woes
The following user(s) said Thank You: Tntmold

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

More
1 year 5 months ago #327948 by Tntmold
Thanks, I will read through that thread to see if it will help, however that thread is for a closed loop drive and mine are open loop. The drives know they are open loop, but I am wondering if linuxcnc knows they are open loop. Where is that set in linuxcnc?

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

More
1 year 5 months ago - 1 year 5 months ago #327978 by Hakan
You don't set open loop in linuxcnc. You set it to cia402 csp (cyclic synchronous position) mode and it is up to the drive to figure out how to come to the position you tell it. In open loop the driver will just report back the target position, not the actual position as the actual position well that's obvious I guess.
If you need to set the sdo value during startup you can do that like this (example from my ect60 drive)
Code:
   <dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0"/>       <sdoConfig idx="2000" subIdx="0"><sdoDataRaw data ="a0 0f"/></sdoConfig>  <!-- Max motor current (3.0A=b80b 4.0=a00f 5.0=8813) Rated=4.0A -->       <sdoConfig idx="2003" subIdx="0"><sdoDataRaw data ="64 00"/></sdoConfig>  <!-- Standby current percentage (100%) -->  

Note the byte order, 4000 which is hex x0fa0 is entered as "a0 0f"
Last edit: 1 year 5 months ago by Hakan.
The following user(s) said Thank You: Tntmold

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

More
1 year 4 months ago #331044 by Tntmold
I have linuxcnc loading but the steppers still won't move.  Ethercat Slaves shows drive is in OP mode, but when I use "ethercat upload" to check drive parameters, I see that the drive is not in CSP mode.  Where is this supposed to happen?

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

Time to create page: 0.399 seconds
Powered by Kunena Forum