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 06-24-2008, 07:36 PM
Regnar's Avatar  
Join Date: Mar 2006
Location: USA
Posts: 427
Regnar is on a distinguished road
Coordinate Display

I was wondering if there is a way to make the Coordinate Display bigger and bolder is the axis screen. I am an idiot with programming so easy to follow steps would be great. Thanks
Reply With Quote

  #2   Ban this user!
Old 06-25-2008, 08:31 AM
 
Join Date: May 2008
Location: USA
Posts: 32
Ray Henry is on a distinguished road

Not that I know of. I also like BIG position displays so I use Axis in sim to develop and display tool paths but use Mini or Tkemc when running a machine. The Tk interface has a menu item that sizes the position display to your liking.

Rayh
Reply With Quote

  #3   Ban this user!
Old 06-25-2008, 08:48 AM
 
Join Date: May 2005
Location: canada
Posts: 1,149
cyclestart is on a distinguished road

The wiki mentions a file /usr/share/doc/emc2/axis_big_dro. However that file does not exist on my machine. Maybe it caused problems or was simply unspeakably ugly?

Editing that part of the wiki might be due.
__________________
Anyone who says "It only goes together one way" has no imagination.
Reply With Quote

  #4   Ban this user!
Old 06-25-2008, 10:36 AM
ImanCarrot's Avatar  
Join Date: Nov 2005
Location: UK
Posts: 1,468
ImanCarrot is on a distinguished road

What about one of them fresnel lenses (flat plastic with lots of circular grooves on it)- cheap and easy solution.

Like this:

http://www.ergoindemand.com/lcd-comp...ier-filter.htm

or this

http://www.3dlens.com/shop/largefresnellens.php

here's a video:

http://www.youtube.com/watch?v=Iji4QW44olc
__________________
I love deadlines- I like the whooshing sound they make as they fly by.
Reply With Quote

  #5   Ban this user!
Old 07-01-2008, 07:59 AM
 
Join Date: Apr 2005
Location: finland
Posts: 262
andy55 is on a distinguished road

with pyVCP it is easy to setup another set of coordinate displays on the right hand of the AXIS window and make them as big as you want. There's an introduction to pyVCP in the integrator manual - start there.
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 07-03-2008, 08:12 AM
 
Join Date: May 2005
Location: canada
Posts: 1,149
cyclestart is on a distinguished road

What andy is talking about would look something like the attached image. How us stepper folk would manage the hal bit is beyond my knowledge.

The wiki entry I mentioned earlier is here.
http://linuxcnc.org/docs/devel/html/...s.html#r1_11_2
This idea may have been abandoned.
Attached Thumbnails
Click image for larger version

Name:	pyvcp.png‎
Views:	175
Size:	171.3 KB
ID:	62500  
__________________
Anyone who says "It only goes together one way" has no imagination.
Reply With Quote

  #7   Ban this user!
Old 07-03-2008, 10:36 AM
 
Join Date: May 2008
Location: USA
Posts: 32
Ray Henry is on a distinguished road

I taught a bit of PyVCP at the CNC-Workshop this year. Not trivial but the class got to doing it themselves on the lab computers -- and these were stepper folk who started the week with our stepper configuration wizard (stepconf). I'll write up my notes and put them in wiki.linuxcnc.org.

I fail to see the need to create a distinction between "stepper folk" and other sorts of users. IMO we are all at some stage of learning to use and configure the system to our needs. The wide range and rapid pace of growth in EMC2's abilities means that we are all challenged to learning to do more with it. Forums like this, email lists, and IRC can really help with that learning. Your web work finding that pic helps a lot. Thanks.
Reply With Quote

  #8   Ban this user!
Old 07-03-2008, 09:53 PM
 
Join Date: May 2005
Location: canada
Posts: 1,149
cyclestart is on a distinguished road

Originally Posted by Ray Henry View Post
I fail to see the need to create a distinction between "stepper folk" and other sorts of users.
The only large readout example easily found on the wiki involves encoders. That was the source of the "stepper folk" comment. No emc user version of segregation was intended. Sometimes my communication skills are lacking, to put it mildly

The desktop in the previous post wasn't found on the web, it's a screenshot. I could get as far as creating that xml file but no further.

Code:

    
        
        
        "xpos-readout"
        ('Helvetica',50)
        "+4.4f"
        
        
        
        "ypos-readout"
        ('Helvetica',50)
        "+4.4f"
        
        
        
        "zpos-readout"
        ('Helvetica',50)
        "+4.4f"
        
    
Here's where it started falling apart;

Under [HAL] in stepper_inch.ini added POSTGUI_HALFILE=pyreadout_pyvcp.hal

So far pyreadout_pyvcp.hal contains only this line
linksp whatever pyvcp.xpos-readout
The "whatever" is the conceptual roadblock. Looking in a stepper hal file shows step and direction, nothing that suggests position in an obvious way.

Hope you can include an easy explanation of these type of things in the wiki entry.
In any case Regnar may have lost interest? For my needs this is mostly an interesting riddle.

edit/ That xml code refuses to paste in properly. I'll try again if anyone is interested.
__________________
Anyone who says "It only goes together one way" has no imagination.
Reply With Quote

  #9   Ban this user!
Old 07-04-2008, 11:04 AM
 
Join Date: May 2008
Location: USA
Posts: 32
Ray Henry is on a distinguished road

You are right of course. EMC2 stepper folk are users just like servo folk.

You've gotten quite a ways with the setup. We should note, for folk who look at your xml and say that it's not xml that the cnczone editor strips the tags from this sort of stuff. you are showing only the python commands with the tags removed. It's the tags that tell what each line does.

I'll copy a version of my cyclestart.xml file here using codes that cnczone and our browsers should be able to handle. I hope this works because it is really annoying not to be able to easily paste marked up text in here.

<pyvcp>
<label>
<text>"X axis"</text>
</label>
<number>
<halpin>"xpos-readout"</halpin>
<font>('Helvetica',50)</font>
<format>"+4.3f"</format>
</number>
<label>
<text>"Y axis"</text>
</label>
<number>
<halpin>"ypos-readout"</halpin>
<font>('Helvetica',50)</font>
<format>"+4.3f"</format>
</number>
<label>
<text>"Z axis"</text>
</label>
<number>
<halpin>"zpos-readout"</halpin>
<font>('Helvetica',50)</font>
<format>"+4.3f"</format>
</number>
</pyvcp>

Interested folk might read chapter 17 in the Integrator Manual for details.

Now to the "whatever" issue. Here the teacher in me wants to step back just a bit and describe how I recommend learning HAL and working with it. It is easiest to work with if you have a copy of the HAL manual handy and also have a running HAL.

You created a running HAL when you took that screen shot. I like to examine HAL using a little GUI tool available under the AXIS -> Machine menu. It is the "Show Hal Configuration" item near the bottom of the menu list. I'll attach a screenshot of that showing your PyVCP pins and how I connected them to the Xpos-cmd HAL signal.

It the event that the command I typed down near the bottom left in the attachment isn't readable here is what I did.

I clicked on signals in the tree widget on the left and found that under axis X, Y, Z there is a set of signals named Xpos-cmd, Ypos-cmd, and Zpos-cmd. One at a time, I created link signal to pin (linksp) commands in that entry line that looked like these.
linksp Xpos-cmd pyvcp.xpos-readout
linksp Ypos-cmd pyvcp.ypos-readout
linksp Zpos-cmd pyvcp.zpos-readout
after testing and seeing that they worked I created a cyclestart.hal file with these three lines and added it to my stepper configuration directory.

After that I commanded EMC2 to execute that file by adding it to the INI file using a postgui command that looks like this
POSTGUI_HALFILE = cyclestart.hal
at the bottom of the Hardware Abstraction Layer section.

Hope this helps

Rayh
Attached Thumbnails
Click image for larger version

Name:	Screenshot.png‎
Views:	105
Size:	49.1 KB
ID:	62560  
Reply With Quote

  #10   Ban this user!
Old 07-04-2008, 06:35 PM
acondit's Avatar  
Join Date: Apr 2005
Location: USA
Posts: 1,774
acondit is on a distinguished road

Ray,

I tried out your suggestion on my lathe. Generally it works great.

What I did notice was that Axis reloads the current position from the last position of the lathe (presumably from "lathe-position.txt"), while the pyvcp values initialize to 0.0. If I move the machine without homing it the pyvcp position display updates from 0.0 and are out of sync with axis. If I home any axis that was not already at home, everything gets put in sync and works fine.

I was also wondering, should these displays always be in machine coordinates or should they be switchable like Axis between Machine view and relative to coordinate system.

Alan
__________________
http://www.alansmachineworks.com
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 07-04-2008, 08:17 PM
 
Join Date: May 2005
Location: canada
Posts: 1,149
cyclestart is on a distinguished road

Originally Posted by Ray Henry View Post
Hope this helps
Yes it does. I had seen the hal configuration window in axis before but did not understand why it existed. I suspect this information is reachable somewhere outside of the axis display as well but didn't know how to reach it.

The operative word in HAL is still Abstraction here unfortunately. However your example gives something to bite into. Most things worth learning require some effort.
__________________
Anyone who says "It only goes together one way" has no imagination.
Reply With Quote

  #12   Ban this user!
Old 07-04-2008, 08:32 PM
 
Join Date: May 2008
Location: USA
Posts: 32
Ray Henry is on a distinguished road

Originally Posted by acondit View Post
What I did notice was that Axis reloads the current position from the last position of the lathe (presumably from "lathe-position.txt"), while the pyvcp values initialize to 0.0. If I move the machine without homing it the pyvcp position display updates from 0.0 and are out of sync with axis. If I home any axis that was not already at home, everything gets put in sync and works fine.
Alan
Exactly right. The (X,Y,Z)pos-cmd that we connected to in HAL is in essence a raw position based on machine home. You would however have the same issues with a preset g54-59.3 or a g92 offset. I believe that you'd even see it with tool length offsets.

I have real mixed feelings about the "xxxx-position.txt" sorts of files for a couple reasons. But then I'm the kind of person who will go to great lengths to add real and accurate home and limit switches.

There is another way to connect these displays. Let me run some tests on a box here tomorrow and post the result. Either we will have a good answer or a bug report.

Rayh
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
Relative coordinate display SIG Fanuc 5 02-08-2008 11:27 AM
coordinate system kiethnt G-Code Programing 6 04-26-2007 07:46 AM
Using 3d Coordinate Conversion On A Vf4 renglish Haas Mills 3 02-02-2007 11:04 AM
Coordinate system problems R.thayer LinuxCNC (formerly EMC2) 0 11-19-2006 02:36 PM
Coordinate question for cam software WarrenW General CAM Discussion 11 01-09-2006 10:13 AM




All times are GMT -5. The time now is 05:23 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