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 > CamSoft Products


CamSoft Products Discuss Camsoft PC based CNC controller products here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 03-22-2008, 12:51 PM
 
Join Date: Jan 2007
Location: Canada
Posts: 17
precourt is on a distinguished road
Handwheel command and MPG

I have a hard time to setup a MPG on my retrofited machine.
The MPG is working, it is correctly connected on the auxiliary encoder
I want to use a rotary on screen knob .

[KNOB1]
VISIBLE=TRUE
TOP= 12005
LEFT= 140
POSTIONS=8
VARNUM=333
CAPTION1=Handle OFF
CAPTION2=Handle X
CAPTION3=Handle Y
CAPTION4=Handle Z
CAPTION5=
CAPTION6=
CAPTION7=
CAPTION8=
POSITIONS=4

I want to be able to get in an Handle mode
I use this logic for the handle button tryed the aproach via mcode
[BUTTON15]
VISIBLE=TRUE
TOP=7060
LEFT=6680
HEIGHT=500
WIDTH=500
FKEY= 0
CAPTION=
MFUNC1ST=93
MFUNC2ND=0
BITMAP=handle.bmp

Mcode
-----M93
IF\333>0THEN FEEDRATE 50:ACCEL 300000ECEL 300000:[HANDLE]

This macro

[[HANDLE]]

IF\333=1THEN HANDWHEEL 0
IF\333=2THEN HANDWHEEL 1;100
IF\333=3THEN HANDWHEEL 2;100
IF\333=4THEN HANDWHEEL 3;100

For me it has always been easy to deal with I/o using Inputio.fil
But responding in real time to a variable change in state seem a bit hard


In general I want the machine to behave as much as possible as a Fanuc control using mode JOG Handle and memory any help or example would be of great help.

Thanks


Erik
Reply With Quote

  #2   Ban this user!
Old 03-22-2008, 03:40 PM
Karl_T's Avatar  
Join Date: Mar 2004
Location: Dassel,MN,USA
Posts: 1,318
Karl_T is on a distinguished road

I'm not seeing your error on first look.

Add a whole bunch of MEASSAGE commands to trace problem.

MESSAGE start M93
MESSAGE \333

put at begginning of M93

MESSAGE handle macro

put at beginning of macro

see what you learn. The idea is to trace down problem to one or two lines.

Karl
Reply With Quote

  #3   Ban this user!
Old 03-23-2008, 08:30 AM
Karl_T's Avatar  
Join Date: Mar 2004
Location: Dassel,MN,USA
Posts: 1,318
Karl_T is on a distinguished road

Originally Posted by precourt View Post

...
In general I want the machine to behave as much as possible as a Fanuc control using mode JOG Handle and memory any help or example would be of great help.
Mind if I hijack your thread?

Don't set your sights too low. The machine should be better than a Fanuc control. One of the things needed to do this is an operator panel with all the functions your operator needs.

My current project is panel upgrade number two on my knee mill. I'm currently in the middle of wiring. See the attached pics.

Karl
Attached Thumbnails
Click image for larger version

Name:	mill front panel.jpg‎
Views:	132
Size:	79.1 KB
ID:	56191   Click image for larger version

Name:	mill galil and computer.jpg‎
Views:	118
Size:	142.5 KB
ID:	56192   Click image for larger version

Name:	mill io.jpg‎
Views:	131
Size:	134.4 KB
ID:	56193  
Reply With Quote

  #4   Ban this user!
Old 03-23-2008, 08:48 AM
 
Join Date: Jan 2007
Location: Canada
Posts: 17
precourt is on a distinguished road

Originally Posted by Karl_T View Post
Mind if I hijack your thread?

Don't set your sights too low. The machine should be better than a Fanuc control. One of the things needed to do this is an operator panel with all the functions your operator needs.

My current project is panel upgrade number two on my knee mill. I'm currently in the middle of wiring. See the attached pics.

Karl
Thanks for the reply, I already started to add two rotary knob one for function and one for 1X 10X 100X as on yours.

It s way easyer to deal with I/O and inputio.fil
I will send pictures of my machine on tuesday.


Erik
Reply With Quote

  #5   Ban this user!
Old 03-23-2008, 08:59 AM
 
Join Date: Jun 2007
Location: holland
Posts: 17
Binski is on a distinguished road
buttons

Have a look at the CONTROLL INTERFACE from cnc direct.

http://www.cncdirect.co.za/htm/cnc.html

Its a really easy way to make a controll panel with a lot of buttons.

Its a controll board whitch is connected between the pc keyboard and the pc.
You can add about 24 buttons and 4 rotary swtches.
You can simply add oem buttons in mach and program the keyboard strokes you programmed into the controll interface so yoyr buttons will work.

I have one of these and made a controll panel for my emco pcmill 50 with an mpg wheel. I can toggle all the axis, jog mode etc all with the buttons on my panel. even feedrate and spindle speed are contrlled trhough this interface.

Much simpler than programming buttons trough inputs..
Attached Thumbnails
Click image for larger version

Name:	paneel binnen.JPG‎
Views:	93
Size:	222.0 KB
ID:	56195   Click image for larger version

Name:	IMG_1777.JPG‎
Views:	106
Size:	193.1 KB
ID:	56196   Click image for larger version

Name:	IMG_1779.JPG‎
Views:	93
Size:	166.9 KB
ID:	56197  
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-24-2008, 10:14 AM
 
Join Date: Apr 2003
Location: United States
Posts: 279
camsoft is on a distinguished road

You almost got it.

(1) You have a mistake setting the KNOB. You'll notice 2 POSITION settings. one for 4 and one for 8

(2) You have a mistake setting MFUNC2ND=0. You should also set this to 93 or else the button will only work half the time. You'll think you have a random problem.


(3) You may have another mistake but it may just be the way you have shown it here. The logic for the M93 should be entered above rather than below it.

(4) The Macro is using the basic settings and looks good. However to rotate through the axis the Hand wheel has to stop motion first and be reset to 0 before you job a different axis. At the top of your Macro add this logic commands:

HANDWHEEL 0

Dealing with or doing this with I/O is about the same effort. Once you understand all the choices available to you each method will give you more flexible. The virtual on screen knob method is best to use when you have a limited I/O number of relays to work with and don't feel like drilling a hole to mount a real knob.

With I/O it's this way in the INPUTIO.FIL file using example I/O numbers:

IF #20=1 THEN HANDWHEEL 0:HANDWHEEL 1;100
IF #21=1 THEN HANDWHEEL 0:HANDWHEEL 2;100
IF #22=1 THEN HANDWHEEL 0:HANDWHEEL 3;100

Whereas with a virtual knob its this way using example variable numbers:

[[HANDLE]]

HANDWHEEL 0
IF \333=2 THEN HANDWHEEL 1;100
IF \333=3 THEN HANDWHEEL 2;100
IF \333=4 THEN HANDWHEEL 3;100

Just remember to press your button showing the Handle.bmp to active it.

Tech Support
CamSoft Corp.
support@camsoftcorp.com
PH 951-674-8100
Fax 951-674-3110
www.cnccontrols.com
__________________
(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tree Handwheel dougwr Tree 0 03-10-2008 03:03 PM
Heidenhain Hr-410 handwheel khbash General Electronics Discussion 0 08-04-2007 06:42 AM
Backwards Handwheel on Centurion 6 TZ250 Milltronics 2 02-28-2007 10:01 PM
tm-1 handwheel removal? superrat Haas Mills 6 11-10-2006 09:52 AM
Handwheel Installation plateroomred CamSoft Products 3 05-24-2005 04:28 PM




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