How to turn od LED

More
3 years 10 months ago #259212 by kk893
How to turn od LED was created by kk893
Hi everyone,
I've never had contact with Linux before, but I need to make a simple C program that lights up the LEDs with a delay of 0.5 seconds. After a few hours, I found nothing about it. I know the C language, but I don't know what environment to use in Linux and how to connect the HAL architecture in my project, which I can't understand. Thank you for your help and best regards.

Please Log in to join the conversation.

More
3 years 10 months ago #259213 by tommylight
Replied by tommylight on topic How to turn od LED
It is hard to help when you give us no viable info, but still,
What hardware?
What is the LED going to be driven?
If you are trying to use LinuxCNC on a PC with a parallel port, something like
M64 P0
G04 P0.5
M65 P0
will do that

Please Log in to join the conversation.

More
3 years 10 months ago #259221 by Masiwood123
Replied by Masiwood123 on topic How to turn od LED

M64 P0
G64 P0.5
M65 P0
will do that

Tomo  just to note, G4 is for time delay?

Please Log in to join the conversation.

More
3 years 10 months ago #259222 by tommylight
Replied by tommylight on topic How to turn od LED

M64 P0
G04 P0.5
M65 P0
will do that

Tomo  just to note, G4 is for time delay?
Oh cr@p! To much tuning today, sorry.
Editing and correcting.
Thank you for the tip,
Hvala

Please Log in to join the conversation.

More
3 years 10 months ago #259223 by Masiwood123
Replied by Masiwood123 on topic How to turn od LED
I also started 10 things and there is no end.. browsing the forum is an escape from obligations and interesting.. I always learn something:)

Please Log in to join the conversation.

More
3 years 10 months ago #259251 by kk893
Replied by kk893 on topic How to turn od LED
Sorry, I'm already explaining what I'm capable of.
I am using LinuxCNC on PC. The LEDs are to be turned on on the BECKHOFF EK1818 converter using the EtherCAT bus. This module is powered by a 24V DC power supply. Unfortunately, I don't know more details. That's the task I got.

Please Log in to join the conversation.

More
3 years 10 months ago #259252 by kk893
Replied by kk893 on topic How to turn od LED

It is hard to help when you give us no viable info, but still,
What hardware?
What is the LED going to be driven?
If you are trying to use LinuxCNC on a PC with a parallel port, something like
M64 P0
G04 P0.5
M65 P0
will do that
 
Sorry, I'm already explaining what I'm capable of.
I am using LinuxCNC on PC. The LEDs are to be turned on on the BECKHOFF EK1818 converter using the EtherCAT bus. This module is powered by a 24V DC power supply. Unfortunately, I don't know more details. That's the task I got.

Please Log in to join the conversation.

More
3 years 10 months ago #259253 by tommylight
Replied by tommylight on topic How to turn od LED
Moved to "Ethercat" section.

Please Log in to join the conversation.

More
3 years 10 months ago #259485 by kk893
Replied by kk893 on topic How to turn od LED
nobody knows anything?

Please Log in to join the conversation.

More
3 years 10 months ago #259490 by db1981
Replied by db1981 on topic How to turn od LED
We don't know what you have done yet...

-Did you already install the Etherlab master?
-Is Ethercat working by the commandline tools?
-Did you install linuxcnc-ethercat?
-Which Linux / Linuxcnc?
-for EK1818 you will have to create your own pdo configuration with the use of the "generic" slave.

As I am reading from your first post, you are trying to controll the led with an C Programm and this is not CNC related, then you are here in the wrong place.
Look at IGH Etherlab for creating your own ethercat applications in C-Language

Please Log in to join the conversation.

Time to create page: 0.109 seconds
Powered by Kunena Forum