Hello Guest it is April 26, 2024, 09:16:49 PM

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 - Vital System Support

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 »
271

In step jog mode, mach3 generates the commanded motion, and dspmc just make sure all axis follow the position stream from mach.  can you send the debug log text from the black dos window, so we can try to analyze what may be happening.

thanks



272
dspMC/IP Motion Controller / Re: Spindle settings
« on: May 15, 2014, 06:59:41 PM »

Hello Ghantos,

S commands (like GCode commands) have their functionality built into the Mach3 engine. They are simply interpreted by Mach3 to produce the desired result so I think altering their functionality is out of the question. M Commands, on the other hand, have their functionality in the .m1s files located in the macros folder in your Mach3 install directory. M commands are a good way to place your own commands within the GCode file. As far as I know, the only way to achieve what you want is with MCodes and vbScripts.

If you want to be able to set a variable RPM (like when using the S command), you can first set a Mach3 variable to hold the desired RPM, then call the M Command. Inside the MCode file, you can just look at the Mach3 variable that you just set and work with it  that way. The function "SetSpinSpeed()" is the same as calling an S Command.



Set this in GCode:
#2000=5000   'target RPM
#2001=200     'RPM increase per sleep
#2002=100     'Sleep time in ms

< Call M Code Here>


Mcode contents:

targetRPM = GetVar(2000)
rpmInc = GetVar(2001)
sleepMS = GetVar(2002)
currentRPM = 0

SetSpinSpeed(0)
DoSpinCW()

WHILE (currentRPM < targetRPM)
  currentRPM = currentRPM + rpmInc
  SetSpinSpeed(currentRPM)
  Sleep(sleepMS)
WEND


Good luck.

-Marc Lim
Vital Systems Inc.

273
dspMC/IP Motion Controller / Re: Spindle settings
« on: May 12, 2014, 01:27:25 PM »
Hello Ghantos,

What you can do is write an M command that sets the increases the spindle speed overtime. Use sleeps to time the increases.

SetSpinSpeed(0)
DoSpinCW()
SetSpinSpeed(200)
Sleep(200)
SetSpinSpeed(400)
Sleep(200)
SetSpinSpeed(600)
Sleep(200)
...

do this until the desired RPM is reached.

you can also handle this a bit more elegantly by using system variables .

Set this in GCode:
#2000=5000   'target RPM
#2001=200     'RPM increase per sleep
#2002=100     'Sleep time in ms

Mcode contents:

targetRPM = GetVar(2000)
rpmInc = GetVar(2001)
sleepMS = GetVar(2002)
currentRPM = 0

SetSpinSpeed(0)
DoSpinCW()

WHILE (currentRPM < targetRPM)
  currentRPM = currentRPM + rpmInc
  SetSpinSpeed(currentRPM)
  Sleep(sleepMS)
WEND



274
dspMC/IP Motion Controller / Re: DSPMC Mach3 integration issues
« on: April 22, 2014, 12:01:57 PM »
Hello Rich,

We could do a remote login to your PC to help you with the tuning. You can add me on Skype: "marc.lim.vital", or call us at our office number if you're interested. We'll do our best to help you resolve the issue.

- Marc
Vital Systems Inc.

275
dspMC/IP Motion Controller / Re: DSPMC Mach3 integration issues
« on: April 19, 2014, 02:03:06 PM »
hi Rich,

you should test with short moves like quarter inch or less and at 2 to 3 times target accel and velocity.  this way at regular speeds you get even better results.

regards,
Rufi

276
dspMC/IP Motion Controller / Re: DSPMC Mach3 integration issues
« on: April 15, 2014, 06:18:51 PM »
your test motion obviously shows the PID tuning or drive response is not effective at all.  the blue and red lines should be as close as possible, ideally should overlap.   there could be a number of issues:
- PID tuning parameters need to be updated
- Servo Drive Gain setting is too low
- Servo drive and motor not capable of handling the load or velocity settings.

check your drives, they should deliver maximum velocity or maximum torque at +-10volts.

there is a section of pid tuning in the dspmc user manual.  please check that out for some tuning steps.

we can also login to your system to help you tune the pid parameters.  please email to support at vitalsystem dot com

thanks
rufi




277
dspMC/IP Motion Controller / Re: DSPMC Mach3 integration issues
« on: April 15, 2014, 03:19:01 PM »
Rich,

can you also post the screen shots of test motion graph for each axis.  this will help to pin point the issue lot quicker. 

also, if the PID tuning is not tight enough, the final position will not be close to commanded, or it may take more time to get to the commanded.

Regards,
Rufi
VSI


278
dspMC/IP Motion Controller / Re: DSPMC Mach3 integration issues
« on: March 17, 2014, 02:28:22 PM »
To get motion, all you would need to do is to wire the +/-10V Analog Outputs and the signal ground from the DSPMC to your Servo Drives and wire the Encoder Feedback signals coming from your drives to the DSPMC.

The tachometers from the motors should be connected to your drives.

The system layout diagram can be found on the DSPMC webpage, somewhere in the middle part of the page. Wiring and hardware connections can be found in the DSPMC User Guide, Chapter 4: Hardware Interface Description. See port J2 for Analog Outputs, and ports J6 and J7 for encoder feedback.

Digital I/O can be wired to ports J4 and J5 on the DSPMC.  For 24Volt I/O, use the 7535P or 7535N breakout board on J4 or J5.

regards,
Rufi


279
dspMC/IP Motion Controller / Re: Upgrading Issue
« on: November 04, 2013, 09:46:58 PM »
you do need to match the firmware with the plugin.  so make sure use the matching plugin and firmware.  the upgrade tool is located here: http://www.vitalsystem.com/portal/motion/VSI_Device_Manager.zip

thanks
VSI

280
dspMC/IP Motion Controller / Re: Upgrading Issue
« on: October 12, 2013, 02:47:25 PM »
looks like there is an old m3dspmc.dll in the c:\mach3 folder tree.  please search for this dll in c:\mach3 folder and all subfolders and delete the old file.  make sure mach3 is closed.   copy the new dll v3.5.9 into c:\mach3\plugins and start mach3.  you should see something like:

DSPMC/IP POnline. Plugin 3.5.9, DSPMC: 7762/0719, CPU Rev: 6

hope this helps

-vitalsystem


Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 »