- Posts: 5
- Thank you received: 0
How to turn od LED
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.
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.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
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
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.
- Masiwood123
- Offline
- Platinum Member
-
Less
More
- Posts: 423
- Thank you received: 0
3 years 10 months ago #259221
by Masiwood123
Replied by Masiwood123 on topic How to turn od LED
Tomo just to note, G4 is for time delay?M64 P0
G64 P0.5
M65 P0
will do that
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
3 years 10 months ago #259222
by tommylight
Editing and correcting.
Thank you for the tip,
Hvala
Replied by tommylight on topic How to turn od LED
Oh cr@p! To much tuning today, sorry.
Tomo just to note, G4 is for time delay?M64 P0
G04 P0.5
M65 P0
will do that
Editing and correcting.
Thank you for the tip,
Hvala
Please Log in to join the conversation.
- Masiwood123
- Offline
- Platinum Member
-
Less
More
- Posts: 423
- Thank you received: 0
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.
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.
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.
3 years 10 months ago #259252
by kk893
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.
Replied by kk893 on topic How to turn od LED
Sorry, I'm already explaining what I'm capable of.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
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.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
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.
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.
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
-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.098 seconds
