⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clarke2.comp

📁 CNC 的开放码,EMC2 V2.2.8版
💻 COMP
字号:
component clarke2 "Two input version of Clarke transform";description """The Clarke transform can be used to translate a vectorquantity from a three phase system (three components 120 degreesapart) to a two phase Cartesian system.\n.P\n\\fBclarke2\\fR implementsa special case of the Clarke transform, which only needs two of thethree input phases.  In a three wire three phase system, the sum of thethree phase currents or voltages must always be zero.  As a result onlytwo of the three are needed to completely define the current or voltage.\\fBclarke2\\fR assumes that the sum is zero, so it only uses phases A andB of the input.  Since the H (homopolar) output will always be zero inthis case, it is not generated.""";see_also """\\fBclarke3\\fR for the general case, \\fBclarkeinv\\fR forthe inverse transform.""";pin in float a;pin in float b "first two phases of three phase input";pin out float x;pin out float y "cartesian components of output";function _;license "GPL";;;/* for the details, google "clarke transform", or see section 3 of   http://focus.ti.com/lit/an/bpra048/bpra048.pdf and/or appendix B of   http://www.esat.kuleuven.be/electa/publications/fulltexts/pub_1610.pdf*/#define K1 (0.577350269189626)  /* 1/sqrt(3) */#define K2 (1.154700538379250)  /* 2/sqrt(3) */FUNCTION(_) {    x = a;    y = K1*a + K2*b;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -