Advanced Search

Search Results (Searched for: )

  • hellvetica
  • hellvetica
08 Sep 2025 11:34
Replied by hellvetica on topic task: main loop took 5.019013 seconds

task: main loop took 5.019013 seconds

Category: General LinuxCNC Questions

I don't know, it's the linuxcnc's output.
I just move the robot around when it happens.

However, I realized that every now and then one of my motors goes over its negative soft limit. I increased the soft limit and the issue seems to have stopped happening.
I still don't understand why that would cause the main loop to freeze for 5s.
  • Red_D85
  • Red_D85
08 Sep 2025 10:50
Lichuan Ethercat io was created by Red_D85

Lichuan Ethercat io

Category: Deutsch

Hallo zusammen
mich würde mal interessieren ob es jemand hin bekommen hat die io s der Lichuan Ethercat Servos einzubinden. Ich hatte bisher kein Erfolg weder bei den TLO57E (all-in-one) noch E57H (nur der Driver)
Die Suchfunktion erbrachte leider auch nicht die gewünschten treffer. 


grüsse
  • Kuzma30
  • Kuzma30
08 Sep 2025 10:24
Replied by Kuzma30 on topic AMSAMOTION IO module

AMSAMOTION IO module

Category: EtherCAT

I change name for IN OUT and add halType="bit"
<masters>
  <master idx="0">
    <slave idx="0" type="generic" vid="0x00000b95" pid="0x00001101" name="D1">
      <!--EC3A-IO1632-->
      <syncManager idx="0" dir="in"/>
      <syncManager idx="1" dir="out"/>
      <syncManager idx="2" dir="out">
        <pdo idx="1600">
          <!--DOOutputs process data mapping-->
          <pdoEntry idx="7000" subIdx="01" bitLen="16" halPin="EC3A-do" halType="bit"/>
        </pdo>
      </syncManager>
      <syncManager idx="3" dir="in">
        <pdo idx="1a00">
          <!--DIInputs process data mapping-->
          <pdoEntry idx="6000" subIdx="01" bitLen="16" halPin="EC3A-di" halType="bit"/>
        </pdo>
      </syncManager>
    </slave>
  </master>
</masters>

Now I want run ladder for this module (to make plc program).
cat ec3a.hal ec3a.ini
# Load real-time components
loadrt threads name1=servo-thread period1=1000000  # 1ms servo thread (matches XML appTimePeriod)

# Load EtherCAT driver with config XML
loadusr -W lcec_conf ec3a_io_hal.xml
loadrt lcec

# Load ClassicLadder (nogui mode, loading your project file)
#loadusr -W classicladder --nogui ec3a_ladder.clp

loadrt classicladder_rt
addf classicladder.0.refresh servo-thread

# Connect example I/O pins to ClassicLadder (map %I0-%I3 to inputs, %Q0-%Q3 to outputs)
# Expand to all 16 as needed
#net input-0 classicladder.0.in-00 <= lcec.0.0.EC3A-di.0
#net input-1 classicladder.0.in-01 <= lcec.0.0.EC3A-di.1
#net input-2 classicladder.0.in-02 <= lcec.0.0.EC3A-di.2
#net input-3 classicladder.0.in-03 <= lcec.0.0.EC3A-di.3

#net output-0 classicladder.0.out-00 => lcec.0.0.EC3A-do.0
#net output-1 classicladder.0.out-01 => lcec.0.0.EC3A-do.1
#net output-2 classicladder.0.out-02 => lcec.0.0.EC3A-do.2
#net output-3 classicladder.0.out-03 => lcec.0.0.EC3A-do.3[EMC]
# The version string for this INI file.
VERSION = 1.1

MACHINE = EtherCAT Machine
DEBUG = 1

[DISPLAY]
DISPLAY = axis
EDITOR = gedit

#PYVCP = pyvcp_panel.xml

# places the pyvcp panel at the bottom of the Axis window
PYVCP_POSITION = RIGHT

# Cycle time, in seconds, that display will sleep between polls
CYCLE_TIME =            0.100

# Path to help file
HELP_FILE =             doc/help.txt

# Initial display setting for position, RELATIVE or MACHINE
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 1.2
# Prefix to be used
PROGRAM_PREFIX = /home/cnc/linuxcnc/nc_files
INTRO_GRAPHIC = linuxcnc.gif
INTRO_TIME = 0
INCREMENTS = 5mm 1mm .5mm .1mm .05mm .01mm .005mm

[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python
nc = /usr/bin/axis

[RS274NGC]

PARAMETER_FILE = linuxcnc.var

#[EMCMOT]

#EMCMOT = motmod
#COMM_TIMEOUT = 1.0
#BASE_PERIOD =  0
#SERVO_PERIOD = 1000000

[TASK]
TASK = milltask
CYCLE_TIME = 0.005

[HAL]
HALFILE = ec3a.hal
#SHUTDOWN = shutdown.hal
#HALFILE = custom.hal
#POSTGUI_HALFILE = pyvcp_panel.hal
HALUI = halui

#[HALUI]

[KINS]
KINEMATICS = trivkins coordinates=
JOINTS = 0

[TRAJ]
COORDINATES =
LINEAR_UNITS = mm
ANGULAR_UNITS = degree
DEFAULT_LINEAR_VELOCITY = 1.0
MAX_LINEAR_VELOCITY = 1.0

I have not motion axies. I get such errors during start
linuxcnc ec3a.ini
LINUXCNC - 2.9.4
Machine configuration directory is '/home/cnc/Завантажене'
Machine configuration file is 'ec3a.ini'
Starting LinuxCNC...
[EMCIO] CYCLE_TIME not found in /home/cnc/Завантажене/ec3a.ini; using default 0.100000
halui: no [TRAJ]COORDINATES specified, enabling all axes
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
Found file(REL): ./ec3a.hal
creating ladder-state
emcTrajSetJoints failing: joints=0
emcMotionInit: emcTrajInit failed
Missing [TRAJ]COORDINATES
Shutting down and cleaning up LinuxCNC...
USRMOT: ERROR: command timeout
HAL: ERROR: exit called before init
<commandline>:0: waitpid failed milltask inihal

<commandline>:0: milltask exited without becoming ready
Note: Using POSIX realtime
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/cnc/linuxcnc_debug.txt
and
    /home/cnc/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal


cat /home/cnc/linuxcnc_debug.txt
Can not find -sec TRAJ -var COORDINATES -num 1
3767
3797
Stopping realtime threads
Unloading hal components
cnc@cnc:~/Завантажене$ cat /home/cnc/linuxcnc_print.txt
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
INIFILE=/home/cnc/Завантажене/ec3a.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=
KINEMATICS=trivkins coordinates=
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Starting TASK program: milltask
Starting DISPLAY program: axis
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments


Is it possible run linuxcnc without axies (or with simulated axies)?
  • Jonathan_H
  • Jonathan_H
08 Sep 2025 08:53 - 08 Sep 2025 08:54

probe_basic "Latest update requires config modification"

Category: QtPyVCP

Thanks for letting me know.

So the status page says "Action Required" when no action is actually required?

That's just silly, and monumentally unhelpful. I've wasted loads of time on this.
  • Aciera
  • Aciera's Avatar
08 Sep 2025 08:44

Kinematic model for a 5axis mill with universal (nutating) head

Category: Show Your Stuff

Can you post your modified kinemaitics file and your ini file?
  • hitchhiker
  • hitchhiker
08 Sep 2025 07:21
Proximity sensor hardware debounce? was created by hitchhiker

Proximity sensor hardware debounce?

Category: Basic Configuration

Hi ! I struggle with a failure with my toolchanger.
i use the latest carousel.comp.

the atc is controlled by 3 proximity sensors.
the proximity sensors are npn normaly open.
i connect them to my mesa 7i92t.
on the mesa 7i92t i have the pullup jumper selected.

If i connect the sensor to 24v,gnd from mesa (on the idc connector) together with gnd of the 24v supply and the signal cable to a input on the mesa i see the pin change the state if i hold the sensor to a screw or something metallic.


original on this machine the signal cable goes to a 22k ohm resistor which is connected to ground. Then it goes to another 22k resistor in series.. which haves a ceramic cap 1nf to gnd. and then to a 74c14 schmitttrigger.. from there it goes to the mcu.

i will draw a small sketch later.

in linuxcnc i debounce the pin with the value 3.
the sensor cables ate not shielded.. and are near to the main drive and maindrive cables.. main drive becomes a 280v pwm signal up to 5amps.

so sometimes the atc stops turning anywhere .. i think it get count signal.. but thete is no count signal.

should i clean the signals like original controller it do?

thanks
  • emresensoy
  • emresensoy
08 Sep 2025 05:55 - 08 Sep 2025 06:18

EtherCAT 32x Isolated IO + 1x 5V Differential Encoder Input

Category: Show Your Stuff

On the way,
32x isolated digital input,
32x isolated digital output (500mA each)
1x Differential encoder input
6 Layer PCB

Ethercat IO board for CNC and Machine Manual Panels,
  • ziggi
  • ziggi's Avatar
08 Sep 2025 05:48 - 08 Sep 2025 05:49

Troubles to get started with SD240 Retrofit

Category: Turning

Ok, I will of course do so, but will take a bit until I have access to the machine.
Question: there is also a 7i37 connected to the 7i80-  has the 7i37 be disconnected also? Guess so.
  • jschulze
  • jschulze
08 Sep 2025 03:06

Kinematic model for a 5axis mill with universal (nutating) head

Category: Show Your Stuff

Sorry, for all the questions, but I'm having a bit of trouble with TWP and was hoping I could get some help. TCP is working totally fine and it seems like TWP is partially working, but not quite correctly. Say I issue G68.2 X0Y0Z0 I0J-45K0 and G53.1, the spindle orients itself correctly and I can jog in X and Y, but not Z. Depending on the angles I use I get different axes I can jog. Using G68.3 I can see the plane set in the vismach, but I'm not able to jog at all.

I did mess with the kinematics file to make it work for my machine. TCP works great, so it seems to be working (I added a tandem Y axis and a W axis that isn't involved in the tcp math). Is there anything I could have messed up in the kinematics file? Also, I had to scale some things in the vismach since I'm working in inches. Is there anything in the twp remap files that I would need to scale? Thanks again for all the help.
  • PCW
  • PCW's Avatar
08 Sep 2025 03:03

Driving my SyilX3 and Plasma cutter machine with 5i25t which provided driver?

Category: Driver Boards

If you have the SyilX3 parallel port hal file, that can be used to figured out the pinout

In any case the pinout will be needed to determine which firmware to use.
 
  • stirra
  • stirra
08 Sep 2025 02:50
Replied by stirra on topic Problems with Lichuan Ethercat servo drive

Problems with Lichuan Ethercat servo drive

Category: EtherCAT

Hello.
I had to recreate LC10 homing code from zero reading manual designated for a driver with a motor with incremental encoder . ( I thought original code was difficult to fix )

If you still have some problems, I consider to open my codes...( I have something to do for some improvement )
 

@tar_san - I very much would like to see your code.  I am not happy with my fixes to the original code.  Thank you!

-- Ralph
  • joego
  • joego
08 Sep 2025 02:50

Driving my SyilX3 and Plasma cutter machine with 5i25t which provided driver?

Category: Driver Boards

I'm not sure who makes the drives on them I bought them already made. I had them working with mach3 but lost the recipe. I got the syilx3 machine running ok with linuxcnc but I would like to get the mesa board working. They both have proprietary break out boards on them.
  • tommylight
  • tommylight's Avatar
08 Sep 2025 01:52

Driving my SyilX3 and Plasma cutter machine with 5i25t which provided driver?

Category: Driver Boards

Moved to "Driver Boards"
-
What drives do those machines use?
Are they parallel port controlled?
Do they have some kind of BOB or controller?
Or, how are those machines connected to PC now?
Displaying 10471 - 10485 out of 16593 results.
Time to create page: 1.113 seconds
Powered by Kunena Forum