- Posts: 1850
- Thank you received: 127
Use 0-10V + dir on 7i77 instead of +-10V out
10 years 7 months ago #71671
by tecno
Replied by tecno on topic Use 0-10V + dir on 7i77 instead of +-10V out
Got email this morning from the factory, been unable to find their e-mail earlier as the web page is in Chinese and got help to find this.
Anyhow, the seller is full of shit saying that Lichuan the factory can not deliver/do not have drivers with ±10VDC.
My inquiry from Day1 early september last year even before I placed the order the spec's has been ±10VDC and not 0-10.
So, be aware of this fraudulent behavior from vipwindows168 / Fast To Buy all the same company found on Ebay/Alibaba
I am really pissed and hope that I will finally get my claim via PayPal to be in my favor asking for new drivers to specs.
Hello Sweden
Nice to receive your message.
About the problem you mentioned,I'v talked to our engineer,he said our B2 series drivers can only support 0-10VDC
But,our B series drivers can support -10VDC to +10VDC.
And the price is the same.
Anyhow, the seller is full of shit saying that Lichuan the factory can not deliver/do not have drivers with ±10VDC.
My inquiry from Day1 early september last year even before I placed the order the spec's has been ±10VDC and not 0-10.
So, be aware of this fraudulent behavior from vipwindows168 / Fast To Buy all the same company found on Ebay/Alibaba
I am really pissed and hope that I will finally get my claim via PayPal to be in my favor asking for new drivers to specs.
Please Log in or Create an account to join the conversation.
10 years 7 months ago #72023
by tecno
Replied by tecno on topic Use 0-10V + dir on 7i77 instead of +-10V out
We've completed our review and unfortunately are not able to decide this case in your favor.
Paypal's Buyer Protection = It sucks !!!!
Paypal's Buyer Protection = It sucks !!!!
Please Log in or Create an account to join the conversation.
8 years 1 month ago #117928
by xaxxes
Replied by xaxxes on topic Use 0-10V + dir on 7i77 instead of +-10V out
Hi.
I'm sorry that I dig up this old thread, but have exactly the same problem as the thread creator. I also own these Lichuan-B2 drivers.
Servo driver: Lichuan_B2 series
Board: Mesa 7i77
Now I want to solve the problem as suggested, using the ABS function (direction signal + 0-10V). Can someone help me please? Have never wrote some HAL-code.
Thank you.
I'm sorry that I dig up this old thread, but have exactly the same problem as the thread creator. I also own these Lichuan-B2 drivers.
Servo driver: Lichuan_B2 series
Board: Mesa 7i77
Now I want to solve the problem as suggested, using the ABS function (direction signal + 0-10V). Can someone help me please? Have never wrote some HAL-code.
Thank you.
Please Log in or Create an account to join the conversation.
8 years 1 month ago #117943
by andypugh
Replied by andypugh on topic Use 0-10V + dir on 7i77 instead of +-10V out
Can you give us an example snippet of the HAL that connects one axis to the 7i77?
Please Log in or Create an account to join the conversation.
8 years 1 month ago - 8 years 1 month ago #117954
by xaxxes
Replied by xaxxes on topic Use 0-10V + dir on 7i77 instead of +-10V out
Thanks for your reply.
Here is the code for the Y-Axis, which was created with Pncconf:
I think i have to edit the section "PWM Generator signals/setup" but don't know how.
Many thanks.
Here is the code for the Y-Axis, which was created with Pncconf:
Code:
#*******************
# AXIS Y
#*******************
setp pid.y.Pgain [AXIS_1]P
setp pid.y.Igain [AXIS_1]I
setp pid.y.Dgain [AXIS_1]D
setp pid.y.bias [AXIS_1]BIAS
setp pid.y.FF0 [AXIS_1]FF0
setp pid.y.FF1 [AXIS_1]FF1
setp pid.y.FF2 [AXIS_1]FF2
setp pid.y.deadband [AXIS_1]DEADBAND
setp pid.y.maxoutput [AXIS_1]MAX_OUTPUT
setp pid.y.error-previous-target true
net y-index-enable <=> pid.y.index-enable
net y-enable => pid.y.enable
net y-pos-cmd => pid.y.command
net y-vel-cmd => pid.y.command-deriv
net y-pos-fb => pid.y.feedback
net y-output => pid.y.output
# ---PWM Generator signals/setup---
setp hm2_5i25.0.7i77.0.1.analogout1-scalemax [AXIS_1]OUTPUT_SCALE
setp hm2_5i25.0.7i77.0.1.analogout1-minlim [AXIS_1]OUTPUT_MIN_LIMIT
setp hm2_5i25.0.7i77.0.1.analogout1-maxlim [AXIS_1]OUTPUT_MAX_LIMIT
net y-output => hm2_5i25.0.7i77.0.1.analogout1
net y-pos-cmd axis.1.motor-pos-cmd
net y-enable axis.1.amp-enable-out
# ---Encoder feedback signals/setup---
setp hm2_5i25.0.encoder.01.counter-mode 0
setp hm2_5i25.0.encoder.01.filter 1
setp hm2_5i25.0.encoder.01.index-invert 0
setp hm2_5i25.0.encoder.01.index-mask 0
setp hm2_5i25.0.encoder.01.index-mask-invert 0
setp hm2_5i25.0.encoder.01.scale [AXIS_1]ENCODER_SCALE
net y-pos-fb <= hm2_5i25.0.encoder.01.position
net y-vel-fb <= hm2_5i25.0.encoder.01.velocity
net y-pos-fb => axis.1.motor-pos-fb
net y-index-enable axis.1.index-enable <=> hm2_5i25.0.encoder.01.index-enable
net y-pos-rawcounts <= hm2_5i25.0.encoder.01.rawcounts
# ---setup home / limit switch signals---
net home-y => axis.1.home-sw-in
net y-neg-limit => axis.1.neg-lim-sw-in
net y-pos-limit => axis.1.pos-lim-sw-in
I think i have to edit the section "PWM Generator signals/setup" but don't know how.
Many thanks.
Last edit: 8 years 1 month ago by xaxxes.
Please Log in or Create an account to join the conversation.
8 years 1 month ago - 8 years 1 month ago #117959
by andypugh
Change the above to
Docs: linuxcnc.org/docs/2.7/html/man/man9/abs.9.html
Replied by andypugh on topic Use 0-10V + dir on 7i77 instead of +-10V out
xaxxes wrote: Thanks for your reply.
Here is the code for the Y-Axis, which was created with Pncconf:
Code:net y-output => pid.y.output # ---PWM Generator signals/setup--- setp hm2_5i25.0.7i77.0.1.analogout1-scalemax [AXIS_1]OUTPUT_SCALE setp hm2_5i25.0.7i77.0.1.analogout1-minlim [AXIS_1]OUTPUT_MIN_LIMIT setp hm2_5i25.0.7i77.0.1.analogout1-maxlim [AXIS_1]OUTPUT_MAX_LIMIT net y-output => hm2_5i25.0.7i77.0.1.analogout1
Change the above to
Code:
#Near the top of the file
loadrt abs names = abs.x,abs.y,abs.z
addf abs.x servo-thread
addf abs.y servo-thread
addf abs.z servo-thread
#Then for each axis
# delete net y-output => hm2_5i25.0.7i77.0.1.analogout1
net y-output => abs.y.in
net y-abs abs.y.out => hm2_5i25.0.7i77.0.1.analogout1
# This is the direction output, use is-negative if required
# Choose a GPIO pin to suit.
net y-dir abs.y.is-positive => hm2_5i25.0.7i77.0.0.output-00
Docs: linuxcnc.org/docs/2.7/html/man/man9/abs.9.html
Last edit: 8 years 1 month ago by andypugh.
The following user(s) said Thank You: xaxxes
Please Log in or Create an account to join the conversation.
Time to create page: 0.057 seconds