CLARKE3(9)

πŸ“¦
version 2.9.4 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

okay so bestie, welcome to clarke3 β€” it's the Clarke transform, aka the glow-up that turns 3 phase into cartesian. the manual calls it a "Clarke (3 phase to cartesian) transform" and honestly? iconic. πŸ‘‘

it lives in the 9 section of the LinuxCNC docs and it's a HAL Component, so you load it like a real one. πŸŽ€


✨ SYNOPSIS ✨

loadrt clarke3 [count=N|names=name1[,name2...]]

that's the whole vibe. loadrt, name it, and optionally tell it how many copies you want with count=N or name them individually with names=name1[,name2...]. pick your fighter. πŸ’…


🌸 DESCRIPTION 🌸

so the Clarke transform's whole thing is translating a vector quantity from a three phase system (three components sitting 120 degrees apart, the classic trio) over into a two phase Cartesian system. and if your three phases don't sum to zero? you also get a homopolar component riding along, so that's three outputs, not two. surprise bonus output, she's generous. πŸ¦‹

clarke3 implements the general case of the transform β€” the full version, using all three phases, no skipping. main character energy fr fr.

but wait, bestie: if your three phases are known to sum to zero, don't bother with this one β€” go see clarke2 for the simpler version. iykyk. πŸ’€

πŸ”₯ FUNCTIONS πŸ”₯

  • clarke3.N β€” requires a floating-point thread. no float thread, no function. periodt. ✨

πŸŽ€ PINS πŸŽ€

  • clarke3.N.a float in β€” three phase input vector
  • clarke3.N.b float in β€” three phase input vector
  • clarke3.N.c float in β€” three phase input vector
  • clarke3.N.x float out β€” cartesian components of output
  • clarke3.N.y float out β€” cartesian components of output
  • clarke3.N.h float out β€” homopolar component of output

so a, b, c are your three phase inputs (the trio, 120 degrees apart, you know the drill), x and y come out as the cartesian components of the output, and h is the homopolar component of the output. in goes the phase squad, out comes the cartesian. slay. 🌈


πŸ’œ SEE ALSO πŸ’œ

  • clarke2(9) β€” for the a+b+c=0 case, the simpler one
  • clarkeinv(9) β€” for the inverse transform, if you wanna go backwards

πŸ‘‘ AUTHOR πŸ‘‘

John Kasunich


πŸ“œ LICENSE πŸ“œ

GPL


and that's the whole page, bestie!! 🫢 this lil doc is part of the LinuxCNC Documentation, dated 2026-03-17, and you found it in the HAL Component corner of the man pages β€” under the name CLARKE3(9), obviously. go forth and transform. πŸ’–βœ¨

πŸ“¦ where this page comes from