Page 1 of 1

Incremental Jog (Resolved)

Posted: Sat Sep 12, 2020 11:32 am
by Robs-shiz
Hello everyone, this is my first post and glad to be a part of the community.

I recently got my shizuoka an-s with summit tool changer up and running. Centroid tech support was very helpful with getting my tool changer going. I did various runs of cutting air and making tool changes and everything seem good until I went to set up some material. Slow and high speed continuous jog work however only X1 works on incremental X10 and X100 do no respond when clicked. I have looked through the PLC source code and parameters but I am stumped. I am hoping someone here will be able to help.

I think the report attached, but please let me know if it didn't and I will post again

Thank You
Robbie

Re: Incremental Jog

Posted: Sat Sep 12, 2020 11:40 am
by Robs-shiz
Attached is my report

Re: Incremental Jog

Posted: Sat Sep 12, 2020 6:44 pm
by cncsnw
There is an error (or rather an omission) in your PLC program source. Neither MPGStage nor WirelessMPGStage, in detecting presses of the x1, x10 and x100 keys, bothers to look at SkinX1_M, SkinX10_M or SkinX100_M. Those are the bits that indicate you have clicked the jog increment buttons on the VCP.

At least in MPGStage (which you are using, since P218==0) and preferably also in WirelessMPGStage (which you would be using instead if you were to add a wireless MPG and change P218) you should change:

Code: Select all

;x1, x10, x100 functions
;--X1
IF x1JogKey_I THEN (x1JogPD_PD)
IF x1JogPD_PD || OnAtPowerUp_M || X1_M || (MPG_Inc_X_1_I && MPGLED_O)
  THEN SET x1JogLED_O, RST x10JogLED_O, RST x100JogLED_O

;--X10
IF x10JogKey_I THEN (x10JogPD_PD)
IF x10JogPD_PD || X10_M || (MPG_Inc_X_10_I && MPGLED_O)
  THEN RST x1JogLED_O, SET x10JogLED_O, RST x100JogLED_O

;--X100
IF x100JogKey_I THEN (x100JogPD_PD)
IF x100JogPD_PD || X100_M || (MPG_Inc_X_100_I && MPGLED_O)
  THEN RST x1JogLED_O, RST x10JogLED_O, SET x100JogLED_O
to read instead:

Code: Select all

;x1, x10, x100 functions
;--X1
IF x1JogKey_I || SkinX1_M THEN (x1JogPD_PD)
IF x1JogPD_PD || OnAtPowerUp_M || X1_M || (MPG_Inc_X_1_I && MPGLED_O)
  THEN SET x1JogLED_O, RST x10JogLED_O, RST x100JogLED_O

;--X10
IF x10JogKey_I || SkinX10_M  THEN (x10JogPD_PD)
IF x10JogPD_PD || X10_M || (MPG_Inc_X_10_I && MPGLED_O)
  THEN RST x1JogLED_O, SET x10JogLED_O, RST x100JogLED_O

;--X100
IF x100JogKey_I || SkinX100_M THEN (x100JogPD_PD)
IF x100JogPD_PD || X100_M || (MPG_Inc_X_100_I && MPGLED_O)
  THEN RST x1JogLED_O, RST x10JogLED_O, SET x100JogLED_O

Re: Incremental Jog

Posted: Sat Sep 12, 2020 7:47 pm
by Robs-shiz
Hi CNCSNW,

Thank you for taking the time to look over my machines report. I just wanted to clarify that for now I am only using the VCP and sometime in the future will purchase the wireless MPG once the budget permits. I went into the PLC source code and replaced the code with what you provided in the second window of your post. I then reset oak and CNC12 but still had no luck. do I need to change parameter P218?

Re: Incremental Jog

Posted: Sat Sep 12, 2020 7:50 pm
by Robs-shiz
My report

Re: Incremental Jog

Posted: Sat Sep 12, 2020 11:28 pm
by cncsnw
First, it appears that you made the changes in "Centroid-Mill-Standard-OAK-r4.src", while it appears that the correct PLC program for your machine (the one you have been running at least for the last three days) is in "A900859.src".

Second, while you edited a PLC program source file, you did not compile it into a new "mpu.plc" file. Editing source code has no effect until you compile the changed file.

Supposing that you made your desired changes in "A900859.src". Then, from a command prompt, you could enter the command:

Code: Select all

mpucomp  A900859.src  mpu.plc
to compile that file into a new working PLC program file that the control will use.

Re: Incremental Jog

Posted: Sun Sep 13, 2020 4:21 pm
by Robs-shiz
I can’t thank you enough for help! I made the changes, compiled and now everything is working great.

Thanks again

Re: Incremental Jog (Resolved)

Posted: Tue Sep 15, 2020 9:14 am
by martyscncgarage
Take the time to post a video of the machine running, doing a tool change and pan to the control. Maybe an overview of your build and experience.
Post it in the success stories Forum.
Best way to say thanks for the help you have received.

I'd like to see it doing its thing!
Marty

Re: Incremental Jog (Resolved)

Posted: Tue Nov 03, 2020 11:34 am
by Robs-shiz
Will do Marty. thank you for all of the videos you have posted. They were very helpful in helping me get my system up and running. i am in the process of cleaning up wiring and buttoning up some things but once I get something semi-presentable I will definitely post a video.