RS232 Spindle control

More
7 years 6 months ago #132110 by marq_torque
Replied by marq_torque on topic RS232 Spindle control
I am definitely in favor of 0-10V signals.... but this BMR driver is not having those analog speed input or start stop input everything is done thru Rs232.... i tried to get support from company but they said this is made for some OEM system to work with rs232 comm. so can not be configured with 0-10v signaling it has no such inputs....

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago #132111 by marq_torque
Replied by marq_torque on topic RS232 Spindle control

Mike_Eitel wrote: A quick look in the attached doc expresses clearly:
This is a only via rs232 controlled device. The protocol is simple and has nothing to do with modbus or other industrial protocols. (that I know)
U need a pc with rs232 which is the normal serial interface. And 115k Baud is quite high, so you should not have to long cable. Double conversion to Rs485 makes it only complicated and the VFD has no pin to switch direction. If you really need longer distance you have to makes something special with 2x rs485 or 2x rs422.
For the soft I think best is to write a python based program that communicates via hal pins. It is beyond my momentary skills, but I think here on the list there are a few who can help you with a "base" rump. That example should contain the way to define digital and analog hal pins. What i'm not sure is if you can adress the serial from a program that communicates via hal-pins.
m5c
Mike


Yes Mike, i tried with Max232 serial chip with on board serial port and driver is working fine with its software and listed commands in manual. my hurdle is to talk with this Driver with EMC.

I understood your method, i m newbie in Linux and python.... any help would be much appreciated,

Thanks

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago #132112 by Mike_Eitel
Replied by Mike_Eitel on topic RS232 Spindle control
A workaround could be an intermediate Arduino.
Are you on an LPT solution?
Do you need to set different speed?
The following user(s) said Thank You: marq_torque

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago #132113 by marq_torque
Replied by marq_torque on topic RS232 Spindle control
Yes i need to set different speeds, I am new to Arduino will be no issue i can play with... I am with PCI LPT setup.

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago #132114 by Mike_Eitel
Replied by Mike_Eitel on topic RS232 Spindle control
OK
Best would be to find somebody that could help you to get a hal module.

Second I would use normal pwm and send that puls stream to an pwm/0-xV on an arduino analog input. Plus the hal start and eventually direction digital signal.
= 3 outputs from linuxcnc via lpt - > 2 digital inputs plus 1 analog input of Arduino.
Inside Arduino you have to transform the voltage to number. Than you have to write a "gluing" soft that decides in dependance of the inputs which stream is send to the VFD.
I think you can keep it simple and ignore the responses.
Mike
The following user(s) said Thank You: marq_torque

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago #132116 by marq_torque
Replied by marq_torque on topic RS232 Spindle control
Excellent,

I got direction now, Will now start figuring arduino to work with 0-10v output of EMC

Thanks :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum