Send controlword
- Ri
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 0
26 Feb 2025 09:53 - 26 Feb 2025 09:56 #322675
by Ri
Send controlword was created by Ri
Hello again, guys,
I was wondering how to send the control word. I know about the transmission in the configuration file through cia402, but I need to send a specific value for the control word, not just set up the connection between them. Can you tell me where the signals are generated in LinuxCNC so that I can send a specific value? If I turn on the machine with a button, why doesn't the control word value change? Please explain to me not where the signals are sent, but how to send a specific value to the control word. Where in Linux are these signals generated, and how can I set them up for a specific driver? At what point do I need to inform Linux that the driver should use the control word 0Fh? I need to insert 0Fh into 6040, but it doesn't seem to work. I have the following pieces of code written:
sodick.hal:
I was wondering how to send the control word. I know about the transmission in the configuration file through cia402, but I need to send a specific value for the control word, not just set up the connection between them. Can you tell me where the signals are generated in LinuxCNC so that I can send a specific value? If I turn on the machine with a button, why doesn't the control word value change? Please explain to me not where the signals are sent, but how to send a specific value to the control word. Where in Linux are these signals generated, and how can I set them up for a specific driver? At what point do I need to inform Linux that the driver should use the control word 0Fh? I need to insert 0Fh into 6040, but it doesn't seem to work. I have the following pieces of code written:
sodick.hal:
ethercat-conf.xml:#from cia402 to servo(ethercat)
net 4-controlword cia402.4.controlword => lcec.0.4.cia-controlword
<syncManager idx="2" dir="out">
<pdo idx="1600">
<pdoEntry idx="6040" subIdx="00" bitLen="16" halPin="cia-controlword" halType="u32"/>
Last edit: 26 Feb 2025 09:56 by Ri.
Please Log in or Create an account to join the conversation.
- rodw
-
- Offline
- Platinum Member
-
Less
More
- Posts: 11230
- Thank you received: 3755
26 Feb 2025 12:13 #322686
by rodw
Replied by rodw on topic Send controlword
you probably need to modify cia402.comp and somehow allow you to set the controlword from hal (probably from another pin)
What are you trying to do?
What are you trying to do?
Please Log in or Create an account to join the conversation.
- Ri
- Offline
- New Member
-
Less
More
- Posts: 8
- Thank you received: 0
28 Feb 2025 12:09 #322864
by Ri
Replied by Ri on topic Send controlword
I need to pass a specific value of the control word, but the pin cannot be written from .hal and I need to solve a problem with recording a value, I can't figure out where it comes from
Please Log in or Create an account to join the conversation.
- Hakan
- Away
- Platinum Member
-
Less
More
- Posts: 685
- Thank you received: 222
01 Mar 2025 08:20 #322912
by Hakan
Replied by Hakan on topic Send controlword
What value does statusword have?
Look in the manual what that means. That is what prevents cia402 component to ask the drive to enable.
The drive will not enable until that condition is sorted out. Even if you write F to the drive it will reject it until status is fixed.
Look in the manual what that means. That is what prevents cia402 component to ask the drive to enable.
The drive will not enable until that condition is sorted out. Even if you write F to the drive it will reject it until status is fixed.
Please Log in or Create an account to join the conversation.
Time to create page: 0.059 seconds