Hello Guest it is April 25, 2024, 09:43:38 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Mantis3347

Pages: 1
1
Mach4 General Discussion / Re: Mach 4 Machtric 2.2kw VFD Modbus
« on: February 09, 2019, 02:11:53 PM »
As for stopping the spindle when the E-Stop is triggered, this code in the Signals Library of the Edit Screen WX6/ScreenLoadScript works for me:

[mc.ISIG_EMERGENCY]=function(state)
    if (state == 1) then
        mc.mcScriptExecute(inst,"m5.mcs",0);
   end
end,

With this code my Teco 7300CV under Modbus turns off the spindle with an M5 command from Mach4.

-rick

2
Mach4 General Discussion / Re: Modbus and VFD in Mach4
« on: July 16, 2015, 01:31:04 AM »
Well going out on a limb is something you do well!  Variable 2132 is exactly what I was looking for and my machine is working well. A big THANK YOU to you Screwie Louie!!

Here is the code that works for me.

Local SPD = mc.mcCntlGetPoundVer(inst, 2132);
hregSPD = mc.mcRegGetHandle(inst, "modbus0/SPD");
mc.mcRegSetValue(hregSPD, SPD);

I put this code into Operator/Edit Screen/PLC Script.  I read it runs in a continuous loop every 50mS or so.  So my code just keep looking for a change in the "S" speed in the NC code.

This may not be the best place for the code but what do I know, I'm a mechanical engineer.   ;)

I hope this helps whomever is attempting to run their TECO VFD over Modbus.

Rick 

3
Mach4 General Discussion / Re: Modbus and VFD in Mach4
« on: July 12, 2015, 06:00:59 PM »
Okay, it was my Modbus configuration.  I forgot to +1 to the "Modbus Register"  On Teco EV VFD the Run, Stop, Reverse, Forward is register 230 or 00E6H (in HEX).  I just needed to input 231 (230+1) to get VFD running.  As for the code in Mach4 "m3". This worked for me:

function m3()
inst=mc.mcGetInstance()
mc.mcCntlSetLastError(inst, 'Spindle CW');

hregDIR = mc.mcRegGetHandle(inst, "modbus0/DIR");
mc.mcRegSetValue(hregDIR, 11);

end

Note: 00 = Stop, 01=CW, 11=CCW.

Now I need to find out what variable holds the "S" (speed)

To be clear:  When I load a NC program and I have a line with S2000 M3 in it to set the speed and spin direction,  I need to understand what variable holds the "S2000" so I can capture it and send it to my VFD.

I'll post my finding when I figure it out.  

Thanks, Rick

 

4
Mach4 General Discussion / Modbus and VFD in Mach4
« on: July 12, 2015, 12:14:39 AM »
Hi all,

First time posting - sorry I am green.

I have a question about setting up communication between my VFD using Modbus in Mach 4, evaluation version.  I would like to get my VFD working before buying the lic.

FYI, I have no issues communication to my VFD using Mach3 or QModBus.  

Simply, I would like to understand what code needs to be placed into the "m3" LUA script to tell the spindle to run CW.  

This what I have tried:  mc.mcRegSetValue("modbus0/DIR0-0", 01)  

Let's assume that I configured the Modbus plug-in correctly.

Thanks for your help,  Rick

5
General Mach Discussion / Re: Losing steps on the run. . .
« on: February 22, 2008, 12:06:49 AM »
It was the laptop!  All better now with a desktop computer.  Thanks for the help.  I'm so happy now I think I am going to breakout in song.

6
General Mach Discussion / Re: Losing steps on the run. . .
« on: February 21, 2008, 12:56:38 AM »
Hi,

A little update:  I have been able to make my mill stop translating - missing steps for a second, at will.  I am still using a laptop and I think that is where the problem (noise) is coming from.  While the cutter is moving along, if I change from one screen page to another in Mach3 the condition occurs.

Rick

7
General Mach Discussion / Re: Losing steps on the run. . .
« on: February 20, 2008, 11:24:25 AM »
Hi Brett,

I have not forgotten about your request.  Pictures – I must make time for the pictures.  :-)

8
General Mach Discussion / Re: Losing steps on the run. . .
« on: February 20, 2008, 11:19:52 AM »
Hi Tweakie,

I think you are right!  I am building a PC for this application and I will post my results.  Thanks for the conformation that laptops may not be up to the task.  However, they are so much more convenient.

Rick

9
General Mach Discussion / Losing steps on the run. . .
« on: February 19, 2008, 12:26:27 AM »
Hi All,

I am two weeks new into this CNC stuff and I need a little help from my new friends.  My motors in all three axes are missing steps as I am moving along at 10 in/min.  I hear random chirps or step skips as I move along; sorry if I am not being clear with the proper vernacular.  And once in a while I get a burp and the motor stops turning as the counter on the Mach3 screen continues to go and then I’m off position by as much as ¼ inch. I discounted the motors so there is no load on them and I tuned and tuned and tuned with no avail.  I changed the pulse widths all the way up to +15. 

Here is some background information on my setup:
I am running MachX (2 on 3) on an IBM laptop with all the recommendations called out in the Art’s optimization file. When I run the driver test I see pure perfection at 25, 35, 45 . . . 100kHz.  BTW, I am plugged-in, not running off the battery; however I did try both setups.

I have a quality printer cable 3ft long running to my Gecko’s G201 with no BOB.  I have three AC/DC switcher power supplies made by GlobTec RT-3S150-24 each at 24V 6A. I am running little steppers made by Superior Electric Type MO62-CS-513 DCV 1.65, 4.7 amps. 200 steps/rev.  I built a Vicor AC 120V /DC 120V To DC/DC 5V with a 660 mF holdup capacitor to feed power to the Gecko’s opto’s and LPT ground.  Speaking of ground, I have tried many different configurations of grounding, the outputs of the power supplies, the Geckos, but not Gecko common to AC ground; I hear that could be costly.

Do you have any ideas guys and gals?  Gals as in girls not a unit of acceleration in the centimeter-gram-second system equal to 1 cm per second per second.  Sorry the geek in my just spilled out. 

Rick

Pages: 1