Advanced Search

Search Results (Searched for: )

  • pawel77
  • pawel77
21 Aug 2024 13:07
Replied by pawel77 on topic İnstall glade

İnstall glade

Category: Gmoccapy

OK thanks if this is the solution. However it changes the layout of elements during opening, I will have to arrange them again. 
I thought the gladevcp of 2.8.4 is better and is available in 2.9.
 
  • Pickle
  • Pickle
21 Aug 2024 12:02

[ Vfdmod ] An easy VFD control over MODBUS RTU

Category: HAL

So is it possible to get hold of VFDMOD? I installed this on a previous setup and it was ideal for me. Now I just get 404 error wherever I look!
  • Aciera
  • Aciera's Avatar
21 Aug 2024 11:00

Post GUI HAL not loading and "Bad character '[' used" error on E-Stop

Category: QtPyVCP

Another thing that comes to mind is that only one POSTGUI_HALFILE entry is allowed (unless that has changed):
POSTGUI_HALFILE = custom_postgui.hal
POSTGUI_HALFILE = vc-postgui.hal
POSTGUI_HALFILE = probe_basic_postgui.hal

So if you wanted to load more than one postgui_hal file you would have to create a single (eg 'postgui_call_list.hal') file like this:
# These files are loaded post GUI, in the order they appear
source custom_postgui.hal
source vc-postgui.hal
source  probe_basic_postgui.hal

Then you would replace the three POSTGUI_HALFILE entries with this single line:
POSTGUI_HALFILE = postgui_call_list.hal

Maybe that helps
  • TheRoslyak
  • TheRoslyak's Avatar
21 Aug 2024 10:34 - 21 Aug 2024 10:35
Replied by TheRoslyak on topic Monitoring SDO value

Monitoring SDO value

Category: EtherCAT

So, I updated the branch. Now you can overwrite SDO data.
A so-called forwardScale has been added to the float. It was necessary to calculate and recalculate data when a variable had to be used as a denominator. The complex can be decomposed into bits separately.
Of course, there are still errors and optimization opportunities in the code. For now, this utility can be used for monitoring SDO data. It's an alternative to sdoConfig, allowing you to change parameters on the fly and save them in a proper format instead of raw data (which often causes confusion).

github.com/TheRoslyak/LcecSdo
  • zmrdko
  • zmrdko's Avatar
21 Aug 2024 09:44 - 21 Aug 2024 09:44
Replied by zmrdko on topic New LinuxCNC-Ethercat git tree

New LinuxCNC-Ethercat git tree

Category: EtherCAT

I would like to make some minor upgrades to lcec_dems300. But I am getting errors when compiling original source code from github:
  • greg23_78
  • greg23_78
21 Aug 2024 09:34 - 21 Aug 2024 10:06
Replied by greg23_78 on topic Driver NUM GEC MK2S

Driver NUM GEC MK2S

Category: Driver Boards

indeed it was missing

net joint.0.output => hm2_[MESA](BOARD).0.pwmgen.00.value

and I made the change, but my drivers still don't jog.

I tried my drivers by applying a DC power supply to my analog input (driver) and the driver works correctly.

HAL
# Axis: Z Joint: 1 Output: 1
# PID Setup
setp pid.z.Pgain [JOINT_1](P)
setp pid.z.Igain [JOINT_1](I)
setp pid.z.Dgain [JOINT_1](D)
setp pid.z.bias [JOINT_1](BIAS)
setp pid.z.FF0 [JOINT_1](FF0)
setp pid.z.FF1 [JOINT_1](FF1)
setp pid.z.FF2 [JOINT_1](FF2)
setp pid.z.deadband [JOINT_1](DEADBAND)
setp pid.z.maxoutput [JOINT_1](MAX_OUTPUT)
setp pid.z.error-previous-target True

# joint-1 enable chain
net joint-1-index-enable <=> pid.z.index-enable
net joint-1-index-enable <=> joint.1.index-enable
net joint-1-index-enable <=> hm2_[MESA](BOARD).0.encoder.01.index-enable

net joint-1-enable <= joint.1.amp-enable-out
net joint-1-enable => pid.z.enable

# PWM Generator setup
setp hm2_[MESA](BOARD).0.pwmgen.01.dither true
setp hm2_[MESA](BOARD).0.pwmgen.01.output-type 1 #PWM pin0
setp hm2_[MESA](BOARD).0.pwmgen.01.offset-mode 1 # offset mode so 50% = 0
setp hm2_[MESA](BOARD).0.pwmgen.01.scale [JOINT_1]SCALE

# ---Encoder feedback signals/setup---
setp hm2_[MESA](BOARD).0.encoder.01.counter-mode 0
setp hm2_[MESA](BOARD).0.encoder.01.filter 1
setp hm2_[MESA](BOARD).0.encoder.01.index-invert 0
setp hm2_[MESA](BOARD).0.encoder.01.index-mask 0
setp hm2_[MESA](BOARD).0.encoder.01.index-mask-invert 0
setp hm2_[MESA](BOARD).0.encoder.01.scale  [JOINT_1]ENCODER_SCALE

# position command and feedback
net joint-1-pos-cmd <= joint.1.motor-pos-cmd
net joint-1-pos-cmd => pid.z.command

net joint-1-pos-fb <= hm2_[MESA](BOARD).0.encoder.01.position
net joint-1-pos-fb => joint.1.motor-pos-fb
net joint-1-pos-fb => pid.z.feedback

net joint.1.output <= pid.z.output
net joint.1.output => hm2_[MESA](BOARD).0.pwmgen.01.value

# Encoder Setup
setp hm2_[MESA](BOARD).0.encoder.01.scale  [JOINT_1](ENCODER_SCALE)
setp hm2_[MESA](BOARD).0.encoder.01.counter-mode 0
setp hm2_[MESA](BOARD).0.encoder.01.filter 1
setp hm2_[MESA](BOARD).0.encoder.01.index-invert 0
setp hm2_[MESA](BOARD).0.encoder.01.index-mask 0
setp hm2_[MESA](BOARD).0.encoder.01.index-mask-invert 0


INI

[AXIS_Z]
MIN_LIMIT = 0
MAX_LIMIT = 1000
MAX_VELOCITY = 333.333
MAX_ACCELERATION = 400

[JOINT_1]
CARD = 0
TAB = 1
AXIS = Z
MIN_LIMIT = 0
MAX_LIMIT = 1000
MAX_VELOCITY = 333.333
MAX_ACCELERATION = 400
TYPE = LINEAR
SCALE = 1
ANALOG_SCALE_MAX = 10
ANALOG_MIN_LIMIT = -10
ANALOG_MAX_LIMIT = 10
ENCODER_SCALE = 1000
FERROR =  10000
MIN_FERROR =  1000
DEADBAND = 0
P = 1
I = 0
D = 0
FF0 = 0
FF1 = 0
FF2 = 0
BIAS = 0
MAX_OUTPUT = 10
MAX_ERROR = 0.0127
HOME = 10
HOME_OFFSET = 0
HOME_SEARCH_VEL = 5
HOME_LATCH_VEL = 0.5
HOME_FINAL_VEL = 20
HOME_SEQUENCE = 1
HOME_USE_INDEX = True
I have another question: what does [JOINT_1]SCALE correspond to, since we can see that the signal is scaled in relation to this variable?

SCALE = 1

setp hm2_[MESA](BOARD).0.pwmgen.00.scale [JOINT_0]SCALE

but what's the point of the

ANALOG_SCALE_MAX = 10
ANALOG_MIN_LIMIT = -10
ANALOG_MAX_LIMIT = 10

MAX_OUTPUT = 10

 
  • avive
  • avive
21 Aug 2024 09:15

Message: "Ignoring task mode change while jogging"

Category: GladeVCP

It's all about this line:
self.emc.jogging(1)

I commented it out and the errors stopped appearing
    def do_key_jog(self,axis,direction,action):
        if self.data._JOG in self.check_mode(): # jog mode active:
                    if not action: cmd = 0
                    elif direction: cmd = 1
                    else: cmd = -1


                    self.emc.jogging(1) <-- HERE


                    #print(self.data.jog_increments[self.data.current_jogincr_index])
                    if self.data.jog_increments[self.data.current_jogincr_index] == ("continuous"): # continuous jog
                        #print("active axis jog:",axis)
                        self.emc.continuous_jog(axis,cmd)
                    else:
                        #print("jog incremental")
                        if cmd == 0: return # don't want release of button to stop jog
                        self.mdi_control.mdi.emcstat.poll()
                        if self.mdi_control.mdi.emcstat.state != 1: return
                        jogincr = self.data.jog_increments[self.data.current_jogincr_index]
                        distance = self.parse_increment(jogincr)
                        self.emc.incremental_jog(axis,cmd,distance)

Is it necessary if we are already in JOG mode?
  • Aciera
  • Aciera's Avatar
21 Aug 2024 09:14
Replied by Aciera on topic Delay or debounce

Delay or debounce

Category: HAL

  • Aciera
  • Aciera's Avatar
21 Aug 2024 09:11

Post GUI HAL not loading and "Bad character '[' used" error on E-Stop

Category: QtPyVCP

You've got a lot going on there.
Only thing I see are these MDI_COMMANDS that will cause syntax errors due to comma instead of semicolon but I have no idea if those are actually used anywhere.:
MDI_COMMAND = o<sweep_4x8> call,Sweep\n4x8
#MDI_COMMAND = o<measure_tool> call,Measure\nCurrent\nTool
MDI_COMMAND = G53 G0 Z0;G53 G0 X63 Y5,Go To\nMTC Location
MDI_COMMAND = M64 P7,Open Tool\nMagazine
MDI_COMMAND = M65 P7,Close Tool\nMagazine

If you run this in MDI do you also get the error about the Bad character '[':
(abort, aborting)
  • Aciera
  • Aciera's Avatar
21 Aug 2024 09:00
Replied by Aciera on topic İnstall glade

İnstall glade

Category: Gmoccapy

Usually you can simply click 'OK' and save the file.
  • seuchato
  • seuchato
21 Aug 2024 08:33

Results of latency test, list of computers tested for use with LinuxCNC

Category: Computers and Hardware

uugp
Nice find! Those values are very good, almost too good to be true! If however those values are true and at 9000 there are no random latency issues anymore, then you do have a very nice system for software stepping, too.
Kindly allow a couple of questions / remarks / recommendations:
  1. Did you run any other program? I see 10 glxgears, but what about a browser, vimeo or youtube, ... while doing the latency test?
  2. On board graphics is usually the way to go. Tracking down and elimination sparce spikes is a hard job, usually also with questionable success. So I'd stick with onboard graphics.
  3. What do you mean by "... and obtain a good color ..."?
  4. Seems the mobo is for Athlon IIX* cpus, which appeared around 2009. So, really old :-). I'd check the capacitors before making chips and/or have a spare one available. Not sure if such an old mobo is really a good idea as a cnc controller though.
Greez
chris
  • avive
  • avive
21 Aug 2024 08:30

Message: "Ignoring task mode change while jogging"

Category: GladeVCP

I confirm, the same problem. It happens exactly when the key is released and gscreen calls
self.gscreen.do_key_jog(_X, direction, False)

Thus it calls jog while the other is still in progress. If the movement is incremental and the key is not released until the movement is complete, then there is no error. In the source code it looks like this:
int emcTaskSetMode(EMC_TASK_MODE mode)
{
    int retval = 0;

    if (jogging_is_active()) {
        emcOperatorError("Ignoring task mode change while jogging");
        return 0;
    }
...

I thought the problem was with my custom panel implementation, but the standard one has the same problem. Any ideas on how to fix this?
  • slowpoke
  • slowpoke
21 Aug 2024 07:50 - 21 Aug 2024 07:55
Delay or debounce was created by slowpoke

Delay or debounce

Category: HAL

I'm trying to use one external push button to both pause and resume program execution depending on if the program is running or paused.

I used two and2 gates to perform this task, and it works sort of. The problem is that often when I press the button to pause, the program briefly pauses when the first "pause" and gate fires, however in the 100ms or so it takes for my finger to release the button the 2nd "resume" and gate fires because the program is now paused.

I don't know if there is a slower thread I could place the two and gates in or if there is a way to delay the input to the "resume" and gate?

Excerpt from postgui is below. Thank in advance

# Program Run Button
net pgmRun <= arduino.keypad.PgmRun
net pgmRun => halui.program.run

# Program Stop Button
net pgmStop <= arduino.keypad.PgmStop
net pgmStop => halui.program.stop

# Program Pause Button
net buttonPause <= arduino.keypad.PgmHold

# AND gates to drive PAUSE & RESUME  
loadrt and2 count=2
addf and2.0 servo-thread
addf and2.1 servo-thread

# assign nets to AND gate
net pgmRunning halui.program.is-running => and2.0.in0
net buttonPause => and2.0.in1
net pauseThePgm halui.program.pause <= and2.0.out

net pgmPaused halui.program.is-paused => and2.1.in0
net buttonPause => and2.1.in1
net resumeThePgm halui.program.resume <= and2.1.out

#.......................................................
 
  • zmrdko
  • zmrdko's Avatar
21 Aug 2024 07:10
Replied by zmrdko on topic is there some basic list to build the net ?

is there some basic list to build the net ?

Category: EtherCAT

I would suggest starting from basics like homing/limit switches. Maybe try some E-stop for safety. And as you will use the machine, you will find out what do you need. You can also get some inspiration from control panels on industrial machines
  • bentiggin
  • bentiggin
21 Aug 2024 06:59
Replied by bentiggin on topic Gui for standalone thc

Gui for standalone thc

Category: Plasma & Laser

Great, man motion really helped.
When I mentioned m3 I didn’t realize it was linked to spindle.
I linked spindle.0.on to my ihs/plasma start output and now m3 turns it on and m5 turns it off. Rock on.
I tried get spindle.0.at-speed to work for my arc ok/ok to move. Eventually gave up, but I found a post about m66 for arc ok and it is doing what I need.
I like the idea of a corner hold, but the standalone thc can supposedly handle that, so that’ll move to the back burner.

There’s a lot of non linuxcnc things I need to finish for this table, but where would be best place to focus my research to make the gui appropriate for a plasma. Pyvcp? Can I edit the axis gui? If I could just rename the spindle button and add a few leds, that’d be enough.

Anyways, I really appreciate all the help.



 
Displaying 23701 - 23715 out of 24293 results.
Time to create page: 0.723 seconds
Powered by Kunena Forum