Swits problems
- Frederik
- Offline
- New Member
- Posts: 18
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- cncbasher
- Offline
- Moderator
- Posts: 1744
- Thank you received: 288
in hal test are the switches shown and working correctly ?
if you are using the switches as limits and also home then set to both-home-x & both-home-y you may also need to invert the pin
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23182
- Thank you received: 4869
I have a V90 from Probotix which run with emc2, which run as it should. I have just fitted swits on x and y , but nothing happens any time.
If it was working without the switches, then you need to change the HAL and INI files to use the switches after you add them.
In the Axis preview window you will see a little arrow appear next to the DRO position display for each axis when the switches operate, and clear when the switches clear. The first test to do is to manually operate the switches and see if you can see these change state.
If they don't, then the likely problem is that the switch inputs are not connected to the home/limit pins in HAL.
Please Log in or Create an account to join the conversation.
- Frederik
- Offline
- New Member
- Posts: 18
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23182
- Thank you received: 4869
Is there some files e.g. hal and ini which can replace, so one should not use a lot of time on something which is made in advance ...?
Do you have a V90.stepconf file lurking in your linuxcnc folder? If so then the easiest solution will be to add the limits in stepconf.
Please Log in or Create an account to join the conversation.
- Frederik
- Offline
- New Member
- Posts: 18
- Thank you received: 0
<?xml version="1.0" ?>
<stepconf>
<property name="ahomepos" type="int" value="0"/>
<property name="ahomesw" type="int" value="0"/>
<property name="ahomevel" type="float" value="0.05"/>
<property name="alatchdir" type="int" value="0"/>
<property name="aleadscrew" type="int" value="8"/>
<property name="amaxacc" type="int" value="1200"/>
<property name="amaxlim" type="int" value="9999"/>
<property name="amaxvel" type="int" value="360"/>
<property name="amicrostep" type="int" value="2"/>
<property name="aminlim" type="int" value="-9999"/>
<property name="apulleyden" type="int" value="1"/>
<property name="apulleynum" type="int" value="1"/>
<property name="ascale" type="int" value="0"/>
<property name="asteprev" type="int" value="200"/>
<property name="axes" type="int" value="0"/>
<property name="customhal" type="bool" value="True"/>
<property name="dirhold" type="float" value="20000.0"/>
<property name="dirsetup" type="float" value="20000.0"/>
<property name="drivertype" type="int" value="6"/>
<property name="ioaddr" type="string" value="0x378"/>
<property name="latency" type="float" value="15000.0"/>
<property name="machinename" type="string" value="V90"/>
<property name="manualtoolchange" type="bool" value="True"/>
<property name="md5sums" type="eval" value="[('/home/len/emc2/configs/V90/README', 'dcee655beef2a63381f0516b0bd429b3'), ('/home/len/emc2/configs/V90/V90.ini', 'b346c0c94e7ed2acbdca3150cf65afa4'), ('/home/len/emc2/configs/V90/V90.hal', '780bf9ed0cf5ea0eb6c0953bf8b398fc')]"/>
<property name="period" type="int" value="25000"/>
<property name="pin1" type="int" value="13"/>
<property name="pin10" type="int" value="35"/>
<property name="pin10inv" type="bool" value="False"/>
<property name="pin11" type="int" value="35"/>
<property name="pin11inv" type="bool" value="False"/>
<property name="pin12" type="int" value="35"/>
<property name="pin12inv" type="bool" value="False"/>
<property name="pin13" type="int" value="35"/>
<property name="pin13inv" type="bool" value="False"/>
<property name="pin14" type="int" value="16"/>
<property name="pin14inv" type="bool" value="False"/>
<property name="pin15" type="int" value="35"/>
<property name="pin15inv" type="bool" value="False"/>
<property name="pin16" type="int" value="16"/>
<property name="pin16inv" type="bool" value="False"/>
<property name="pin17" type="int" value="16"/>
<property name="pin17inv" type="bool" value="False"/>
<property name="pin1inv" type="bool" value="False"/>
<property name="pin2" type="int" value="2"/>
<property name="pin2inv" type="bool" value="False"/>
<property name="pin3" type="int" value="3"/>
<property name="pin3inv" type="bool" value="True"/>
<property name="pin4" type="int" value="0"/>
<property name="pin4inv" type="bool" value="False"/>
<property name="pin5" type="int" value="1"/>
<property name="pin5inv" type="bool" value="True"/>
<property name="pin6" type="int" value="4"/>
<property name="pin6inv" type="bool" value="False"/>
<property name="pin7" type="int" value="5"/>
<property name="pin7inv" type="bool" value="True"/>
<property name="pin8" type="int" value="16"/>
<property name="pin8inv" type="bool" value="False"/>
<property name="pin9" type="int" value="16"/>
<property name="pin9inv" type="bool" value="False"/>
<property name="pyvcp" type="bool" value="True"/>
<property name="spindlecarrier" type="int" value="100"/>
<property name="spindlecpr" type="int" value="100"/>
<property name="spindlepwm1" type="float" value="0.2"/>
<property name="spindlepwm2" type="float" value="0.8"/>
<property name="spindlespeed1" type="int" value="100"/>
<property name="spindlespeed2" type="int" value="800"/>
<property name="stepspace" type="float" value="5000.0"/>
<property name="steptime" type="float" value="5000.0"/>
<property name="units" type="int" value="0"/>
<property name="xhomepos" type="float" value="0.0"/>
<property name="xhomesw" type="float" value="0.0"/>
<property name="xhomevel" type="float" value="0.05"/>
<property name="xlatchdir" type="int" value="0"/>
<property name="xleadscrew" type="float" value="5.0"/>
<property name="xmaxacc" type="float" value="60.0"/>
<property name="xmaxlim" type="float" value="24.0"/>
<property name="xmaxvel" type="float" value="4.2"/>
<property name="xmicrostep" type="float" value="2.0"/>
<property name="xminlim" type="float" value="-24.0"/>
<property name="xpulleyden" type="float" value="1.0"/>
<property name="xpulleynum" type="float" value="1.0"/>
<property name="xscale" type="float" value="2000.0"/>
<property name="xsteprev" type="float" value="200.0"/>
<property name="yhomepos" type="float" value="0.0"/>
<property name="yhomesw" type="float" value="0.0"/>
<property name="yhomevel" type="float" value="0.05"/>
<property name="ylatchdir" type="int" value="0"/>
<property name="yleadscrew" type="float" value="5.0"/>
<property name="ymaxacc" type="float" value="60.0"/>
<property name="ymaxlim" type="float" value="18.0"/>
<property name="ymaxvel" type="float" value="3.8"/>
<property name="ymicrostep" type="float" value="2.0"/>
<property name="yminlim" type="float" value="-18.0"/>
<property name="ypulleyden" type="float" value="1.0"/>
<property name="ypulleynum" type="float" value="1.0"/>
<property name="yscale" type="float" value="2000.0"/>
<property name="ysteprev" type="float" value="200.0"/>
<property name="zhomepos" type="float" value="0.0"/>
<property name="zhomesw" type="float" value="0.0"/>
<property name="zhomevel" type="float" value="0.05"/>
<property name="zlatchdir" type="int" value="0"/>
<property name="zleadscrew" type="float" value="12.0"/>
<property name="zmaxacc" type="float" value="64.0"/>
<property name="zmaxlim" type="float" value="4.0"/>
<property name="zmaxvel" type="float" value="0.4"/>
<property name="zmicrostep" type="float" value="2.0"/>
<property name="zminlim" type="float" value="-4.0"/>
<property name="zpulleyden" type="float" value="1.0"/>
<property name="zpulleynum" type="float" value="1.0"/>
<property name="zscale" type="float" value="4800.0"/>
<property name="zsteprev" type="float" value="200.0"/>
</stepconf>
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23182
- Thank you received: 4869
I meant to suggest that you should run Stepconf (from the CNC menu) and modify your config to add the limit switches.
That file is the stepconf representation of your current configuration,
Please Log in or Create an account to join the conversation.
- Frederik
- Offline
- New Member
- Posts: 18
- Thank you received: 0
I am very pleased that you will help me.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23182
- Thank you received: 4869
Ok, I am prepared to do anything, but where and what should I start with.
I am guessing that you know which parallel port pins you connected the switches to. I am further guessing that you plan on using shared home/limit switches, one for each axis.
So, from the CNC menu select the Stepconf Wizard
On the second page select "modify an existing configuration"
Click "Forward" and then select the V90.Stepconf file.
Click Forward through Basic Machine Config
You might as well click "include HALUI" in the "Advanced Config Options"
Click forward to "Parallel Port setup" and look at the right-hand (inputs) column.
Select, for example, Pin 10 as "Both Limit + Home X"
Similarly for Y and Z axes, depending on how you wired the pins.
In the X-axis configuration panel you almost certainly want to set the home-switch position to -24, but I don't know for sure. It depends where the switch is.
If the home switch is at -24 then I think that the Home Search Velocity might need to be negative.
Similarly for axes Y and Z.
Then click through to the end, and Apply.
Check the witch operation manually as described earlier.
Then see what happens when you press "Home" (Be ready on the "ESC" button). You will probably need to adjust the homing directions, speeds, and the signs of the velocities. But that all depends on your machine setup.
Please Log in or Create an account to join the conversation.
- Frederik
- Offline
- New Member
- Posts: 18
- Thank you received: 0
Please Log in or Create an account to join the conversation.