2012-09-15

RS485 CNC spindle control

My USB to RS485 adapter just arrived from China.
Will be able to test controlling the CNC spindle from the computer by MACH3 later today! 

Setting:
(remove tape from taped over keys,
 then press PRGM, enter the number of the value to change via UP,DOWN and <<, pres SET.
 You now see the current value.
 enter a new value via UP,DOWN,<< and press SET to change it.
 The device will leave PRGM mode on it's own after a few seconds)

PD163 "communication address"  1
PD164 "baud rate" 1 = 9600bps
PD165 "communication data method" 3 = 8N1 For RTU4
0=8n1 ASCII gives errors in Mach3 (don't know how because it's a one-way only communication)
3=8n1 RTU4 gives no errors but still the spindle doesn't react
PD001 "source of run commands" 2 = communication port (0=operator)
PD002 "source of operating frequency" 2=communication port (0=operator)
now it should work.

PD144 "rated motor revolutions" default=1440

2 Kommentare:

Anonym hat gesagt…

Great post, I admire the writing style :) A little off topic here but what theme are you using? Looks pretty cool.

The Editor hat gesagt…

A default theme of Blogger.
What writing style? It's basically workshop notes to keep track of all the details and links.