![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here! |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
Hi guys, i have a little problem. I'm building a cnc lathe which will be(is) running with EMC2. I want to integrate device on to it which will place raw material into lathe head and take out finished parts. Also i want this device to count finished parts and show number of parts on custom PyVcp panel and there i found a problem. I can set output type s32 in ClassicLadder, but PyVcp vidgets can take just float numbers. Is there a solution i check a few web pages and manuals, but i didn't found the solution. Best regards |
|
#2
| |||
| |||
| Yes there is a solution. you need to convert the signals from float to s32. there are HAL components to do conversions. The one you want is conv_float_s32 . you then connect the pyvcp to the convert component and the convert component to classicladder. Don't forget to add the component to a thread. There are other conversion components too. Look in the EMC manual or type man conv_float_s32 for more info. BTW in the upcoming release of EMC 2.3 classicladder will be able to read and write floats though internally they are converted to s32 (CL doesn't handle floats internally yet) Chris M |
|
#5
| |||
| |||
| When you get this done It sounds like an interesting example to add to classicladder's example page in the wiki: http://wiki.linuxcnc.org/cgi-bin/emc...LadderExamples Feel free to add it or send me info and I will add it. Cheers Chris M |
| Sponsored Links |
|
#7
| |||
| |||
|
In 2.3 (when it comes out) you can display a float, s32, and u32. http://www.linuxcnc.org/docs/devel/h...cp.html#r1_5_4 I don't have a full example yet in the manual, but I'm working on it... John |
|
#9
| |||
| |||
| Pyvcp is a user space program- meaning not realtime. realtime guarantees response time-user space does not. If you raise your base period that will help user space program response time. If your are using software stepping then raising the base period will lower the max speed. Servo systems are much more forgiving. If your pyvcp is sluggish then is the rest of the desktop too? What ws your max jitter from your latency test? (you did do one right?) |
|
#11
| |||
| |||
| I'm not sure what you are asking. Pyvcp, AXIS and even the GUI for classicladder are all userspace so if one is sluggish then they all are probably. what thread speed did you choose for your stand alone programs? Explain how sluggish pyvcp is. |
|
#12
| |||
| |||
hi, when sending a signal from classicladder(counter) to pyvcp panel it updates my number immediately. But when i click a button on my pyvcp panel clssicladder sometimes doesn't even register my click, so i must press the button for a while(0,5s) to classicladder register my click. I'm not by my linux computer now, but my periods are defenitelj shorter as 0,5s. best regards |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need Help!- EMC2 | Jamy | LinuxCNC (formerly EMC2) | 32 | 08-17-2009 11:03 PM |
| EMC2 | Jamy | General CAD Discussion | 2 | 12-11-2008 12:02 AM |
| EMC2 HELP HELP HELP | Alwyn | OpenSource Software | 2 | 10-11-2008 11:18 AM |
| Need Help pyvcp,halui,pendant jogging | Gads | LinuxCNC (formerly EMC2) | 2 | 05-11-2008 03:42 PM |
| EMC2 to diy CNC | dakiller322 | LinuxCNC (formerly EMC2) | 11 | 10-05-2007 12:16 AM |