haurykjo,
The problem of eliminating the shocking static electric discharges you are experiencing will probably be addressed with the copper wire running along and around the PVC piping and having continuity to ground, either via the frame of the various machines, as suggested by bababrown, or at the relay enclosure.
As for dust build up in the cyclone at the inlet ramp, I suspect that static charge is probably the force holding fine dust to the cyclone body. But this is a guess. Moisture can also act as “glue” as well.
I am not sure you are really interested so the following is probably more in the “for what it’s worth category”:
Static electricity is a mysterious phenomenon, at least to me, and I am by no means an expert. I did do a little research including reading the web site of Dr. Rodney Cole at MIT, who wrote authoritatively and at length on PVC pipe and static electricity and discharges. Unfortunately, his web site, referenced earlier in this thread, has been deleted by his Internet Service Provider. However, I found his work at:
http://www.woodcentral.com/articles/shop/articles_221.shtml
From what I recall Dr. Cole argued that static charge is generated by dust and air colliding as it moves down the pipe, dislodging electrons. Since PVC is an insulator, these free electrons have nowhere to go and congregate on the PVC pipe and remain in the air stream, unless enough electrons build up and discharge (e.g. a shock or spark). He concluded that the only way to dissipate the static charge on PVC is wrapping the entire surface of the PVC pipe, inside and out with a grounded conductive material. He suggested foil on the outside of the entire pipe which is wired to ground. However, he had no recommendations for dissipating static charge inside the pipe. He did argue that a single grounded copper wire wrapped around a pipe only dissipates a small amount of static charge, leaving most of the charge unabated.
On Bill Pentz’s web site where he addresses static electricity for dust collection, he recounted the efforts of Brent Dugan to deal with static charge on the inside of dust collection pipe. Mr. Dugan installed 2” wide metal foil tape the inside and outside the pipe that was then taken to ground. Mr. Dugan reported satisfactory results after installing the foil tape inside the pipe.
http://billpentz.com/woodworking/cyclone/ducting.cfm#static_electricity
I followed Mr. Dugan’s procedure and installed 4” foil tape on the inside and outside of the pipe and fittings on opposite sides (2 continuous strips), which was then grounded. I have observed no static discharges and little dust seems attracted to the outside of the pipes. Since my CV1800 cyclone body is inside an enclosure, I cannot say whether I have a dust coating on the intake ramp. However, the inside of the inlet where the PVC enters the cyclone looks to be free of dust. In any event, I can say that it was quite a chore to install about 750 feet of foil tape on 60 feet of pipe during a new install and something I am reluctant recommend to you since it would be a major effort required for pipe already in place.
Like I said, for what it is worth.