EL2502 and EL2535 PWM Ethercat BECKHOFF Modules

More
1 year 4 months ago - 1 year 4 months ago #331033 by Leo90
Hi, I'm also looking forward to your conclusion because I need EL2502 too. Besides PWM, I also need duty cycle to controll a laser.
Thank you
Last edit: 1 year 4 months ago by Leo90.

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

More
1 year 2 months ago - 1 year 2 months ago #333386 by Leo90
So I took some time and created a generic driver for EL2502 that works for me. I can control frequency and duty cycle with two seperate 16bit integers. This has been tested only in one channel but for second channel, PDOs should be 1603 with the same sub indexes as for the first. 
SDO index 02 is to set control number from SINT16 to UINT16 and index 07 to change operation mode to frequency AND duty cycle.
I hope this helps you.
Code:
    <slave idx="4" type="generic" vid="00000002" pid="09c63052" configPdos="true"> <sdoConfig idx="8000" subIdx="02"> <sdoDataRaw data="01"/> </sdoConfig> <sdoConfig idx="8000" subIdx="07"> <sdoDataRaw data="01"/> </sdoConfig>       <syncManager idx="2" dir="out">         <pdo idx="1602">           <pdoEntry idx="1602" subIdx="01" bitLen="16" halPin="Duty-ch1" halType="u32"/>           <pdoEntry idx="1602" subIdx="02" bitLen="16" halPin="PWM-out-ch1" halType="u32"/>                   </pdo>       </syncManager>     </slave>  
Last edit: 1 year 2 months ago by Leo90.
The following user(s) said Thank You: gmr

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

Time to create page: 0.117 seconds
Powered by Kunena Forum