Jump to content

Поворот шпинделя на угол


alex68nic

Recommended Posts

alex68nic

Добры день, коллеги. Нужно повернуть шпиндель на определенный угол. Если я правильно понял то поворот осуществляется командой М19. А как прописать величину угла, на который должен быть выполнен поворот?  стойка FANUC0i-Model MF plus type 5

Edited by alex68nic
Link to post
Share on other sites


UnPinned posts
Guhl

M19 S...

Бывает, что так задаётся

15 минут назад, alex68nic сказал:

Добры день, коллеги. Нужно повернуть шпиндель на определенный угол. Если я правильно понял то поворот осуществляется командой М19. А как прописать величину угла, на который должен быть выполнен поворот?  стойка FANUC0i-Model MF plus type 5

Up

Link to post
Share on other sites
mannul
2 часа назад, alex68nic сказал:

Добры день, коллеги. Нужно повернуть шпиндель на определенный угол. Если я правильно понял то поворот осуществляется командой М19. А как прописать величину угла, на который должен быть выполнен поворот?  стойка FANUC0i-Model MF plus type 5

Ориентация шпинделя по команде может и не работать, это опция.

Link to post
Share on other sites
gudstartup
9 часов назад, alex68nic сказал:

поворот осуществляется командой М19

откройте ваши параметры SERVO GUIDE и увидите есть у вас эта опция или нет 

image.png

Сs скорее всего у вас нет  

Link to post
Share on other sites
andrey2147
10 минут назад, gudstartup сказал:

откройте ваши параметры SERVO GUIDE

Может просто на монитор ЧПУ посмотреть ?

Наличие оси С.

9 часов назад, alex68nic сказал:

Нужно повернуть шпиндель на определенный угол.

Вам чего ? паз под шпонку шкрябать?

Link to post
Share on other sites
gudstartup
1 час назад, andrey2147 сказал:

Наличие оси С.

я не думаю что автор вопроса не заметил оси с иначе и вопрос бы звучал иначе!:smile:

Edited by gudstartup
Link to post
Share on other sites

нам надо сделать цековки с внутренней части детали на фрезеровке. на станках OKUMA мы делали резцом (гребком) с одной пластиной ориентируя шпиндель командой М19 и положением угла командой RS=(значения угла). Теперь данную деталь необходимо поставить на станок со стойкой Fanuc. поэтому возник такой вопрос, как это реализовать на FANUC.

 

image.png

Link to post
Share on other sites

а почему не войти к примеру фрезой типа ласточкин хвост или Т-образной , да и вообще мало чтоль инструмента для обработки таких поднутрений ? 

Link to post
Share on other sites
1 час назад, alex68nic сказал:

Теперь данную деталь необходимо поставить на станок со стойкой Fanuc

В общем: Фанук тут постольку-поскольку, ориентация шпинделя реализуется станкостроителем в ладдере.

Link to post
Share on other sites
Богоманшин Игорь
19 минут назад, Killerchik сказал:

В общем: Фанук тут постольку-поскольку, ориентация шпинделя реализуется станкостроителем в ладдере.

Соглашусь, надо под конкретный станок искать, как там реализована М19. Может, и в ладдер придется лезть, под конкретную деталь менять, потом возвращать обратно - но аккуратно, может смена инструмента заглючить.

Когда то попадалось на буржуйских форумах, там чел вообще свой М-код делал под такие цели на каком то фануке.

На ХААСах проще - М19 Р90 для целочисленных углов или М19 R25.45 для дробных.

@alex68nic Попробуйте М19 S..., как и советовал @Guhl

Link to post
Share on other sites
50 минут назад, Богоманшин Игорь сказал:

Когда то попадалось на буржуйских форумах, там чел вообще свой М-код делал под такие цели на каком то фануке.

Например вот Orienting the Angle Head for Multi-Position Machining 

 

Скрытый текст

Orienting the Angle Head for Multi-Position Machining

On machines with a C Axis: The C Axis can be used to orient the machine spindle to any position required.

On machines without a C Axis, but with a servo and encoder (as is used in rigid tapping), it is almost always possible to re-orient the spindle to the desired angle by altering the parameters for the M19 tool changer position.

The following procedure and G code applies to machines with Fanuc controls. A similar approach will work on most machine tools however the exact coding and parameter numbers will vary depending on the machine and control.

This is the exact Fanuc code with procedure and additional explanation to follow.

M19;
G10 L50;
N4077 P1 R(xxx);
G11;
M19;

(See notes below)


Procedure:

  1. Find and record the value of parameter N4077.
  2. Add these lines to your part program for each desired angle:
    M19 (Orient Spindle)
    G10 L50 (Access L50 parameter page)
    N4077 P1 R(xxx) (Parameter No., Bit No., New Value(xxx)
    G11 (Turn off G-10)
    M19 (Reorient spindle to new position)
  3. Prior to tool change, repeat code to return Parameter N4077 to its original value. Note: “R” value will be in encoder pulses. You may have to experiment to determine “pulses per degree”. On machines with Fanuc controls and drives, the spindle encoder typically has 4096 pulses per revolution. This means you would add or subtract 11.3778 pulses per desired degree of spindle rotation (4096 pulses / 360 degrees = 11.3778 pulses per degree). Other machines may have encoders with different counts. You can call your machine tool builder and ask for this information. However some experimentation with different values is usually faster.


Always identify the spindle orient parameter and record the value first.

An explanation of the M19 cycle is helpful to understand how we are using this code to index your spindle.

When your control sees an M19 request it slowly rotates the machine tool spindle “looking” for the marker pulse on the encoder (encoders have one discrete pulse marking “zero”. This is called the marker pulse). When it sees the marker pulse, it will count out however many pulses are stored in the orient parameter (N4077 on Fanuc). In that position it will lock up the spindle.

Example: You find parameter N4077 had a value of 500 and you have determined that you have a 4096 count encoder. You have aligned the head using the procedure described in the section on Radial Head Adjustment” so at spindle orient the tool is pointed to zero degrees.

To index the spindle to a 30 degree angle we would change parameter N4077 to 841 (4096/360 = 11.377778 X 30 + 500 = 841.333)

Yes, you will be 1/3 of a pulse off but remember one degree is 11+ pulses. It can be important, however, not to let this error accumulate. Recalculate from the marker pulse each time instead of adding to your current position. If your second hole is an additional 30 degrees, change the parameter to 1183 (4096/360 = 11.377778 X 60 + 500 = 1182.666)

To be clear, these numbers are typical for the Fanuc control. Your formula may be different. Actual numbers are determined as follows:

(your spindle encoder count/360 = pulses per degree of rotation X desired index in degrees + initial parameter count = new parameter value)

Notes:

  1. On fanuc 30i change L50 to L52.
  2. On some machines an M19 command may be “latched” by the software and ignored if the spindle has not been moved since the last M19. Adding an S50M03; G04X1; M05; will unlatch the M19 so you can do another one.
  3. Newer Mori Seikis have an M119 feature which can be used instead of M19 here is some customer supplied comment on the issue. Download text.
  4. Very cool subroutine for Fanuc controls if you have the “variable” option
  5.  

Spindle-Orient-Macro.doc

 

 

  • Нравится 2
Link to post
Share on other sites
1 час назад, Богоманшин Игорь сказал:

Когда то попадалось на буржуйских форумах, там чел вообще свой М-код делал под такие цели на каком то фануке.

Мне и на рабочих форумах много подобного попадалось :)
В целом тут подхода наверное три.
1. На мой взгляд жуткий ненадёжный колхоз - смена параметра, отвечающего за угол "стандартной" ориентации с помощью G10 и потом его восстановление в макропрограмме перед сменой инструмента. Считаю это очень плохим решением, если в ладдере нет контроля фактического угла ориентации при смене инструмента.

2. Тоже самое, но через ладдэр. Тоже колхоз, но чуть более надёжный.

3. Вся ориентация через ладдэр. У меня он считывает параметр угла ориентации, чтобы для его изменения не приходилось ладдэр перешивать. При вводе команды М19 - ориентация происходит на этот угол, при вводе М119 Sхх - происходит ориентация на указанный угол в тиках энкодера. Можно было бы, конечно, сделать и на угол в градусах - но я поленился. Также в целом можно было бы сделать и ориентацию по М19, но я решил разделить коды для ориентации на смену инструмента и произвольную, считаю это более надёжным.

  • Нравится 2
Link to post
Share on other sites
gudstartup
3 часа назад, Killerchik сказал:

В общем: Фанук тут постольку-поскольку, ориентация шпинделя реализуется станкостроителем в ладдере.

ориентация реализуетсяпрежде всего системным по фанук а плк это частности.

нет опции работать не будет

Link to post
Share on other sites
Александр1979
22 минуты назад, gudstartup сказал:

ориентация реализуетсяпрежде всего системным по фанук а плк это частности.

нет опции работать не будет

"J853 Spindle Orientation" в базе на 0i-MF/TF и 0i-F Plus.

Кроме этого есть "J851 Spindle Positioning", эта функция тоже в базе на 0i-MF/TF и 0i-F Plus.

Link to post
Share on other sites
Игорь_212

Задайте нужный угол параметром 4077.

Посмотрите список M-команд, бывает производитель прописывает углы поворота.

3 часа назад, lexa345 сказал:

Например вот Orienting the Angle Head for Multi-Position Machining 

 

  Показать содержимое

Orienting the Angle Head for Multi-Position Machining

On machines with a C Axis: The C Axis can be used to orient the machine spindle to any position required.

On machines without a C Axis, but with a servo and encoder (as is used in rigid tapping), it is almost always possible to re-orient the spindle to the desired angle by altering the parameters for the M19 tool changer position.

The following procedure and G code applies to machines with Fanuc controls. A similar approach will work on most machine tools however the exact coding and parameter numbers will vary depending on the machine and control.

This is the exact Fanuc code with procedure and additional explanation to follow.

M19;
G10 L50;
N4077 P1 R(xxx);
G11;
M19;

(See notes below)


Procedure:

  1. Find and record the value of parameter N4077.
  2. Add these lines to your part program for each desired angle:
    M19 (Orient Spindle)
    G10 L50 (Access L50 parameter page)
    N4077 P1 R(xxx) (Parameter No., Bit No., New Value(xxx)
    G11 (Turn off G-10)
    M19 (Reorient spindle to new position)
  3. Prior to tool change, repeat code to return Parameter N4077 to its original value. Note: “R” value will be in encoder pulses. You may have to experiment to determine “pulses per degree”. On machines with Fanuc controls and drives, the spindle encoder typically has 4096 pulses per revolution. This means you would add or subtract 11.3778 pulses per desired degree of spindle rotation (4096 pulses / 360 degrees = 11.3778 pulses per degree). Other machines may have encoders with different counts. You can call your machine tool builder and ask for this information. However some experimentation with different values is usually faster.


Always identify the spindle orient parameter and record the value first.

An explanation of the M19 cycle is helpful to understand how we are using this code to index your spindle.

When your control sees an M19 request it slowly rotates the machine tool spindle “looking” for the marker pulse on the encoder (encoders have one discrete pulse marking “zero”. This is called the marker pulse). When it sees the marker pulse, it will count out however many pulses are stored in the orient parameter (N4077 on Fanuc). In that position it will lock up the spindle.

Example: You find parameter N4077 had a value of 500 and you have determined that you have a 4096 count encoder. You have aligned the head using the procedure described in the section on Radial Head Adjustment” so at spindle orient the tool is pointed to zero degrees.

To index the spindle to a 30 degree angle we would change parameter N4077 to 841 (4096/360 = 11.377778 X 30 + 500 = 841.333)

Yes, you will be 1/3 of a pulse off but remember one degree is 11+ pulses. It can be important, however, not to let this error accumulate. Recalculate from the marker pulse each time instead of adding to your current position. If your second hole is an additional 30 degrees, change the parameter to 1183 (4096/360 = 11.377778 X 60 + 500 = 1182.666)

To be clear, these numbers are typical for the Fanuc control. Your formula may be different. Actual numbers are determined as follows:

(your spindle encoder count/360 = pulses per degree of rotation X desired index in degrees + initial parameter count = new parameter value)

Notes:

  1. On fanuc 30i change L50 to L52.
  2. On some machines an M19 command may be “latched” by the software and ignored if the spindle has not been moved since the last M19. Adding an S50M03; G04X1; M05; will unlatch the M19 so you can do another one.
  3. Newer Mori Seikis have an M119 feature which can be used instead of M19 here is some customer supplied comment on the issue. Download text.
  4. Very cool subroutine for Fanuc controls if you have the “variable” option
  5.  

Spindle-Orient-Macro.doc 22 \u041a\u0431 · 1 скачивание

 

 

Вот, здесь то же и написано. Если надо сделать разово, то сменить параметр, потом поставить его на место.

  • Нравится 1
Link to post
Share on other sites
gudstartup
57 минут назад, Игорь_212 сказал:

Вот, здесь то же и написано. Если надо сделать разово, то сменить параметр, потом поставить его на место.

а если нет опции то как шпиндель отработает режим позиционирования?

Link to post
Share on other sites
Игорь_212

Ну честно мне не попадались станки, которые не поддерживают команду М19. Из современных. Нет, вообще не попадались. Здесь же речь не об оси Cs, а о том, чтобы задать нужный угол поворота шпинделя. Если отрабатывает M19, то параметр 4077 задает угол остановки.

Конечно если точнее, и какой-то хитрый станок, то можно позиционировать 4031, а для доворота при каких-то своих режимах использовать 4077.

Ну и конечно куча разных возможностей - дописать M-код в ладдер, позиционировать, задав угол в макропеременной, записать параметр из программы обработки детали. Но это не каждый сделает, и время опять.

 

Хотя конечно если нет опции - то все. Ничего не сделать.

И вопрос был - "как прописать величину угла".

11.03.2025 в 20:09, gudstartup сказал:

откройте ваши параметры SERVO GUIDE и увидите есть у вас эта опция или нет 

image.png

Сs скорее всего у вас нет  

Открыл такое же окно. Там, где Spindle Orientation - там комментарий "8135#4 Spindle Orientation (BASIC)". Cs например у меня серая - нет опции, галочку не поставить. Если пробежаться по Others например - часто попадается в конце "BASIC".

Думаю это означает что опция является "базовой".

Однако получается что ориентацию можно отключить и она не будет работать)

Link to post
Share on other sites
Игорь_212
14 часов назад, Александр1979 сказал:

"J853 Spindle Orientation" в базе на 0i-MF/TF и 0i-F Plus.

Кроме этого есть "J851 Spindle Positioning", эта функция тоже в базе на 0i-MF/TF и 0i-F Plus.

Вот, написано. Я сразу не понял. Написано - "в базе". Базовая опция.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   1 member

    • mr_Voden
  • Сообщения

    • boomeeeer
      Да так и есть. Ещё и с Plus возможно, но это не точно. У автора вроде тоже 0iF-Plus, значит должно работать
    • Wasp
      Как вариант, использовать переменную, в которой будет указываться ширина канавочной пластины или резца.  Пример: N15T0909(REZEC GHDR 25-3) (LEV.KR)  #7=3.(H PLASTINY) G97G99S1500M3 G0X48.Z-4.98M8  G75R0.1 G75X43.45Z-[1.43+#7]P500Q1000F0.05  G1X47.15Z-6.F0.5S1800 X46.966Z-5.08,R0.4F0.05 X43.415 W0.2  X47.15F0.5  Z-[0.5+#7]  X46.966Z-[1.33+#7],R0.4F0.05  X43.415 Z-5.05  G0X100. G30U0W0M5 M30 В этом случае изменением переменной прекрасно контролируется допуск на ширину канавки. 
    • Александр1979
      Если М19 работает, то задание угла через G78 тоже будет работать. Для Fanuc 3xi это опция J853 spindle orientation. 
    • gudstartup
      @Рустик а зачем спрашиваете если вам уже все извесно. не згаете как осью управлять?
    • gudstartup
      spindle positioning j851 возможноу вас 30б или 0ф а вот на 31 32 она нужна притом или функция j851 или j853 spindle orientation вместе они не работают
    • mamomot
      Решил выложить представленный в Латехе в пятницу Параграф и отдельно, в привычном виде. 11_1_2 Стержневые ящики для рычага.pdf
    • Рустик
      Ни каких м кодов. Просто ещё одна координата.  Станок 3+2 оси. На fanuc mf 0i plus. С горизонтальным шпинделем.  Смена происходит как обычный инструмент. Там обязательное условие что бы эта координата была в нулях. Когда она в нулях, при отсоединения от шпинделя и самого привода, фиксируется и не даёт крутится приводной части. То есть тупо механически.   Радиуса описывать только через R? Нету вариантов с инкриментными координатами ?
    • boomeeeer
      какая? чтобы задание угла через G78 работало? Какая это опция, я что-то не нашёл в книге упоминания?
    • Snake 60
      Могу предложить свою версию ТБ, компиляция тулбоксов от SWR, iTools и LeninSW. Для какой версии SW надо?
    • gudstartup
      надо подобрать чтобы светилось при 110в 10ма
×
×
  • Create New...