Home + Limit from just 1 input pin: HAL config explained
- fernandosf
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 68
- Thank you received: 16
13 Jul 2021 14:49 #214592
by fernandosf
Replied by fernandosf on topic Home + Limit from just 1 input pin: HAL config explained
Actually, now I understand what you have done!
so simple, silly me.
I will give it some thoughts,
thanks for now.
so simple, silly me.
I will give it some thoughts,
thanks for now.
Please Log in or Create an account to join the conversation.
- fernandosf
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 68
- Thank you received: 16
13 Jul 2021 15:10 #214594
by fernandosf
Replied by fernandosf on topic Home + Limit from just 1 input pin: HAL config explained
Well, reproducing your test, I got different results
For the sake of completeness, that is what I did:
1. Loaded LinuxCNC with sim.axis config (I am away from real machine and don't have a parport available)
2. Opened HAL Configuration and typed this:And got this:
For the sake of completeness, that is what I did:
1. Loaded LinuxCNC with sim.axis config (I am away from real machine and don't have a parport available)
2. Opened HAL Configuration and typed this:
loadrt lut5
setp lut5.0.function 0x10000
setp lut5.0.in-4 TRUE
Attachments:
Please Log in or Create an account to join the conversation.
13 Jul 2021 16:14 #214605
by Aciera
Replied by Aciera on topic Home + Limit from just 1 input pin: HAL config explained
Have you added lut5 to a thread?
addf lut5.0 servo-thread
Please Log in or Create an account to join the conversation.
- fernandosf
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 68
- Thank you received: 16
13 Jul 2021 16:53 #214618
by fernandosf
Replied by fernandosf on topic Home + Limit from just 1 input pin: HAL config explained
Please Log in or Create an account to join the conversation.
- fernandosf
-
Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 68
- Thank you received: 16
16 Jul 2021 15:28 #215064
by fernandosf
Replied by fernandosf on topic Home + Limit from just 1 input pin: HAL config explained
Hey Guys,
Just to close this topic, I was getting LUT5 function the wrong way, in fact, what happens is that the function 0x10000 means LUT5 will output true only when IN4=TRUE, IN3=IN2=IN1=IN0=FALSE
This means that Limit switches of the joints will only be TRUE when:
1. the serial circuit of switches is open (IN4=TRUE)
2. none of the joints are in a homing operation (IN3=IN2=IN1=IN0=FALSE)
Thank you all
Just to close this topic, I was getting LUT5 function the wrong way, in fact, what happens is that the function 0x10000 means LUT5 will output true only when IN4=TRUE, IN3=IN2=IN1=IN0=FALSE
This means that Limit switches of the joints will only be TRUE when:
1. the serial circuit of switches is open (IN4=TRUE)
2. none of the joints are in a homing operation (IN3=IN2=IN1=IN0=FALSE)
Thank you all
The following user(s) said Thank You: BigJohnT
Please Log in or Create an account to join the conversation.
Time to create page: 0.190 seconds