|
|
发表于 2016-9-4 23:57:31
|
显示全部楼层
来自: 中国上海
本帖最后由 lucklyday 于 2016-9-4 23:59 编辑
" [/ \, W9 H* a5 z- Y2 B5 Q. [( q p" S) F$ `
@张文汽车,大大再来指导下,怎么让他联动时只输出一次哦
* O* q2 ~! y0 m% p) s#2 a) \: b- {$ {6 T: y. v8 A V
global mom_out_angle_pos mom_prev_out_angle_pos! d+ V; p( L. s6 G' v
global unclamp_b_flag
+ n. {2 p+ {$ ]6 I# u$ v% \global first_clamp_flag
% p) [ R4 x T" a3 F( Z
1 i) T+ N) y6 f. a: `5 @" _& Q$ G, a, x* e4 q% a H
if { $first_clamp_flag == "TRUE" } { J# W" r* W7 Y' E' d* W4 Q
MOM_output_literal "M11"
$ x3 k/ V" @5 X* v& ? set unclamp_b_flag "TRUE"
4 K0 Z U9 W4 A- c+ t set first_clamp_flag "FLASE"% n/ Y# ?+ W1 V$ ]& `) t" L+ h$ g
! N4 q8 E/ ^) q
} elseif {[info exists mom_out_angle_pos ] && [info exists mom_prev_out_angle_pos ] } {
, u/ F2 a2 m7 C if { $mom_out_angle_pos(0) != $mom_prev_out_angle_pos(0)} {3 V8 {" w, N w8 u
MOM_output_literal "M11"1 _; ]* E8 d3 o b; e, C; ]7 l2 L' u
set unclamp_b_flag "TRUE"
% ]6 H, z H8 Q( {1 p, o$ \4 E) V }
6 g8 j+ ] ?% R% r' r}
' L. t F% L6 X& @ E! c7 @
+ @- Q5 _# ?# H8 ?
7 f* Z1 G5 s0 |4 jglobal unclamp_b_flag
8 z# l0 P" \9 G7 I( n0 D* g, H! Y8 j3 D8 v$ U7 K, s
if { [info exists unclamp_b_flag ] && $unclamp_b_flag == "TRUE"} {& @( U" o/ W( W6 n
MOM_output_literal "M10"/ Y6 m0 B3 M- v( j
set unclamp_b_flag "FALSE"
" q R6 w. n- t0 c) L& K& p8 A/ e) m}* t1 Z8 j$ z* |1 h' t; R! s# }
|
|