Rc Pwm Servo Spindle setting

More
09 Oct 2013 13:13 #39668 by sandro_cnc
Hello to everyone
I’m looking to run a spindle servo motor with Rc pwm logical
I have look to the manual about the spindle pwm but this is to run a normal pwm I need only e little rage of pulse from 0.9 ms to 2.1 ms for e frequency between 40 and 60 hz.
Is possible do something in the ini and hal configuration?
:whistle:

Please Log in or Create an account to join the conversation.

More
09 Oct 2013 19:56 #39692 by andypugh

I’m looking to run a spindle servo motor with Rc pwm logical


I guess you are controlling a spindle with a Radio Control-style ESC?

This page might be helpful: wiki.linuxcnc.org/cgi-bin/wiki.pl?RC_Servo_Test

Because of the limits of software PWM you probably won't get brilliant resolution, probably about 2% speed steps.

Please Log in or Create an account to join the conversation.

More
10 Oct 2013 05:03 #39713 by sandro_cnc
In it doesn't work I have try to do the example but don't show me the windows.
I'm running with an old versione Ubuntu 6.06 lts. i can't update the versione because my notebook is not supported in the new versione

root@CNC:~# cd /etc/emc2/configs/RCServotest
bash: cd: /etc/emc2/configs/RCServotest: No such file or directory
root@CNC:~# cd /etc/emc2/configs/RCservotest
root@CNC:/etc/emc2/configs/RCservotest# halrun -I servotest.hal
option -g not recognized
Usage: pyvcp -c hal_component_name myfile.xml
HAL:11: ERROR: pyvcp exited without becoming ready
halcmd:

root@CNC:~# cd /etc/emc2/configs/RCservotest
root@CNC:/etc/emc2/configs/RCservotest# halrun -g servotest.hal
Realtime already running
root@CNC:/etc/emc2/configs/RCservotest#

Give me this error

Please Log in or Create an account to join the conversation.

More
10 Oct 2013 05:46 #39715 by andypugh

In it doesn't work I have try to do the example but don't show me the windows.


You don't need the windows. Just use it as a guide to how to configure the PWM.
The following user(s) said Thank You: sandro_cnc

Please Log in or Create an account to join the conversation.

More
11 Oct 2013 18:29 #39761 by sandro_cnc
I have add it but dont work

loadrt pwmgen output_type=0
loadusr -Wn servopyvcp pyvcp -g 700x80+50+50 -c servopyvcp servotest.xml
addf pwmgen.update servo-thread
addf pwmgen.make-pulses base-thread

setp pwmgen.0.min-dc 0.06 #float rw, -90° at .6 ms(center - .9ms),
setp pwmgen.0.max-dc 0.24 #float rw, 90°at 2.4 ms, (center + .9ms),
setp pwmgen.0.offset 0.153 #float rw, center position at 1.53ms
setp pwmgen.0.scale 1120.00 #float rw, tweaked a little for a particular servo

setp pwmgen.0.pwm-freq 100.00 #float rw, frequency can be changed as needed,
# but affects other parameters

net PWMcmd servopyvcp.anaout-f pwmgen.0.value #float
net PWMout pwmgen.0.pwm parport.0.pin-16-out #bit
net spindle-speed-cmd motion.spindle-speed-out => pwmgen.0.value
net spindle-on motion.spindle-on => pwmgen.0.enable
net spindle-pwm pwmgen.0.pwm => parport.0.pin-17-out
setp pwmgen.0.scale 1800 # Change to your spindle’s top speed in RPM

Please Log in or Create an account to join the conversation.

More
11 Oct 2013 19:08 #39763 by andypugh

I have add it but dont work

Can you say _what_ doesn't work?

loadrt pwmgen output_type=0
loadusr -Wn servopyvcp pyvcp -g 700x80+50+50 -c servopyvcp servotest.xml

Do you want to control the ESC with a PyVCP panel? I thought you wanted to control spindle speed?

addf pwmgen.update servo-thread
addf pwmgen.make-pulses base-thread

setp pwmgen.0.min-dc 0.06 #float rw, -90° at .6 ms(center - .9ms),
setp pwmgen.0.max-dc 0.24 #float rw, 90°at 2.4 ms, (center + .9ms),
setp pwmgen.0.offset 0.153 #float rw, center position at 1.53ms
setp pwmgen.0.scale 1120.00 #float rw, tweaked a little for a particular servo

setp pwmgen.0.pwm-freq 100.00 #float rw, frequency can be changed as needed,
# but affects other parameters

net PWMcmd servopyvcp.anaout-f pwmgen.0.value #float
net PWMout pwmgen.0.pwm parport.0.pin-16-out #bit
net spindle-speed-cmd motion.spindle-speed-out => pwmgen.0.value


You are trying to control the pwmgen.0.value pin from _both_ the PyVCP panel and the spindle speed command.
Try deleting the line in red.
The following user(s) said Thank You: sandro_cnc

Please Log in or Create an account to join the conversation.

More
11 Oct 2013 19:47 #39765 by sandro_cnc
I would like to control the spindle on the panel with the button +- or with a bar or a value on the panel.
When I run EMC2 with the configuration it start with an error page with a long logger file I can Post It ?

Please Log in or Create an account to join the conversation.

More
11 Oct 2013 20:06 #39767 by andypugh

I would like to control the spindle on the panel with the button +- or with a bar or a value on the panel.

You can't control _anything_ in LinuxCNC from two places at the same time, it isn't allowed. (Because it is impossible to determine which request has priority)

When I run EMC2 with the configuration it start with an error page with a long logger file I can Post It ?

You will see that the error report is in three sections. It is almost always the middle (short) one that indicates what the problem is.
The following user(s) said Thank You: sandro_cnc

Please Log in or Create an account to join the conversation.

More
15 Oct 2013 03:58 - 15 Oct 2013 04:20 #39840 by sandro_cnc
this is the 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.15-magma/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.1.7
Machine configuration directory is '/etc/emc2/configs/Msystem-CNC'
Machine configuration file is 'Msystem-CNC.ini'
INIFILE=/etc/emc2/configs/Msystem-CNC/Msystem-CNC.ini
PARAMETER_FILE=stepper.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
Running HAL config file /etc/emc2/configs/Msystem-CNC/core_stepper.hal
Running HAL config file /etc/emc2/configs/Msystem-CNC/msystem_cnc_control.hal
option -g not recognized
Usage: pyvcp -c hal_component_name myfile.xml
HAL:37: ERROR: pyvcp exited without becoming ready
HAL config file /etc/emc2/configs/Msystem-CNC/msystem_cnc_control.hal failed.
Shutting down and cleaning up EMC2...
Killing task emcsvr, PID=7631
Removing HAL_LIB, RTAPI, and Real Time OS modules
Cleanup done
Kernel message information:
[4294667.296000] Linux version 2.6.15-magma (root@ubuntu) (gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)) #1 Fri Jun 9 20:51:19 EEST 2006
[4294667.296000] BIOS-provided physical RAM map:
[4294667.296000]  BIOS-e820: 0000000000000000 - 000000000009e800 (usable)
[4294667.296000]  BIOS-e820: 000000000009e800 - 00000000000a0000 (reserved)
[4294667.296000]  BIOS-e820: 00000000000c0000 - 00000000000cc000 (reserved)
[4294667.296000]  BIOS-e820: 00000000000dc000 - 0000000000100000 (reserved)
[4294667.296000]  BIOS-e820: 0000000000100000 - 000000000eef0000 (usable)
[4294667.296000]  BIOS-e820: 000000000eef0000 - 000000000eeff000 (ACPI data)
[4294667.296000]  BIOS-e820: 000000000eeff000 - 000000000ef00000 (ACPI NVS)
[4294667.296000]  BIOS-e820: 000000000ef00000 - 000000000f000000 (usable)
[4294667.296000]  BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
[4294667.296000] 240MB LOWMEM available.
[4294667.296000] On node 0 totalpages: 61440
[4294667.296000]   DMA zone: 4096 pages, LIFO batch:0
[4294667.296000]   DMA32 zone: 0 pages, LIFO batch:0
[4294667.296000]   Normal zone: 57344 pages, LIFO batch:15
[4294667.296000]   HighMem zone: 0 pages, LIFO batch:0
[4294667.296000] DMI 2.3 present.
[4294667.296000] Allocating PCI resources starting at 10000000 (gap: 0f000000:f0f80000)
[4294667.296000] Built 1 zonelists
[4294667.296000] Kernel command line: root=/dev/hda1 ro lapic quiet splash acpi=force
[4294667.296000] Initializing CPU#0
[4294667.296000] PID hash table entries: 1024 (order: 10, 16384 bytes)
[    0.000000] Detected 1195.987 MHz processor.
[   27.516537] Using tsc for high-res timesource
[   27.516554] I-pipe 1.3-00: pipeline enabled.
[   27.518069] Console: colour VGA+ 80x25
[   27.518586] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[   27.519128] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[   27.532539] Memory: 233500k/245760k available (1619k kernel code, 11612k reserved, 493k data, 220k init, 0k highmem)
[   27.532546] Checking if this processor honours the WP bit even in supervisor mode... Ok.
[   27.592028] Calibrating delay using timer specific routine.. 2394.12 BogoMIPS (lpj=1197060)
[   27.592092] Security Framework v1.0.0 initialized
[   27.592106] SELinux:  Disabled at boot.
[   27.592131] Mount-cache hash table entries: 512
[   27.592344] CPU: After generic identify, caps: 0383f9ff c1c3f9ff 00000000 00000000 00000000 00000000 00000000
[   27.592357] CPU: After vendor identify, caps: 0383f9ff c1c3f9ff 00000000 00000000 00000000 00000000 00000000
[   27.592370] CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
[   27.592374] CPU: L2 Cache: 64K (64 bytes/line)
[   27.592377] CPU: After all inits, caps: 0383f9ff c1c3f9ff 00000000 00000020 00000000 00000000 00000000
[   27.592410] mtrr: v2.0 (20020519)
[   27.592415] CPU: AMD mobile AMD Duron(tm) Processor stepping 02
[   27.592423] Enabling fast FPU save and restore... done.
[   27.592426] Enabling unmasked SIMD FPU exception support... done.
[   27.592434] Checking 'hlt' instruction... OK.
[   27.596421] checking if image is initramfs... it is
[   28.504752] Freeing initrd memory: 6690k freed
[   28.529855] NET: Registered protocol family 16
[   28.529907] EISA bus registered
[   28.530141] PCI: PCI BIOS revision 2.10 entry at 0xfd7ae, last bus=1
[   28.530153] PCI: Using configuration type 1
[   28.531043] Linux Plug and Play Support v0.97 (c) Adam Belay
[   28.531067] PnPBIOS: Scanning system for PnP BIOS support...
[   28.531140] PnPBIOS: Found PnP BIOS installation structure at 0xc00f6e00
[   28.531146] PnPBIOS: PnP BIOS version 1.0, entry 0xf0000:0x97e4, dseg 0x400
[   28.534013] PnPBIOS: 18 nodes reported by PnP BIOS; 18 recorded by driver
[   28.534056] PCI: Probing PCI hardware
[   28.534066] PCI: Probing PCI hardware (bus 00)
[   28.534176] Disabling VIA memory write queue (PCI ID 0305, rev 80): [55] 3c & 1f -> 1c
[   28.534389] PCI quirk: region 8100-810f claimed by vt82c686 SMB
[   28.534697] Boot video device is 0000:01:00.0
[   28.535466] PCI: Using IRQ router VIA [1106/0686] at 0000:00:07.0
[   28.535490] PCI: IRQ 0 for device 0000:00:0a.0 doesn't match PIRQ mask - try pci=usepirqmask
[   28.537473] pnp: 00:0a: ioport range 0x4d0-0x4d1 has been reserved
[   28.537483] pnp: 00:0a: ioport range 0x8000-0x807f has been reserved
[   28.537497] pnp: 00:0a: ioport range 0x8100-0x810f has been reserved
[   28.537507] pnp: 00:0b: ioport range 0x3400-0x347f has been reserved
[   28.537875] PCI: Bridge: 0000:00:01.0
[   28.537880]   IO window: disabled.
[   28.537887]   MEM window: e8100000-e81fffff
[   28.537892]   PREFETCH window: f0000000-f7ffffff
[   28.537898] PCI: Bus 2, cardbus bridge: 0000:00:0a.0
[   28.537902]   IO window: 00001c00-00001cff
[   28.537907]   IO window: 00002000-000020ff
[   28.537912]   PREFETCH window: 10000000-11ffffff
[   28.537917]   MEM window: 12000000-13ffffff
[   28.537939] PCI: Setting latency timer of device 0000:00:01.0 to 64
[   28.537955] PCI: IRQ 0 for device 0000:00:0a.0 doesn't match PIRQ mask - try pci=usepirqmask
[   28.537966] PCI: setting IRQ 11 as level-triggered
[   28.537970] PCI: Assigned IRQ 11 for device 0000:00:0a.0
[   28.537981] IRQ routing conflict for 0000:00:07.5, have irq 5, want irq 11
[   28.537988] PCI: Sharing IRQ 11 with 0000:00:0b.0
[   28.538751] audit: initializing netlink socket (disabled)
[   28.538778] audit(946693518.702:1): initialized
[   28.538971] VFS: Disk quotas dquot_6.5.1
[   28.539016] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   28.539134] Initializing Cryptographic API
[   28.539142] io scheduler noop registered
[   28.539150] io scheduler anticipatory registered
[   28.539157] io scheduler deadline registered
[   28.539171] io scheduler cfq registered
[   28.539185] Applying VIA southbridge workaround.
[   28.539486] isapnp: Scanning for PnP cards...
[   28.897438] isapnp: No Plug & Play device found
[   28.920231] PNP: PS/2 Controller [PNP0303,PNP0f13] at 0x60,0x64 irq 1,12
[   28.935888] serio: i8042 AUX port at 0x60,0x64 irq 12
[   28.936965] serio: i8042 KBD port at 0x60,0x64 irq 1
[   28.936972] Serial: 8250/16550 driver $Revision: 1.90 $ 48 ports, IRQ sharing enabled
[   28.940875] RAMDISK driver initialized: 16 RAM disks of 65536K size 1024 blocksize
[   28.940977] Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
[   28.940984] ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
[   28.941284] mice: PS/2 mouse device common for all mice
[   28.944249] EISA: Probing bus 0 at eisa.0
[   28.944264] Cannot allocate resource for EISA slot 1
[   28.944270] Cannot allocate resource for EISA slot 2
[   28.944274] Cannot allocate resource for EISA slot 3
[   28.944297] Cannot allocate resource for EISA slot 8
[   28.944300] EISA: Detected 0 cards.
[   28.944412] NET: Registered protocol family 2
[   28.956476] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[   28.956737] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[   28.957438] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[   28.957561] TCP: Hash tables configured (established 8192 bind 8192)
[   28.957565] TCP reno registered
[   28.957697] TCP bic registered
[   28.957707] NET: Registered protocol family 1
[   28.957723] NET: Registered protocol family 8
[   28.957726] NET: Registered protocol family 20
[   28.957763] Using IPI Shortcut mode
[   28.957827] Freeing unused kernel memory: 220k freed
[   28.980682] input: AT Translated Set 2 keyboard as /class/input/input0
[   29.071601] vga16fb: initializing
[   29.071612] vga16fb: mapped to 0xc00a0000
[   29.193762] Console: switching to colour frame buffer device 80x25
[   29.193777] fb0: VGA16 VGA frame buffer device
[   31.616071] VP_IDE: IDE controller at PCI slot 0000:00:07.1
[   31.616108] VP_IDE: chipset revision 6
[   31.616112] VP_IDE: not 100% native mode: will probe irqs later
[   31.616129] VP_IDE: VIA vt82c686b (rev 42) IDE UDMA100 controller on pci0000:00:07.1
[   31.616144]     ide0: BM-DMA at 0x1840-0x1847, BIOS settings: hda:DMA, hdb:pio
[   31.616169]     ide1: BM-DMA at 0x1848-0x184f, BIOS settings: hdc:DMA, hdd:pio
[   31.616186] Probing IDE interface ide0...
[   32.002056] hda: SAMSUNG MP0402H, ATA DISK drive
[   32.613842] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[   32.613907] Probing IDE interface ide1...
[   33.407369] hdc: DW-28E, ATAPI CD/DVD-ROM drive
[   34.021804] ide1 at 0x170-0x177,0x376 on irq 15
[   34.033203] hda: max request size: 1024KiB
[   34.447261] hda: 78242976 sectors (40060 MB) w/8192KiB Cache, CHS=16383/255/63, UDMA(100)
[   34.447676] hda: cache flushes supported
[   34.447795]  hda: hda1 hda2 < hda5 >
[   34.480625] hdc: ATAPI 24X DVD-ROM CD-R/RW drive, 1698kB Cache, DMA
[   34.480670] Uniform CD-ROM driver Revision: 3.20
[   34.773200] usbcore: registered new driver usbfs
[   34.773245] usbcore: registered new driver hub
[   34.777394] USB Universal Host Controller Interface driver v2.3
[   34.777514] PCI: setting IRQ 9 as level-triggered
[   34.777520] PCI: Assigned IRQ 9 for device 0000:00:07.2
[   34.777554] uhci_hcd 0000:00:07.2: UHCI Host Controller
[   34.778321] uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
[   34.778342] uhci_hcd 0000:00:07.2: irq 9, io base 0x00001800
[   34.778575] hub 1-0:1.0: USB hub found
[   34.778596] hub 1-0:1.0: 2 ports detected
[   35.007989] kjournald starting.  Commit interval 5 seconds
[   35.008015] EXT3-fs: mounted filesystem with ordered data mode.
[   44.653530] Linux agpgart interface v0.101 (c) Dave Jones
[   44.660097] agpgart: Detected VIA Twister-K/KT133x/KM133 chipset
[   44.666567] agpgart: AGP aperture is 64M @ 0xec000000
[   44.791855] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[   44.797065] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[   45.080195] vt596_smbus 0000:00:07.4: SMBUS: Error: Host SMBus controller not enabled! - upgrade BIOS or use force=1
[   45.114055] via686a 0000:00:07.4: base address not set - upgrade BIOS or use force_addr=0xaddr
[   45.162521] PCI: Found IRQ 11 for device 0000:00:07.5
[   45.162540] IRQ routing conflict for 0000:00:07.5, have irq 5, want irq 11
[   45.162548] PCI: Sharing IRQ 11 with 0000:00:0a.0
[   45.162552] PCI: Sharing IRQ 11 with 0000:00:0b.0
[   45.162697] PCI: Setting latency timer of device 0000:00:07.5 to 64
[   45.922907] Real Time Clock Driver v1.12
[   45.927437] atkbd.c: Spurious ACK on isa0060/serio0. Some program, like XFree86, might be trying access hardware directly.
[   45.970148] PCI: Found IRQ 11 for device 0000:00:0a.0
[   45.970166] IRQ routing conflict for 0000:00:07.5, have irq 5, want irq 11
[   45.970175] PCI: Sharing IRQ 11 with 0000:00:0b.0
[   45.970232] Yenta: CardBus bridge found at 0000:00:0a.0 [0e11:b103]
[   45.970251] Yenta: Enabling burst memory read transactions
[   45.970256] Yenta: Using CSCINT to route CSC interrupts to PCI
[   45.970259] Yenta: Routing CardBus interrupts to PCI
[   45.970266] Yenta TI: socket 0000:00:0a.0, mfunc 0x01001002, devctl 0x64
[   45.981842] 8139too Fast Ethernet driver 0.9.27
[   46.193430] Yenta: ISA IRQ mask 0x0408, PCI irq 11
[   46.193440] Socket status: 30000006
[   46.203364] PCI: Found IRQ 11 for device 0000:00:0b.0
[   46.203385] IRQ routing conflict for 0000:00:07.5, have irq 5, want irq 11
[   46.203392] PCI: Sharing IRQ 11 with 0000:00:0a.0
[   46.203796] eth0: RealTek RTL8139 at 0xcf8f4000, 00:08:02:48:9f:5a, IRQ 11
[   46.203801] eth0:  Identified 8139 chip type 'RTL-8139C'
[   46.235745] 8139cp: 10/100 PCI Ethernet driver v1.2 (Mar 22, 2004)
[   46.394277] input: PC Speaker as /class/input/input1
[   46.524914] Synaptics Touchpad, model: 1, fw: 5.8, id: 0x9d48b1, caps: 0x904713/0x4006
[   46.560930] input: SynPS/2 Synaptics TouchPad as /class/input/input2
[   46.814610] eth0: link down
[   47.229059] ts: Compaq touchscreen protocol output
[   47.276549] cs: IO port probe 0x100-0x3af: excluding 0x378-0x37f
[   47.278972] cs: IO port probe 0x3e0-0x4ff: clean.
[   47.279993] cs: IO port probe 0x820-0x8ff: clean.
[   47.280841] cs: IO port probe 0xc00-0xcf7: clean.
[   47.281955] cs: IO port probe 0xa00-0xaff: clean.
[   47.532947] Floppy drive(s): fd0 is 1.44M
[   47.546924] FDC 0 is a post-1991 82077
[   48.030927] NET: Registered protocol family 17
[   48.254538] lp: driver loaded but no devices found
[   48.402275] Adding 698788k swap on /dev/hda5.  Priority:-1 extents:1 across:698788k
[   49.144429] EXT3 FS on hda1, internal journal
[   50.092376] md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
[   50.092384] md: bitmap version 4.39
[   51.439909] device-mapper: 4.4.0-ioctl (2005-01-12) initialised: dm-devel@redhat.com
[   52.179614] cdrom: open failed.
[   67.878557] [drm] Initialized drm 1.0.1 20051102
[   67.884802] [drm] Initialized savage 2.4.1 20050313 on minor 0
[   67.887222] mtrr: base(0xf2000000) is not aligned on a size(0x5000000) boundary
[   67.888118] agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
[   67.888146] agpgart: Putting AGP V2 device at 0000:00:00.0 into 0x mode
[   67.888229] agpgart: Putting AGP V2 device at 0000:01:00.0 into 0x mode
[   69.651859] ppdev: user-space parallel port driver
[   70.947719] Bluetooth: Core ver 2.8
[   70.947730] NET: Registered protocol family 31
[   70.947734] Bluetooth: HCI device and connection manager initialized
[   70.947755] Bluetooth: HCI socket layer initialized
[   71.054842] Bluetooth: L2CAP ver 2.8
[   71.054853] Bluetooth: L2CAP socket layer initialized
[   71.100404] Bluetooth: RFCOMM socket layer initialized
[   71.100436] Bluetooth: RFCOMM TTY layer initialized
[   71.100439] Bluetooth: RFCOMM ver 1.7
[   97.161393] NET: Registered protocol family 10
[   97.161607] lo: Disabled Privacy Extensions
[   97.161721] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   97.161811] IPv6 over IPv4 tunneling driver
[ 1733.283289] usb 1-1: new full speed USB device using uhci_hcd and address 2
[ 1733.573274] SCSI subsystem initialized
[ 1733.631856] Initializing USB Mass Storage driver...
[ 1733.633975] scsi0 : SCSI emulation for USB Mass Storage devices
[ 1733.634624] usbcore: registered new driver usb-storage
[ 1733.634634] USB Mass Storage support registered.
[ 1733.634672] usb-storage: device found at 2
[ 1733.634676] usb-storage: waiting for device to settle before scanning
[ 1738.636742]   Vendor: Generic   Model: STORAGE DEVICE    Rev: 0207
[ 1738.636767]   Type:   Direct-Access                      ANSI SCSI revision: 00
[ 1738.641748] usb-storage: device scan complete
[ 1738.740905] Driver 'sd' needs updating - please use bus_type methods
[ 1738.827082] SCSI device sda: 3848192 512-byte hdwr sectors (1970 MB)
[ 1738.832087] sda: Write Protect is off
[ 1738.832099] sda: Mode Sense: 0b 00 00 08
[ 1738.832103] sda: assuming drive cache: write through
[ 1738.846743] SCSI device sda: 3848192 512-byte hdwr sectors (1970 MB)
[ 1738.911408] sda: Write Protect is off
[ 1738.911423] sda: Mode Sense: 0b 00 00 08
[ 1738.911429] sda: assuming drive cache: write through
[ 1738.911439]  sda: sda1
[ 1738.920325] sd 0:0:0:0: Attached scsi removable disk sda
[ 1738.936629] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 1739.621732] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[ 1787.300708] usb 1-1: USB disconnect, address 2
[ 4968.434004] eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 4968.434546] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 4978.490401] eth0: no IPv6 routers present
[ 5095.323304] eth0: link down
[ 6112.618271] usb 1-1: new full speed USB device using uhci_hcd and address 3
[ 6112.749349] scsi1 : SCSI emulation for USB Mass Storage devices
[ 6112.749554] usb-storage: device found at 3
[ 6112.749558] usb-storage: waiting for device to settle before scanning
[ 6117.751792]   Vendor: Generic   Model: STORAGE DEVICE    Rev: 0207
[ 6117.751818]   Type:   Direct-Access                      ANSI SCSI revision: 00
[ 6117.944423] SCSI device sda: 3848192 512-byte hdwr sectors (1970 MB)
[ 6117.949656] sda: Write Protect is off
[ 6117.949670] sda: Mode Sense: 0b 00 00 08
[ 6117.949674] sda: assuming drive cache: write through
[ 6117.964532] SCSI device sda: 3848192 512-byte hdwr sectors (1970 MB)
[ 6117.969656] sda: Write Protect is off
[ 6117.969672] sda: Mode Sense: 0b 00 00 08
[ 6117.969676] sda: assuming drive cache: write through
[ 6117.969697]  sda: sda1
[ 6117.977862] sd 1:0:0:0: Attached scsi removable disk sda
[ 6117.977948] sd 1:0:0:0: Attached scsi generic sg0 type 0
[ 6117.982352] usb-storage: device scan complete
[ 6119.153473] FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[ 6121.622334] psmouse.c: TouchPad at isa0060/serio1/input0 lost sync at byte 1
[ 6121.623474] psmouse.c: TouchPad at isa0060/serio1/input0 lost sync at byte 1
[ 6121.624639] psmouse.c: TouchPad at isa0060/serio1/input0 lost sync at byte 1
[ 6121.625817] psmouse.c: TouchPad at isa0060/serio1/input0 lost sync at byte 1
[ 6121.628228] psmouse.c: TouchPad at isa0060/serio1/input0 lost sync at byte 1
[ 6121.629402] psmouse.c: TouchPad at isa0060/serio1/input0 lost sync at byte 1
[ 6121.639040] psmouse.c: TouchPad at isa0060/serio1/input0 - driver resynched.
[ 6175.729213] I-pipe: Domain RTAI registered.
[ 6175.729230] RTAI[hal]: <magma> mounted over IPIPE-NOTHREADS 1.3-00.
[ 6175.729234] RTAI[hal]: compiled with gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5).
[ 6175.729242] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs VECTORED), ISOL_CPUS_MASK: 0).
[ 6175.729246] PIPELINE layers:
[ 6175.729249] cfbbc780 9ac15d93 RTAI 200
[ 6175.729253] c02d1680 0 Linux 100
[ 6175.757033] RTAI[malloc]: vmalloced extent cfd4c000, size 2097152.
[ 6175.757252] RTAI[malloc]: loaded (global heap size=2097152 bytes).
[ 6175.758232] RTAI[sched_lxrt]: loaded (IMMEDIATE, UP, USER/KERNEL SPACE <with RTAI TASKs>).
[ 6175.758244] RTAI[sched_lxrt]: hard timer type/freq = 8254-PIT/1193180(Hz); default timing mode is periodic; linear ordering of timed lists.
[ 6175.758250] RTAI[sched_lxrt]: Linux timer freq = 1000 (Hz), CPU freq = 1195987000 hz.
[ 6175.758255] RTAI[sched_lxrt]: timer setup = 2010 ns, resched latency = 2688 ns.
[ 6175.846550] RTAI[math]: loaded.
[ 6175.903791] RTAPI: Init
[ 6175.903858] RTAPI: Init complete
[ 6176.323064] MOTION: init_module() starting...
[ 6176.323088] MOTION: init_hal_io() starting...
[ 6176.324390] MOTION: init_hal_io() complete, 8 axes.
[ 6176.324395] MOTION: init_comm_buffers() starting...
[ 6176.333516] MOTION: init_comm_buffers() complete
[ 6176.333536] MOTION: init_threads() starting...
[ 6176.333542] HAL: creating thread base-thread, 50000 nsec
[ 6176.333616] HAL: thread created
[ 6176.333643] HAL: creating thread servo-thread, 1000000 nsec
[ 6176.333653] HAL: thread created
[ 6176.333747] MOTION: setting Traj cycle time to 10000000 nsecs
[ 6176.333753] MOTION: setting Servo cycle time to 1000000 nsecs
[ 6176.333758] MOTION: init_threads() complete
[ 6176.333761] MOTION: init_module() complete
[ 6176.345748] STEPGEN: installed 3 step pulse generators
[ 6176.419904] config string '0x0378'
[ 6176.420206] PARPORT: installed driver for 1 ports
[ 6215.688072] MOTION: cleanup_module() started.
[ 6215.688089] HAL: threads stopped
[ 6215.688416] MOTION: cleanup_module() finished.
[ 6215.877696] RTAPI: WARNING: tried to delete task 02 while running
[ 6215.877723] RTAPI: WARNING: tried to delete task 01 while running
[ 6215.885773] RTAPI: Exiting
[ 6215.885856] RTAPI: Exit complete
[ 6215.893961] RTAI[math]: unloaded.
[ 6215.963744] RTAI[malloc]: vfreed extent cfd4c000, size 2097152.
[ 6215.964036] RTAI[malloc]: unloaded.
[ 6216.063670] RTAI[sched_lxrt]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 6216.072183] I-pipe: Domain RTAI unregistered.
[ 6216.072202] RTAI[hal]: unmounted.
[ 6219.870886] I-pipe: Domain RTAI registered.
[ 6219.870903] RTAI[hal]: <magma> mounted over IPIPE-NOTHREADS 1.3-00.
[ 6219.870907] RTAI[hal]: compiled with gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5).
[ 6219.870915] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs VECTORED), ISOL_CPUS_MASK: 0).
[ 6219.870919] PIPELINE layers:
[ 6219.870923] cfbbc780 9ac15d93 RTAI 200
[ 6219.870927] c02d1680 0 Linux 100
[ 6219.882316] RTAI[malloc]: vmalloced extent cfd4c000, size 2097152.
[ 6219.882514] RTAI[malloc]: loaded (global heap size=2097152 bytes).
[ 6219.890267] RTAI[sched_lxrt]: loaded (IMMEDIATE, UP, USER/KERNEL SPACE <with RTAI TASKs>).
[ 6219.890280] RTAI[sched_lxrt]: hard timer type/freq = 8254-PIT/1193180(Hz); default timing mode is periodic; linear ordering of timed lists.
[ 6219.890287] RTAI[sched_lxrt]: Linux timer freq = 1000 (Hz), CPU freq = 1195987000 hz.
[ 6219.890292] RTAI[sched_lxrt]: timer setup = 2010 ns, resched latency = 2688 ns.
[ 6219.946521] RTAI[math]: loaded.
[ 6219.959173] RTAPI: Init
[ 6219.959238] RTAPI: Init complete
[ 6220.070924] MOTION: init_module() starting...
[ 6220.070949] MOTION: init_hal_io() starting...
[ 6220.072236] MOTION: init_hal_io() complete, 8 axes.
[ 6220.072240] MOTION: init_comm_buffers() starting...
[ 6220.079486] MOTION: init_comm_buffers() complete
[ 6220.079495] MOTION: init_threads() starting...
[ 6220.079501] HAL: creating thread base-thread, 50000 nsec
[ 6220.079556] HAL: thread created
[ 6220.079560] HAL: creating thread servo-thread, 1000000 nsec
[ 6220.079584] HAL: thread created
[ 6220.079659] MOTION: setting Traj cycle time to 10000000 nsecs
[ 6220.079665] MOTION: setting Servo cycle time to 1000000 nsecs
[ 6220.079672] MOTION: init_threads() complete
[ 6220.079676] MOTION: init_module() complete
[ 6220.097600] STEPGEN: installed 3 step pulse generators
[ 6220.134296] config string '0x0378'
[ 6220.134619] PARPORT: installed driver for 1 ports
[ 6220.195720] PWMGEN: installed 1 PWM/PDM generators
[ 6220.967452] MOTION: cleanup_module() started.
[ 6220.967466] HAL: threads stopped
[ 6220.967763] MOTION: cleanup_module() finished.
[ 6221.117324] RTAPI: WARNING: tried to delete task 02 while running
[ 6221.117350] RTAPI: WARNING: tried to delete task 01 while running
[ 6221.128001] RTAPI: Exiting
[ 6221.128091] RTAPI: Exit complete
[ 6221.138802] RTAI[math]: unloaded.
[ 6221.193375] RTAI[malloc]: vfreed extent cfd4c000, size 2097152.
[ 6221.193696] RTAI[malloc]: unloaded.
[ 6221.293303] RTAI[sched_lxrt]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 6221.301348] I-pipe: Domain RTAI unregistered.
[ 6221.301369] RTAI[hal]: unmounted.
[ 6319.675846] I-pipe: Domain RTAI registered.
[ 6319.675863] RTAI[hal]: <magma> mounted over IPIPE-NOTHREADS 1.3-00.
[ 6319.675867] RTAI[hal]: compiled with gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5).
[ 6319.675875] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs VECTORED), ISOL_CPUS_MASK: 0).
[ 6319.675879] PIPELINE layers:
[ 6319.675883] cfbbc780 9ac15d93 RTAI 200
[ 6319.675887] c02d1680 0 Linux 100
[ 6319.687147] RTAI[malloc]: vmalloced extent cfd4c000, size 2097152.
[ 6319.687346] RTAI[malloc]: loaded (global heap size=2097152 bytes).
[ 6319.695160] RTAI[sched_lxrt]: loaded (IMMEDIATE, UP, USER/KERNEL SPACE <with RTAI TASKs>).
[ 6319.695172] RTAI[sched_lxrt]: hard timer type/freq = 8254-PIT/1193180(Hz); default timing mode is periodic; linear ordering of timed lists.
[ 6319.695179] RTAI[sched_lxrt]: Linux timer freq = 1000 (Hz), CPU freq = 1195987000 hz.
[ 6319.695183] RTAI[sched_lxrt]: timer setup = 2010 ns, resched latency = 2688 ns.
[ 6319.748282] RTAI[math]: loaded.
[ 6319.760919] RTAPI: Init
[ 6319.760985] RTAPI: Init complete
[ 6319.869646] MOTION: init_module() starting...
[ 6319.869669] MOTION: init_hal_io() starting...
[ 6319.870972] MOTION: init_hal_io() complete, 8 axes.
[ 6319.870976] MOTION: init_comm_buffers() starting...
[ 6319.878026] MOTION: init_comm_buffers() complete
[ 6319.878035] MOTION: init_threads() starting...
[ 6319.878042] HAL: creating thread base-thread, 50000 nsec
[ 6319.878107] HAL: thread created
[ 6319.878130] HAL: creating thread servo-thread, 1000000 nsec
[ 6319.878150] HAL: thread created
[ 6319.878241] MOTION: setting Traj cycle time to 10000000 nsecs
[ 6319.878247] MOTION: setting Servo cycle time to 1000000 nsecs
[ 6319.878252] MOTION: init_threads() complete
[ 6319.878255] MOTION: init_module() complete
[ 6319.903345] STEPGEN: installed 3 step pulse generators
[ 6319.938207] config string '0x0378'
[ 6319.938514] PARPORT: installed driver for 1 ports
[ 6319.950986] PWMGEN: installed 1 PWM/PDM generators
[ 6320.490322] MOTION: cleanup_module() started.
[ 6320.490336] HAL: threads stopped
[ 6320.490633] MOTION: cleanup_module() finished.
[ 6320.635308] RTAPI: WARNING: tried to delete task 02 while running
[ 6320.635335] RTAPI: WARNING: tried to delete task 01 while running
[ 6320.646066] RTAPI: Exiting
[ 6320.646156] RTAPI: Exit complete
[ 6320.657068] RTAI[math]: unloaded.
[ 6320.712362] RTAI[malloc]: vfreed extent cfd4c000, size 2097152.
[ 6320.712656] RTAI[malloc]: unloaded.
[ 6320.812291] RTAI[sched_lxrt]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 6320.820440] I-pipe: Domain RTAI unregistered.
[ 6320.820459] RTAI[hal]: unmounted.

Debug file information:
Can not find -sec HAL -var HALUI -num 1 
7631
  PID TTY      STAT   TIME COMMAND
Stopping realtime threads
Unloading hal components
Last edit: 15 Oct 2013 04:20 by andypugh.

Please Log in or Create an account to join the conversation.

More
15 Oct 2013 04:21 #39842 by andypugh

this is the error
Running HAL config file /etc/emc2/configs/Msystem-CNC/core_stepper.hal
Running HAL config file /etc/emc2/configs/Msystem-CNC/msystem_cnc_control.hal
option -g not recognized
Usage: pyvcp -c hal_component_name myfile.xml


It is the same problem as before with the PyVCP panel that you don't want or need. Just get rid of it.

Please Log in or Create an account to join the conversation.

Time to create page: 0.195 seconds
Powered by Kunena Forum