OpenEtherCATsociety / SOEM

Simple Open Source EtherCAT Master
Other
1.36k stars 688 forks source link

connect coupler ek1818 to pc #274

Closed radwa4 closed 5 years ago

radwa4 commented 5 years ago

after downloading soem and following steps .i connect pc with coupler ek1818 beckhoff by ethernat cable only and run simple test by write in terminal (./simple_test) print in terminal name of simple test .i don't know how check pc run as master and connect by coupler ?and do you must connect power to coupler or only ethernet cable by pc?

nakarlsson commented 5 years ago

You need power supply and to read the manual.

radwa4 commented 5 years ago

i connect pc by ek1818 coupler by ethernet and connect coupler by power 24 volt and when run code slave info this what happened what i should do to see slave coupler??

‫في السبت، 30 مارس 2019 في 6:40 م تمت كتابة ما يلي بواسطة ‪nakarlsson‬‏ <‪ notifications@github.com‬‏>:‬

You need power

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OpenEtherCATsociety/SOEM/issues/274#issuecomment-478262527, or mute the thread https://github.com/notifications/unsubscribe-auth/AkqOBXI7XWQBiyzic9b7AD44LeAwn6rXks5vb5NkgaJpZM4cTTUz .

Tugev commented 5 years ago

Hi, you should run the code as a root (sudo) and also include the coupler socket name (usually eth0) in your terminal. For example:

sudo ./simple_test eth0

If it is not eth0, then use ifconfig to get the right coupler socket name. This explanation is for Linux systems.

radwa4 commented 5 years ago

can you tell me how turn on led on ethercat ?and how connect circuit on output and input pins?

‫في الجمعة، 5 أبريل 2019 في 7:59 م تمت كتابة ما يلي بواسطة ‪Tugev‬‏ <‪ notifications@github.com‬‏>:‬

Hi, you should run the code as a root (sudo) and also include the coupler socket name (usually eth0) in your terminal. For example:

sudo ./simple_test eth0 If it is not eth0, then use ifconfig to get the right coupler socket name.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/OpenEtherCATsociety/SOEM/issues/274#issuecomment-480368248, or mute the thread https://github.com/notifications/unsubscribe-auth/AkqOBbmmq-VSr0Q9TTM65_2rLPJH0XKcks5vd472gaJpZM4cTTUz .

Tugev commented 5 years ago

Hi , actually I have no much experience in etherCats but the input module is for reading and the output one is for writing. There is a function in the main.c file called: void set_output_bit (uint16 slave_no, uint8 module_index, uint8 value) use it to write the channels in the output module.

For connecting the circuit, you should refer to the manual.

nakarlsson commented 5 years ago

There are examples online, please read them

radwa4 commented 5 years ago

can you help me with links of this online examples?