WJ200 Direction control

More
10 Feb 2014 09:17 #43688 by Duc
WJ200 Direction control was created by Duc
Looking for some guidance on hooking a WJ200 into a Mesa 7i76. The analog input into the VFD is working perfect for controlling the speed but running into wiring issues and config problems for the FWD/Rev control

Here is the manual to the VFD.
www.dartcontrols.com/wp-content/uploads/...-reference-guide.pdf

I tried to wiring in the FWD/Rev according to Page 33 of the manual. Selected sourcing inputs so I could use the outputs on the 7i76 to control the direction and the mesa I/O is wired to 24volts.

Output 6 ==> Pin 1 on Hitachi TB
Output 7 ==> Pin 2 on Hitachi TB
PLC jumpered to L on Hitachi TB

C001 set to 00 (FWD)
C002 set to 01 (REV)
A002 set to 01 per the manual

I can see the pins toggling from LInuxcnc and see the RPM varying when I try to drive the spindle but no response from the VFD.

Any ideas or suggestions on how people wire the WJ200 in?


Attached is the Hal and Ini file for my setup
Attachments:

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

More
10 Feb 2014 10:10 #43690 by PCW
Replied by PCW on topic WJ200 Direction control
To reduce the number of variables, I would first verify that the VFD works as
expected when run via mechanical switches.

Note that for bi-directional spindle use, your hal file will need a abs value comp to take
the signed spindle speed from linuxCNC and convert it into a positive spindle speed for the Spindle DAC
(if this was a pncconf created config, I'm pretty sure pncconf does this for you)

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

More
26 Feb 2014 11:39 #44189 by jonesturf
Replied by jonesturf on topic WJ200 Direction control
Make sure you have them setup for normally closed and not normally open...or vise versa. I love Hitachi VFD's but one time I had it backwards on a lathe and it drove me nuts. I think you can switch it in the VFD as well as in the software so make sure they both jive.

Gonna take another look for ya since I'm pretty familiar with them and see what I come up with. Actually gonna be hooking one up later this week for my retrofit.

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

More
26 Feb 2014 12:04 #44190 by jonesturf
Replied by jonesturf on topic WJ200 Direction control
Its looks good from what the book says on the VFD end. Seems like you followed the top diagram on page 29 for external sinking. Seems right to me. Do you have it hooked up on the TB4 on the Mesa? If so output 6 is Spindle ena+ and output 7 is Spindle dir -. Is that right or am I confused?

Maybe try switching to outputs on the VFD and inputs on the Mesa if you can. Other than that I would guess it's on the software side.

What about modbus? I thought you were thinking of going that route.

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

More
26 Feb 2014 12:05 #44191 by jonesturf
Replied by jonesturf on topic WJ200 Direction control
Oops I just noticed this is 2 weeks old. Did you get it going?

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

More
28 Feb 2014 00:54 #44239 by Duc
Replied by Duc on topic WJ200 Direction control

Oops I just noticed this is 2 weeks old. Did you get it going?


Havent even touch the mill since I post it. Been working everyday for the last 3 weeks due to a new product launch. I should be touching this weekend if I still have Friday off.

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

More
08 Mar 2014 07:11 - 08 Mar 2014 07:11 #44557 by Duc
Replied by Duc on topic WJ200 Direction control
Got the spindle control working perfect now. 3 week break from the mill helped clear up my mind and realize I was being stupid.

1. FWD/REV was configured for output 6, 7 while they were wired to Output 4,5. Fixed that software problem.
2. Needed to tie PLC, L and 24v power supply ground to each other.

Direction control now works perfect. Also needed to abs the spindle.out control. Followed the steps in canner's post.


Finally got it working right, here is the code for the hal file

loadrt abs count=1
addf abs.0 servo-thread
net abs-vel-cmd abs.0.out => hm2_5i25.0.7i76.0.0.spinout
net spindle-vel-cmd abs.0.in <= motion.spindle-speed-out




I would change:

loadrt abs names=abs.spindle
to
loadrt abs names=abs.spindle,abs.spindle_cmd

and add this line:

addf abs.spindle_cmd servo-thread

and then change

net spindle-vel-cmd <= motion.spindle-speed-out
to
net spindle-vel-cmd abs.spindle_cmd.in <= motion.spindle-speed-out

and finally change

net spindle-vel-cmd => hm2_5i25.0.7i76.0.0.spinout
to
net abs.spindle_cmd.out => hm2_5i25.0.7i76.0.0.spinout


This did not work. I recieved config errors during launch of Linuxcnc.
Last edit: 08 Mar 2014 07:11 by Duc.

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

Time to create page: 0.081 seconds
Powered by Kunena Forum