Author Topic: Motor control  (Read 51643 times)

can

  • Full Member
  • Posts: 160
  • I'm a llama!
    • View Profile
Re:Motor control
« Reply #15 on: October 03, 2010, 10:29:02 PM »
Hi. After much trial and error over the weekend, seems like the communication between laptop and 888 is having problem whenever I activate the motor controller even though the both of them are not connected in any ways. Any idea why is that so? I'm using USB to RS232 cable. Is the cable having problem?

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Motor control
« Reply #16 on: October 04, 2010, 04:10:00 AM »
Is your program writing out of the same COMM port that you use for communication? i.e. DId you execute any statement such as PRINT, OUTCOMM, READMODBUS, WRITEMODBUS etc?
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

can

  • Full Member
  • Posts: 160
  • I'm a llama!
    • View Profile
Re:Motor control
« Reply #17 on: October 04, 2010, 07:57:01 AM »
Hi. It's just a simple program to try out setdac. There's only a custom function for setdac. Everytime I activate the controller without any connection to 888, the TL server just fails to connect to 888. It's a servo motor controller btw. Will posting the manual help?

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Motor control
« Reply #18 on: October 04, 2010, 05:15:10 PM »
Is the motor running? Can you run the motor controller but do not connect the motor and what is the result? If only when motor is running then communication is affected, it is quite clear the the motor controller high current PWM signal is affecting communication between the PLC and the PC.

You need to consult your motor manual on proper wiring and installation of transient snubber to absorb the PWM noise. Make sure that you do not bundle the communication cable with the cables that current the motor current. This is very important.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

can

  • Full Member
  • Posts: 160
  • I'm a llama!
    • View Profile
Re:Motor control
« Reply #19 on: October 04, 2010, 06:51:29 PM »
Hi. Will check it out. Will using 485 to communicate be better?

can

  • Full Member
  • Posts: 160
  • I'm a llama!
    • View Profile
Re:Motor control
« Reply #20 on: October 09, 2010, 05:37:23 AM »
Hi. Is there noise filter built into the 888? Or can I just add any off the shelf noise filter between the power supply and the plc? Any specifications that I can use? Any CE certification? Any EMI filter?

Or should I just change a usb to rs232 cable to try again? Will RS485 work better than rs232?

Regards
Ken
« Last Edit: October 09, 2010, 06:51:11 AM by can »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Motor control
« Reply #21 on: October 09, 2010, 06:53:51 AM »
You said that the motor controller is not connected to the PLC (i.e. isolated) and they use different power supply, but when the motor runs the PLC's communication is affected. That appears to be electrical noise generated by the motor and coupled to the PLC by air. Did you implement any kind of electrical transient absorber recommended by the motor manufacturer? Transient absorption  is very important because without it your motor life can be severely shortened and your equipment will be an interference source that will fail all telecom authority requirements such as those stipulated by FCC. Also the noise could lead to false triggering of sensor etc so it must be addressed.

You can add AC noise filter at the AC side of the power supply for the PLC. But if the interference is coupled through the air it is not going to help. The root of the problem is that the motor is producing such high level of electrical noise it is affecting serial communication.

P/S - Did you try RS485 as per your previous post? You need shielded (connect shield to ground) twisted pair two wire cable between the PC and PLC to reduce common mode noise but it does not mean it is immune to electrical noise. Even if it works better you should not considered the problem-solved as the root of your problem is still not addressed.

Email: support@triplc.com
Tel: 1-877-TRI-PLCS

can

  • Full Member
  • Posts: 160
  • I'm a llama!
    • View Profile
Re:Motor control
« Reply #22 on: October 15, 2010, 02:13:33 AM »
Hi. I've yet to try using rs485. I've installed a 100amp noise filter between the power inlet and the motor controller. At 0 rpm with holding torque, the time on monitor screen is not updated per second. However, when the servo motor is running, the time on the monitor screen is updated every second. Any idea what is happening and how to solve the problem? Thanks.  

can

  • Full Member
  • Posts: 160
  • I'm a llama!
    • View Profile
Re:Motor control
« Reply #23 on: October 18, 2010, 08:05:14 AM »
Hi. After many trial and errors, I've finally found the source of the problem. It seems that the USB to 232 converter is the problem. The problem disappears as soon as I operate my laptop on battery or use a desktop with a RS232 port for communication.

Thank you for all the help.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Motor control
« Reply #24 on: October 18, 2010, 08:10:23 AM »
Good to know. Thank you for your update. Did you try a different USB-to-RS232 converter or the U-485 adapter (which is USB to RS485 directly)? It appears that the electronics inside your USB to RS232 converter is spooked by the noise from the motor, or it could just be a slightly faulty converter that is near the limit of not operating and any slight disturbance from the electrical noise cause the comm to break down immediately.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

garysdickinson

  • Hero Member
  • Posts: 502
  • Old PLC Coder
    • View Profile
Re:Motor control GND Issues
« Reply #25 on: October 18, 2010, 11:50:40 AM »
Good to hear that you are making progress on your noise problems.

Another thing you should consider is electrical grounding.  

If your system operates "correctly" when you laptop is running off batteries but "fails" when plugged into an AC outlet, then it sounds like you have an grounding issue.

When your laptop is connected to a grounded AC outlet, I suspect that you may be getting excessive current flowing through the RS-232 Signal GND.  This current then flows through the PC's AC cord. When you computer is disconnected from the AC outlet, this breaks the current path.

Plug your laptop into the AC outlet and disconnect the RS-232 cable at the PLC .  Use a DVM and measure the voltage  difference between the RS-232 Signal GND (pin #5 on the DB-9 connector) on the cable and and at the PLC socket.  

If you measure more than a few millivollts AC or DC then you have a grounding problem.  This grounding problem can result in communication issues with RS-232 signaling.  I have personally seen RS-232 cables melt as a result of AC grounding problems.

If you have an issue, you need to fix it.  Ensure that your PLC, power supplies and servo controller grounds are bonded together at a single point.  Use big fat wires to minimize voltage drops.

The AC protective ground (3rd pin on the plug) should be connected to this single point.  Any exposed metal in your system should also be tied to the protective ground (electrical safety issue).

Ensure that the everything that plugs into AC power is at the same ground potential. You may want to plug everything into a single plug strip.

Good Luck,

Gary D.



 

« Last Edit: October 18, 2010, 11:37:58 PM by garysdickinson »

can

  • Full Member
  • Posts: 160
  • I'm a llama!
    • View Profile
Re:Motor control
« Reply #26 on: January 07, 2011, 07:48:39 AM »
Hi. I've connected big fat wire to a single point from all drivers and power putlet but I'm still getting the problem. Any place to ground the PLC? I've only grounded the power supply. There's only +v and -v from power supply to PLC. I'm currently using power from a generator to test. Any help?

can

  • Full Member
  • Posts: 160
  • I'm a llama!
    • View Profile
Re:Motor control
« Reply #27 on: January 10, 2011, 06:44:47 AM »
Hi. In case there's some lost soul out there who are like me looking for answers, you can try grounding the 9 pin port of the plc connector. I did that and problem solved. I was making my own wire or 2,3,4,5 but no grounding of the 9pin port. Though pin 5 is supposed to be ground, it's not working somehow. Thanks for all the kind soul who have helped one way or another.

Good luck.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:Motor control
« Reply #28 on: January 10, 2011, 08:07:56 AM »
While it is good hear that have resolved the problem, we are a bit puzzled to learn about that, since pin 9 of the RS232 connector on the T100MD PLC is a NC (no connection).  So whether you ground pin 9 on the PLC side should not have any effect.

However, on the PC side pin 9 may be connected to the casing of the RS232 port, which is in turn connected to the shield of the RS232 cable.  By connecting pin 9 to ground you are grounding the shield on one-end which can provide an effective shield against EMI.  I don't know if that make sense but your previous post seems to suggest that the motor noise is what causes the RS232 communication to fail and if so then perhaps it is the shielding that is helping with the communication.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

can

  • Full Member
  • Posts: 160
  • I'm a llama!
    • View Profile
Re:Motor control
« Reply #29 on: January 10, 2011, 10:18:50 AM »
Hi. Sorry I did not make myself clear. I did not start off with a standard off the shelf wire. I made the wire by just soldering wire to pin 2,3,4,5 of the RS232. It works fine for communication for past projects until the recent one that involves inverters and servos. After grounding the plug today, all is well so far.