How to turn od LED
11 Dec 2022 19:19 #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 or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19197
- Thank you received: 6434
11 Dec 2022 20:01 - 11 Dec 2022 21:06 #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
Last edit: 11 Dec 2022 21:06 by tommylight. Reason: fixed error
The following user(s) said Thank You: Masiwood123
Please Log in or Create an account to join the conversation.
- Masiwood123
- Offline
- Platinum Member
Less
More
- Posts: 335
- Thank you received: 80
11 Dec 2022 20:52 #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 or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19197
- Thank you received: 6434
11 Dec 2022 21:06 #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 or Create an account to join the conversation.
- Masiwood123
- Offline
- Platinum Member
Less
More
- Posts: 335
- Thank you received: 80
11 Dec 2022 22:24 #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:)
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
12 Dec 2022 12:43 #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 or Create an account to join the conversation.
12 Dec 2022 12:46 #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 or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19197
- Thank you received: 6434
12 Dec 2022 13:25 #259253
by tommylight
Replied by tommylight on topic How to turn od LED
Moved to "Ethercat" section.
The following user(s) said Thank You: kk893
Please Log in or Create an account to join the conversation.
14 Dec 2022 18:43 #259485
by kk893
Replied by kk893 on topic How to turn od LED
nobody knows anything?
Please Log in or Create an account to join the conversation.
14 Dec 2022 19:44 #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
The following user(s) said Thank You: tommylight, kk893
Please Log in or Create an account to join the conversation.
Time to create page: 0.171 seconds