Hello Guest it is March 28, 2024, 12:46:20 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 - LM941

Pages: 1 2 »
1
CS-Lab / CSMIO-ENC Spindle Orientation
« on: January 23, 2016, 09:33:32 AM »
I did that too, jumpered A B I , but from spindle pulley encoder to both IP-A and ENC.  Didn't help the PID issue. Don't have an explanation why they want motor encoder. Never connected the spindle enable in plugin cause between brains and macros, it's already a puzzle. I should write something up as a heads up with brains and macros commingling. 




Sent from my iPhone using Tapatalk

2
CS-Lab / Re: CSMIO-ENC Spindle Orientation
« on: January 22, 2016, 05:07:29 PM »
Yes, it runs away.. pulses set correct.. encoder direction based on + RPM properly displayed.. 

I got a very detailed email on this from CS-Labs this morning.  Quite a bit of effort to outline the settings/issues that hopefully they put on their website.

Couple big items were:

1. They said the encoder from the motor itself needs to go to CSMIO/IP-A, the encoder off the pulley 1:1, goes to the CSMIO-ENC.  This won't work for me because the actual motor encoder is connected to the Siemens 611 drive controller.  I don't want to take it off that.

2. They said "Align at Stop" is not for tool magazines. It is intended for lathes.

I will leave it as it is with the Macro orienting the spindle for tool change.  They gave me another macro technique using plug in calls I may try.  NotifyPlugins() which I hadn't used or known about.

3
CS-Lab / Re: CSMIO-ENC Spindle Orientation
« on: January 21, 2016, 05:59:03 PM »
I could not get the CSMIO-ENC option to "Align at stop" to work. I moved the spindle encoder to an axis encoder input, configured it as an Axis and it did autotuning the PID. It worked fine.  I put those settings in the PID settings for the CSMIO plugin/spindle section and the spindle just revs up to very high speeds when it should be 0 RPM.  I am sure the encoder is fine and wired correct because the ENC plugin monitor shows correct angle movements and correct RPMs.

Asked CS-Labs how to tune the PID on monday and still no response.  My ENC firmware version = 1.02  I was curious how that gets updated? When you update the CSMIO/IP? I see no separate firmware downloads for ENC on CS website.  I ended up using a macro to read the ENC angle value to orient it manually.  

Youtube of ATC dry run with spindle orienting. Have to slow way down to catch angle data from CSMIO-ENC -- GetInput(84).  
https://www.youtube.com/watch?v=TZEntieCl_Q

Youtube of the tool change, sorry the air compressor is so loud..
https://www.youtube.com/watch?v=9PaKyMAdqDM

Thanks for all the help, Hood

4
CS-Lab / Re: CSMIO-ENC Spindle Orientation
« on: January 18, 2016, 07:45:38 PM »
Yes I had tried this as closed loop throughout this. I was seeing weird things with M3 M4 not working and kept trying many settings. It seems that certain settings like Spindle Pulley don't take effect until you restart Mach3 but I can't be sure. There were times I restart Mach3 and the motor control would act different. It has always bothered me that the Plugin Spindle Axis config screen has the "Encoder Input Channel" I used when the encoder was connected to the CSMIO/IP-A.  I assumed once I got the CSMIO-ENC and moved the encoder to it's Channel 1 input, that setting would have an option for the ENC channel, but it doesn't.  I had considered doing what you mentioned and jumpering the two encoder inputs of the IP-A and ENC in parallel but was concerned about creating signal problems.

This is my spindle encoder

5
CS-Lab / Re: CSMIO-ENC Spindle Orientation
« on: January 18, 2016, 06:43:47 PM »
ah ok.. I may try that to auto-tune and get the PID close.  Thanks

6
CS-Lab / Re: CSMIO-ENC Spindle Orientation
« on: January 18, 2016, 06:05:11 PM »
Did you move the encoder wires over to the CSMIO/IP or were you able to select the ENC encoder channel? It would be easy to just move the ENC terminal block if they had made the pinouts the same..

7
CS-Lab / Re: CSMIO-ENC Spindle Orientation
« on: January 18, 2016, 03:40:38 PM »
Thanks,  I spent more time today on the spindle and have some more observations and discoveries.  Between Mach3 and CSMIO plugin the settings seem infinite. The CSMIO/IP-A manual did a pretty good job with help tuning the PID for the XYZ axis but not much on spindle PID tuning.  The screen shots in manual don't match plugin screens. Calibrating the spindle to get RPMs matching S command was a lot of trial and error. I played with the Mach3 Calibrate spindle function and then read here many saying it doesn't work. It shows PID of P=0.25, I=1, D=0.3. I can't set the CSMIO spindle PID, P less than 5.  No idea what PID to even start with in CSMIO spindle PID settings.

Attached are the best settings I got so far for Spindle to work ok as far as CW, CCW and RPM control. Once I make the PID Regulator - Open Loop in CSMIO plugin, the Align at stop option is disabled.

I made an M19 (spindle orient) macro and it kinda works if I run spindle at S2 and use GetInput (84) to look for angle Zero (where my tool changer wants it). It does not seem to be able to read the encoder input fast enough to be on target all the time. Wish they had a command to OrientSpindle(x) where x was angle.

Frustrating part is I think the Siemens 611 spindle drive Simodrive has the ability to stop at oriented angle but I thought the ENC would be easier  ::)

https://cache.industry.siemens.com/dl/files/160/98209160/att_2547/v1/IAA_1000_en.pdf

8
CS-Lab / Re: CSMIO-ENC Spindle Orientation
« on: January 18, 2016, 08:57:17 AM »
Hood, is your machine that aligns spindle at stop using the DAC axis output or the other analog outputs?

9
CS-Lab / Re: CSMIO-ENC Spindle Orientation
« on: January 17, 2016, 02:12:25 PM »
That's funny you noticed the Demo in the title. I hadn't.  We bought the Mach3 License from CS-Labs and I went through the install of the plugin without paying attention to the Mach3 install. Had downloaded previous to play with and never got any nag screen. Definitely need to clear that up and be sure it is not causing any issue.  

I am am using brains to control that spindle enable output so maybe I can use some delay.  Brains are another subject of head scratching.  CS-Labs documentation on the ModBus integration is sparse.  I tried using some brain terminators to control a CSMIO output via ModBus but gave up and just configured the output through Mach3 ports and pins.

Heading to try some spindle disable delays and will let you know.  Thanks again.

10
CS-Lab / Re: CSMIO-ENC Spindle Orientation
« on: January 17, 2016, 12:37:58 PM »
Thanks Hood! I have been reading your posts for the past month and you have helped tremendously with my questions during this project.

The encoder is off a 1:1 pulley with 1024 count. CSMIO was reporting 4 revolutions for 1 actual revolution so I had to set P/Rev to 4096 to sync. Not sure why this encoder has such low resolution unless controls in 1995 couldn't keep up at 6000 rpms?

Before purchasing the ENC module, I had the encoder connected to Channel 3 of CSMIO/IP-A.  The config screen (attached jpg) does not allow any Channel option for ENC-1 encoder port. I can only assume the plugin does it automatically. Besides it not stopping at angle set, there are some other odd things like Mach3 GUI speed controls doing nothing but S codes do.  RPM dro is being updated fine.

One area that might be problematic is the Mach3 [Spindle CW F5] button controls a relay that opens the SimoDrive 611 Spindle control enable signal,  immediately stopping the spindle and disabling (required for tool unclamping).   I am not sure how long CSMIO-ENC needs to orient it and if it is disabled too fast.  I have tried overriding the spindle enable but it didn't seem to resolve it.

http://www.machsupport.com/software/plugins/  - shows ENC in plugin list but the link is no good.  I hope this isn't me just missing a plugin. I have found nothing related to a separate ENC plugin on cs-lab website.

Pages: 1 2 »