[$is_event_jimu] 0 [$group] 数值转换类.数转二进制引脚 [$group_e] IO事件库 [$last_ver_update_time] 2021-04-03 [$min_need_ver] 1.23 [$p_list] [$short_show_UIname] [$code_area_type] codes,exe_per_1ms,init_code [$blocks_type] line [$name] 二进制转10 [$thread_do] [$cs] [$cs_sim] [$function_ref_define_in_headfile] void convert10to2pins_calc_$rnd_varname_pre$(int inputv1); [$init_code_for_define_area] void convert10to2pins_calc_$rnd_varname_pre$(int inputv1){ if((inputv1&0x80)>0){ IO_Write([($_xgm$pin7),type=pin] ,1); }else{ IO_Write([($_xgm$pin7),type=pin] ,0); } if((inputv1&0x40)>0){ IO_Write([($_xgm$pin6),type=pin] ,1); }else{ IO_Write([($_xgm$pin6),type=pin] ,0); } if((inputv1&0x20)>0){ IO_Write([($_xgm$pin5),type=pin] ,1); }else{ IO_Write([($_xgm$pin5),type=pin] ,0); } if((inputv1&0x10)>0){ IO_Write([($_xgm$pin4),type=pin] ,1); }else{ IO_Write([($_xgm$pin4),type=pin] ,0); } if((inputv1&0x08)>0){ IO_Write([($_xgm$pin3),type=pin] ,1); }else{ IO_Write([($_xgm$pin3),type=pin] ,0); } if((inputv1&0x04)>0){ IO_Write([($_xgm$pin2),type=pin] ,1); }else{ IO_Write([($_xgm$pin2),type=pin] ,0); } if((inputv1&0x02)>0){ IO_Write([($_xgm$pin1),type=pin] ,1); }else{ IO_Write([($_xgm$pin1),type=pin] ,0); } if((inputv1&0x01)>0){ IO_Write([($_xgm$pin0),type=pin] ,1); }else{ IO_Write([($_xgm$pin0),type=pin] ,0); } } [$init_code_for_define_area_sim] [$init_code_for_init_val] #get_P口_to_PxM1_PxM0_set_code(group_xml,rand1,block_name,ref_complier,extinfo,"[($_xgm$pin7),type=pin]","1","pin7")% #get_P口_to_PxM1_PxM0_set_code(group_xml,rand1,block_name,ref_complier,extinfo,"[($_xgm$pin6),type=pin]","1","pin6")% #get_P口_to_PxM1_PxM0_set_code(group_xml,rand1,block_name,ref_complier,extinfo,"[($_xgm$pin5),type=pin]","1","pin5")% #get_P口_to_PxM1_PxM0_set_code(group_xml,rand1,block_name,ref_complier,extinfo,"[($_xgm$pin4),type=pin]","1","pin4")% #get_P口_to_PxM1_PxM0_set_code(group_xml,rand1,block_name,ref_complier,extinfo,"[($_xgm$pin3),type=pin]","1","pin3")% #get_P口_to_PxM1_PxM0_set_code(group_xml,rand1,block_name,ref_complier,extinfo,"[($_xgm$pin2),type=pin]","1","pin2")% #get_P口_to_PxM1_PxM0_set_code(group_xml,rand1,block_name,ref_complier,extinfo,"[($_xgm$pin1),type=pin]","1","pin1")% #get_P口_to_PxM1_PxM0_set_code(group_xml,rand1,block_name,ref_complier,extinfo,"[($_xgm$pin0),type=pin]","1","pin0")% [$init_code_for_init_val_sim] [$timer0_1ms_code] [$toolbox_block_code] [$replace_map] $_xgm$pin7 = $field$pin7,mytype|pin, ptype|TIMES $_xgm$pin6 = $field$pin6,mytype|pin, ptype|TIMES $_xgm$pin5 = $field$pin5,mytype|pin, ptype|TIMES $_xgm$pin4 = $field$pin4,mytype|pin, ptype|TIMES $_xgm$pin3 = $field$pin3,mytype|pin, ptype|TIMES $_xgm$pin2 = $field$pin2,mytype|pin, ptype|TIMES $_xgm$pin1 = $field$pin1,mytype|pin, ptype|TIMES $_xgm$pin0 = $field$pin0,mytype|pin, ptype|TIMES