spindle orient

More
07 Jan 2021 10:24 - 07 Jan 2021 10:25 #194346 by tommylight
Replied by tommylight on topic spindle orient
OK, there are no PWM's so that will need firmware flashed with PWM.
Download the support files from mesanet.com for the 5i25, extract, there should be plenty of firmware files, so you would need one that has stepgens and encoder same as you have them now and have PWM gen instead of TX/RX stuff.
Flashing is easy:
sudo mesaflash --device 5i25 --write name_of_the_file_to_be_flashed.bit
Almost forgot, ther are also files with .pin in the name that shows the pin assignment .
Last edit: 07 Jan 2021 10:25 by tommylight. Reason: more info

Please Log in or Create an account to join the conversation.

More
07 Jan 2021 15:56 #194368 by Todd Zuercher
Replied by Todd Zuercher on topic spindle orient
Wait, what do you need a PWM for anyway?

The analog output for the spindle on a 7i76 is not commanded with a PWM hal pin. Does your drive require an analog signal or a digital PWM?

If you are going to use a digital PWM output you will need to re-flash the firmware of your 5i25 to replace one of the step/dir outputs with a PWM signal.

Please Log in or Create an account to join the conversation.

More
07 Jan 2021 16:28 #194374 by andypugh
Replied by andypugh on topic spindle orient
I am guessing that you have copied sections from a configuration that used a different combination of Mesa cards.

Delete the two lines that set PWM and PDM frequencies.

Then elsewhere in the code replace the pwmgen references to hm2_5i25.0.7i76.0.0.analogout-00 (or whatever your actual spindle output pin is called)

Please Log in or Create an account to join the conversation.

More
08 Jan 2021 04:30 - 08 Jan 2021 04:30 #194467 by jefsaro
Replied by jefsaro on topic spindle orient
Hi , i Work whit analog signal 0 10v
Last edit: 08 Jan 2021 04:30 by jefsaro.

Please Log in or Create an account to join the conversation.

More
08 Jan 2021 06:26 #194470 by jefsaro
Replied by jefsaro on topic spindle orient
so i think i am making a big mistake i take config with pwm but this is pid i need i start new config like alkabal i see serge452 has omron which is same as hitachi , I think it's getting close to what I need.

Please Log in or Create an account to join the conversation.

More
08 Jan 2021 12:23 #194480 by andypugh
Replied by andypugh on topic spindle orient
I think your current setup is close, you just need to swap the pwm (one way to do analog output) to 7i76 analogout (another way to do analog output)

Please Log in or Create an account to join the conversation.

More
08 Jan 2021 15:47 #194507 by jefsaro
Replied by jefsaro on topic spindle orient
hello , i put files from alkbal , i find this error
Attachments:

Please Log in or Create an account to join the conversation.

More
08 Jan 2021 15:55 #194508 by andypugh
Replied by andypugh on topic spindle orient

hello , i put files from alkbal


Which files? And Why?

Please Log in or Create an account to join the conversation.

More
08 Jan 2021 16:21 - 09 Jan 2021 03:31 #194512 by alkabal
Replied by alkabal on topic spindle orient
Oh your welcome for try the last revision :

ini :
#******************************************
# Orient Spindle
[ORIENT]
# PID, input is degree
P = 0.5
I =  10
D = 0.0
FF0 = 1
FF1 = 0.0
FF2 = 0.0
BIAS = 0
DEADBAND = 0
MAX_ERROR = 0.0
MAX_ERROR_I = 0.0
MAX_OUTPUT = 80
#MAX_OUTPUT = 80 can be increased to [SPINDLE_0]MAX_OUTPUT

ENCODER_GAIN = 360
VEL_SPEED = 12
AT_ANGLE_TOL = 1
SPEED_MAX_DIRCHANGE = 250
# Orient need really slow and accurate spindle
#******************************************

Ini halui entry :
# halui.mdi-command-25:               #
MDI_COMMAND=(MSG,!!! Orient Homing before asked angle, MOVES TWO TIME !!!)
# halui.mdi-command-26:               #
MDI_COMMAND=(MSG,!!! Orient Spindle Auto Homing !!!)
# halui.mdi-command-27:               #
MDI_COMMAND=(MSG,!!! Orient or Spindle Reverse do forward Auto Homing before run reverse !!!)
# halui.mdi-command-28:               #
MDI_COMMAND=(ABORT,Program or Spindle or Orient is stopped due to 3D probe connected)
# halui.mdi-command-29:               #
MDI_COMMAND=(ABORT,PID for Orient saturated)


--the theory is inverted the comment out for :
RELATIVE only for controller using +-10v for direction with positive/negative PID
or 
ABSOLUE IF USE WITH RELAY FOR DIRECTION or if DRIVE NEED INPUT = PID allways positive

--connect jog signal if you have a mpg wheel in the correspondent config

--connect your input signal from 3D touch probe if you have one using
net touch-probe-inv-lock  <= your inverted touch probe pin

--comment out your signal sent to the card from your regular spindle config and put them to the orient spindle input:
7i76.0.0.spinout
7i76.0.0.spindir
7i76.0.0.spinena

-- for trying to keep the standard please use the good name in your spindle config for sharing some signal
net spindle-index-enable
net spindle-ccw-management
net spindle-cw-management

for spindle use a pid configured as rpm

-- find your PID settings
--set your speed and tolerance
Attachments:
Last edit: 09 Jan 2021 03:31 by alkabal. Reason: Updated file

Please Log in or Create an account to join the conversation.

More
08 Jan 2021 16:23 #194513 by alkabal
Replied by alkabal on topic spindle orient
But i suspect the way is configured your spindle can be problematic, this need to be tested.

Please Log in or Create an account to join the conversation.

Time to create page: 0.110 seconds
Powered by Kunena Forum