Using classic ladder and RS485 for spindle

More
3 years 5 months ago #270570 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.
 

Please Log in to join the conversation.

More
3 years 5 months ago #271522 by andypugh
Try starting from HAL.
Code:
halrun loadrt classicladder_rt addf classicladder.0.refresh servo-thread loadusr -w classicladder --modmaster DM2800.clp

Or, alternatively.
Code:
halrun -I DM2800.hal
(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,

Please Log in to join the conversation.

Time to create page: 0.200 seconds
Powered by Kunena Forum