Advanced Search

Search Results (Searched for: )

  • Moutomation
  • Moutomation
23 Aug 2024 15:49
Replied by Moutomation on topic İnstall glade

İnstall glade

Category: Gmoccapy

I change the value. When I open it again, I see the value as 10,000 again. 

 
 
  • Aciera
  • Aciera's Avatar
23 Aug 2024 15:33
Replied by Aciera on topic İnstall glade

İnstall glade

Category: Gmoccapy

So what exactly is not working?

Notes:

1. forget the __pycache__ folder, that gets created whenever the script is run. You can even delete it, doesn't matter.

2. You don't need to create 'gladepanel_parameter.txt'. If it does not exist the panel will load the default value set in the .ui and it will be created on the first change.

Open the 'Halshow' tool and check if you see your custom panel and it pins. If so does it also show a pin named 'number':

 


Finally are you getting any output in the terminal?
  • Moutomation
  • Moutomation
23 Aug 2024 15:19 - 23 Aug 2024 15:20
Replied by Moutomation on topic İnstall glade

İnstall glade

Category: Gmoccapy

I tried all the steps many times, I think I'm making a mistake somewhere.
A folder has been automatically created inside the Pythhon folder, its name is __pycache__ and it contains the gladevcp-handler.cpython-311.pyc file.
1-I created a new file in the folder where the configuration files are located. name: gladepanel_parameter.txt
I marked the code you sent me as executable and saved it in the python folder as gladevcp-handler.py.
I replaced the line in my 3-ini file with this code
EMBED_TAB_COMMAND= halcmd loadusr -Wn test panel gladevcp -c test panel -u python/gladevcp-handler.py -H ./gladevcp/testpanel.hal -x {XID} ./gladevcp/testpanel.ui
4-I wrote on_value_cahanged in the vlue_changed section in the glade panel.
5-id=hal_spinbutton1
  • jimwhiting
  • jimwhiting
23 Aug 2024 15:12
SCATECH EV1616DN - Example config was created by jimwhiting

SCATECH EV1616DN - Example config

Category: EtherCAT

Hopefully this will assist someone.

I have tested the SCATECH 16 in 16 out EtherCAT board. Below is my config.
    <slave idx="3" type="generic" vid="00000d37" pid="000f0001" configPdos="false" name="EV1616DN-V2.2">
     <dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0"/>
     <syncManager idx="2" dir="out">
        <pdo idx="1601">
         <pdoEntry idx="7010" subIdx="01" bitLen="1" halPin="out1" halType="bit"/>
         <pdoEntry idx="7010" subIdx="02" bitLen="1" halPin="out2" halType="bit"/>
         <pdoEntry idx="7010" subIdx="03" bitLen="1" halPin="out3" halType="bit"/>
         <pdoEntry idx="7010" subIdx="04" bitLen="1" halPin="out4" halType="bit"/>
         <pdoEntry idx="7010" subIdx="05" bitLen="1" halPin="out5" halType="bit"/>
         <pdoEntry idx="7010" subIdx="06" bitLen="1" halPin="out6" halType="bit"/>
         <pdoEntry idx="7010" subIdx="07" bitLen="1" halPin="out7" halType="bit"/>
         <pdoEntry idx="7010" subIdx="08" bitLen="1" halPin="out8" halType="bit"/>
         <pdoEntry idx="7010" subIdx="09" bitLen="1" halPin="out9" halType="bit"/>
         <pdoEntry idx="7010" subIdx="0a" bitLen="1" halPin="out10" halType="bit"/>
         <pdoEntry idx="7010" subIdx="0b" bitLen="1" halPin="out11" halType="bit"/>
         <pdoEntry idx="7010" subIdx="0c" bitLen="1" halPin="out12" halType="bit"/>
         <pdoEntry idx="7010" subIdx="0d" bitLen="1" halPin="out13" halType="bit"/>
         <pdoEntry idx="7010" subIdx="0e" bitLen="1" halPin="out14" halType="bit"/>
         <pdoEntry idx="7010" subIdx="0f" bitLen="1" halPin="out15" halType="bit"/>
         <pdoEntry idx="7010" subIdx="10" bitLen="1" halPin="out16" halType="bit"/>
        </pdo>
     </syncManager>
     <syncManager idx="3" dir="in">
        <pdo idx="1a00">
         <pdoEntry idx="6000" subIdx="01" bitLen="1" halPin="e-stop" halType="bit"/>
         <pdoEntry idx="6000" subIdx="02" bitLen="1" halPin="carousel-unlocked" halType="bit"/>
         <pdoEntry idx="6000" subIdx="03" bitLen="1" halPin="carousel-locked" halType="bit"/>
         <pdoEntry idx="6000" subIdx="04" bitLen="1" halPin="input4" halType="bit"/>
         <pdoEntry idx="6000" subIdx="05" bitLen="1" halPin="input5" halType="bit"/>
         <pdoEntry idx="6000" subIdx="06" bitLen="1" halPin="input6" halType="bit"/>
         <pdoEntry idx="6000" subIdx="07" bitLen="1" halPin="input7" halType="bit"/>
         <pdoEntry idx="6000" subIdx="08" bitLen="1" halPin="input8" halType="bit"/>
         <pdoEntry idx="6000" subIdx="09" bitLen="1" halPin="input9" halType="bit"/>
         <pdoEntry idx="6000" subIdx="10" bitLen="1" halPin="input10" halType="bit"/>
         <pdoEntry idx="6000" subIdx="11" bitLen="1" halPin="input11" halType="bit"/>
         <pdoEntry idx="6000" subIdx="12" bitLen="1" halPin="input12" halType="bit"/>
         <pdoEntry idx="6000" subIdx="13" bitLen="1" halPin="input13" halType="bit"/>
         <pdoEntry idx="6000" subIdx="14" bitLen="1" halPin="input14" halType="bit"/>
         <pdoEntry idx="6000" subIdx="15" bitLen="1" halPin="input15" halType="bit"/>
         <pdoEntry idx="6000" subIdx="16" bitLen="1" halPin="input16" halType="bit"/>
        </pdo>
     </syncManager>
    </slave>
 
  • spontarelliam
  • spontarelliam
23 Aug 2024 15:03 - 23 Aug 2024 15:05
Replied by spontarelliam on topic XHC WHB04b-6 - Disconnects / freezes?

XHC WHB04b-6 - Disconnects / freezes?

Category: Basic Configuration

When the problem does occur, there's a continual connect/disconnect cycle of the device every ~20sec:
$ sudo dmesg -T
[Fri Aug 23 10:50:47 2024] usb 1-3.4: new full-speed USB device number 61 using xhci_hcd
[Fri Aug 23 10:50:47 2024] usb 1-3.4: New USB device found, idVendor=10ce, idProduct=eb93, bcdDevice= 0.00
[Fri Aug 23 10:50:47 2024] usb 1-3.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[Fri Aug 23 10:50:47 2024] usb 1-3.4: language id specifier not provided by device, defaulting to English
[Fri Aug 23 10:50:47 2024] hid-generic 0003:10CE:EB93.0129: hiddev1,hidraw3: USB HID v1.00 Device [HID 10ce:eb93] on usb-0000:00:15.0-3.4/input0
[Fri Aug 23 10:50:57 2024] usb 1-3.4: USB disconnect, device number 61
[Fri Aug 23 10:51:07 2024] usb 1-3.4: new full-speed USB device number 62 using xhci_hcd
[Fri Aug 23 10:51:07 2024] usb 1-3.4: New USB device found, idVendor=10ce, idProduct=eb93, bcdDevice= 0.00
[Fri Aug 23 10:51:07 2024] usb 1-3.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[Fri Aug 23 10:51:07 2024] usb 1-3.4: language id specifier not provided by device, defaulting to English
[Fri Aug 23 10:51:07 2024] hid-generic 0003:10CE:EB93.012A: hiddev1,hidraw3: USB HID v1.00 Device [HID 10ce:eb93] on usb-0000:00:15.0-3.4/input0
[Fri Aug 23 10:51:17 2024] usb 1-3.4: USB disconnect, device number 62
[Fri Aug 23 10:51:27 2024] usb 1-3.4: new full-speed USB device number 63 using xhci_hcd
[Fri Aug 23 10:51:27 2024] usb 1-3.4: New USB device found, idVendor=10ce, idProduct=eb93, bcdDevice= 0.00
[Fri Aug 23 10:51:27 2024] usb 1-3.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[Fri Aug 23 10:51:27 2024] usb 1-3.4: language id specifier not provided by device, defaulting to English
[Fri Aug 23 10:51:27 2024] hid-generic 0003:10CE:EB93.012B: hiddev1,hidraw3: USB HID v1.00 Device [HID 10ce:eb93] on usb-0000:00:15.0-3.4/input0
[Fri Aug 23 10:51:40 2024] usb 1-3.4: USB disconnect, device number 63
[Fri Aug 23 10:51:50 2024] usb 1-3.4: new full-speed USB device number 64 using xhci_hcd
[Fri Aug 23 10:51:51 2024] usb 1-3.4: New USB device found, idVendor=10ce, idProduct=eb93, bcdDevice= 0.00
[Fri Aug 23 10:51:51 2024] usb 1-3.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[Fri Aug 23 10:51:51 2024] usb 1-3.4: language id specifier not provided by device, defaulting to English
[Fri Aug 23 10:51:51 2024] hid-generic 0003:10CE:EB93.012C: hiddev1,hidraw3: USB HID v1.00 Device [HID 10ce:eb93] on usb-0000:00:15.0-3.4/input0


After restarting linuxCNC, this reconnection cycle stops. I let the pendant stay on overnight and it was still connected to LinuxCNC the next morning, so I don't think it's a timeout issue. I've also tried carrying the pendant far enough away until it displays Lost RF, but then returning to the machine, turning the pendant off/on allows it to reconnect to LinuxCNC properly in a way that doesn't happen when this disconnect/freeze error occurs.
  • mighty_mick
  • mighty_mick's Avatar
23 Aug 2024 14:56 - 23 Aug 2024 15:01
Replied by mighty_mick on topic how to recompile a linuxcnc directory?

how to recompile a linuxcnc directory?

Category: General LinuxCNC Questions

There are rules in files named 'Makefile'. You can consider to learn how make works. To compile only halui, just do these steps below:

1. Go to your project directory
2. Go to src directory located in your porject root directory
3. run this: make ../bin/halui

You can compile only halui.cc with these steps. But before doing it, be sure you already configured the source tree.

halui executable is being outputted at bin directory in your project root directory. This is why you are should run ../bin/halui rule in Makefile located in your src directory. You can build many single executables with this combination. If you wanna learn what does the Makefile include, just do these:
1. type this to your shell in src directory: make 
2. After typing 'make', press space to give space character
3. Press TAB two times. 

It is gonna show the rules. You can build axis, mdi, milltask, halui, iocontrol etc. in the same way.
  • Aciera
  • Aciera's Avatar
23 Aug 2024 14:42
Replied by Aciera on topic Manipulating Axis GUI

Manipulating Axis GUI

Category: HAL

Not really but you _might_ be able to bend the GUI around by doing something like this (although this is for the axis selection so you would have to invest some time and effort to see if it could be adapted to your needs):
forum.linuxcnc.org/38-general-linuxcnc-q...elect?start=0#281577
  • AndyDM01
  • AndyDM01
23 Aug 2024 14:11
Replied by AndyDM01 on topic is there some basic list to build the net ?

is there some basic list to build the net ?

Category: EtherCAT

wow
you just gave me a big push forward
thank you very much
  • Moutomation
  • Moutomation
23 Aug 2024 13:49
Replied by Moutomation on topic İnstall glade

İnstall glade

Category: Gmoccapy

I will try to do it now thank you very much
  • Tinine
  • Tinine
23 Aug 2024 13:48
Replied by Tinine on topic Hydraulic Pipe Bender Retrofit - BLM C88

Hydraulic Pipe Bender Retrofit - BLM C88

Category: Show Your Stuff

There is endless business to be had, retrofitting CNC tube benders and there are some very sophisticated ones. BLM, like other manufacturers, don't want to support older machines because they want people to buy new.
The "recapture" feature that you demonstrate is only one of many, many tricks that a CNC bender needs to be able to do.

These machines are my design/manufacture:
110mm Diameter...but two at the same time.  This was the engine cradle for the Chrysler 300M. Bending axis is 100HP closed-loop Vector Drive
150mm with autoload  Note: Every movement is a servo axis and coordinated
76mm 100% electric  I was the pioneer of 100% electric and I was awarded the patent. Now BLM and everyone else makes all-electric benders 
21 axis  Fuel-injector lines for Ford and Siemens. The 8 rotating axes on the turret are WiFi controlled (continuous rotating turret.

I am now developing a self-install retrofit package which will be very low-cost....too many dead machines out there that are in fantastic mechanical condition.

Craig
  • Aciera
  • Aciera's Avatar
23 Aug 2024 13:46
Replied by Aciera on topic İnstall glade

İnstall glade

Category: Gmoccapy

the quickest solution I can come up with is to use a handler script that monitors the spinbutton in the custom gladevcp panel and saves the current value to a file if it changes. On opening the gui the script will set the spinbutton value to the value read from that file:

to try save this as 'gladevcp-handler.py' to the 'python' folder in your config:
#!/usr/bin/env python3

import hal
import os

parameter_file = 'gladepanel_parameter.txt'

class HandlerClass:


    def on_value_changed(self,hal_spinbutton1,data=None):
        changed_value = hal_spinbutton1.get_value()
        print(':gladevcp-handler: gladevcp.hal_spinbutton1 value has changed to ', changed_value)
        f = open(parameter_file, 'w')
        f.write(str(changed_value))
        f.close()

    def __init__(self, halcomp,builder,useropts):
        self.halcomp = halcomp
        self.hal_spinbutton1 = builder.get_object("hal_spinbutton1") # builder.get_object(ID of the targeted glade object)
        self.halcomp.newpin("number", hal.HAL_FLOAT, hal.HAL_IN)
        print(':gladevcp-handler: Initialized')
        print(':gladevcp-handler: gladevcp.hal_spinbutton1 value is ', self.hal_spinbutton1.get_value())
        if os.path.isfile(parameter_file):
            with open(parameter_file) as f:
                line = f.readline()
                line_parsed = list(line.strip().split('\t'))
                value = float(line_parsed[0])
                print(':gladevcp-handler: Setting gladevcp.hal_spinbutton1 value to ', value)
                self.hal_spinbutton1.set_value(value)


def get_handlers(halcomp,builder,useropts):
    return [HandlerClass(halcomp,builder,useropts)]

 then change this line in the [DISPLAY] section of your ini file from:
EMBED_TAB_COMMAND = halcmd loadusr -Wn testpanel gladevcp -c testpanel -H ./gladevcp/testpanel.hal -x {XID} ./gladevcp/testpanel.ui

to this (this will automatically load the handler file when the custom panel is loaded):
EMBED_TAB_COMMAND= halcmd loadusr -Wn testpanel gladevcp -c testpanel -u python/gladevcp-handler.py -H ./gladevcp/testpanel.hal -x {XID} ./gladevcp/testpanel.ui

To get this to work with the 'testpanel.ui' I posted earlier you need to open the panel in glade and
1. make sure the 'ID' of the spinbutton to be monitored is 'hal_spinbutton1'

 

2. add the handler to the spinbutton by opening the 'Signals' tab and writing 'on_value_changed' in the 'Handler' column of the 'value-changed' line. With this a value change in the spinbutton widget will call the on_value_changed function in the handler script.

 
  • PCW
  • PCW's Avatar
23 Aug 2024 13:10

Erros: Unexpected realtime delay + 7i96s error finishing read

Category: Installing LinuxCNC

There are also Ethernet interface specific adjustments needed on some systems

Whats does

lspci | grep -i eth

report?
  • zmrdko
  • zmrdko's Avatar
23 Aug 2024 12:31

Erros: Unexpected realtime delay + 7i96s error finishing read

Category: Installing LinuxCNC

Hello,
you need to sort out latency issues.
How is your latency-histogram looking?
  • slowpoke
  • slowpoke
23 Aug 2024 12:04 - 23 Aug 2024 12:32
Manipulating Axis GUI was created by slowpoke

Manipulating Axis GUI

Category: HAL

I have been testing a proof of concept external push-button interface board. I have pretty much everything working at this point.

My understanding is that the halui functions are independent from the axis functions, I picture them as a near duplicate parallel set.

For the most part when interacting with my external control board there is no need to look at the Axis GUI, however because the settings can and almost always are out of sync, example the jog increment could be 0.001" in Axis, and 1.000" in halui. If I'm not paying attention and inadvertently glance at the Axis setting and then proceed to hit the jog button on my panel (even though my external panel shows the increment is 1.000"), not great!

Is there some way in HAL to update the values displayed in the Axis GUI based on the halui settings?

 
  • Desertboy
  • Desertboy
23 Aug 2024 11:37

Looking for a Linuxcnc guru to help install/upgrade machine paid

Category: User Exchange

East Midlands area, just off M1, I already have the Mesa boards needed from another project I never finished

I also have a home built router I want to make work but something is wrong with the spindle that I would like help with

It's an AXYZ I want to upgrade to Linuxcnc

Anyone interested and close?
Displaying 22111 - 22125 out of 25347 results.
Time to create page: 0.537 seconds
Powered by Kunena Forum