Advanced Search

Search Results (Searched for: )

  • Aciera
  • Aciera's Avatar
19 Aug 2024 06:25 - 19 Aug 2024 06:27
Replied by Aciera on topic Learning HAL and external offsets

Learning HAL and external offsets

Category: HAL

Regarding HAL see section 'HAL (Hardware Abstraction Layer' :
linuxcnc.org/docs/stable/html/

Regarding External offsets:
linuxcnc.org/docs/stable/html/motion/external-offsets.html
  • HalaszAttila
  • HalaszAttila
19 Aug 2024 05:59
Replied by HalaszAttila on topic SoE Ethercat

SoE Ethercat

Category: General LinuxCNC Questions

Hello,
Did you manage to get the NCT plc and Linuxcnc working together?
  • __Tom
  • __Tom
19 Aug 2024 05:33
Replied by __Tom on topic Getting an error on starting a machine

Getting an error on starting a machine

Category: General LinuxCNC Questions

Thanks a lot for your afford.
  • scotth
  • scotth
19 Aug 2024 04:24 - 19 Aug 2024 04:26

difference between machine coordinate systems and CAD software

Category: AXIS

With no hardware info, this is just a guess. If you have encoder feedback, swap A and B to reverse count.
For steppers, invert direction.

Be ready with E-STOP when you test, things can go very wrong quickly.
  • Hauligali22
  • Hauligali22
19 Aug 2024 04:17
Learning HAL and external offsets was created by Hauligali22

Learning HAL and external offsets

Category: HAL

Hello,I have a project where I want to apply changes to a cnc toolpath in realtime based on object tracking data from a camera. I have been told that while uncommon, that it is possible. Particularly, to use a hardware abstraction layer to apply external offsets so that the original g-code remains unchanged and the toolpath can still be updated. However, as a novice and having done a deep dive into this topic, I find it very difficult to complete this project because of the lack of information on these topics. Can anyone direct me or recommend how I can learn how to use HAL and external offsets? I have also been suggested that parametrized g-code is dynamic and can work. That Fanuc controls have a feature called real time macro and Siemens controls have a feature called parallel program execution, which I may be able to code in linuxcnc. Thanks!
  • Mecanix
  • Mecanix
19 Aug 2024 01:32

LinuxCNC-RIO - RealtimeIO for LinuxCNC based on FPGA (ICE40 / ECP5)

Category: Computers and Hardware

W5500
Level-Shifter (TXS0108E)
RGB-LED
Modbus
I2C - 5V (hope this will work via the level-shifter)

Maybe a good and cheap universal-board

That's just awesome!! Never thought of using the w5500 lite module as a board add-on, great idea. That would have simplified a whole lot. In the other board gossips, here's another fully functional/tested Gowin based RIO Motion Control Board. Surprisingly everything works flawlessly and so I'm upgrading this from a prototype rev 1.0 to alpha, and getting ready to start on a beta release (revision 1.1). Should be out and avail for testing in a week. 


 
  • my1987toyota
  • my1987toyota's Avatar
19 Aug 2024 00:16
Replied by my1987toyota on topic Video about shielding cnc machine wiring

Video about shielding cnc machine wiring

Category: Computers and Hardware

I was hoping he would have shown a twisted pair in comparison, oh well. I usually do twisted pair wires more to
keep things tidy, though shielded cable is best.
Something to note if a cable is to be continuously flexed a braided shield is better suited for things like drag chain
cable carriers at least in the long run and industrial settings where the machine maybe operating 24/7 365 for
years on end.
Still it was a good video showing the scenario.
  • MarkoPolo
  • MarkoPolo
18 Aug 2024 21:40
Replied by MarkoPolo on topic Error in tool_offsetview.py

Error in tool_offsetview.py

Category: Qtvcp

Yes, that's how it works. Just make the buttons bigger. I  improwed the file.
  • cmorley
  • cmorley
18 Aug 2024 20:28

Versa probe Z height after automatic tool length measure

Category: General LinuxCNC Questions

Could you supply a small sample program for testing?
I've never actually used auto tool probe but i could try testing on my little mill.
  • PCW
  • PCW's Avatar
18 Aug 2024 19:49
Replied by PCW on topic Voltage encoder with 7i97T board

Voltage encoder with 7i97T board

Category: Driver Boards

The 7I97T has 6 hardware encoders, you do not use the software
encoder.  Your sample looks like a parallel port configuration.

I would suggest using MesaCT to create a hal/ini configuration file set.
  • PedPEx
  • PedPEx
18 Aug 2024 19:30
LCEC creating Danfoss VFD config was created by PedPEx

LCEC creating Danfoss VFD config

Category: EtherCAT

 
Hey folks,

i'm trying to retrofit an old Maho400E in the near future with a Beckhoff EM7004 in combination with a costum adaptor-board for the 3 axis and wanted to prepare the electronics as far as possible. In addition to that i also want to implement a Danfoss VFD FC302 with its EtherCAT optioncard MCA124. I started to read out all the PDO mappings and so on, like in many other forum posts described, but now i don't know how to proceed with the Flag E and the dmesg output, that the VFD would not support distributed clocks. You can find all configs and readouts of the VFD on my Github . The most important stuff is also attached here.

Thank you guys for your help

Best regards
Patrick

EtherCAT network (ethercat slaves output while machine is running)
0  0:0  PREOP  E  FC-302
1  0:1  OP     +  EK1100 EtherCAT-Koppler (2A E-Bus)
2  0:2  OP     +  EM7004 4-Achs Interface

dmesg output of EtherCAT related messages
[    5.972506] EtherCAT: Master driver 1.6.0 1.6.0.gcafd367-1+1.1
[    5.972663] EtherCAT: 1 master waiting for devices.
[    5.993635] ec_generic: EtherCAT master generic Ethernet device module 1.6.0 1.6.0.gcafd367-1+1.1
[    5.993664] EtherCAT: Accepting F8:75:A4:86:9A:F4 as main device for master 0.
[    6.025021] EtherCAT 0: Starting EtherCAT-IDLE thread.
[    8.676976] EtherCAT 0: Link state of ecm0 changed to UP.
[    8.961049] EtherCAT 0: 3 slave(s) responding on main device.
[    8.961055] EtherCAT 0: Slave states on main device: PREOP.
[    8.961492] EtherCAT 0: Scanning bus.
[    9.035903] EtherCAT WARNING 0-0: Received mailbox protocol 0x02 as response.
[    9.035906] EtherCAT ERROR 0-0: Failed to read number of assigned PDOs for SM2.
[    9.044901] EtherCAT ERROR 0-0: Received upload response for wrong SDO (0x1C12:00, requested: 0x1C13:00).
[    9.044904] EtherCAT DEBUG: 00 30 4F 12 1C 00 01 00 00 00
[    9.585876] EtherCAT 0: Bus scanning completed in 624 ms.
[    9.585880] EtherCAT 0: Using slave 1 as DC reference clock.
[    9.585883] EtherCAT 0: Starting EoE thread.
[    9.626324] EtherCAT ERROR 0-0: Failed to set SAFEOP state, slave refused state change (PREOP + ERROR).
[    9.626621] EtherCAT ERROR 0-0: AL status message 0x001E: "Invalid input configuration".
[    9.636234] EtherCAT 0-0: Acknowledged state PREOP.
[   24.746151] EtherCAT: Requesting master 0...
[   24.746156] EtherCAT: Successfully requested master 0.
[   24.748381] EtherCAT 0: Domain0: Logical address 0x00000000, 64 byte, expected working counter 6.
[   24.748385] EtherCAT 0:   Datagram domain0-0-main: Logical offset 0x00000000, 64 byte, type LRW.
[   24.748399] EtherCAT 0: Master thread exited.
[   24.748402] EtherCAT 0: Stopping EoE thread.
[   24.748416] EtherCAT 0: EoE thread exited.
[   24.748417] EtherCAT 0: Starting EoE thread.
[   24.748455] EtherCAT 0: Starting EtherCAT-OP thread.
[   24.748492] EtherCAT WARNING 0: 33 datagrams TIMED OUT!
[   24.773374] EtherCAT ERROR 0-0: Mailbox error response received - Unknown error reply code 0x0000.
[   24.773380] EtherCAT WARNING 0-0: Invalid mailbox response for eoe0s0.
[   36.885422] EtherCAT WARNING 0-0: Slave seems not to support distributed clocks!
[   36.887420] EtherCAT ERROR 0-0: Failed to set DC cycle times: No response.
[   36.940945] EtherCAT 0: Slave states on main device: PREOP, OP.

ethercat-conf.xml file:
<masters>
        <master idx="0" appTimePeriod="1000000" refClockSyncCycles="5" name="m0">
                <!-- Danfoss FC302 in CiA402/DSP402 mode -> needs CiA402 mode vl -->
                <slave idx="0" type="generic" vid="0200008d" pid="00000064" configPdos="true" name="2001_FC302">
                        <dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0"/>
                        <syncManager idx="2" dir="out">
                                <pdo idx="1616">
                                        <pdoEntry idx="6040" subIdx="00" bitLen="16" halPin="ControlWord" halType="u32"/>
                                        <pdoEntry idx="6042" subIdx="00" bitLen="16" halPin="TargetVelocity" halType="s32"/>
                                </pdo>
                        </syncManager>
                        <syncManager idx="3" dir="in">
                                <pdo idx="1a16">
                                        <pdoEntry idx="6041" subIdx="00" bitLen="16" halPin="StatusWord" halType="u32"/>
                                        <pdoEntry idx="6044" subIdx="00" bitLen="16" halPin="ActualVelocity" halType="s32"/>
                                        <!-- <pdoEntry idx="6061" subIdx="00" bitLen="8" halPin="ModeOfOperationDisplay" halType="u32"/>-->
                                </pdo>
                        </syncManager>
                </slave>
                <!-- Beckhoff IO modules -->
                <slave idx="1" type="EK1100" name="0501_EK1101"/>
                <slave idx="2" type="EM7004" name="0501_EM7004"/>
        </master>
</masters>
 
  • CNCFred
  • CNCFred's Avatar
18 Aug 2024 19:15

Plasmac2QTplasma gives error not a Plasmac configuration /solved

Category: Plasmac

Thank you for you kind reply and offer, no worries , the error is on my side not being up to date, you are all busy enough.

I had a 7i76e.pncconf file which I was able to open with pncconf and my settings were there at least seems ok for the default machine.

I was using a xbox controller, a two button crane control with emergency stop and the laser was with a M7 command- button set to the mist hal output.

I will read the documentation and hopefully get all working with the qtplasmac machine setup again.
I assume the additional config is the same, custom hal etc.

thank you
Roman

 
  • tommylight
  • tommylight's Avatar
18 Aug 2024 18:52
Replied by tommylight on topic Getting an error on starting a machine

Getting an error on starting a machine

Category: General LinuxCNC Questions

ip a
?
If you only changed from 10 to 11 it will not work
Change to 10.10.10.11
  • greg23_78
  • greg23_78
18 Aug 2024 18:49 - 18 Aug 2024 18:51
Replied by greg23_78 on topic Voltage encoder with 7i97T board

Voltage encoder with 7i97T board

Category: Driver Boards

wanting to configure my spindle encoder and reading linuxcnc doc for Spindle Synchronized Motion I found out that the encoder must be connected to mesa card inputs and not to encoder input 5 (7i97T).
Do I have to change my encoder wiring or is it possible to do the same as
# Add the encoder to HAL and attach it to threads.
loadrt encoder num_chan=4
addf encoder.update-counters base-thread
addf encoder.capture-position servo-thread

# Set the HAL encoder to 100 pulses per revolution.
setp encoder.3.position-scale 100

# Set the HAL encoder to non-quadrature simple counting using A only.
setp encoder.3.counter-mode true

# Connect the HAL encoder outputs to LinuxCNC.
net spindle-position encoder.3.position => spindle.0.revs
net spindle-velocity encoder.3.velocity => spindle.0.speed-in
net spindle-index-enable encoder.3.index-enable <=> spindle.0.index-enable

# Connect the HAL encoder inputs to the real encoder.
net spindle-phase-a encoder.3.phase-A <= parport.0.pin-10-in
net spindle-phase-b encoder.3.phase-B
net spindle-index encoder.3.phase-Z <= parport.0.pin-11-in


with the encoder cable on encoder input 5
Displaying 20806 - 20820 out of 26033 results.
Time to create page: 1.089 seconds
Powered by Kunena Forum