Advanced Search

Search Results (Searched for: )

  • Lcvette
  • Lcvette's Avatar
18 Sep 2024 17:04
Replied by Lcvette on topic Vertical Screen with ProbeBasic?

Vertical Screen with ProbeBasic?

Category: QtPyVCP

AWESOME!! want to share and see about possibly adding to the PB repository as an option?
  • Lcvette
  • Lcvette's Avatar
18 Sep 2024 17:01

Probe Basic Documentation and Installation... Start Here!!!

Category: QtPyVCP

We have been working on the Probe Basic documentation and have it up in one location now so it will be easier to use for installations, user interface use and setup and Machine configuration instruction and guide.  It is updated with the currently latest of everything (9/18/24).  Please have a visit and leave your impressions and replies regarding what is there.  We know everyone would like MORE documentation and it is being worked on albeit slowly when time becomes available, but if you have input on what we have recently added which seems to be where the bulk of questions come from please let us know! including typos, mispellings, hard to understand sentences etc.. my eyes are crossed and i have pushed maybe a hundred or so commits the last 2 days trying to get things cleaned up so there are bound to be some booboo's..  /o\

Thanks all!

PROBE BASIC DOCUMENTATION - CLICK HERE!
  • AndyDM01
  • AndyDM01
18 Sep 2024 16:05

stuff you might want to know when you start with ethercat drivers

Category: EtherCAT

please feel free to add more information after this
  • AndyDM01
  • AndyDM01
18 Sep 2024 16:04

stuff you might want to know when you start with ethercat drivers

Category: EtherCAT

So I am starting this topic because I am 300% sure I fucked up somewhere in the start of the installation of linuxcnc ethercat from repositories....
first advice would be to check this topic untill the last grain of information because there might be something there that will save you a lot of time trying to figure out why your project doesn't work.... 
first tip i can give after that one would be .... 
Ethercat only works when everything is neatly organized and everything is spelled correctly and all stuff is called the same
Ethercat also likes perfect order in stuff, you can not to make disorder in the way ethercat READS stuff and WRITES stuff...
look at the examples how in the XML folder the read/write is written in the start of the XML
  • Aciera
  • Aciera's Avatar
18 Sep 2024 15:51

SCARA Vismach - Gcode error "exceed C's positive limit"

Category: General LinuxCNC Questions

Problem is that the kinematic model in scarakins.c is for a scara with 3 angular joints and a linear joint and also two angular joints that move the table. You could easily remove those last two (ie j4/a and j5/b) from the kinematic as they are just looped through. J3/c however is part of the calculation so to remove that you will need to have a closer look at the forward and inverse kinematic model.
/* joint[0], joint[1] and joint[3] are in degrees and joint[2] is in length units */
static
int scaraKinematicsForward(const double * joint,
                      EmcPose * world,
                      const KINEMATICS_FORWARD_FLAGS * fflags,
                      KINEMATICS_INVERSE_FLAGS * iflags)
{
    double a0, a1, a3;
    double x, y, z, c;

/* convert joint angles to radians for sin() and cos() */

    a0 = joint[0] * ( PM_PI / 180 );
    a1 = joint[1] * ( PM_PI / 180 );
    a3 = joint[3] * ( PM_PI / 180 );
/* convert angles into world coords */

    a1 = a1 + a0;
    a3 = a3 + a1;

    x = D2*cos(a0) + D4*cos(a1) + D6*cos(a3);
    y = D2*sin(a0) + D4*sin(a1) + D6*sin(a3);
    z = D1 + D3 - joint[2] - D5;
    c = a3;

    *iflags = 0;
    if (joint[1] < 90)
        *iflags = 1;

    world->tran.x = x;
    world->tran.y = y;
    world->tran.z = z;
    world->c = c * 180 / PM_PI;

    world->a = joint[4];
    world->b = joint[5];

    return (0);
} //scaraKinematicsForward()

static int scaraKinematicsInverse(const EmcPose * world,
                                  double * joint,
                                  const KINEMATICS_INVERSE_FLAGS * iflags,
                                  KINEMATICS_FORWARD_FLAGS * fflags)
{
    double a3;
    double q0, q1;
    double xt, yt, rsq, cc;
    double x, y, z, c;

    x = world->tran.x;
    y = world->tran.y;
    z = world->tran.z;
    c = world->c;

    /* convert degrees to radians */
    a3 = c * ( PM_PI / 180 );

    /* center of end effector (correct for D6) */
    xt = x - D6*cos(a3);
    yt = y - D6*sin(a3);

    /* horizontal distance (squared) from end effector centerline
        to main column centerline */
    rsq = xt*xt + yt*yt;
    /* joint 1 angle needed to make arm length match sqrt(rsq) */
    cc = (rsq - D2*D2 - D4*D4) / (2*D2*D4);
    if(cc < -1) cc = -1;
    if(cc > 1) cc = 1;
    q1 = acos(cc);

    if (*iflags)
        q1 = -q1;

    /* angle to end effector */
    q0 = atan2(yt, xt);

    /* end effector coords in inner arm coord system */
    xt = D2 + D4*cos(q1);
    yt = D4*sin(q1);

    /* inner arm angle */
    q0 = q0 - atan2(yt, xt);

    /* q0 and q1 are still in radians. convert them to degrees */
    q0 = q0 * (180 / PM_PI);
    q1 = q1 * (180 / PM_PI);

    joint[0] = q0;
    joint[1] = q1;
    joint[2] = D1 + D3 - D5 - z;
    joint[3] = c - ( q0 + q1);
    joint[4] = world->a;
    joint[5] = world->b;

    *fflags = 0;

    return (0);
} // scaraKinematicsInverse()
  • tommylight
  • tommylight's Avatar
18 Sep 2024 15:37

How to setup 2 PCI Parallel Ports on LinuxCNC 2.8.4?

Category: Basic Configuration

Maybe I was miss reading your posts, and you've resolved your issue and loading the parport_pc module as a kernel mod at start up was the solution?

+1
Hence the "thank you" under the post.
  • Todd Zuercher
  • Todd Zuercher's Avatar
18 Sep 2024 15:25
Replied by Todd Zuercher on topic How to setup 2 PCI Parallel Ports on LinuxCNC 2.8.4?

How to setup 2 PCI Parallel Ports on LinuxCNC 2.8.4?

Category: Basic Configuration

Maybe I was miss reading your posts, and you've resolved your issue and loading the parport_pc module as a kernel mod at start up was the solution?
  • Todd Zuercher
  • Todd Zuercher's Avatar
18 Sep 2024 14:46
Replied by Todd Zuercher on topic How to setup 2 PCI Parallel Ports on LinuxCNC 2.8.4?

How to setup 2 PCI Parallel Ports on LinuxCNC 2.8.4?

Category: Basic Configuration

What advantage would there be to be to have "the ports to be active when the PC boots up instead of when LinuxCNC starts"? If Linuxcnc isn't running then it can't act upon any input or control any output.

I have never even tried to use the "parport_pc" module. I wonder if this is causing some kind of conflict?

Lets try to narrow down exactly what your problem is. So, you are trying to migrate from 2.7 to a newer version? Are you wanting to go to the current 2.9.3? (Just wondered why go to 2.8 vs 2.9?) There are some pretty significant configuration changes required when moving from 2.7 to version 2.8 or greater. Are you copying your old config files to the new version or are you starting fresh creating a new config in the new version. I wonder if your config configuration is running afoul in the auto config conversion and if those are the real issues not anything to actually do with the parallel port.

I have to be honest none of my machines that use parallel ports have been updated beyond version 2.7. Mostly because my my machine configurations are complex enough to not work correctly with the automatic config conversion script that is supposed to update the configuration, and issues with finding new real time kernels that work well with the existing PC running the machine. That said, I just downloaded the current Linuxcnc iso and booted it live on the machine's PC (latency is pretty bad with the stock Preempt-RT kernel), opened the Linuxcnc parallel port test app and the IO to that port worked correctly. Then I copied over the machine's config files, and tried to run it. It took me a few tries to correct the config issues that the conversion script either missed or messed up, but I was able to get the config running and working correctly (didn't even need to change any of the 3 parallel port addresses or settings.) I was able to jog the machine and the inputs are working even with the bad latency.

In conclusion, I really don't know what might be giving you problems, unless it is a problem with what you are doing with the parport_pc module, an issue with 2.7-2.8 config conversion, or a problem with what ever kernel you are trying to use. (I know at some point between 2.7 and 2.9 32-bit kernel support was dropped.)
  • Mae22
  • Mae22
18 Sep 2024 14:31
Replied by Mae22 on topic Error messages when trying to run GCode

Error messages when trying to run GCode

Category: Installing LinuxCNC

Hi have added the missing text and also sequenced the axis for homing, dont know if its correct though or whether i have to add anything else either in here or the HAL so could you have a quick look for me. the machine is still sending error messages and still no home all button
Many thanks for your help
  • Mae22
  • Mae22
18 Sep 2024 14:28
Replied by Mae22 on topic Error messages when trying to run GCode

Error messages when trying to run GCode

Category: Installing LinuxCNC

Hi i have done the sequence as in images but still no "home all" button lol, every thing i try brings up an error message and i know the axis are homed but screen error messages insist they are not, think i have a ghost 
  • pietxs
  • pietxs
18 Sep 2024 14:08

Maho MH500 W4 Retrofit, möglichst PlugandPlay?

Category: Deutsch

Hallo, ich habe aus der github.com/jin-eld/mh400e-linuxcnc/wiki die Dokumentation durchgeschaut und an meiner Maho MH70 C entsprechend verkabelt. 
Die Simulation über die angegebenen Befehle bekomme ich zum laufen. Schaltvorgänge werden getätigt. Wie allerdings integriere ich das ganze in meine Maschinen hal? 

In der Sim Hal wird auch ein thread  gestartet 
addf hm2_5i25.0.read          mh400e-sim-thread
addf hm2_5i25.0.write         mh400e-sim-thread 
Wenn ich die Sim Hal in meiner INI hinterlege wird beim start von Axis ein Fehler angezeigt, da ich den hm2_5i25.0.read schon als servo thread definiert habe.

Womit wird der Drehzahlwechsel gestartet, über Taste am Bedienpult ist das für mich verständlich, jedoch aus Axis? 

Womit wird das Spindle stopped input verdrahtet. Sinn würde es am Relais Spindelbremse lösen machen, dieses wird deaktiviert sobald die Spindel stoppt.

Vielleicht stehe ich auch total am Schlauch oder mir sind die Tiefen der Linux Programmierung noch nicht geläufig.

Ich bin für jede Hilfe dankbar.

Übrigens Hochachtung für die Programmierung und sagenhafte Anleitung der Gearbox RotarySMP.

Anbei vielleicht noch meine Maschinen Hal und GearboxSim Hal
  • DPFlex
  • DPFlex
18 Sep 2024 13:52

SCARA Vismach - Gcode error "exceed C's positive limit"

Category: General LinuxCNC Questions

Hi Aciera,
Yes, correct, I copied scara.ini from vismach demo and revised it.
Actually there are 3 joints (J0, J1, J2) which are most useful in SCARA application. That's why I only test with 3 joints and removed 3 joints (J3,J4,J5) :)
Is it root cause to have this error ?. should it be ?.
Thank you.
  • B.Reilly01
  • B.Reilly01
18 Sep 2024 13:30
Replied by B.Reilly01 on topic Vertical Screen with ProbeBasic?

Vertical Screen with ProbeBasic?

Category: QtPyVCP

I did build a working version, I just reorganized and resized the horizontal version.
  • Aciera
  • Aciera's Avatar
18 Sep 2024 11:55

SCARA Vismach - Gcode error "exceed C's positive limit"

Category: General LinuxCNC Questions

I'm not familiar with 'scarakins' but looking at 'configs/sim/axis/vismach/scara/scara.ini' and comparing that with your 'tsino_scara_3ax.ini' it seems to me that you have not configured enough joints:
[EMC]
VERSION = 1.1
MACHINE = SCARA (genserkins,switchkins)
#+ Debug level, 0 means no messages. See src/emc/nml_int/emcglb.h for others
#DEBUG = 0

[DISPLAY]
DISPLAY = axis
CYCLE_TIME = 0.200
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 2.0
PROGRAM_PREFIX = ../../nc_files/
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 5
PYVCP = scara.xml
#EDITOR = geany

[RS274NGC]
SUBROUTINE_PATH = ./remap_subs
   HAL_PIN_VARS = 1
   HAL_PIN_VARS = 1
          REMAP = M428  modalgroup=10  ngc=428remap
          REMAP = M429  modalgroup=10  ngc=429remap
          REMAP = M430  modalgroup=10  ngc=430remap
PARAMETER_FILE = scara.var
# startup mm and offsets for axis.ngc demo file:
RS274NGC_STARTUP_CODE = G21 G10L2P0 x432 y65 z416 (debug, ini: startup offsets)

[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
SERVO_PERIOD = 1000000

[TASK]
TASK = milltask
CYCLE_TIME = 0.010

[KINS]
JOINTS = 6
# switchkins:
#   kinstype==0 (default scarakins)
#     j0,j1,j2,j3 -- implement scarakins for xyzc
#     j4 == world->a (scaragui j4 is table tilt (y))
#     j5 == world->b (scaragui j5 is table tilt (x))
#   kinstype==1 (identity, assign per coordinates=xyzcab)
#     letter x -- assigned to j0
#     letter y -- assigned to j1
#     letter z -- assigned to j2
#     letter c -- assigned to j3
#     letter a -- assigned to j4 (same as scarakins)
#     letter b -- assigned to j5 (same as scarakins)
#   kinstype==2 (userk, template is identity, user may specify)
#
# Note: coordinate= ordering for identity kins preserves ab relationships
KINEMATICS = scarakins coordinates=xyzcab

[HAL]
HALUI   = halui
HALFILE = LIB:basic_sim.tcl
HALCMD  = loadusr -W scaragui
HALCMD  = net :kinstype-select <= motion.analog-out-03 => motion.switchkins-type
POSTGUI_HALFILE = scara_postgui.hal

[HALUI]
# M428:scara kins    (kinstype==0 startupDEFAULT)
# M429:identity kins (kinstype==1)
# M430:userk kins    (kinstype==2)
MDI_COMMAND = M428
MDI_COMMAND = M429
MDI_COMMAND = M430

[TRAJ]
COORDINATES = XYZABC
LINEAR_UNITS = mm
DEFAULT_LINEAR_VELOCITY = 10.0
MAX_LINEAR_VELOCITY = 600.0
DEFAULT_LINEAR_ACCELERATION = 100.0
MAX_LINEAR_ACCELERATION = 200.0
ANGULAR_UNITS = degree
DEFAULT_ANGULAR_VELOCITY = 10.0
MAX_ANGULAR_VELOCITY = 600.0
DEFAULT_ANGULAR_ACCELERATION = 100.0
MAX_ANGULAR_ACCELERATION = 200.0

[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = scara.tbl

[AXIS_X]
MAX_VELOCITY = 30.0
MAX_ACCELERATION = 200.0
[AXIS_Y]
MAX_VELOCITY = 30.0
MAX_ACCELERATION = 200.0
[AXIS_Z]
MAX_VELOCITY = 30.0
MAX_ACCELERATION = 200.0
[AXIS_C]
MAX_VELOCITY = 60.0
MAX_ACCELERATION = 400.0

[JOINT_0]
NAME = shoulder
TYPE = ANGULAR
MAX_VELOCITY = 30.0
MAX_ACCELERATION = 200.0
MIN_LIMIT = -360.0
MAX_LIMIT = 360.0
HOME_OFFSET = 0.0
HOME = 0.000
HOME_SEQUENCE = 0

[JOINT_1]
NAME = elbow
TYPE = ANGULAR
MAX_VELOCITY = 30.0
MAX_ACCELERATION = 200.0
MIN_LIMIT = -360.0
MAX_LIMIT = 360.0
HOME_OFFSET = 0.0
HOME = 0.000
HOME_SEQUENCE = 0

[JOINT_2]
NAME = z-slide
TYPE = LINEAR
MAX_VELOCITY = 30.0
MAX_ACCELERATION = 200.0
MIN_LIMIT = 25.0
MAX_LIMIT = 300.0
HOME_OFFSET = 25.0
HOME = 25.000
HOME_SEQUENCE = 0

[JOINT_3]
NAME = wrist
TYPE = ANGULAR
MAX_VELOCITY = 60.0
MAX_ACCELERATION = 400.0
MIN_LIMIT = -180.0
MAX_LIMIT = 180.0
HOME_OFFSET = 0.0
HOME = 0.000
HOME_SEQUENCE = 0

[JOINT_4]
NAME = table_rotate
TYPE = ANGULAR
MAX_VELOCITY = 60.0
MAX_ACCELERATION = 400.0
MIN_LIMIT = -180.0
MAX_LIMIT =  180.0
HOME_OFFSET = 0.0
HOME = 0.000
HOME_SEQUENCE = 0

[JOINT_5]
NAME = table_rotate
TYPE = ANGULAR
MAX_VELOCITY = 60.0
MAX_ACCELERATION = 400.0
MIN_LIMIT = -180.0
MAX_LIMIT =  180.0
HOME_OFFSET = 0.0
HOME = 0.000
HOME_SEQUENCE = 0
  • Mae22
  • Mae22
18 Sep 2024 11:19
Replied by Mae22 on topic Error messages when trying to run GCode

Error messages when trying to run GCode

Category: Installing LinuxCNC

you will have to excuse a complete beginner here, does this mean i change the home_search_vel to -2 and the home_latch_vel to 0.625. When you say scale are you refering to the INI file scale that is 800 at present, do i invert by adding a minus, i have never had to do that.
Also it was pointed out that there is no home_final_velocity, im guessing i have to add this in which case where do i insert the text
Displaying 21121 - 21135 out of 24520 results.
Time to create page: 0.380 seconds
Powered by Kunena Forum