![]() | |
| 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
| |||
| |||
I am kind of new to CNC. I got a prolight 1000 CNC mill and added new steppers and a G540. I played with Mach3 a bit and I can get it to do the basics with simple G codes. Mach3 outputs charge pump on pin 16 just fine. I installed EMC2.2.8 with a go live disc in dual boot configuration. I created my-mill profile using stepcon and assigned charge pump to pin 16. I can monitor the parallel port output pin (16) with a scope. It starts out high and goes low when EMC2 starts but it never changes. I found this in a old thread so I tried adding it to the .hal file. setp charge-pump.enable 1 EMC2 will not even start up with that in the file. What am I missing??? Should I just disable the charge pump and move on? thanks chuck |
|
#2
| ||||
| ||||
| You need to add Code: loadrt charge_pump Code: addf charge-pump base-thread Code: net charge-pump <= charge-pump.out net charge-pump => parport.1.pin-01-out setp charge-pump.enable 1
__________________ Every day is a learning process, whether you remember yesterday or not is the hard part. www.distinctperspectives.com |
|
#3
| |||
| |||
| I have everything in the .hal file (by default) except for the setp charge-pump.enable 1 When I add that line, EMC2 terminates with an error. I used hal meter to look at charge-pump.enable and it is set to FALSE. I set the charge pump pin go high when I start EMC and then go false and stay false. chuck |
|
#4
| ||||
| ||||
| What error does it terminate with? The complete contents of the error window that pops up and the contents of the dmesg log. (/var/log). I had to add lines but I think they touched up StepConf. Can you also post your .hal file. Post them as text file attachments or on pastebin. The full picture would help. I can verify the charge pump in EMC2 does work.
__________________ Every day is a learning process, whether you remember yesterday or not is the hard part. www.distinctperspectives.com |
|
#6
| |||
| |||
| When I add setp charge-pump.enable 1 to custom.hal I get a popup EMC2 Error window that says EMC2 terminated with error. Print file information: RUN_IN_PLACE=no EMC2_DIR= EMC2_BIN_DIR=/usr/bin EMC2_TCL_DIR=/usr/share/emc/tcl EMC2_SCRIPT_DIR= EMC2_RTLIB_DIR=/usr/realtime-2.6.24-16-rtai/modules/emc2 EMC2_CONFIG_DIR= EMC2_LANG_DIR=/usr/share/emc/tcl/msgs INIVAR=/usr/bin/inivar HALCMD=/usr/bin/halcmd EMC2_EMCSH=/usr/bin/emcsh EMC2_IOSH=/usr/bin/iosh EMC2 - 2.2.8 Machine configuration directory is '/home/chuck/emc2/configs/prolight' Machine configuration file is 'prolight.ini' INIFILE=/home/chuck/emc2/configs/prolight/prolight.ini PARAMETER_FILE=emc.var EMCMOT=motmod EMCIO=io TASK=milltask HALUI= DISPLAY=axis NML_FILE=emc.nml Starting EMC2... Starting EMC2 server program: emcsvr Loading Real Time OS, RTAPI, and HAL_LIB modules Starting EMC2 IO program: io Shutting down and cleaning up EMC2... Killing task emcsvr, PID=5409 Removing HAL_LIB, RTAPI, and Real Time OS modules Removing NML shared memory segments Cleanup done Kernel message information: [ 0.000000] Linux version 2.6.24-16-rtai (root@hardy) (gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)) #1 Tue Sep 30 22:54:33 EEST 2008 (Ubuntu 2.6.24-12.22-generic) [ 0.000000] BIOS-provided physical RAM map: [ 0.000000] BIOS-e820: 0000000000000000 - 00000000000a0000 (usable) [ 0.000000] BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) [ 0.000000] BIOS-e820: 0000000000100000 - 000000000dff0000 (usable) [ 0.000000] BIOS-e820: 000000000dff0000 - 000000000dff3000 (ACPI NVS) [ 0.000000] BIOS-e820: 000000000dff3000 - 000000000e000000 (ACPI data) [ 0.000000] BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved) [ 0.000000] BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved) [ 0.000000] BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved) [ 0.000000] 0MB HIGHMEM available. [ 0.000000] 223MB LOWMEM available. [ 0.000000] Entering add_active_range(0, 0, 57328) 0 entries of 256 used [ 0.000000] Zone PFN ranges: [ 0.000000] DMA 0 -> 4096 [ 0.000000] Normal 4096 -> 57328 [ 0.000000] HighMem 57328 -> 57328 [ 0.000000] Movable zone start PFN for each node [ 0.000000] early_node_map[1] active PFN ranges [ 0.000000] 0: 0 -> 57328 [ 0.000000] On node 0 totalpages: 57328 [ 0.000000] DMA zone: 32 pages used for memmap [ 0.000000] DMA zone: 0 pages reserved [ 0.000000] DMA zone: 4064 pages, LIFO batch:0 [ 0.000000] Normal zone: 415 pages used for memmap [ 0.000000] Normal zone: 52817 pages, LIFO batch:15 [ 0.000000] HighMem zone: 0 pages used for memmap [ 0.000000] Movable zone: 0 pages used for memmap [ 0.000000] DMI 2.2 present. [ 0.000000] Allocating PCI resources starting at 10000000 (gap: 0e000000:f0c00000) [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 56881 [ 0.000000] Kernel command line: root=UUID=c7dbad77-f4a2-45b6-ba0e-5f0a2f25bafb ro quiet splash [ 0.000000] Enabling fast FPU save and restore... done. [ 0.000000] Enabling unmasked SIMD FPU exception support... done. [ 0.000000] Initializing CPU#0 [ 0.000000] PID hash table entries: 1024 (order: 10, 4096 bytes) [ 0.000000] Detected 1503.450 MHz processor. [ 21.193611] I-pipe 2.0-04: pipeline enabled. [ 21.194704] Console: colour VGA+ 80x25 [ 21.194710] console [tty0] enabled [ 21.195059] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) [ 21.195311] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) [ 21.206397] Memory: 217584k/229312k available (1440k kernel code, 11208k reserved, 573k data, 228k init, 0k highmem) [ 21.206412] virtual kernel memory layout: [ 21.206414] fixmap : 0xfffed000 - 0xfffff000 ( 72 kB) [ 21.206416] pkmap : 0xff800000 - 0xffc00000 (4096 kB) [ 21.206418] vmalloc : 0xce800000 - 0xff7fe000 ( 783 MB) [ 21.206420] lowmem : 0xc0000000 - 0xcdff0000 ( 223 MB) [ 21.206422] .init : 0xc02fa000 - 0xc0333000 ( 228 kB) [ 21.206424] .data : 0xc026836d - 0xc02f77ec ( 573 kB) [ 21.206426] .text : 0xc0100000 - 0xc026836d (1440 kB) [ 21.206431] Checking if this processor honours the WP bit even in supervisor mode... Ok. [ 21.206507] SLUB: Genslabs=11, HWalign=32, Order=0-1, MinObjects=4, CPUs=1, Nodes=1 [ 21.286520] Calibrating delay using timer specific routine.. 3008.16 BogoMIPS (lpj=6016330) [ 21.286577] Security Framework initialized [ 21.286588] SELinux: Disabled at boot. [ 21.286616] AppArmor: AppArmor initialized [ 21.286624] Failure registering capabilities with primary security module. [ 21.286636] Mount-cache hash table entries: 512 [ 21.286859] CPU: After generic identify, caps: 0383fbff c1c3fbff 00000000 00000000 00000000 00000000 00000000 00000000 [ 21.286872] CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line) [ 21.286876] CPU: L2 Cache: 256K (64 bytes/line) [ 21.286880] CPU: After all inits, caps: 0383fbff c1c3fbff 00000000 00000420 00000000 00000000 00000000 00000000 [ 21.286897] Compat vDSO mapped to ffffe000. [ 21.286915] CPU: AMD Athlon(tm) XP 1800+ stepping 01 [ 21.286924] Checking 'hlt' instruction... OK. [ 21.302765] Freeing SMP alternatives: 0k freed [ 21.303120] net_namespace: 64 bytes [ 21.303751] NET: Registered protocol family 16 [ 21.304064] EISA bus registered [ 21.342794] PCI: PCI BIOS revision 2.10 entry at 0xfb440, last bus=1 [ 21.342798] Setting up standard PCI resources [ 21.344963] Linux Plug and Play Support v0.97 (c) Adam Belay [ 21.345338] PCI: Probing PCI hardware [ 21.345348] PCI: Probing PCI hardware (bus 00) [ 21.345622] Enabling SiS 96x SMBus. [ 21.347287] PCI: Using IRQ router SIS [1039/0962] at 0000:00:02.0 [ 21.362678] AppArmor: AppArmor Filesystem Enabled [ 21.363245] PCI: Bridge: 0000:00:01.0 [ 21.363251] IO window: 9000-9fff [ 21.363260] MEM window: ed000000-ed0fffff [ 21.363266] PREFETCH window: e0000000-e7ffffff [ 21.363303] NET: Registered protocol family 2 [ 21.366514] Time: tsc clocksource has been installed. [ 21.398607] IP route cache hash table entries: 2048 (order: 1, 8192 bytes) [ 21.398920] TCP established hash table entries: 8192 (order: 4, 65536 bytes) [ 21.399126] TCP bind hash table entries: 8192 (order: 3, 32768 bytes) [ 21.399231] TCP: Hash tables configured (established 8192 bind 8192) [ 21.399236] TCP reno registered [ 21.410738] checking if image is initramfs... it is [ 22.171910] Freeing initrd memory: 6503k freed [ 22.172728] audit: initializing netlink socket (disabled) [ 22.172756] audit(1232607884.968:1): initialized [ 22.175553] VFS: Disk quotas dquot_6.5.1 [ 22.175594] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 22.175810] io scheduler noop registered [ 22.175814] io scheduler anticipatory registered [ 22.175817] io scheduler deadline registered [ 22.175832] io scheduler cfq registered (default) [ 22.175898] Boot video device is 0000:01:00.0 [ 22.176226] isapnp: Scanning for PnP cards... [ 22.530172] isapnp: No Plug & Play device found [ 22.572362] Real Time Clock Driver v1.12ac [ 22.572371] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled [ 22.572548] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A [ 22.574030] RAMDISK driver initialized: 16 RAM disks of 65536K size 1024 blocksize [ 22.574157] input: Macintosh mouse button emulation as /devices/virtual/input/input0 [ 22.574355] PNP: No PS/2 controller found. Probing ports directly. [ 22.578181] serio: i8042 KBD port at 0x60,0x64 irq 1 [ 22.582556] mice: PS/2 mouse device common for all mice [ 22.582729] EISA: Probing bus 0 at eisa.0 [ 22.582741] Cannot allocate resource for EISA slot 1 [ 22.582754] Cannot allocate resource for EISA slot 4 [ 22.582774] EISA: Detected 0 cards. [ 22.582932] NET: Registered protocol family 1 [ 22.582949] Using IPI Shortcut mode [ 22.583118] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found [ 22.583121] EDD information not available. [ 22.583678] Freeing unused kernel memory: 228k freed [ 22.614424] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1 [ 23.918086] fuse init (API version 7.9) [ 24.294640] SCSI subsystem initialized [ 24.355113] usbcore: registered new interface driver usbfs [ 24.355165] usbcore: registered new interface driver hub [ 24.357402] sis900.c: v1.08.10 Apr. 2 2006 [ 24.358914] 0000:00:04.0: VIA 6103 PHY transceiver found at address 1. [ 24.372753] 0000:00:04.0: Using transceiver found at address 1 as default [ 24.382967] usbcore: registered new device driver usb [ 24.384472] ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver [ 24.409736] libata version 3.00 loaded. [ 24.437229] eth0: SiS 900 PCI Fast Ethernet at 0xa800, IRQ 11, 00:e0:4c:ac:7b:b1 [ 24.437297] PCI: setting IRQ 9 as level-triggered [ 24.437303] PCI: Found IRQ 9 for device 0000:00:03.0 [ 24.437361] ohci_hcd 0000:00:03.0: OHCI Host Controller [ 24.437954] ohci_hcd 0000:00:03.0: new USB bus registered, assigned bus number 1 [ 24.437990] ohci_hcd 0000:00:03.0: irq 9, io mem 0xed103000 [ 24.492488] usb usb1: configuration #1 chosen from 1 choice [ 24.492542] hub 1-0:1.0: USB hub found [ 24.492559] hub 1-0:1.0: 3 ports detected [ 24.594379] PCI: setting IRQ 3 as level-triggered [ 24.594389] PCI: Found IRQ 3 for device 0000:00:03.1 [ 24.594452] ohci_hcd 0000:00:03.1: OHCI Host Controller [ 24.594497] ohci_hcd 0000:00:03.1: new USB bus registered, assigned bus number 2 [ 24.594528] ohci_hcd 0000:00:03.1: irq 3, io mem 0xed100000 [ 24.652405] usb usb2: configuration #1 chosen from 1 choice [ 24.652451] hub 2-0:1.0: USB hub found [ 24.652467] hub 2-0:1.0: 3 ports detected [ 24.754624] PCI: setting IRQ 5 as level-triggered [ 24.754634] PCI: Found IRQ 5 for device 0000:00:03.3 [ 24.754690] ehci_hcd 0000:00:03.3: EHCI Host Controller [ 24.754745] ehci_hcd 0000:00:03.3: new USB bus registered, assigned bus number 3 [ 24.754816] PCI: cache line size of 64 is not supported by device 0000:00:03.3 [ 24.754833] ehci_hcd 0000:00:03.3: irq 5, io mem 0xed101000 [ 24.766229] ehci_hcd 0000:00:03.3: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 [ 24.766481] usb usb3: configuration #1 chosen from 1 choice [ 24.766521] hub 3-0:1.0: USB hub found [ 24.766536] hub 3-0:1.0: 6 ports detected [ 24.873856] pata_sis 0000:00:02.5: version 0.5.2 [ 24.877026] scsi0 : pata_sis [ 24.878787] scsi1 : pata_sis [ 24.878897] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0x4000 irq 14 [ 24.878902] ata2: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0x4008 irq 15 [ 25.043662] ata1.00: ATA-5: WDC WD300AB-00BVA0, 21.01H21, max UDMA/100 [ 25.043672] ata1.00: 58633344 sectors, multi 16: LBA [ 25.059530] ata1.00: configured for UDMA/100 [ 25.354120] usb 2-1: new low speed USB device using ohci_hcd and address 2 [ 25.370559] ata2.00: ATAPI: SAMSUNG CDRW/DVD SM-352B, T806, max UDMA/33 [ 25.514169] usb 2-1: configuration #1 chosen from 1 choice [ 25.536930] usbcore: registered new interface driver hiddev [ 25.543002] ata2.00: configured for UDMA/33 [ 25.543273] scsi 0:0:0:0: Direct-Access ATA WDC WD300AB-00BV 21.0 PQ: 0 ANSI: 5 [ 25.543907] scsi 1:0:0:0: CD-ROM SAMSUNG CDRW/DVD SM-352B T806 PQ: 0 ANSI: 5 [ 25.545427] input: HID 1241:1111 as /devices/pci0000:00/0000:00:03.1/usb2/2-1/2-1:1.0/input/input2 [ 25.555956] Driver 'sd' needs updating - please use bus_type methods [ 25.562280] input,hidraw0: USB HID v1.00 Mouse [HID 1241:1111] on usb-0000:00:03.1-1 [ 25.562318] usbcore: registered new interface driver usbhid [ 25.562327] /home/juve/hardy-packages/linux-git/ubuntu-hardy/debian/build/custom-source-rtai/drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver [ 25.562956] sd 0:0:0:0: [sda] 58633344 512-byte hardware sectors (30020 MB) [ 25.562984] sd 0:0:0:0: [sda] Write Protect is off [ 25.562989] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 25.563015] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 25.563116] sd 0:0:0:0: [sda] 58633344 512-byte hardware sectors (30020 MB) [ 25.563131] sd 0:0:0:0: [sda] Write Protect is off [ 25.563135] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 [ 25.563157] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 25.563166] sda:<4>Driver 'sr' needs updating - please use bus_type methods [ 25.589615] sda1 sda2 < sda5 sda6 > [ 25.626866] sd 0:0:0:0: [sda] Attached SCSI disk [ 25.637391] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 25.637426] sr 1:0:0:0: Attached scsi generic sg1 type 5 [ 25.639330] sr0: scsi3-mmc drive: 1x/52x writer cd/rw xa/form2 cdda tray [ 25.639342] Uniform CD-ROM driver Revision: 3.20 [ 25.639454] sr 1:0:0:0: Attached scsi CD-ROM sr0 [ 26.029370] kjournald starting. Commit interval 5 seconds [ 26.029403] EXT3-fs: mounted filesystem with ordered data mode. [ 34.371239] Linux agpgart interface v0.102 [ 34.378622] agpgart: Detected SiS chipset - id:1856 [ 34.387469] agpgart: AGP aperture is 64M @ 0xe8000000 [ 34.406360] input: PC Speaker as /devices/platform/pcspkr/input/input3 [ 34.442288] sis96x_smbus 0000:00:02.1: SiS96x SMBus base address: 0x10c0 [ 35.305042] PCI: setting IRQ 12 as level-triggered [ 35.305052] PCI: Found IRQ 12 for device 0000:00:02.7 [ 35.305082] PCI: Sharing IRQ 12 with 0000:00:09.0 [ 35.628938] intel8x0_measure_ac97_clock: measured 54975 usecs [ 35.628948] intel8x0: clocking to 48000 [ 37.992683] lp: driver loaded but no devices found [ 38.127177] Adding 658624k swap on /dev/sda6. Priority:-1 extents:1 across:658624k [ 38.696295] EXT3 FS on sda5, internal journal [ 40.289497] ip_tables: (C) 2000-2006 Netfilter Core Team [ 42.241902] ppdev: user-space parallel port driver [ 42.463131] audit(1232629505.660:2): type=1503 operation="inode_permission" requested_mask="a::" denied_mask="a::" name="/dev/tty" pid=4046 profile="/usr/sbin/cupsd" namespace="default" [ 43.812941] Bluetooth: Core ver 2.11 [ 43.817435] NET: Registered protocol family 31 [ 43.817445] Bluetooth: HCI device and connection manager initialized [ 43.817453] Bluetooth: HCI socket layer initialized [ 43.838878] Bluetooth: L2CAP ver 2.9 [ 43.838889] Bluetooth: L2CAP socket layer initialized [ 43.932222] Bluetooth: RFCOMM socket layer initialized [ 43.932265] Bluetooth: RFCOMM TTY layer initialized [ 43.932269] Bluetooth: RFCOMM ver 1.8 [ 46.696444] eth0: Media Link On 100mbps full-duplex [ 47.019905] NET: Registered protocol family 17 [ 51.313702] NET: Registered protocol family 10 [ 51.314898] lo: Disabled Privacy Extensions [ 62.133768] eth0: no IPv6 routers present [ 149.863174] I-pipe: Domain RTAI registered. [ 149.863199] RTAI[hal]: <3.6.1> mounted over IPIPE-NOTHREADS 2.0-04. [ 149.863202] RTAI[hal]: compiled with gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3). [ 149.863210] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0). [ 149.863214] PIPELINE layers: [ 149.863218] cea6f000 9ac15d93 RTAI 200 [ 149.863221] c0383180 0 Linux 100 [ 149.919441] RTAI[malloc]: global heap size = 2097152 bytes, [ 149.921853] RTAI[sched]: loaded (IMMEDIATE, UP, USER/KERNEL SPACE: [ 149.921869] RTAI[sched]: hard timer type/freq = 8254-PIT/1193180(Hz); default timing: periodic; linear timed lists. [ 149.921875] RTAI[sched]: Linux timer freq = 250 (Hz), CPU freq = 1503450000 hz. [ 149.921879] RTAI[sched]: timer setup = 2010 ns, resched latency = 2689 ns. [ 150.045158] RTAI[math]: loaded. [ 150.080174] rtapi: no version for "nano2count" found: kernel tainted. [ 150.326235] config string '0x378' [ 190.008792] RTAI[math]: unloaded. [ 190.107781] SCHED releases registered named ALIEN RTGLBH [ 190.130433] RTAI[malloc]: unloaded. [ 190.229561] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0). [ 190.235583] I-pipe: Domain RTAI unregistered. [ 190.235600] RTAI[hal]: unmounted. [ 899.707257] I-pipe: Domain RTAI registered. [ 899.707277] RTAI[hal]: <3.6.1> mounted over IPIPE-NOTHREADS 2.0-04. [ 899.707281] RTAI[hal]: compiled with gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3). [ 899.707288] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0). [ 899.707292] PIPELINE layers: [ 899.707296] cea6f000 9ac15d93 RTAI 200 [ 899.707299] c0383180 0 Linux 100 [ 899.788693] RTAI[malloc]: global heap size = 2097152 bytes, [ 899.789701] RTAI[sched]: loaded (IMMEDIATE, UP, USER/KERNEL SPACE: [ 899.789709] RTAI[sched]: hard timer type/freq = 8254-PIT/1193180(Hz); default timing: periodic; linear timed lists. [ 899.789715] RTAI[sched]: Linux timer freq = 250 (Hz), CPU freq = 1503450000 hz. [ 899.789719] RTAI[sched]: timer setup = 2010 ns, resched latency = 2689 ns. [ 900.047524] RTAI[math]: loaded. [ 900.563697] config string '0x378' [ 902.643074] RTAI[math]: unloaded. [ 902.725282] SCHED releases registered named ALIEN RTGLBH [ 902.746980] RTAI[malloc]: unloaded. [ 902.844992] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0). [ 902.850867] I-pipe: Domain RTAI unregistered. [ 902.850884] RTAI[hal]: unmounted. Debug file information: custom.hal:3: pin 'charge-pump.enable' is connected to a signal 5409 PID TTY STAT TIME COMMAND Stopping realtime threads Unloading hal components Traceback (most recent call last): File "/usr/bin/hal_manualtoolchange", line 32, in rs274.options.install(app) File "debian/tmp/usr/lib/python2.5/site-packages/rs274/options.py", line 164, in install KeyboardInterrupt |
|
#7
| |||
| |||
| File attachment did not work. Here is .hal file # Generated by stepconf at Wed Jan 21 10:43:03 2009 # If you make changes to this file, they will be # overwritten when you run stepconf again loadrt trivkins loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD traj_period_nsec=[EMCMOT]SERVO_PERIOD key=[EMCMOT]SHMEM_KEY num_joints=[TRAJ]AXES loadrt probe_parport loadrt hal_parport cfg=0x378 setp parport.0.reset-time 4000 loadrt stepgen step_type=0,0,0 loadrt charge_pump net estop-out charge-pump.enable iocontrol.0.user-enable-out net charge-pump <= charge-pump.out loadrt pwmgen output_type=0 addf parport.0.read base-thread addf stepgen.make-pulses base-thread addf charge-pump base-thread addf pwmgen.make-pulses base-thread addf parport.0.write base-thread addf parport.0.reset base-thread addf stepgen.capture-position servo-thread addf motion-command-handler servo-thread addf motion-controller servo-thread addf stepgen.update-freq servo-thread addf pwmgen.update servo-thread net spindle-cmd <= motion.spindle-speed-out => pwmgen.0.value net spindle-enable <= motion.spindle-on => pwmgen.0.enable net spindle-pwm <= pwmgen.0.pwm setp pwmgen.0.pwm-freq 50.0 setp pwmgen.0.scale 5000.0 setp pwmgen.0.offset 0.0 setp pwmgen.0.dither-pwm true net spindle-cw <= motion.spindle-forward net coolant-mist <= iocontrol.0.coolant-mist setp parport.0.pin-01-out-invert 1 net coolant-mist => parport.0.pin-01-out setp parport.0.pin-02-out-invert 1 net xstep => parport.0.pin-02-out setp parport.0.pin-02-out-reset 1 setp parport.0.pin-03-out-invert 1 net xdir => parport.0.pin-03-out setp parport.0.pin-04-out-invert 1 net ystep => parport.0.pin-04-out setp parport.0.pin-04-out-reset 1 setp parport.0.pin-05-out-invert 1 net ydir => parport.0.pin-05-out setp parport.0.pin-06-out-invert 1 net zstep => parport.0.pin-06-out setp parport.0.pin-06-out-reset 1 setp parport.0.pin-07-out-invert 1 net zdir => parport.0.pin-07-out setp parport.0.pin-08-out-invert 1 net astep => parport.0.pin-08-out setp parport.0.pin-08-out-reset 1 setp parport.0.pin-09-out-invert 1 net adir => parport.0.pin-09-out setp parport.0.pin-14-out-invert 1 net spindle-pwm => parport.0.pin-14-out setp parport.0.pin-16-out-invert 1 net charge-pump => parport.0.pin-16-out setp parport.0.pin-17-out-invert 1 net spindle-cw => parport.0.pin-17-out net estop-ext <= parport.0.pin-15-in setp stepgen.0.position-scale [AXIS_0]SCALE setp stepgen.0.steplen 1 setp stepgen.0.stepspace 0 setp stepgen.0.dirhold 32000 setp stepgen.0.dirsetup 13000 setp stepgen.0.maxaccel [AXIS_0]STEPGEN_MAXACCEL net xpos-cmd axis.0.motor-pos-cmd => stepgen.0.position-cmd net xpos-fb stepgen.0.position-fb => axis.0.motor-pos-fb net xstep <= stepgen.0.step net xdir <= stepgen.0.dir net xenable axis.0.amp-enable-out => stepgen.0.enable setp stepgen.1.position-scale [AXIS_1]SCALE setp stepgen.1.steplen 1 setp stepgen.1.stepspace 0 setp stepgen.1.dirhold 32000 setp stepgen.1.dirsetup 13000 setp stepgen.1.maxaccel [AXIS_1]STEPGEN_MAXACCEL net ypos-cmd axis.1.motor-pos-cmd => stepgen.1.position-cmd net ypos-fb stepgen.1.position-fb => axis.1.motor-pos-fb net ystep <= stepgen.1.step net ydir <= stepgen.1.dir net yenable axis.1.amp-enable-out => stepgen.1.enable setp stepgen.2.position-scale [AXIS_2]SCALE setp stepgen.2.steplen 1 setp stepgen.2.stepspace 0 setp stepgen.2.dirhold 32000 setp stepgen.2.dirsetup 13000 setp stepgen.2.maxaccel [AXIS_2]STEPGEN_MAXACCEL net zpos-cmd axis.2.motor-pos-cmd => stepgen.2.position-cmd net zpos-fb stepgen.2.position-fb => axis.2.motor-pos-fb net zstep <= stepgen.2.step net zdir <= stepgen.2.dir net zenable axis.2.amp-enable-out => stepgen.2.enable net estop-out <= iocontrol.0.user-enable-out net estop-ext => iocontrol.0.emc-enable-in loadusr -W hal_manualtoolchange net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change net tool-changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number net tool-prepare-loopback iocontrol.0.tool-prepare => iocontrol.0.tool-prepared |
|
#8
| ||||
| ||||
addf charge-pump base-thread you need: addf charge_pump base-thread Alan
__________________ http://www.alansmachineworks.com |
|
#9
| |||
| |||
| I made that change (addf charge_pump base-thread) and I got this error: Debug file information: HAL: ERROR: function 'charge_pump' not found prolight.hal:16: addf failed The original line was generated by stepconf. I flipped the switch on the G540 to ignore charge pump and everything else is working. I can run programs and manually move the steppers. EMC2 sees the Estop input. EMC2 will also output PWM. |
|
#10
| ||||
| ||||
| OK, Chuck it appears that I was wrong. Charge_pump is the module that gets loaded but charge-pump is the function that gets added to the thread. Try adding the "setp charge-pump.enable 1". However, I did notice that the debug output says that "Debug file information: custom.hal:3: pin 'charge-pump.enable' is connected to a signal". So take a look at your custom.hal file and see what is happening there. Alan
__________________ http://www.alansmachineworks.com |
| Sponsored Links |
|
#11
| ||||
| ||||
| Sorry I didn't get back to you sooner - was out of computer use yesterday. Yes - the debig file is pointing at the custom.hal file. I wonder though if you change net estop-out charge-pump.enable iocontrol.0.user-enable-out to not include the charge-pump.enable and then set the charge pump to enabled with the setp command if it will work correctly. I think you are wanting to connect the charge pump to the e-stop circuit but I'm not sure if the way you're doing it is the right way to do it.
__________________ Every day is a learning process, whether you remember yesterday or not is the hard part. www.distinctperspectives.com |
|
#12
| |||
| |||
| All the charge pump info in the files is from stepconf. I saw the line with the enable in it but did not understand what it was doing so I just glossed over it. I optioned the G540 so that it does not need charge pump and it runs. I attached the scope to pin 16 again and the charge pump signal is there! I have no idea when it started and I have run stepconf several times today playing with max stepper speeds. I turned off the control box and the charge pump signal is still there. I stopped EMC2 and turned off the control box. I started EMC2 and the charge pump is not running. I powered on the control box and the charge pump is still not running. I stop and start emc2 and the charge pump still will not run. I rebooted the computer, turned on the control box and then started emc2. No charge pump. I removed charge-pump.enable from the net estop line and did the "setp charge-pump.enable 1" in the custom. hal file. Now the charge pump starts when emc2 starts. So in conclusion, it does not start reliablely in the way stepconf sets it up. (at least on my system) but I do not understand why. However it works ok by remove the enable for the net estop line and adding the enable in the custom.hal file. THanks!!!!! chuck |
![]() |
| 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 |
| Charge Pump | cadmonkey | LinuxCNC (formerly EMC2) | 8 | 04-06-2010 01:19 AM |
| Can't seem to get charge pump to work | Danno | Mach Software (ArtSoft software) | 1 | 01-09-2009 06:21 AM |
| Newbie- Charge pump setup | zeta | LinuxCNC (formerly EMC2) | 6 | 02-23-2008 03:05 PM |
| Charge Pump ??? | jack55 | General Electronics Discussion | 6 | 04-21-2007 02:59 PM |
| Charge pump | mlaws1172 | Screen Layouts, Post Processors & Misc | 0 | 01-03-2006 10:46 PM |