Advanced Search

Search Results (Searched for: )

  • MarkoPolo
  • MarkoPolo
06 Dec 2024 23:50
Replied by MarkoPolo on topic qtvismach, a axis toolpath

qtvismach, a axis toolpath

Category: Qtvcp

Great, it works.

It works when I run it as a built-in window in qtdragon.

I also run the simulation in a standalone window, because
in a built-in window, the toolpath is drawn only if the window is active.
In a separate window, the path is always drawn.
When I run it in a separate window, there is a problem with the hal component and adding the pin.
Maybe add the flipcolor pin in the main hal file, or something else?
  • Cj.tns60
  • Cj.tns60
06 Dec 2024 23:13
Replied by Cj.tns60 on topic Retrofit torno CNC traub TNS 60

Retrofit torno CNC traub TNS 60

Category: CNC Machines

Vou dar uma olhada.

Obrigado.
  • cmorley
  • cmorley
06 Dec 2024 21:47
Replied by cmorley on topic qtvismach, a axis toolpath

qtvismach, a axis toolpath

Category: Qtvcp

The color change pin was pretty easy. This shows an example how to have a pin that flips between two preset colors.
class HALColor(Collection):
    def __init__(self, color1, color2, parts, comp, var):
        self.color1 = color1
        self.color2 = color2
        self.comp = comp
        self.var = var
        Collection.__init__(self, parts)

    def apply(self):
        try:
            if self.comp is None:
                v = hal.get_value(self.var)
            else:
                v = self.comp[self.var]
        except:
            v = 0
        if v : c = self.color1
        else: c = self.color2

        GL.glPushAttrib(GL.GL_LIGHTING_BIT)
        GL.glMaterialfv(GL.GL_FRONT_AND_BACK, GL.GL_AMBIENT_AND_DIFFUSE, c)

    def unapply(self):
        GL.glPopAttrib()

You need to define the pin:

c.newpin("flipcolor", hal.HAL_BIT, hal.HAL_IN)

then instead of using Color use HALColor:
link7 = HALColor([0.1,0.1,0.1,1], [1,1,0,1], [link7], c, "flipcolor",)

I added the modified fanuc_200f.py file too for clarity.
 
  • tommylight
  • tommylight's Avatar
06 Dec 2024 21:32

EMC2 featured on a movie, they made us change the name to LinuxCNC

Category: Off Topic and Test Posts

Nope, not implying anything, i just liked the name and wondered how the hell did they get it registered as it is the equation for energy
E=M*C2
That is always attributed to Albert Einstein.
Thinking back, the new name has grown on me, so not pissed off at them anymore. The thing was, searching the web for emc2 would bring back countless results, new name brings back this project as the first result.
-
Probably have bigger fish to fry, and the government is stomping on them, again. :)
  • partec
  • partec
06 Dec 2024 21:32
Replied by partec on topic camera resolution doesn' fit

camera resolution doesn' fit

Category: Qtvcp

strangely, the variation of the parameter is not relevant effective on the proportionality of the image
 
  • Hakan
  • Hakan
06 Dec 2024 21:19 - 06 Dec 2024 21:22
Replied by Hakan on topic AX58100

AX58100

Category: EtherCAT

You can (or should be able to, is best to say) select your own datatypes.
Starting in eeprom_generator. Then for lcec in ethercat-conf.xml you can select the datatype of the created hal pin.
I don't think every combination is possible or makes sense, but to go from ethercat u32 to hal bit should work. For example.

Regarding the Analog voltage output - yes that was the reason to chose that pin - it is DAC capable.
The STM32 is really picky which pin one selects, they all have special functions and are not interchangeable at all.
Displaying 22111 - 22116 out of 22116 results.
Time to create page: 0.351 seconds
Powered by Kunena Forum