Advanced Search

Search Results (Searched for: )

  • 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.
  • COFHAL
  • COFHAL
06 Dec 2024 20:53
Replied by COFHAL on topic AX58100

AX58100

Category: EtherCAT

The DAC also works by placing values ​​between 0 and 1020 volts, which gives values ​​between 0 and 3.28 volts at the output. It could be used directly to control the speed of a VFD by scaling it.
  • COFHAL
  • COFHAL
06 Dec 2024 20:48 - 06 Dec 2024 20:49
Replied by COFHAL on topic AX58100

AX58100

Category: EtherCAT

I have been playing with the inputs and outputs of the card and I realized that these are of type u32 and in order to be used in LCN they must be converted to BITs with the conv_u32_bit component, this is because some pins that LCN automatically creates are of type bit, such as joint.N.amp-fault.in, iocontrol.o.emc.enable-in, or any other pin that has been declared as type bit.
  • MarkoPolo
  • MarkoPolo
06 Dec 2024 20:47
Replied by MarkoPolo on topic qtvismach, a axis toolpath

qtvismach, a axis toolpath

Category: Qtvcp

That's what you suggested, using STATUS.connect.. I can control the position of the A-axis tailstock.

After reloading the next file, the tailstock is positioned in the appropriate place depending on the dimension of the project in the X axis.

Another thing I want is to re-build the dimensions of the workpiece.

Qt_vismach can update the position of an already built object, but I can't do it to re-build a new workpiece.

I tried adding a new class in primitives.py, analogous to HalTranslate, but it doesn't work.

It would also be interesting to be able to change the colors of some elements, depending on the values ​​of different pins.

How to do it?
  • partec
  • partec
06 Dec 2024 20:33
Replied by partec on topic camera resolution doesn' fit

camera resolution doesn' fit

Category: Qtvcp

that seems absolutely plausible, I would like to try it out later, thanks Chris
 
  • cmorley
  • cmorley
06 Dec 2024 20:24
Replied by cmorley on topic camera resolution doesn' fit

camera resolution doesn' fit

Category: Qtvcp

x or y scaling needs adjustmenf -meaning a distorted shape (that's what it looks like)

You can set the scaling of x and y in 2.9.3 with the INI embedding line by adding something like this:

-o xscale=1.0 -o yscale=1.5
  • MarkoPolo
  • MarkoPolo
06 Dec 2024 20:17
Replied by MarkoPolo on topic Error in tool_offsetview.py

Error in tool_offsetview.py

Category: Qtvcp

The script calculates fairly correctly if g54 z0 is set to the A-axis rotation axis, and Y0 is above the A-axis center.

This is just a rough idea, to calculate the speed at the tool tip completely correctly, a few corrections would have to be made.

The script does not have a loop, so I run it like this:  "watch -n0.2 ./new_vel.py"
  • HogWild
  • HogWild
06 Dec 2024 19:47
Z and Corner Finding Touch Plate was created by HogWild

Z and Corner Finding Touch Plate

Category: General LinuxCNC Questions

Is there a Z and corner finding touch plate you recommend that Linux already supports?  In other words, is there programming support already developed for particular touch plates?  If so, it seems it would be much easier to use one that has programming already developed.

Interested to see what you recommend.
  • tommylight
  • tommylight's Avatar
06 Dec 2024 19:47
Replied by tommylight on topic Potentiometer only effective at mm/min (lathe)

Potentiometer only effective at mm/min (lathe)

Category: Advanced Configuration

Some do, but not much so far, and not active here much.
Me neither, yet, but probably should need some editing in hal as mm/m and mm/rev are not the same thing nor the same pin in hal.
As to what exactly, i have no clue.
  • tommylight
  • tommylight's Avatar
06 Dec 2024 19:42
Replied by tommylight on topic Kuka robot project - hardware choice

Kuka robot project - hardware choice

Category: Driver Boards

All Kuka robots i have worked with have resolvers on motors, that is the sine/cosine thingy, not encoders. Those were KR150 and KR320, so much bigger.
Mesa has something that can read resolvers, but you need to find the exact model of the resolvers to know for sure.
Motors might also use something for comutation, but not sure if that is also done from resolvers.
I did a lot of wiring on one of those, but never needed to mes with motors or drives as all were working.
I was not on robot forums for a long time, i was the one who posted the hack to make Kuka robots work in Auto mode when they are factory disabled. They are usually controlled by a central computer for synchronization.
  • partec
  • partec
06 Dec 2024 19:34
Replied by partec on topic camera resolution doesn' fit

camera resolution doesn' fit

Category: Qtvcp

 thanks Chris, it is none proportionality of the figure at all, there is no idea at the moment.
Displaying 22111 - 22124 out of 22124 results.
Time to create page: 0.410 seconds
Powered by Kunena Forum