- Configuring LinuxCNC
- Configuration Tools
- PnCConf Wizard
- Mesa 5i25 7i77 Limit Switch True when not limit
Mesa 5i25 7i77 Limit Switch True when not limit
- B.Reilly01
- Offline
- Elite Member
Less
More
- Posts: 162
- Thank you received: 23
01 Feb 2017 00:33 #87104
by B.Reilly01
Mesa 5i25 7i77 Limit Switch True when not limit was created by B.Reilly01
My machine has NPN limit switches that show ground when limit is reached, and float when not on the limit. I understand that MESA prefers (requires?) limit switches to show +FV when at the limit. Is it possible to configure an input as true when NOT at limit and use a pullup resistor to make the output of my limitswitches +FV when off limit and 0V (false) when at the limit? I'd prefer not incorporating ANOTHER relay board just to flip the logic of my limitswitches.
Please Log in or Create an account to join the conversation.
01 Feb 2017 01:09 #87106
by PCW
Replied by PCW on topic Mesa 5i25 7i77 Limit Switch True when not limit
Yes NPN limits need a pullup resistor (say 2K 1W) to interface with the 7I77s digitalinputs
To invert the logic you just connect the limit signals to the hm2_5i25.0.7i77.0.0.input-XX-not
pins instead of the hm2_5i25.0.7i77.0.0.input-XX pins in the hal file
To invert the logic you just connect the limit signals to the hm2_5i25.0.7i77.0.0.input-XX-not
pins instead of the hm2_5i25.0.7i77.0.0.input-XX pins in the hal file
The following user(s) said Thank You: B.Reilly01
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19220
- Thank you received: 6440
01 Feb 2017 01:11 #87107
by tommylight
Replied by tommylight on topic Mesa 5i25 7i77 Limit Switch True when not limit
Every input on mesa boards has an in and in-not pin, so you can use a pull up resistor and use in-not for that pin.
The following user(s) said Thank You: B.Reilly01
Please Log in or Create an account to join the conversation.
- B.Reilly01
- Offline
- Elite Member
Less
More
- Posts: 162
- Thank you received: 23
01 Feb 2017 01:12 #87108
by B.Reilly01
Replied by B.Reilly01 on topic Mesa 5i25 7i77 Limit Switch True when not limit
Great, so I build my PNCConf files, then I edit the HAL to switch the limits to the NOT pin instead of the regular pin.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19220
- Thank you received: 6440
01 Feb 2017 01:25 #87109
by tommylight
Replied by tommylight on topic Mesa 5i25 7i77 Limit Switch True when not limit
Yes, and i think you can also do that in pncconfig.
Please Log in or Create an account to join the conversation.
- B.Reilly01
- Offline
- Elite Member
Less
More
- Posts: 162
- Thank you received: 23
01 Feb 2017 01:48 #87111
by B.Reilly01
Replied by B.Reilly01 on topic Mesa 5i25 7i77 Limit Switch True when not limit
Got it, the INV box
Please Log in or Create an account to join the conversation.
Moderators: cmorley
- Configuring LinuxCNC
- Configuration Tools
- PnCConf Wizard
- Mesa 5i25 7i77 Limit Switch True when not limit
Time to create page: 0.081 seconds