[$group] 元件库-执行器.$pname$ [$min_need_ver] 1.23 [$name] duoji_ctrl_set180 [$shared_func_In_main_c] [$cs] inset_$rnd_varname_pre$=[($_xgm$datjiaodu),type=num]; if(inset_$rnd_varname_pre$<=0){ inset_$rnd_varname_pre$=0; } if(inset_$rnd_varname_pre$>=180){ inset_$rnd_varname_pre$=180; } pul_width_10us_$rnd_varname_pre$= (u8)( (((float)inset_$rnd_varname_pre$-90.00)/90.00)*100.00 + 150.00 )/2 ; //中位90度时 =16*100us=约为1.5ms pwn_t2_$rnd_varname_pre$=200 - 2*(u8)(pul_width_10us_$rnd_varname_pre$/10);//2000*10us=20ms [$toolbox_block_code] [$last_ver_update_time] 2022/12/10 0:07:26 [$code_area_type] codes,exe_per_1ms,init_code [$blocks_type] line [$replace_map] $_xgm$dev_no_to_use = $field$dev_no_to_use,mytype|num, ptype|TIMES $_xgm$datjiaodu = $value$datjiaodu,mytype|num, ptype|TIMES