- Configuring LinuxCNC
- Advanced Configuration
- ClassicLadder
- Using classic ladder and RS485 for spindle
Using classic ladder and RS485 for spindle
- Julien
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 2
03 May 2023 14:39 #270570
by Julien
Using classic ladder and RS485 for spindle was created by Julien
Hey, I am trying to set up my USB to RS485 adapter to controll my spindle.
The adapter has the following specs:
Modell Nr: SH-U10L
Standard : RS485
Haupt chip: SILICON LABS CP2102
Interface: USB Type A ,5 PIN Terminal Block
RS485 PIN: TXD+(A+), TXD-(B-)
USB 2.0; kompatibel USB 1.1
Kabel Länge: 5 Fuß/1.5M
Baud: 300bps bis 1Mbps
It can be found by terminal and I created a modbus.rules in /etc/udev/rules.d/ with following entrys:
SUBSYSTEMS=="usb",ATTRS{idVendor}=="0403",ATTRS{idProduct}=="6001",GROUP="root",MODE="0666"
SUBSYSTEM=="tty",ATTRS{idVendor}=="0403",ATTRS{idProduct}=="6001",SYMLINK+="RS485_ADAPTER"
I have created the followed entrys in my .hal:
loadrt classicladder_rt
addf classicladder.0.refresh servo-thread
loadusr -w classicladder --modmaster DM2800.clp
started ProbeBasic and saved a new DM2800.clp via classicladder. But sadly when I start classic ladder and go to the config->modbus communication it says I have to put the entry "loadusr -w classicladder --modmaster myprogram.clp" into my .hal.
The adapter has the following specs:
Modell Nr: SH-U10L
Standard : RS485
Haupt chip: SILICON LABS CP2102
Interface: USB Type A ,5 PIN Terminal Block
RS485 PIN: TXD+(A+), TXD-(B-)
USB 2.0; kompatibel USB 1.1
Kabel Länge: 5 Fuß/1.5M
Baud: 300bps bis 1Mbps
It can be found by terminal and I created a modbus.rules in /etc/udev/rules.d/ with following entrys:
SUBSYSTEMS=="usb",ATTRS{idVendor}=="0403",ATTRS{idProduct}=="6001",GROUP="root",MODE="0666"
SUBSYSTEM=="tty",ATTRS{idVendor}=="0403",ATTRS{idProduct}=="6001",SYMLINK+="RS485_ADAPTER"
I have created the followed entrys in my .hal:
loadrt classicladder_rt
addf classicladder.0.refresh servo-thread
loadusr -w classicladder --modmaster DM2800.clp
started ProbeBasic and saved a new DM2800.clp via classicladder. But sadly when I start classic ladder and go to the config->modbus communication it says I have to put the entry "loadusr -w classicladder --modmaster myprogram.clp" into my .hal.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23558
- Thank you received: 4858
17 May 2023 09:56 #271522
by andypugh
Replied by andypugh on topic Using classic ladder and RS485 for spindle
Try starting from HAL.
Or, alternatively.
(note that I guessed the name of the HAL file, use the actual file that you created)
In either case, you can use "exit" to close the interactive HAL session,
halrun
loadrt classicladder_rt
addf classicladder.0.refresh servo-thread
loadusr -w classicladder --modmaster DM2800.clp
Or, alternatively.
halrun -I DM2800.hal
In either case, you can use "exit" to close the interactive HAL session,
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- ClassicLadder
- Using classic ladder and RS485 for spindle
Time to create page: 0.050 seconds