This will be guessing in the dark for me:
- my machine is only a 3 axis machine with 4 joints (there is a slave axis);
- to dial in a machine, more information is required.
I can supply you with a basic example of a machine with 3 axis / 4 joints. From that point you have to extend it to your own requirements.
To start, I think you require a configuration for your 5A-75E LED card. On any Linux machine you can install Litex-CNC to create the firmware:
Code:
pip install litexcnc[cli]
litexcnc install_toolchain
litexcnc install_driver
Note: install driver only works when you also have LinuxCNC installed on the machine.
Then create a file with the configuration of your machine (
sample_config.json, for example (assuming you've received a version 8.X of the LED card) with 4 axis:
Code:
{
"board_name": "example",
"board_type": "5A-75E v6.0",
"clock_frequency": 40000000,
"connection": {
"connection_type": "etherbone",
"tx_delay": 0,
"ip_address": "10.0.0.10",
"mac_address": "0x10e2d5000000"
},
"watchdog": {
"pin":"j1:8"
},
"modules": [
{
"module_type": "stepgen",
"instance": [
{
"pins" : {
"stepgen_type": "step_dir",
"step_pin": "j1:0",
"dir_pin": "j1:1"
},
"soft_stop": true
}, {
"pins" : {
"stepgen_type": "step_dir",
"step_pin": "j2:0",
"dir_pin": "j2:1"
},
"soft_stop": true
}, {
"pins" : {
"stepgen_type": "step_dir",
"step_pin": "j3:0",
"dir_pin": "j3:1"
},
"soft_stop": true
}, {
"pins" : {
"stepgen_type": "step_dir",
"step_pin": "j4:0",
"dir_pin": "j4:1"
},
"soft_stop": true
}
]
]
}
Now you can build the firmware and flash your card
Code:
litexcnc build_firmware sample_config.json -a --build
cd example/gateware
litexcnc flash_firmware <filename-with-extension-svf>
Note: the example above assumes an IP-address of 10.0.0.10. The machine where the card is connected to must have its network configured to the same subnet (i.e. 10.0.0.1 as fixed address with subnet 255.255.255.0)
If you have LinuxCNC installed on the machine, you can test the connection with the card and show the created pins. Start a the hal with
halrun and type the following commands:
Code:
loadrt litexcnc connections="eth:10.0.0.10"
show pin
show param
show function
This is a basis from where you should be able to get started. Please also see the
documentation
. When things are not clear in the documentation, please help to improve.
Just to be clear: I will not create full setups for machines based on minimal information. I am a hobbyist: developing the software is done in my spare time and I help as many people I can. I will however always improve the software and documentation when people submit bugs, enhancements or improvements.