📄 step_motor.fit.eqn
字号:
--C1L02 is lpm_counter:d_ff_rtl_0|dffs[4]~188 at LC15
C1L02_p1_out = C1L2 & comp[11] & !C1_dffs[11];
C1L02_p2_out = C1L2 & !A1L37 & comp[10] & !C1_dffs[10];
C1L02 = C1L02_p1_out # C1L02_p2_out;
--C1L22 is lpm_counter:d_ff_rtl_0|dffs[5]~191 at LC11
C1L22_p1_out = C1L3 & comp[11] & !C1_dffs[11];
C1L22_p2_out = C1L3 & !A1L37 & comp[10] & !C1_dffs[10];
C1L22 = C1L22_p1_out # C1L22_p2_out;
--A1L71 is comp[0]~1165 at LC19
A1L71_p0_out = !speed[1] & !speed[0] & comp[0] & A1L21;
A1L71_p1_out = !comp[1] & !speed[1] & !comp[10] & !comp[9] & !comp[5] & !comp[4] & !comp[3] & speed[0] & !comp[11] & !comp[8] & !comp[2] & !comp[7] & !comp[6] & comp[0];
A1L71_p2_out = speed[1] & !speed[0] & !comp[11] & !comp[0];
A1L71_p3_out = speed[1] & !comp[10] & !comp[9] & !comp[5] & !comp[4] & !comp[3] & !speed[0] & !comp[2] & !comp[0];
A1L71_p4_out = speed[1] & speed[0] & comp[0] & A1L21;
A1L71 = A1L71_p0_out # A1L71_p1_out # A1L71_p2_out # A1L71_p3_out # A1L71_p4_out;
--C1L42 is lpm_counter:d_ff_rtl_0|dffs[6]~194 at LC1
C1L42_p1_out = C1L4 & comp[11] & !C1_dffs[11];
C1L42_p2_out = C1L4 & !A1L37 & comp[10] & !C1_dffs[10];
C1L42 = C1L42_p1_out # C1L42_p2_out;
--C1L62 is lpm_counter:d_ff_rtl_0|dffs[7]~197 at LC49
C1L62_p1_out = C1L5 & comp[11] & !C1_dffs[11];
C1L62_p2_out = C1L5 & !A1L37 & comp[10] & !C1_dffs[10];
C1L62 = C1L62_p1_out # C1L62_p2_out;
--C1L82 is lpm_counter:d_ff_rtl_0|dffs[8]~200 at LC51
C1L82_p1_out = C1L6 & comp[11] & !C1_dffs[11];
C1L82_p2_out = C1L6 & !A1L37 & comp[10] & !C1_dffs[10];
C1L82 = C1L82_p1_out # C1L82_p2_out;
--A1L52 is comp[1]~1171 at LC45
A1L52_p1_out = speed[0] & speed[1] & !comp[11] & !comp[5] & !comp[4] & !comp[3] & !comp[2] & !comp[8] & !comp[10] & !comp[9] & !comp[7] & !comp[6];
A1L52_p2_out = !speed[0] & speed[1] & !comp[11] & !comp[1] & comp[0];
A1L52 = A1L52_p1_out # A1L52_p2_out;
--A1L62 is comp[1]~1174 at LC46
A1L62_p0_out = !speed[0] & !comp[1] & speed[1] & comp[0] & !comp[10] & !comp[9] & A1L12;
A1L62_p1_out = !speed[0] & !comp[1] & speed[1] & comp[0] & !comp[5] & !comp[4] & !comp[3] & !comp[2] & !comp[10] & !comp[9];
A1L62_p2_out = speed[0] & comp[1] & speed[1];
A1L62_p3_out = speed[0] & !comp[1] & !speed[1] & !comp[0] & A1L91;
A1L62_p4_out = !speed[0] & comp[1] & A1L02 & comp[11] & comp[8] & comp[7] & comp[6];
A1L62 = A1L52 # A1L62_p0_out # A1L62_p1_out # A1L62_p2_out # A1L62_p3_out # A1L62_p4_out;
--C1L03 is lpm_counter:d_ff_rtl_0|dffs[9]~203 at LC53
C1L03_p1_out = C1L7 & comp[11] & !C1_dffs[11];
C1L03_p2_out = C1L7 & !A1L37 & comp[10] & !C1_dffs[10];
C1L03 = C1L03_p1_out # C1L03_p2_out;
--C1L23 is lpm_counter:d_ff_rtl_0|dffs[10]~206 at LC55
C1L23_p1_out = C1L8 & comp[11] & !C1_dffs[11];
C1L23_p2_out = C1L8 & !A1L37 & comp[10] & !C1_dffs[10];
C1L23 = C1L23_p1_out # C1L23_p2_out;
--A1L92 is comp[2]~1180 at LC17
A1L92_p1_out = !comp[5] & !comp[4] & !comp[3] & comp[1] & comp[0] & speed[1] & !comp[10] & !comp[9] & !speed[0] & !comp[2];
A1L92_p2_out = !comp[1] & !comp[0] & !speed[1] & speed[0] & A1L82;
A1L92_p3_out = comp[1] & comp[0] & speed[1] & !comp[10] & !comp[9] & !speed[0] & !comp[2] & A1L51;
A1L92 = A1L92_p1_out # A1L92_p2_out # A1L92_p3_out;
--C1L43 is lpm_counter:d_ff_rtl_0|dffs[11]~209 at LC57
C1L43_p1_out = C1L9 & comp[11] & !C1_dffs[11];
C1L43_p2_out = C1L9 & !A1L37 & comp[10] & !C1_dffs[10];
C1L43 = C1L43_p1_out # C1L43_p2_out;
--A1L13 is comp[3]~1184 at LC42
A1L13_p1_out = !comp[5] & !comp[4] & !comp[8] & !comp[7] & !comp[6] & !comp[10] & !comp[11] & !comp[9] & !comp[3] & speed[0];
A1L13_p2_out = comp[8] & comp[7] & comp[6] & comp[11] & !speed[0];
A1L13_p3_out = comp[10] & comp[11] & !speed[0];
A1L13 = A1L13_p1_out # A1L13_p2_out # A1L13_p3_out;
--A1L23 is comp[3]~1188 at LC43
A1L23_p0_out = speed[0] & comp[1];
A1L23_p1_out = comp[11] & comp[9] & !speed[0];
A1L23_p2_out = !speed[0] & !comp[2];
A1L23_p3_out = speed[0] & comp[2];
A1L23_p4_out = !speed[0] & !comp[1];
A1L23 = A1L13 # A1L23_p0_out # A1L23_p1_out # A1L23_p2_out # A1L23_p3_out # A1L23_p4_out;
--A1L43 is comp[4]~1194 at LC39
A1L43_p1_out = comp[11] & speed[0] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1];
A1L43_p2_out = speed[0] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1] & comp[5];
A1L43_p3_out = speed[0] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1] & comp[8];
A1L43 = A1L43_p1_out # A1L43_p2_out # A1L43_p3_out;
--A1L53 is comp[4]~1198 at LC40
A1L53_p0_out = !speed[0] & comp[3] & comp[2] & comp[1] & comp[0] & speed[1] & !comp[11];
A1L53_p1_out = comp[10] & speed[0] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1];
A1L53_p2_out = speed[0] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1] & comp[9];
A1L53_p3_out = speed[0] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1] & comp[7];
A1L53_p4_out = speed[0] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1] & comp[6];
A1L53 = A1L43 # A1L53_p0_out # A1L53_p1_out # A1L53_p2_out # A1L53_p3_out # A1L53_p4_out;
--A1L73 is comp[5]~1204 at LC33
A1L73_p1_out = comp[11] & speed[0] & !comp[4] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1];
A1L73_p2_out = speed[0] & !comp[4] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1] & comp[8];
A1L73 = A1L73_p1_out # A1L73_p2_out;
--A1L83 is comp[5]~1207 at LC34
A1L83_p0_out = !speed[0] & comp[4] & comp[3] & comp[2] & comp[1] & comp[0] & speed[1] & !comp[11];
A1L83_p1_out = comp[10] & speed[0] & !comp[4] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1];
A1L83_p2_out = speed[0] & !comp[4] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1] & comp[9];
A1L83_p3_out = speed[0] & !comp[4] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1] & comp[7];
A1L83_p4_out = speed[0] & !comp[4] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1] & comp[6];
A1L83 = A1L73 # A1L83_p0_out # A1L83_p1_out # A1L83_p2_out # A1L83_p3_out # A1L83_p4_out;
--A1L04 is comp[6]~1213 at LC81
A1L04_p1_out = !comp[10] & !comp[9] & !comp[6] & !speed[0] & comp[5] & comp[4] & comp[3] & comp[2] & comp[1] & comp[0] & speed[1];
A1L04 = A1L04_p1_out;
--A1L14 is comp[6]~1215 at LC82
A1L14_p0_out = speed[0] & !comp[5] & !comp[4] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1] & comp[7];
A1L14_p1_out = comp[11] & speed[0] & !comp[5] & !comp[4] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1];
A1L14_p2_out = speed[0] & !comp[5] & !comp[4] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1] & comp[8];
A1L14_p3_out = speed[0] & !comp[5] & !comp[4] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1] & comp[10];
A1L14_p4_out = speed[0] & !comp[5] & !comp[4] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1] & comp[9];
A1L14 = A1L04 # A1L14_p0_out # A1L14_p1_out # A1L14_p2_out # A1L14_p3_out # A1L14_p4_out;
--A1L34 is comp[7]~1221 at LC95
A1L34_p1_out = !comp[10] & !comp[9] & !comp[7] & !speed[0] & comp[6] & comp[5] & comp[4] & comp[3] & comp[2] & comp[1] & comp[0] & speed[1];
A1L34_p2_out = speed[0] & !comp[6] & !comp[5] & !comp[4] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1] & comp[11];
A1L34_p3_out = speed[0] & !comp[6] & !comp[5] & !comp[4] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1] & comp[8];
A1L34_p4_out = comp[10] & speed[0] & !comp[6] & !comp[5] & !comp[4] & !comp[3] & !comp[2] & !comp[1] & !comp[0] & !speed[1];
A1L34 = A1L34_p1_out # A1L34_p2_out # A1L34_p3_out # A1L34_p4_out;
--A1L74 is comp[8]~1226 at LC84
A1L74_p1_out = comp[8] & !comp[5] & comp[4];
A1L74_p2_out = comp[8] & !comp[4] & comp[3];
A1L74_p3_out = comp[8] & !comp[3] & comp[2];
A1L74_p4_out = comp[8] & !comp[2] & comp[1];
A1L74 = A1L74_p1_out # A1L74_p2_out # A1L74_p3_out # A1L74_p4_out;
--A1L84 is comp[8]~1231 at LC85
A1L84_p0_out = !comp[8] & comp[1] & comp[0] & comp[7] & !speed[0] & comp[6] & comp[5] & comp[4] & comp[3] & comp[2] & speed[1] & !comp[10] & !comp[9];
A1L84_p1_out = comp[8] & !comp[1] & comp[0];
A1L84_p2_out = comp[8] & !comp[0] & comp[7];
A1L84_p3_out = comp[8] & speed[0] & comp[6];
A1L84_p4_out = !comp[8] & comp[1] & comp[0] & comp[7] & !speed[0] & comp[6] & comp[5] & comp[4] & comp[3] & comp[2] & !comp[11] & speed[1];
A1L84 = A1L74 # A1L84_p0_out # A1L84_p1_out # A1L84_p2_out # A1L84_p3_out # A1L84_p4_out;
--A1L35 is comp[9]~1237 at LC90
A1L35_p1_out = comp[9] & !comp[6] & comp[5];
A1L35_p2_out = comp[9] & !comp[5] & comp[4];
A1L35_p3_out = comp[9] & !comp[4] & comp[3];
A1L35 = A1L35_p1_out # A1L35_p2_out # A1L35_p3_out;
--A1L45 is comp[9]~1241 at LC91
A1L45_p0_out = !comp[9] & comp[3] & comp[2] & comp[1] & comp[0] & !speed[0] & comp[6] & comp[8] & comp[7] & comp[5] & comp[4] & !comp[11] & speed[1];
A1L45_p1_out = comp[9] & !comp[3] & comp[2];
A1L45_p2_out = comp[9] & !comp[2] & comp[1];
A1L45_p3_out = comp[9] & !comp[1] & comp[0];
A1L45_p4_out = comp[9] & speed[0] & comp[6];
A1L45 = A1L35 # A1L45_p0_out # A1L45_p1_out # A1L45_p2_out # A1L45_p3_out # A1L45_p4_out;
--A1L85 is comp[10]~1247 at LC87
A1L85_p1_out = comp[10] & !comp[6] & comp[5];
A1L85_p2_out = comp[10] & !comp[5] & comp[4];
A1L85_p3_out = comp[10] & !comp[4] & comp[3];
A1L85 = A1L85_p1_out # A1L85_p2_out # A1L85_p3_out;
--A1L95 is comp[10]~1251 at LC88
A1L95_p0_out = !comp[10] & comp[3] & comp[2] & comp[1] & comp[0] & !speed[0] & comp[6] & comp[9] & comp[8] & comp[7] & comp[5] & comp[4] & !comp[11] & speed[1];
A1L95_p1_out = comp[10] & !comp[3] & comp[2];
A1L95_p2_out = comp[10] & !comp[2] & comp[1];
A1L95_p3_out = comp[10] & !comp[1] & comp[0];
A1L95_p4_out = comp[10] & speed[0] & comp[6];
A1L95 = A1L85 # A1L95_p0_out # A1L95_p1_out # A1L95_p2_out # A1L95_p3_out # A1L95_p4_out;
--A1L4 is clk_scan~10 at LC3
A1L4_p1_out = comp[11] & !C1_dffs[11];
A1L4_p2_out = !A1L37 & comp[10] & !C1_dffs[10];
A1L4 = A1L4_p1_out # A1L4_p2_out;
--A1L96 is ind_coil[2]~466 at LC67
A1L96_p1_out = ind_coil[1] & ind_coil[3] & PHASE;
A1L96 = A1L96_p1_out;
--A1L76 is ind_coil[1]~468 at LC69
A1L76_p1_out = ind_coil[0] & !DIRECTION & ind_coil[1];
A1L76 = A1L76_p1_out;
--A1L17 is LessThan~836sexp at SEXP13
A1L17 = EXP(comp[11] & !C1_dffs[11]);
--A1L27 is LessThan~838sexp at SEXP11
A1L27 = EXP(comp[10] & !C1_dffs[10]);
--A1L47 is LessThan~844sexp at SEXP7
A1L47 = EXP(comp[9] & !C1_dffs[9]);
--A1L67 is LessThan~850sexp at SEXP5
A1L67 = EXP(comp[8] & !C1_dffs[8]);
--A1L87 is LessThan~856sexp at SEXP3
A1L87 = EXP(comp[7] & !C1_dffs[7]);
--A1L08 is LessThan~862sexp at SEXP1
A1L08 = EXP(comp[6] & !C1_dffs[6]);
--f is f at PIN_83
--operation mode is input
f = INPUT();
--p is p at PIN_24
--operation mode is input
p = INPUT();
--d is d at PIN_33
--operation mode is input
d = INPUT();
--speed[0] is speed[0] at PIN_52
--operation mode is input
speed[0] = INPUT();
--speed[1] is speed[1] at PIN_81
--operation mode is input
speed[1] = INPUT();
--coil[3] is coil[3] at PIN_61
--operation mode is output
coil[3] = OUTPUT(t[3]);
--coil[2] is coil[2] at PIN_49
--operation mode is output
coil[2] = OUTPUT(t[2]);
--coil[1] is coil[1] at PIN_48
--operation mode is output
coil[1] = OUTPUT(t[1]);
--coil[0] is coil[0] at PIN_44
--operation mode is output
coil[0] = OUTPUT(t[0]);
--A1L81 is comp[0]~1257 at SEXP33
A1L81 = EXP(!comp[10] & !comp[9]);
--A1L91 is comp[0]~1258 at SEXP36
A1L91 = EXP(!comp[11] & !comp[5] & !comp[4] & !comp[3] & !comp[2] & !comp[8] & !comp[10] & !comp[9] & !comp[7] & !comp[6]);
--A1L02 is comp[0]~1259 at SEXP37
A1L02 = EXP(!comp[5] & !comp[4] & !comp[3] & !comp[2]);
--A1L12 is comp[0]~1260 at SEXP38
A1L12 = EXP(comp[8] & comp[7] & comp[6]);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -