CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > LinuxCNC (formerly EMC2)


LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 08-19-2008, 08:09 AM
Zig Zig is offline
 
Join Date: Mar 2008
Location: Australia
Posts: 237
Zig is on a distinguished road
Adding a pendant to EMC2

Despite most clear and uncomplicated instructions in EMC wiki on adding a simple pendant using halui and hal_input by Big John, I am stuck.

The joypad is recognised as per point one and identified as per point two of the article.

And thats as far as I get.

I am told that Logitech ( name I had given it) is not recognised also that sum2.0 is not recognised.

I had tried identifying the activity on pins as per point four of the article but have hot been able to identify anything that even vaguely looks like the expected "input.0.btn-trigger" .

Hoping its only a bit of low level ignorance on my behalf I look forward to any advice on how to get it going.


Zig
Reply With Quote

  #2   Ban this user!
Old 08-19-2008, 10:07 AM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

I think there is a line missing from the wiki article. Let me check it when I get home.

What did the N: Name= line report from step 2?

John
Reply With Quote

  #3   Ban this user!
Old 08-19-2008, 06:12 PM
Zig Zig is offline
 
Join Date: Mar 2008
Location: Australia
Posts: 237
Zig is on a distinguished road

John,

Thanks for the prompt response.

I looked at the photo of the joypad You had used and went about locating the same unit with the view to minimising any potential problems( you know monkey see monkey do kind of logic).

Anyway here is the information on joypad.



I: Bus=0003 Vendor=046d Product=c216 Version=0110
N: Name="Logitech Logitech Dual Action"
P: Phys=usb-0000:00:13.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:13.0/usb1/1-2/1-2:1.0/input/input2
U: Uniq=
H: Handlers=event2 js0
B: EV=1b
B: KEY=fff 0 0 0 0 0 0 0 0 0
B: ABS=30027
B: MSC=10

I had a look at the work which inspired You and came to the conclusion that:

I dont understand much...

Something was missing since the original work contained a line

loadusr hal_joystick -d /dev/input/js0 -p joypad


I have tried to locate additional info on hal components ( listing of components and how to use the component ) but so far no joy.. i guess iwill have to spend a bit more time searching for info


Anyway .. I look forward to Your advice
Reply With Quote

  #4   Ban this user!
Old 08-20-2008, 09:03 AM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

I didn't get home till late and forgot to check the wiki. I just sent myself an email to remind me to to that this evening.

The joystick is a different component. I used halui and didn't need the joystick.

I don't see where I loaded the mux4 or the sum2's that I used and that will give you an error for sure...


John
Reply With Quote

  #5   Ban this user!
Old 08-20-2008, 05:19 PM
Zig Zig is offline
 
Join Date: Mar 2008
Location: Australia
Posts: 237
Zig is on a distinguished road

John,

Yes Sum2 comes up in the error report.

I did find the description of components and hope to get to understand the black boxes somewhat better although the language used in the definitions is a bit too specific for a first time user.

May be small examples of applications might be instructional in their use.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 08-20-2008, 05:58 PM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

Zig, I got the corrections made to the wiki site. I left out a few lines when I was copying my .hal file. Sorry for the omission.

Let me know how you make out.

John
Reply With Quote

  #7   Ban this user!
Old 08-20-2008, 06:01 PM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

I had quite a time with the descriptions at first and have taken on the job of working on the manuals. I hope to improve them. I also learn better by small examples

John


Originally Posted by Zig View Post
John,

Yes Sum2 comes up in the error report.

I did find the description of components and hope to get to understand the black boxes somewhat better although the language used in the definitions is a bit too specific for a first time user.

May be small examples of applications might be instructional in their use.
Reply With Quote

  #8   Ban this user!
Old 08-20-2008, 09:31 PM
Zig Zig is offline
 
Join Date: Mar 2008
Location: Australia
Posts: 237
Zig is on a distinguished road

John,

This response started with "...Still no joy..." however...

I had a closer look at hal_input description and it struck me that perhaps i had to modify the permissions to access the device.

So i prepared a one line file as per the description


SUBSYSTEM=="input", mode="0660", group="plugdev"


named the file 51-plugdev.rules and saved it in /etc/udev/rules.d

Joy of joy.. the pins became visible and availble in the hal configuration display.


Pressing the buttons indicates the joypad is connected as follows

BUTTON
1 input.0.btn-trigger
2 -thumb
3 -thumb2
4 -top
5 -top2
6 -pinkie
7 -base
8 -base2
9 -base3
10 -base4
left stick vertical -Y axis minimum value away from operator's body
left stick horisontal -X axis minimum value to the left
right stick horisontal -Z axis minimum to the left

So far so good. At east the joypad is recognised and I/O identified.

Thats where the joy ceases.

Using the stepper configuration with the machine running ( simple steppr config supplied with EMC2 outputs step & direction without end of travel switches or any other interlocks which makes for a handy test platform) i could get no physical interaction between the joy stick and position of XYZ axies .


All in all progress to be rounded off with success.
Reply With Quote

  #9   Ban this user!
Old 08-21-2008, 08:45 AM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

A couple of things.

You must be in the manual control window not the MDI window for the jog to work.

You must press and hold the number button then move the joy stick.

Thanks for sharing the info, I added it to the wiki page.

John
Reply With Quote

  #10   Ban this user!
Old 08-21-2008, 09:01 AM
 
Join Date: Feb 2007
Location: USA
Posts: 514
Big John T is on a distinguished road

CanSir has found one more thing missing so check the wiki page again...

John
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 08-21-2008, 11:00 PM
Zig Zig is offline
 
Join Date: Mar 2008
Location: Australia
Posts: 237
Zig is on a distinguished road

Sigh....

Still no Joy.

I see how it might work...I appreciate the OR blocks generating the seleclines for the one of four multiplexor... I appreciate the analogue signals for the three axis providing variable jog speed signals

But the computer still says NO...


Again from the top...

Ubuntu 8.04 EMC2.2.5 running Axis .

For ease of trying out the joypad I am using supplied stepper configuration file in metric mode.

Here are changes to various files as i understand them.



stepper_mm.ini



###############################################################################
# Hardware Abstraction Layer section
###############################################################################
[HAL]

HALUI = halui

# The run script first uses halcmd to execute any HALFILE
# files, and then to execute any individual HALCMD commands.
#

# list of hal config files to run through halcmd
#+ files are executed in the order in which they appear
HALFILE = core_stepper.hal
#HALFILE = xylotex_pinout.hal
HALFILE = standard_pinout.hal
POSTGUI_HALFILE = custom_postgui.hal

#- list of halcmd commands to execute
# commands are executed in the order in which they appear
#HALCMD = save neta




core_stepper.hal


#appended to the end of the file

loadusr hal_input -W -KRAL Dual



custom_postgui.hal



loadrt or2 count=2
loadrt mux4 count=1

addf or2.0 servo-thread
addf or2.1 servo-thread
addf mux4.0 servo-thread

# set the jog speed for the joypad again use numbers that make sense for your machine
setp mux4.0.in0 0 # this one must be 0 to prevent motion unless a button is pressed
setp mux4.0.in1 25
setp mux4.0.in2 100
setp mux4.0.in3 200

# the following does the magic of setting the jog speeds
net remote-speed-slow or2.0.in0 <= input.0.btn-trigger # <= sign of desperation to try out something that might cause it to spring into life
net remote-speed-medium or2.1.in0 <= input.0.btn-thumb
net remote-speed-fast or2.0.in1 or2.1.in1 <= input.0.btn-thumb2

net joy-speed-1 mux4.0.sel0 <= or2.0.out
net joy-speed-2 mux4.0.sel1 <= or2.1.out
net joy-speed-final halui.jog-speed <=mux4.0.out

net joy-x-jog halui.jog.0.analog <= input.0.abs-x-position
net joy-y-jog halui.jog.1.analog <= input.0.abs-y-position
net joy-z-jog halui.jog.2.analog <= input.0.abs-z-position





Thus endeth the changes.

And still success evades me. Obviously I have done something which prevents the joypad from working.

Anybody.. feel free to poke me in the eye, call me names... but please provide the solution to this issue.

Last edited by Zig; 08-22-2008 at 01:29 AM.
Reply With Quote

  #12   Ban this user!
Old 08-22-2008, 02:06 AM
Zig Zig is offline
 
Join Date: Mar 2008
Location: Australia
Posts: 237
Zig is on a distinguished road

On a related note


Going through EMC documentation oh halui ( downloaded in pdf format from the linuxcnc website under all documentation subheadingi observed that under joggin pins definitions the halui jog speed pin was defined as

halui.jog.speed...


EUREKA I jumped for joy ( happyness not pad); quickly changed the line containing reference to halui.jog-speed to the newly discovered format only to end up with an error message "... pin halui.jog.speed does not exist..."

Not quite sure where to report the typo in documentation.
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help!- Adding an X axis power feed to my smithy 1220XL milling table.Adding an X axis power matridium Smithy 0 05-28-2008 10:37 AM
Adding a fan to the X3 Antonyong Benchtop Machines 2 04-25-2007 11:19 PM
Anyone using this pendant? trevorhinze Mach Mill 3 09-10-2005 07:45 AM
Pendant? CNCadmin Carken Products (Deskam, DeskCNC etc) 2 01-10-2005 09:32 AM
Pendant? CNCadmin Carken Products (Deskam, DeskCNC etc) 0 05-07-2004 09:10 AM




All times are GMT -5. The time now is 05:25 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361