View Full Version : Struggling with C3
GeneMpls
08-02-2013, 11:30 AM
I have a PRS 4x4 that I am setting up. If I load the SB setup for this machine
it homes (c3) to red dot on the attached pict. I set up my previous BT32 so that it homes to the yellow dot. I can change the axis and set the units so that
the puter buttons are going the correct way with no problems... and when
I do a C3 it heads to the correct spot but runs right thru the prox sensor and
crashes into the stop. I remember fighting with the BT to get this to work the
way I want it... but my memory fails me... again. Anyone have a thought on
this? It senses the prox switch fine with the standard setup BTW, Thanks Gene
jerry_stanek
08-02-2013, 12:38 PM
It would take a while to run but you could put in a -48 something in the setup page but the y would have to travel 48 inches plus to zero.
kerrazy
08-02-2013, 12:55 PM
Gene c&p your text for the original C3 command, and then do the same for your custom C3 command. And I will have a peak at it and sort you out.
No need to change axis, just the unit value for y home location. It is finding prox then making a big move. Just ensure it knows that it is a large negative move from y prox sensor. Not a positive move.
Example: current c3 homing routine kisses x prox and then backs up or moves forward to imputed desired x location then proceeds to kiss y prox sensor, then moves to desired location. You need to allow machine to do that then move y gantry to desired position, write down distance it moved ex. 47.324 inches. And then add this value to current y position in existing c3 command.
Makes sense?
dana_swift
08-02-2013, 01:18 PM
Moving the home position to the other corner involves switching the X and Y axes.
C3 expects the X prox switch to trigger when it zeros the X axis, and the same thing with Y. When you switch axes, the factory version of C3 isnt smart enough to follow what you did.
I have posted an updated C3 that is intelligent and watches the correct axis for either configuration. If it cant be found, I will re-post.
D
waynelocke
08-02-2013, 02:32 PM
Maybe I am missing something. I know that I have a faulty memory but isn't there something in the setup which asks you which corner is 0,0.
Wayne
kerrazy
08-02-2013, 03:18 PM
Wayne ison the money. No need to swap axis.
nzbrock
08-02-2013, 03:26 PM
You can change the unit values for the axis to negative. Both negative make the diagonally opposite corner 0,0.
You will need to put your prox switches close to your 0,0 corner.
GeneMpls
08-03-2013, 02:14 PM
Moving the home position to the other corner involves switching the X and Y axes.
C3 expects the X prox switch to trigger when it zeros the X axis, and the same thing with Y. When you switch axes, the factory version of C3 isnt smart enough to follow what you did.
I have posted an updated C3 that is intelligent and watches the correct axis for either configuration. If it cant be found, I will re-post.
D
Thank you all for the ideas- but when I saw Dana's lovely picture it came to
me what I had done with the BT- switch the prox switches. Man it would be
nice to have a memory! For some reason since then I got the impression that
the prox switches were all wired in parallel (I think someone was told to
splice an add-on Z prox switch into the Y lead) But I now remember seeing
that Dana wired into a different input (5 I think?) and I am in process of doing
that as well. Dana- would you re-post the updated C3 please- everything that I found in searching was quite old. Thanks Gene
dana_swift
08-03-2013, 05:54 PM
Gene, I have attached a zip file containing the XYzeroFIXED.sbc file.
What I do is edit the C:\SbParts\Custom\custom3.sbc so it runs the file "XYzeroFIXED.sbp" wherever it ends up on your machine. Then each time you re-install the SB3 program it only wipes out the "where is it" file which is easy to regenerate. If you need an example of that file let me know. I put it in a directory where my backup program will find it. It can be in the SbParts Custom folder also, I just choose to put it elsewhere.
Looking in the XYzeroFIXED program, its mostly stock factory from vintage 2007. Presumably the latest version of C3 is updated to allow tool change models, etc.
In the XYzeroFIXED file, note that at line 103 I move the X and Y a little "tweak" and then call Z2 again. You will probably want to change that to suit your needs. Alternately use the values in the the my_variables.sbc file (the way the factory intended it to work).
I dont change the prox switch wiring for the X and Y prox switches, just made the software check to see whether the channel 1 driver is X or Y. That check is done at line 47. The software switcheroo is done in lines 61 through 64, so it works with "regular" or switched axes. That allows me to use my laptop with other peoples machines and everything still works everywhere. Adaptable :)
If you edit the file, use either SBEdit, or Notepad++. Either one has line numbers.
Hope that helps!
D
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.