Can i Jog part program using MPG ?
- marq_torque
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 162
- Thank you received: 2
07 Jan 2021 17:59 #194386
by marq_torque
Can i Jog part program using MPG ? was created by marq_torque
Hello Everyone,
I am trying to setup hand wheel jog function to do program inching, is it possible to take control of program movement on hand wheel ?
What it will do is when i start program run, machine will check if handhweel mode is on or off, if its on then user will rotate handwheel and machine will continue program as per handwheel rotation, if user stops rotation program will hold and move further if handwheel is rotated. and if program is okay user will continue with program cycle and so on ...
marq
I am trying to setup hand wheel jog function to do program inching, is it possible to take control of program movement on hand wheel ?
What it will do is when i start program run, machine will check if handhweel mode is on or off, if its on then user will rotate handwheel and machine will continue program as per handwheel rotation, if user stops rotation program will hold and move further if handwheel is rotated. and if program is okay user will continue with program cycle and so on ...
marq
Please Log in or Create an account to join the conversation.
07 Jan 2021 18:05 #194387
by andypugh
Replied by andypugh on topic Can i Jog part program using MPG ?
Not as a built-in behaviour, as far as I know.
But I think you could arrange to do it by manipulating the motion.adaptive-feed pin.
Send the handwheel _velocity_ to the adaptive feed pin in handwheel mode.
You can even go backwards.
But I think you could arrange to do it by manipulating the motion.adaptive-feed pin.
Send the handwheel _velocity_ to the adaptive feed pin in handwheel mode.
You can even go backwards.
The following user(s) said Thank You: marq_torque
Please Log in or Create an account to join the conversation.
- marq_torque
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 162
- Thank you received: 2
18 Feb 2021 11:47 #199239
by marq_torque
Replied by marq_torque on topic Can i Jog part program using MPG ?
Hello Andy,
I tried to add below thread in my machine hal file ... it was throwing error "Scale is already linked to xhc wireless hal file"
I commented it for test, but MPG is not working now ....i'm sure i'm doing something very dumb
loadrt conv_s32_float
loadrt lowpass count=2
loadrt ddt
loadrt scale
addf conv-s32-float.0 servo-thread
addf lowpass.0 servo-thread
addf lowpass.1 servo-thread
addf ddt.0 servo-thread
addf scale.0 servo-thread
net jog-counts conv-s32-float.0.in
net jog-countf conv-s32-float.0.out
setp lowpass.0.gain 0.05
net jog-countf lowpass.0.in
net jog-countl lowpass.0.out
net jog-countl ddt.0.in
net jog-speedu ddt.0.out
setp lowpass.1.gain 0.05
net jog-speedu lowpass.1.in
net jog-speedx lowpass.1.out
setp scale.0.gain 0.0005
net jog-speedx scale.0.in
net jog-speed scale.0.out
net jog-speed motion.adaptive-feed
I tried to add below thread in my machine hal file ... it was throwing error "Scale is already linked to xhc wireless hal file"
I commented it for test, but MPG is not working now ....i'm sure i'm doing something very dumb
loadrt conv_s32_float
loadrt lowpass count=2
loadrt ddt
loadrt scale
addf conv-s32-float.0 servo-thread
addf lowpass.0 servo-thread
addf lowpass.1 servo-thread
addf ddt.0 servo-thread
addf scale.0 servo-thread
net jog-counts conv-s32-float.0.in
net jog-countf conv-s32-float.0.out
setp lowpass.0.gain 0.05
net jog-countf lowpass.0.in
net jog-countl lowpass.0.out
net jog-countl ddt.0.in
net jog-speedu ddt.0.out
setp lowpass.1.gain 0.05
net jog-speedu lowpass.1.in
net jog-speedx lowpass.1.out
setp scale.0.gain 0.0005
net jog-speedx scale.0.in
net jog-speed scale.0.out
net jog-speed motion.adaptive-feed
Please Log in or Create an account to join the conversation.
- marq_torque
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 162
- Thank you received: 2
18 Feb 2021 11:47 #199240
by marq_torque
Replied by marq_torque on topic Can i Jog part program using MPG ?
I'm trying to get this working
Please Log in or Create an account to join the conversation.
18 Feb 2021 12:29 #199245
by andypugh
Replied by andypugh on topic Can i Jog part program using MPG ?
You might need to add a second scale component.
What is the _exact_ error message?
What is the _exact_ error message?
The following user(s) said Thank You: marq_torque
Please Log in or Create an account to join the conversation.
- marq_torque
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 162
- Thank you received: 2
18 Feb 2021 12:37 #199246
by marq_torque
Replied by marq_torque on topic Can i Jog part program using MPG ?
Attached here my hal files
I have commented 24to36 lines, 82to102 lines
I have commented 24to36 lines, 82to102 lines
Please Log in or Create an account to join the conversation.
- marq_torque
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 162
- Thank you received: 2
18 Feb 2021 12:41 - 18 Feb 2021 13:22 #199247
by marq_torque
Replied by marq_torque on topic Can i Jog part program using MPG ?
Exact message when i used xhc hal without comments
#MPG Adaptive Feed Start
loadrt conv_s32_float
loadrt lowpass count=2
loadrt ddt
loadrt scale
addf conv-s32-float.0 servo-thread
addf lowpass.0 servo-thread
addf lowpass.1 servo-thread
addf ddt.0 servo-thread
addf scale.0 servo-thread
net jog-counts conv-s32-float.0.in
net jog-countf conv-s32-float.0.out
setp lowpass.0.gain 0.05
net jog-countf lowpass.0.in
net jog-countl lowpass.0.out
net jog-countl ddt.0.in
net jog-speedu ddt.0.out
setp lowpass.1.gain 0.05
net jog-speedu lowpass.1.in
net jog-speedx lowpass.1.out
setp scale.0.gain 0.0005
net jog-speedx scale.0.in
net jog-speed scale.0.out
net jog-speed motion.adaptive-feed
#MPG Adaptive Feed End
Edit : Exact message after i put above lines in machine hal file
#MPG Adaptive Feed Start
loadrt conv_s32_float
loadrt lowpass count=2
loadrt ddt
loadrt scale
addf conv-s32-float.0 servo-thread
addf lowpass.0 servo-thread
addf lowpass.1 servo-thread
addf ddt.0 servo-thread
addf scale.0 servo-thread
net jog-counts conv-s32-float.0.in
net jog-countf conv-s32-float.0.out
setp lowpass.0.gain 0.05
net jog-countf lowpass.0.in
net jog-countl lowpass.0.out
net jog-countl ddt.0.in
net jog-speedu ddt.0.out
setp lowpass.1.gain 0.05
net jog-speedu lowpass.1.in
net jog-speedx lowpass.1.out
setp scale.0.gain 0.0005
net jog-speedx scale.0.in
net jog-speed scale.0.out
net jog-speed motion.adaptive-feed
#MPG Adaptive Feed End
Edit : Exact message after i put above lines in machine hal file
Last edit: 18 Feb 2021 13:22 by marq_torque. Reason: Sent wrong error screenshot by mistake
Please Log in or Create an account to join the conversation.
18 Feb 2021 23:13 #199356
by andypugh
Replied by andypugh on topic Can i Jog part program using MPG ?
"Scale" already exists.
You need to loadrt scale in only one place, with the number that you need.
So remove the "loadrt scale" from xhc-whb04b-6.hal, and have
"loadrt scale count=2" in the new (earlier in the sequence) HAL file.
Then use scale.1 in the new stuff, and leave scale.0 in the xhc HAL file.
You need to loadrt scale in only one place, with the number that you need.
So remove the "loadrt scale" from xhc-whb04b-6.hal, and have
"loadrt scale count=2" in the new (earlier in the sequence) HAL file.
Then use scale.1 in the new stuff, and leave scale.0 in the xhc HAL file.
The following user(s) said Thank You: marq_torque
Please Log in or Create an account to join the conversation.
- marq_torque
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 162
- Thank you received: 2
19 Feb 2021 06:43 - 19 Feb 2021 06:44 #199374
by marq_torque
Replied by marq_torque on topic Can i Jog part program using MPG ?
May be i'm missing something ?
#MPG Adaptive Feed Start
loadrt conv_s32_float
loadrt lowpass count=2
loadrt ddt
loadrt scale count=2
addf conv-s32-float.0 servo-thread
addf lowpass.0 servo-thread
addf lowpass.1 servo-thread
addf ddt.0 servo-thread
addf scale.1 servo-thread
net jog-counts conv-s32-float.0.in
net jog-countf conv-s32-float.0.out
setp lowpass.0.gain 0.05
net jog-countf lowpass.0.in
net jog-countl lowpass.0.out
net jog-countl ddt.0.in
net jog-speedu ddt.0.out
setp lowpass.1.gain 0.05
net jog-speedu lowpass.1.in
net jog-speedx lowpass.1.out
setp scale.0.gain 0.0005
net jog-speedx scale.1.in
net jog-speed scale.1.out
net jog-speed motion.adaptive-feed
#MPG Adaptive Feed End
#MPG Adaptive Feed Start
loadrt conv_s32_float
loadrt lowpass count=2
loadrt ddt
loadrt scale count=2
addf conv-s32-float.0 servo-thread
addf lowpass.0 servo-thread
addf lowpass.1 servo-thread
addf ddt.0 servo-thread
addf scale.1 servo-thread
net jog-counts conv-s32-float.0.in
net jog-countf conv-s32-float.0.out
setp lowpass.0.gain 0.05
net jog-countf lowpass.0.in
net jog-countl lowpass.0.out
net jog-countl ddt.0.in
net jog-speedu ddt.0.out
setp lowpass.1.gain 0.05
net jog-speedu lowpass.1.in
net jog-speedx lowpass.1.out
setp scale.0.gain 0.0005
net jog-speedx scale.1.in
net jog-speed scale.1.out
net jog-speed motion.adaptive-feed
#MPG Adaptive Feed End
Last edit: 19 Feb 2021 06:44 by marq_torque.
Please Log in or Create an account to join the conversation.
19 Feb 2021 07:57 #199376
by Aciera
Replied by Aciera on topic Can i Jog part program using MPG ?
You need to uncomment line 24.
The following user(s) said Thank You: marq_torque
Please Log in or Create an account to join the conversation.
Time to create page: 0.221 seconds