7i97+8i20 error function not found

More
3 years 10 months ago #258518 by saquzi
Any somehow 7i97+8i20 related configs or something that could be modified somehow "easily"... Have not found any solution to the previous problem either :/

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

More
3 years 10 months ago #258576 by saquzi
 

File Attachment:

File Name: takisawa_2...2-05.hal
File Size:5.58 KB


Got rid couple of errors on the hal, seemed that 8i20.0.0.angle/current were in the wrong serial first? (they were 8i20.0.2.angle) but thats just about it I can figure out by myself....



So for now, ##### marked are neither "does not exist" or "not found".. Some advice badly needed


#####setp   [HMOT](CARD0).7i77.0.1.analogout0-scalemax  [JOINT_0]OUTPUT_SCALE
#####setp   [HMOT](CARD0).7i77.0.1.analogout0-minlim    [JOINT_0]OUTPUT_MIN_LIMIT
#####setp   [HMOT](CARD0).7i77.0.1.analogout0-maxlim    [JOINT_0]OUTPUT_MAX_LIMIT

#####net x-output     => [HMOT](CARD0).7i77.0.1.analogout0
net x-pos-cmd    <= joint.0.motor-pos-cmd
net x-enable     <= joint.0.amp-enable-out
# enable _all_ sserial pwmgens
#####net x-enable   => [HMOT](CARD0).7i77.0.1.analogena




and

######net x-enable =>            [HMOT](CARD0).8i20.0.0.amp_enable

# ---PWM Generator signals/setup---

#####setp   [HMOT](CARD0).7i77.0.1.analogout0-scalemax  [JOINT_0]OUTPUT_SCALE
#####setp   [HMOT](CARD0).7i77.0.1.analogout0-minlim    [JOINT_0]OUTPUT_MIN_LIMIT
#####setp   [HMOT](CARD0).7i77.0.1.analogout0-maxlim    [JOINT_0]OUTPUT_MAX_LIMIT

#####net x-output     => [HMOT](CARD0).7i77.0.1.analogout0
net x-pos-cmd    <= joint.0.motor-pos-cmd
net x-enable     <= joint.0.amp-enable-out
# enable _all_ sserial pwmgens
#####net x-enable   => [HMOT](CARD0).7i77.0.1.analogena
 

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

More
3 years 10 months ago #258649 by andypugh
You loaded bldc with
Code:
loadrt bldc cfg=n,n,n

And that does not create a rawcounts pin.
(in fact "n" means "no feedback")
linuxcnc.org/docs/stable/html/man/man9/bldc.9.html

For your Fanuc encoders I suggest using "fq" mode.
Code:
loadrt bldc cfg=fq,fq,fq

I hope that the motors are not connected to the axes at the moment? It will take some time to get the servos to run properly without stalling or running away.
The following user(s) said Thank You: saquzi

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

More
3 years 10 months ago - 3 years 10 months ago #258692 by saquzi
Okay, I now have fq mode. I have only the Z-axis servo on my coffee table because I have only one 8i20 for now for testing.I think i got the hal file pretty much sorted last night! Now my servo is even buzzing! But not actual movement yet when trying o jog or no runaway... The sound changes a bit when I rotate the servo shaft, so it seems that there is actually some current going for the servo, but not enough? I have not changed any of the 8i20 settings, only put the jumpers right and checked the wiring. I read some topics, should the nvmaxcurrent (and some else?) be modified somehow from default? Setserial looked to be the way some years ago, but can it be changed now in the Hal like it says in start of the manual: linuxcnc.org/docs/html/man/man9/setsserial.9.html . If yes, what is the correct way for doing that?


 

File Attachment:

File Name: takisawa_2...2-08.hal
File Size:6.27 KB
 

File Attachment:

File Name: takisawa_2...2-08.ini
File Size:3.15 KB




Edit: If i use "f" in cfg, Should the c1,c2,c4 and c8 signals from the fanuc encoder too? If yes i need to figure where those should be wired at..


Edit2: figured out that I will need the gray scale pattern signals too. I connected TB5 in8, in9, in10 and in11 pins for the encoders gray scale pattern pins, and added to Hal file:

net x-c1-in     bldc.0.C1
net x-c2-in     bldc.0.C2
net x-c4-in     bldc.0.C4
net x-c8-in     bldc.0.C8



# --- X-GRAY-C1-IN ---
net x-gray-c1-in     <=        hm2_7i97.0.inmux.00.raw-input-08

# --- X-GRAY-C2-IN ---
net x-gray-c2-in     <=        hm2_7i97.0.inmux.00.raw-input-09

# --- X-GRAY-C4-IN ---
net x-gray-c4-in     <=        hm2_7i97.0.inmux.00.raw-input-10

# --- X-GRAY-C8-IN ---
net x-gray-c8-in     <=        hm2_7i97.0.inmux.00.raw-input-11

Is this correct? Should i connect something for the com8-9&com10-11 fysical pins too? Atleast it now loads without errors. Still haven't found the reason why i can not jog it or move it in any way :/

Edit3: I am missing most or all of the commutation signals in hal? Just can´t figure out how and what they should be :X

Help needed!
Last edit: 3 years 10 months ago by saquzi. Reason: all of them

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

More
3 years 10 months ago - 3 years 10 months ago #259246 by saquzi
Okay, getting really overwhelmed with this. So, i can not get the axis moving no matter what, I only have whining coming from my servo. I took my time and cleaned my hal file so it's not a mess anymore, so please help. I have been reading manual and searching different topics but can not find any reason this not to work anyhow.. For now i am thinking of using just the cfg=qi, i think that the gray scale ain't necessary and I dont have enough inputs for it for all 3 servos.

When i enable the machine and look hal pins, all phases were changing a little in hal configuration page, but the change was so little, and trying to jog would not affect anything, now i dont have even that. My machine are not trying to do any homing sequence either. Help
 

 

File Attachment:

File Name: takisawa_2...2-12.hal
File Size:5.47 KB

File Attachment:

File Name: takisawa_2...2-12.ini
File Size:3.14 KB
Last edit: 3 years 10 months ago by saquzi.

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

More
3 years 10 months ago #259292 by PCW
What are the motor ratings?

I suspect

setp bldc.0.initvalue .5

(0.5A) is not anywhere enough current to align the motor

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

Moderators: cmorley
Time to create page: 0.174 seconds
Powered by Kunena Forum