/* */ /* ' ########################################################### ' ドライブチェーン選定計算用JS ' Create 2023.04.04 Kimura ' Modyfy ----.--.-- -------- ' ########################################################### */ /*——————————————————————————————————————————————————————————— グローバル変数の宣言 ————————————————————————————————————————————————————————————*/ //問い合わせリンク var inq_link = "" var sMailAddr = "engineering-sales@gr.tsubakimoto.co.jp" var sMailSubj ="[INQUIRY] Tsubaki online Technical Support Desk" var sMailBody sMailBody = "(1)" + "Your Information (*required)" + "%0D%0A" sMailBody = sMailBody + " " + "Country" + ":" + "" + "%0D%0A" sMailBody = sMailBody + " " + "Company" + ":" + "" + "%0D%0A" sMailBody = sMailBody + " " + "Name" + ":" + "" + "%0D%0A" + "%0D%0A" sMailBody = sMailBody + "(2)" + "What product are you considering? (*required)" + ":" + "%0D%0A" sMailBody = sMailBody + " " + "Drive Chain" + ":" + "%0D%0A" sMailBody = sMailBody + " " + "Synchronou belt" + ":" + "%0D%0A" + "%0D%0A" sMailBody = sMailBody + "(3)" + "Describe what support you need. Please attach the data as necessary. (*required):" + "%0D%0A" sMailBody = sMailBody + " " + "Ex) Selection, Maintenance Support, Looking for Counter Proposal …etc." + "%0D%0A" sMailBody = sMailBody + " " + "Request for technology selection via Drive Chain & Synchronous Belt Auto Selector" + "%0D%0A" + "%0D%0A" sMailBody = sMailBody + "*" + "Please specify if you do not want to receive any contact and/or services from our local subsidiary." + "%0D%0A" sMailBody = sMailBody + "*" + "If there is no reply within 48 hours, please send message to engineering-sales@gr.tsubakimoto.co.jp directly once again." if("en" == "jp"){ inq_link = "/tecs/sprt/sprt_inquiry.asp?code=10_10&mode=cdccalc" }else{ inq_link = "mailto:" + sMailAddr + "?subject=" + sMailSubj + "&body=" + sMailBody; } /*——————————————————————————————————————————————————————————— 初期処理 ————————————————————————————————————————————————————————————*/ function debug_onload(){ $("#area_st3").fadeIn(); $("#area_st4").fadeIn(); $("body,html").animate({scrollTop:$("#area_st4").offset().top - 160}, 100, "swing"); //初期値セット $("#motor_trq").prop("disabled",true); $("#motor_trq").val(""); $("#motor_kw").val("3.7"); $("#motor_maxtrq").val("230"); $("#gaikei_kudo").val("500"); $("#dia_kudo").val(""); $("#kaiten_kudo").val("290"); $("#gaikei_judo").val("500"); $("#dia_judo").val(""); $("#kaiten_judo").val("180"); $("#jiku_kyori").val("1500"); $("#jiku_space").val("2000"); $("#day_time").val("8"); $("#day_teishi").val("2"); /* step4_Y(); */ } /*——————————————————————————————————————————————————————————— 同意画面での動作処理 ————————————————————————————————————————————————————————————*/ $(document).on('change', '#st0', function(e) { if ($("#st0").prop("checked") == true) { $(".link_button01").css("display","block") $(".link_button01_d").css("display","none") }else{ $(".link_button01").css("display","none") $(".link_button01_d").css("display","block") } }); function consent(){ sessionStorage.setItem("consent", "1"); window.location.href = './calc_cdc_tbl.asp'; } function check_consent(){ if(!sessionStorage.getItem('consent') == '1'){ window.location.href = "./calc_cdc_consent.asp"; } } /*——————————————————————————————————————————————————————————— STEP1 ボタン押下時の処理 ————————————————————————————————————————————————————————————*/ function step1_Y(){ Swal.fire({ icon: 'warning', title: 'Detailed technical selection is required. ', html: 'The selected conditions require more detailed selection.

For inquiries, please download the Selection Inquiry Sheet below, describe your selection condition, and attach it to the inquiry form.
(Login to the product information site is required. )
File format
Drive chain PDF
Synchronous belt Excel

', allowOutsideClick : false, //枠外クリックは許可しない allowEscapeKey : false, //escも許可しない confirmButtonText : 'Back ', confirmButtonColor: "#767581", width : '490px', padding : '2rem', }); } function step1_N(){ $("#area_st2").fadeIn(); $("body,html").animate({scrollTop:$("#area_st2").offset().top - 160}, 100, "swing"); $("#area_st3").fadeOut(); $("#area_st4").fadeOut(); $("#area_st5").css("visibility","hidden"); } /*——————————————————————————————————————————————————————————— STEP2での動作処理 ————————————————————————————————————————————————————————————*/ $(document).on('click', '.select', function(e) { }); /*——————————————————————————————————————————————————————————— STEP2 ボタン押下時の処理 ————————————————————————————————————————————————————————————*/ function step2_Y(){ $("#area_st3").fadeIn(); $("body,html").animate({scrollTop:$("#area_st3").offset().top - 160}, 100, "swing"); $("#area_st4").fadeOut(); $("#area_st5").css("visibility","hidden"); } function step2_N(){ Swal.fire({ icon: 'warning', title: 'Detailed technical selection is required. ', html: 'The selected conditions require more detailed selection.

For inquiries, please download the Selection Inquiry Sheet below, describe your selection condition, and attach it to the inquiry form.
(Login to the product information site is required. )
File format
Drive chain PDF
Synchronous belt Excel

', allowOutsideClick : false, //枠外クリックは許可しない allowEscapeKey : false, //escも許可しない confirmButtonText : 'Back ', confirmButtonColor: "#767581", width : '490px', padding : '2rem', }); } /*——————————————————————————————————————————————————————————— STEP3での動作処理 ————————————————————————————————————————————————————————————*/ $(document).on('click', '#select_temp_none', function(e) { $("#select_temp_other_from").prop("disabled",true) $("#select_temp_other_to").prop("disabled",true) $("#select_temp_other_from").val("") $("#select_temp_other_to").val("") }); $(document).on('click', '#select_temp_other', function(e) { $("#select_temp_other_from").prop("disabled",false) $("#select_temp_other_to").prop("disabled",false) }); /*——————————————————————————————————————————————————————————— STEP3 ボタン押下時の処理 ————————————————————————————————————————————————————————————*/ function step3_Y(){ if($("#select_water_high").prop("checked") || ($("#select_water_low").prop("checked") && $("#select_oil_high").prop("checked"))){ $("#area_st4").fadeOut(); Swal.fire({ icon: 'warning', title: 'Detailed selection is required for water and oil conditions in the selected operating environment ', html: 'The selected conditions require more detailed selection.

For inquiries, please download the Selection Inquiry Sheet below, describe your selection condition, and attach it to the inquiry form.
(Login to the product information site is required. )
File format
Drive chain PDF
Synchronous belt Excel

', allowOutsideClick : false, //枠外クリックは許可しない allowEscapeKey : false, //escも許可しない confirmButtonText : 'Back ', confirmButtonColor: "#767581", width : '490px', padding : '2rem', }); }else if($("#select_temp_other").prop("checked")){ if(parseFloat($("#select_temp_other_from").val()) < -30) { Swal.fire({ icon: 'warning', html: 'No drive chain or synchronous belt available for use below -30°C. ', allowOutsideClick : false, //枠外クリックは許可しない allowEscapeKey : false, //escも許可しない confirmButtonText : 'Back ', confirmButtonColor: "#767581", width : '490px', padding : '2rem', }); $("#area_st4").fadeOut(); }else if(250 <= parseFloat($("#select_temp_other_to").val())){ Swal.fire({ icon: 'warning', html: 'No drive chain or synchronous belt available for use above 250°C. ', allowOutsideClick : false, //枠外クリックは許可しない allowEscapeKey : false, //escも許可しない confirmButtonText : 'Back ', confirmButtonColor: "#767581", width : '490px', padding : '2rem', }); $("#area_st4").fadeOut(); }else{ if(Check_step3() != "F"){ $("#area_st4").fadeIn(); $("body,html").animate({scrollTop:$("#area_st4").offset().top - 160}, 100, "swing"); }else{ $("#area_st4").fadeOut(); } } }else if($("#select_oilgas_yes").prop("checked")){ $("#area_st4").fadeOut(); Swal.fire({ icon: 'warning', title: 'Detailed selection is required for corrosive liquid or gas environment ', html: 'The selected conditions require more detailed selection.

For inquiries, please download the Selection Inquiry Sheet below, describe your selection condition, and attach it to the inquiry form.
(Login to the product information site is required. )
File format
Drive chain PDF
Synchronous belt Excel

', allowOutsideClick : false, //枠外クリックは許可しない allowEscapeKey : false, //escも許可しない confirmButtonText : 'Back ', confirmButtonColor: "#767581", width : '490px', padding : '2rem', }); }else{ if(Check_step3() != "F"){ $("#area_st4").fadeIn(); $("body,html").animate({scrollTop:$("#area_st4").offset().top - 160}, 100, "swing"); $("#area_st5").css("visibility","hidden"); }else{ $("#area_st4").fadeOut(); $("#area_st5").css("visibility","hidden"); } } WriteLog_cdc("STEP2"); } /*——————————————————————————————————————————————————————————— STEP4での動作処理 ————————————————————————————————————————————————————————————*/ $(document).on('keyup', '#motor_trq', function(e) { if($("#motor_trq").val() != ""){ $("#motor_kw").prop("disabled",true) }else{ $("#motor_kw").prop("disabled",false) } }); $(document).on('keyup', '#motor_kw', function(e) { if($("#motor_kw").val() != ""){ $("#motor_trq").prop("disabled",true) }else{ $("#motor_trq").prop("disabled",false) } }); /* $(document).on('keyup', '#gaikei_kudo', function(e) { if($("#gaikei_kudo").val() != ""){ $("#dia_kudo").prop("disabled",true) }else{ $("#dia_kudo").prop("disabled",false) } }); $(document).on('keyup', '#dia_kudo', function(e) { if($("#dia_kudo").val() != ""){ $("#gaikei_kudo").prop("disabled",true) }else{ $("#gaikei_kudo").prop("disabled",false) } }); $(document).on('keyup', '#gaikei_judo', function(e) { if($("#gaikei_judo").val() != ""){ $("#dia_judo").prop("disabled",true) }else{ $("#dia_judo").prop("disabled",false) } }); $(document).on('keyup', '#dia_judo', function(e) { if($("#dia_judo").val() != ""){ $("#gaikei_judo").prop("disabled",true) }else{ $("#gaikei_judo").prop("disabled",false) } }); */ $(document).on('click', '#belt_idra_none,#belt_idra_ok', function(e) { if($("#belt_idra_ok").prop("checked")){ $("#yurumi_idra").prop("disabled", false); $("#hari_idra").prop("disabled", false); $("#uchi_idra").prop("disabled", false); $("#soto_idra").prop("disabled", false); $("#yurumi_idra").prop("checked", true); $("#hari_idra").prop("checked", false); $("#uchi_idra").prop("checked", true); $("#soto_idra").prop("checked", false); }else{ $("#yurumi_idra").prop("disabled", true); $("#hari_idra").prop("disabled", true); $("#uchi_idra").prop("disabled", true); $("#soto_idra").prop("disabled", true); $("#yurumi_idra").prop("checked", false); $("#hari_idra").prop("checked", false); $("#uchi_idra").prop("checked", false); $("#soto_idra").prop("checked", false); } }); $(document).on('click', '.pop_shiyo', function(e) { if ($(this).parent().hasClass('active')){ $(this).parent().removeClass('active'); }else{ $(this).parent().addClass('active'); } var x = e.pageX; var y = e.pageY; var sPopupId = $(this).attr('id'); sPopupId = sPopupId.replace("pop","pup") x -= 220; y += 30; $.ipop( "#" + sPopupId, x, y); }); $(document).on('click', '.kekka_tr', function(e) { $(".kekka_tr").each( function() { $(this).css("background-color", ""); }); $(this).css("background-color", "#feffae"); }); /*——————————————————————————————————————————————————————————— STEP4 ボタン押下時の処理 ————————————————————————————————————————————————————————————*/ function step4_Y(){ $("#motor_kw").css("background-color", ""); $("#motor_trq").css("background-color", ""); $("#motor_maxtrq").css("background-color", ""); $("#kaiten_kudo").css("background-color", ""); $("#gaikei_kudo").css("background-color", ""); $("#dia_kudo").css("background-color", ""); $("#kaiten_judo").css("background-color", ""); $("#gaikei_judo").css("background-color", ""); $("#dia_judo").css("background-color", ""); $("#jiku_kyori").css("background-color", ""); $("#jiku_space").css("background-color", ""); $("#day_time").css("background-color", ""); $("#day_teishi").css("background-color", ""); if(Check_step4() != "F"){ $("#area_st5").css("visibility",""); $("body,html").animate({scrollTop:$("#area_st5").offset().top - 160}, 100, "swing"); $("#kekka_table_belt tbody").remove(); $(".kekka_table_belt2_kataban_td").remove(); $(".kekka_table_belt2_kudo_td").remove(); $(".kekka_table_belt2_judo_td").remove(); $(".kekka_table_belt2_sokuhi_td").remove(); $(".kekka_table_belt2_length_td").remove(); $(".kekka_table_belt2_jikukan_td").remove(); $(".kekka_table_belt2_jikukan_space_td").remove(); $(".kekka_table_belt2_trq_td").remove(); $(".kekka_table_belt2_InstTens").remove(); $(".kekka_table_belt2_check_kamiai_td").remove(); $(".kekka_table_belt2_check_belt_td").remove(); $("#kekka_table_chain tbody").remove(); $(".kekka_table_chain2_kataban_td").remove(); $(".kekka_table_chain2_kudo_td").remove(); $(".kekka_table_chain2_judo_td").remove(); $(".kekka_table_chain2_sokuhi_td").remove(); $(".kekka_table_chain2_length_td").remove(); $(".kekka_table_chain2_jikukan_td").remove(); $(".kekka_table_chain2_jikukan_space_td").remove(); $(".kekka_table_chain2_lub_td").remove(); $(".kekka_table_chain2_trq_td").remove(); $("#kekka_box_belt").hide(); $("#kekka_box_chain").hide(); $("#btn_pdf_chain").hide(); $("#btn_pdf_belt").hide(); calc_st5(Check_step4()); } WriteLog_cdc("STEP3"); } function step4_N(){ $("#select_fuka_none").prop("checked",true); $("#motor_trq").val(""); $("#motor_kw").val(""); $("#motor_maxtrq").val(""); $("#motor_trq").prop("disabled",false); $("#motor_kw").prop("disabled",false); $("#kaiten_kudo").val(""); $("#gaikei_kudo").val(""); $("#dia_kudo").val(""); $("#kaiten_judo").val(""); $("#gaikei_judo").val(""); $("#dia_judo").val(""); $("#jiku_kyori").val(""); $("#jiku_space").val(""); $("#day_time").val(""); $("#day_teishi").val(""); $("#chain_kyuyu_ok").prop("checked",true); $("#belt_idra_none").prop("checked",true); $("#yurumi_idra").prop("disabled", true); $("#hari_idra").prop("disabled", true); $("#uchi_idra").prop("disabled", true); $("#soto_idra").prop("disabled", true); $("#yurumi_idra").prop("checked", false); $("#hari_idra").prop("checked", false); $("#uchi_idra").prop("checked", false); $("#soto_idra").prop("checked", false); } /*——————————————————————————————————————————————————————————— STEP5 計算 ————————————————————————————————————————————————————————————*/ function calc_st5(MODE){ var trq_hiritsu //原動機定格出力に対する最大負荷出力の割合 var s_ko //負荷補正係数 var s_ko //アイドラ使用時の補正係数 var s_ka //起動停止頻度補正係数 var s_pd //設計動力 var s_debug //デバッグエリア出力文字列 var kekka_chain; var kekka_chain_txt var kekka_belt; var kekka_belt_txt if($("#motor_trq").val() != ""){ //trq_hiritsu = parseFloat($("#motor_maxtrq").val()) / parseFloat($("#motor_trq").val()); $("#t_pm").html($("#motor_trq").val()); $("#t_kw").html(parseFloat($("#motor_trq").val()) * parseFloat($("#kaiten_kudo").val()) / 9550); }else{ //trq_hiritsu = parseFloat($("#motor_maxtrq").val()) / ((parseFloat($("#motor_kw").val()) * 9550)/parseFloat($("#kaiten_kudo").val())); $("#t_pm").html((parseFloat($("#motor_kw").val()) * 9550)/parseFloat($("#kaiten_kudo").val())); $("#t_kw").html($("#motor_kw").val()); } trq_hiritsu = parseFloat($("#motor_maxtrq").val()) / 100; if($("#motor_maxtrq").val() == ""){ trq_hiritsu = 1; } ///////////////////////////////// /////////トルク計算START////////// ///////////////////////////////// //負荷補正係数(Ko) switch ($('input[name="select_fuka"]:checked').val()){ case "none": if(trq_hiritsu <= 2){ if(parseFloat($("#day_time").val()) < 3 ){ s_ko = 1.2; }else if(parseFloat($("#day_time").val()) <= 10){ s_ko = 1.3; }else{ s_ko = 1.4; } }else if(trq_hiritsu < 2.5){ if(parseFloat($("#day_time").val()) < 3 ){ s_ko = 1.3; }else if(parseFloat($("#day_time").val()) <= 10){ s_ko = 1.4; }else{ s_ko = 1.4; } }else{ if(parseFloat($("#day_time").val()) < 3 ){ s_ko = 1.4; }else if(parseFloat($("#day_time").val()) <= 10){ s_ko = 1.5; }else{ s_ko = 1.6; } } $("#t_dr").html("1"); break; case "low": if(trq_hiritsu <= 2){ if(parseFloat($("#day_time").val()) < 3 ){ s_ko = 1.3; }else if(parseFloat($("#day_time").val()) <= 10){ s_ko = 1.4; }else{ s_ko = 1.5; } }else if(trq_hiritsu < 2.5){ if(parseFloat($("#day_time").val()) < 3 ){ s_ko = 1.4; }else if(parseFloat($("#day_time").val()) <= 10){ s_ko = 1.5; }else{ s_ko = 1.6; } }else{ if(parseFloat($("#day_time").val()) < 3 ){ s_ko = 1.5; }else if(parseFloat($("#day_time").val()) <= 10){ s_ko = 1.6; }else{ s_ko = 1.7; } } $("#t_dr").html("1.3"); break; case "high": if(trq_hiritsu <= 2){ if(parseFloat($("#day_time").val()) < 3 ){ s_ko = 1.4; }else if(parseFloat($("#day_time").val()) <= 10){ s_ko = 1.5; }else{ s_ko = 1.6; } }else if(trq_hiritsu < 2.5){ if(parseFloat($("#day_time").val()) < 3 ){ s_ko = 1.6; }else if(parseFloat($("#day_time").val()) <= 10){ s_ko = 1.6; }else{ s_ko = 1.7; } }else{ if(parseFloat($("#day_time").val()) < 3 ){ s_ko = 1.7; }else if(parseFloat($("#day_time").val()) <= 10){ s_ko = 1.7; }else{ s_ko = 1.8; } } $("#t_dr").html("1.5"); break; default: } $("#t_ko").html(s_ko); //アイドラ使用時の補正係数(Ki) if($('input[name="belt_idra"]:checked').val() == "none"){ s_ki = 0; }else{ if($('input[name="yurumihari_idra"]:checked').val() == "yurumi"){ if($('input[name="uchisoto_idra"]:checked').val() == "uchi"){ s_ki = 0; }else{ s_ki = 0.1; } }else{ if($('input[name="uchisoto_idra"]:checked').val() == "uchi"){ s_ki = 0.1; }else{ s_ki = 0.2; } } } $("#t_ki").html(s_ki); //増速時の補正係数(ks) if(parseFloat($("#kaiten_kudo").val()) < parseFloat($("#kaiten_judo").val())){ if(parseFloat($("#kaiten_judo").val())/parseFloat($("#kaiten_kudo").val()) < 1.25){ $("#t_ks").html("0") }else if(parseFloat($("#kaiten_judo").val())/parseFloat($("#kaiten_kudo").val()) < 1.75){ $("#t_ks").html("0.2") }else if(parseFloat($("#kaiten_judo").val())/parseFloat($("#kaiten_kudo").val()) < 2.5){ $("#t_ks").html("0.3") }else if(parseFloat($("#kaiten_judo").val())/parseFloat($("#kaiten_kudo").val()) < 3.5){ $("#t_ks").html("0.4") }else{ $("#t_ks").html("0.5") } }else{ $("#t_ks").html("0") } //起動停止頻度補正係数(Ka) if(trq_hiritsu <= 2){ if(parseFloat($("#day_teishi").val()) <= 10 ){ s_ka = 1.2; }else if(parseFloat($("#day_teishi").val()) <= 100){ s_ka = 1.3; }else if(parseFloat($("#day_teishi").val()) <= 999){ s_ka = 1.4; }else{ s_ka = 1.5; } }else if(trq_hiritsu < 2.5){ if(parseFloat($("#day_teishi").val()) <= 10 ){ s_ka = 1.3; }else if(parseFloat($("#day_teishi").val()) <= 100){ s_ka = 1.4; }else if(parseFloat($("#day_teishi").val()) <= 999){ s_ka = 1.5; }else{ s_ka = 1.6; } }else{ if(parseFloat($("#day_teishi").val()) <= 10 ){ s_ka = 1.4; }else if(parseFloat($("#day_teishi").val()) <= 100){ s_ka = 1.6; }else if(parseFloat($("#day_teishi").val()) <= 999){ s_ka = 1.7; }else{ s_ka = 1.8; } } $("#t_ka").html(s_ka) //使用雰囲気係数ke 特定条件の場合のみなのでDB検索時にHA・耐水使用にのみ適用する。 $("#t_ke").html("1.2") //設計動力の計算 s_debug = "設計動力の計算を開始:Pd = Pk ×(Ko + Ki + Ks)× Ka × ※Ke
"; s_debug += "          :Pd = " + $("#t_pm").html() + " ×(" + $("#t_ko").html() + " + " + $("#t_ki").html() + " + " + $("#t_ks").html() + ")× " + $("#t_ka").html() + " × ※Ke
"; s_pd = parseFloat($("#t_pm").html()) * (parseFloat($("#t_ko").html()) + parseFloat($("#t_ki").html()) + parseFloat($("#t_ks").html())) * parseFloat($("#t_ka").html()); s_debug += "          :Pd = " + s_pd; $("#t_pd").html(s_pd) ///////////////////////////////// /////////トルク計算END//////////// ///////////////////////////////// $("#t_kudo_kaiten").html($("#kaiten_kudo").val()) $("#t_kudo_jikukei").html($("#dia_kudo").val()) $("#t_kudo_gaikei").html($("#gaikei_kudo").val()) $("#t_judo_kaiten").html($("#kaiten_judo").val()) $("#t_judo_jikukei").html($("#dia_judo").val()) $("#t_judo_gaikei").html($("#gaikei_judo").val()) $("#t_jiku_kyori").html($("#jiku_kyori").val()) if($("#jiku_space").val() == "" || $("#jiku_space").val() == "0"){ $("#t_jiku_space").html("99999") }else{ $("#t_jiku_space").html($("#jiku_space").val()) } if($("#t_kudo_jikukei").html() == ""){ $("#t_kudo_jikukei").html("0") } if($("#t_judo_jikukei").html() == ""){ $("#t_judo_jikukei").html("0") } if($("#t_kudo_gaikei").html() == ""){ $("#t_kudo_gaikei").html("0") } if($("#t_judo_gaikei").html() == ""){ $("#t_judo_gaikei").html("0") } var oil_flg; var kyuyu_flg; var ha_flg; if($('input[name="select_oil"]:checked').val()=="none"){ oil_flg = "0" }else{ oil_flg = "1" } if($('input[name="chain_kyuyu"]:checked').val()=="ok"){ kyuyu_flg = "1" }else{ kyuyu_flg = "0" } if($("#select_water_none").prop("checked") == true && $("#select_oil_none").prop("checked") == true){ ha_flg = "0" }else{ ha_flg = "1" $("#t_pd").html(parseFloat($("#t_pd").html()) * parseFloat($("#t_ke").html())) } var temp_from; var temp_to; if($("#select_temp_other").prop("checked")){ temp_from = $("#select_temp_other_from").val(); temp_to = $("#select_temp_other_to").val(); }else{ temp_from = "0" temp_to = "59" } $("#overlay").css("display","block") $("#kekka_notice").show(); kekka_chain = "" kekka_chain_txt = "" kekka_belt = "" kekka_belt_txt = "" if(MODE != "B_T" && MODE != "B_W" ){ ///////////////////////////////// ///////ドライブチェーンSTART////// ///////////////////////////////// var ajax1 = $.post( "calc_cdc_common.asp" , { mode: "CALC_CHAIN" , i_kw: parseFloat($("#t_kw").html()) * parseFloat($("#t_dr").html()) , i_kudo_kaiten: $("#t_kudo_kaiten").html() , i_kudo_jikukei: $("#t_kudo_jikukei").html() , i_kudo_gaikei: $("#t_kudo_gaikei").html() , i_judo_kaiten: $("#t_judo_kaiten").html() , i_judo_jikukei: $("#t_judo_jikukei").html() , i_judo_gaikei: $("#t_judo_gaikei").html() , i_jiku_kyori: $("#t_jiku_kyori").html() , i_jiku_space: $("#t_jiku_space").html() , oil_flg: oil_flg , kyuyu_flg: kyuyu_flg , temp_from:temp_from , temp_to:temp_to } , function( data){ eval(data); for (let x = 0; x < Object.keys(arrKekka).length; x++) { //alert(arrKekka[x]["id"]) } if(arrKekka[0]["id"] == "nodata"){ kekka_chain = "N" //結果テーブル1への格納 /* $('#kekka_table_chain').append('\ ' + '-' + '\ ' + '-' + '\ ' + '結果無し' + '\ ' + '-' + '\ ' + '-' + '\ ' + '-' + '\ ' + '-' + '\ ' + '-' + '\ ' + '-' + '\ ') $('#kekka_table_chain2_kataban').append('-') $('#kekka_table_chain2_kudo').append('-') $('#kekka_table_chain2_judo').append('-') $('#kekka_table_chain2_sokuhi').append('-') $('#kekka_table_chain2_jikukan').append('-') $('#kekka_table_chain2_jikukan_space').append('-') */ }else if(arrKekka[0]["id"] == "temp"){ kekka_chain = "TEMP" kekka_chain_txt = arrKekka[0]["series"] }else{ kekka_chain = "Y" var r_kataban; var r_w; var r_srs; var r_hontaikataban; var r_hontaikataban_v; var r_chainURL; var r_lub; var tmp_spec = ""; var tmp_index = ""; for (let x = 0; x < Object.keys(arrKekka).length; x++) { if(arrKekka[x]["series"] == "1_GeneralUse"){ r_srs = "RS roller chain
(A series )" r_chainURL = "/tecs/pdct/cdc/pdct_Dtl_CRC.asp?kata=" + arrKekka[x]["kataban"] + '-' + arrKekka[x]['col'] }else if(arrKekka[x]["series"] == "2_BS-DIN"){ r_srs = "RS roller chain
(B series )" r_chainURL = "/tecs/pdct/cdc/pdct_Dtl_CRCB.asp?kata=" + arrKekka[x]["kataban"] + '-' + arrKekka[x]['col'] }else if(arrKekka[x]["series"] == "3_HeavyDuty"){ r_srs = "Super chain " r_chainURL = "/tecs/pdct/cdc/pdct_Dtl_CSUP.asp?kata=" + arrKekka[x]["kataban"] + '-' + arrKekka[x]['col'] }else if(arrKekka[x]["series"] == "4_Lube-free"){ r_srs = "Lambda chain
(A series )" r_chainURL = "/tecs/pdct/cdc/pdct_Dtl_CLMD.asp?kata=" + arrKekka[x]["kataban"] + '-' + arrKekka[x]['col'] }else if(arrKekka[x]["series"] == "5_Lube-free-BS-DIN"){ r_srs = "Lambda chain
(B series )" r_chainURL = "/tecs/pdct/cdc/pdct_Dtl_CLMB.asp?kata=" + arrKekka[x]["kataban"] + '-' + arrKekka[x]['col'] } if(parseFloat($("#t_kudo_kaiten").html()) < parseFloat($("#t_judo_kaiten").html())){ //従動が小スプロケット r_kudo = arrKekka[x]["dai_sprkata"]; r_judo = arrKekka[x]["sprkata"]; r_kudo_pcd = arrKekka[x]["dai_PCD"]; r_judo_pcd = arrKekka[x]["PCD"]; r_w = Math.floor(((parseFloat(arrKekka[x]["alwkw"]) * 9550) / parseFloat($("#t_judo_kaiten").html())) * 10)/10 $("#th_dendo_chain").html("Transmission Capacity
" + $("#t_judo_kaiten").html() + " r/min. ") }else{ //駆動が小スプロケット r_kudo = arrKekka[x]["sprkata"]; r_judo = arrKekka[x]["dai_sprkata"]; r_kudo_pcd = arrKekka[x]["PCD"]; r_judo_pcd = arrKekka[x]["dai_PCD"]; r_w = Math.floor(((parseFloat(arrKekka[x]["alwkw"]) * 9550) / parseFloat($("#t_kudo_kaiten").html())) * 10)/10 $("#th_dendo_chain").html("Transmission Capacity
" + $("#t_kudo_kaiten").html() + " r/min. ") } if(arrKekka[x]["lub"] == "AI"){ r_lub = 'AI Manual lubrication

Click here for details of Lubrication System '; }else if(arrKekka[x]["lub"] == "AII"){ r_lub = 'AII Drip lubrication

Click here for details of Lubrication System '; }else if(arrKekka[x]["lub"] == "B"){ r_lub = 'B Oil bath or slinger disc
Click here for details of Lubrication System '; }else if(arrKekka[x]["lub"] == "C"){ r_lub = 'C Forced lubrication

Click here for details of Lubrication System '; }else{ r_lub = arrKekka[x]["lub"]; } r_kataban = arrKekka[x]["kataban"] r_hontaikataban = '' +arrKekka[x]["kataban"] + '-' + arrKekka[x]['col'] + '
(Chain length :'+ arrKekka[x]['chnlen'] +')'; r_hontaikataban_v = arrKekka[x]["kataban"] + '-' + arrKekka[x]['col']; if(arrKekka[x]["series"] == "4_Lube-free" && arrKekka[x]['col'] =="2"){ r_kataban = r_kataban.replaceAll("LMD","LMDS"); r_hontaikataban = r_hontaikataban.replaceAll("LMD-2","LMDS-2"); r_hontaikataban_v = r_hontaikataban_v .replaceAll("LMD-2","LMDS-2"); } r_sprURL = "/tecs/pdct/spr/pdct_SPRS.asp" //結果テーブル1への格納 if(tmp_spec != r_srs){ if(x + 1 in arrKekka){ if(arrKekka[x]["series"] != arrKekka[x + 1]["series"]){ $('#kekka_table_chain').append('\ \ ' + (x + 1) + '\ ' + r_kataban + '\ ' + r_srs + '\ ' + arrKekka[x]["col"] + '\ ' + arrKekka[x]["pitch"] + '\ ' + arrKekka[x]["hasuu"] + '\ ' + arrKekka[x]["dai_hasuu"] + '\ ' + r_w + ' N・m
' + Math.floor(parseFloat(arrKekka[x]["alwkw"])*100)/100 + ' kW\ ' + arrKekka[x]["link"] + '\ ' + arrKekka[x]["distance_v"] + '\ ' + Math.floor(parseFloat(arrKekka[x]["alwkw"])*100)/100 + '\ ' + arrKekka[x]["PCD"] + '\ ' + arrKekka[x]["dai_PCD"] + '\ ' + r_hontaikataban_v + '\ ') }else{ $('#kekka_table_chain').append('\ \ ' + (x + 1) + '\ ' + r_kataban + '\ ' + r_srs + '\ ' + arrKekka[x]["col"] + '\ ' + arrKekka[x]["pitch"] + '\ ' + arrKekka[x]["hasuu"] + '\ ' + arrKekka[x]["dai_hasuu"] + '\ ' + r_w + ' N・m
' + Math.floor(parseFloat(arrKekka[x]["alwkw"])*100)/100 + ' kW\ ' + arrKekka[x]["link"] + '\ ' + arrKekka[x]["distance_v"] + '\ ' + Math.floor(parseFloat(arrKekka[x]["alwkw"])*100)/100 + '\ ' + arrKekka[x]["PCD"] + '\ ' + arrKekka[x]["dai_PCD"] + '\ ' + r_hontaikataban_v + '\ ') } }else{ $('#kekka_table_chain').append('\ \ ' + (x + 1) + '\ ' + r_kataban + '\ ' + r_srs + '\ ' + arrKekka[x]["col"] + '\ ' + arrKekka[x]["pitch"] + '\ ' + arrKekka[x]["hasuu"] + '\ ' + arrKekka[x]["dai_hasuu"] + '\ ' + r_w + ' N・m
' + Math.floor(parseFloat(arrKekka[x]["alwkw"])*100)/100 + ' kW\ ' + arrKekka[x]["link"] + '\ ' + arrKekka[x]["distance_v"] + '\ ' + Math.floor(parseFloat(arrKekka[x]["alwkw"])*100)/100 + '\ ' + arrKekka[x]["PCD"] + '\ ' + arrKekka[x]["dai_PCD"] + '\ ' + r_hontaikataban_v + '\ ') } tmp_spec = r_srs; tmp_index = x; }else{ $('#kekka_table_chain').append('\ \ ' + (x + 1) + '\ ' + r_kataban + '\ ' + r_srs + '\ ' + arrKekka[x]["col"] + '\ ' + arrKekka[x]["pitch"] + '\ ' + arrKekka[x]["hasuu"] + '\ ' + arrKekka[x]["dai_hasuu"] + '\ ' + r_w + ' N・m
' + Math.floor(parseFloat(arrKekka[x]["alwkw"])*100)/100 + ' kW\ ' + arrKekka[x]["link"] + '\ ' + arrKekka[x]["distance_v"] + '\ ' + Math.floor(parseFloat(arrKekka[x]["alwkw"])*100)/100 + '\ ' + arrKekka[x]["PCD"] + '\ ' + arrKekka[x]["dai_PCD"] + '\ ' + r_hontaikataban_v + '\ ') } $('#kekka_table_chain2_kataban').append('' + r_hontaikataban + '') $('#kekka_table_chain2_kudo').append('' + r_kudo + ' (P.C.D.:Φ' + r_kudo_pcd + 'mm)') $('#kekka_table_chain2_judo').append('' + r_judo + ' (P.C.D.:Φ' + r_judo_pcd + 'mm)') $('#kekka_table_chain2_sokuhi').append('1 : ' + arrKekka[x]["sokuhi"] + '') if ( arrKekka[x]["distance"].indexOf('The center distance between shafts is insufficient. ') != -1) { $('#kekka_table_chain2_jikukan').append('' + arrKekka[x]["distance"] + '') }else{ $('#kekka_table_chain2_jikukan').append('' + arrKekka[x]["distance"] + '') } if($("#jiku_space").val() == "" || $("#jiku_space").val() == "0"){ $('#kekka_table_chain2_jikukan_space').append('' + "---" + '') }else{ if ( arrKekka[x]["distance_space"].indexOf('NG') != -1) { $('#kekka_table_chain2_jikukan_space').append('' + arrKekka[x]["distance_space"] + '') }else{ $('#kekka_table_chain2_jikukan_space').append('' + arrKekka[x]["distance_space"] + '') } } $('#kekka_table_chain2_lub').append('' + r_lub + '') } $('#kekka_table_chain2_kataban').append('-') $('#kekka_table_chain2_kudo').append('-') $('#kekka_table_chain2_judo').append('-') $('#kekka_table_chain2_sokuhi').append('-') $('#kekka_table_chain2_jikukan').append('-') $('#kekka_table_chain2_jikukan_space').append('-') $('#kekka_table_chain2_lub').append('-') //初期表示 $('#kchain_1').trigger("click"); } } ).fail(function (jqXHR, textStatus, errorThrown) { // 通信失敗時の処理 console.log("jqXHR : " + jqXHR.status); // HTTPステータスが取得 console.log("textStatus : " + textStatus); // タイムアウト、パースエラー console.log("errorThrown : " + errorThrown.message); // 例外情報 }); }else{ if(MODE == "B_T"){ kekka_chain = "B_T" }else{ kekka_chain = "B_W" } } ///////////////////////////////// ///////ドライブチェーンEND//////// ///////////////////////////////// ///////////////////////////////// /////////ベルトSTART///////////// ///////////////////////////////// if(MODE != "C" ){ var ajax2 = $.post( "calc_cdc_common.asp" , { mode: "CALC_BELT" , i_trq: $("#t_pd").html() , i_kudo_kaiten: $("#t_kudo_kaiten").html() , i_kudo_jikukei: $("#t_kudo_jikukei").html() , i_kudo_gaikei: $("#t_kudo_gaikei").html() , i_judo_kaiten: $("#t_judo_kaiten").html() , i_judo_jikukei: $("#t_judo_jikukei").html() , i_judo_gaikei: $("#t_judo_gaikei").html() , i_jiku_kyori: $("#t_jiku_kyori").html() , i_jiku_space: $("#t_jiku_space").html() , ha_flg: ha_flg , temp_from:temp_from , temp_to:temp_to } , function( data){ eval( data); if(arrKekka[0]["id"] == "nodata"){ kekka_belt = "N" /* //結果テーブル1への格納 $('#kekka_table_belt').append('\ ' + '-' + '\ ' + '-' + '\ ' + '結果無し' + '\ ' + '-' + '\ ' + '-' + '\ ' + '-' + '\ ' + '-' + '\ ' + '-' + '\ ' + '-' + '\ ') $('#kekka_table_belt2_kataban').append('-') $('#kekka_table_belt2_kudo').append('-') $('#kekka_table_belt2_judo').append('-') $('#kekka_table_belt2_sokuhi').append('-') $('#kekka_table_belt2_jikukan').append('-') $('#kekka_table_belt2_jikukan_space').append('-') */ }else if(arrKekka[0]["id"] == "temp"){ kekka_belt = "TEMP" kekka_belt_txt = arrKekka[0]["series"] }else{ //$("#kekka_box_belt").fadeIn(300); kekka_belt = "Y" var r_kataban; var r_series; var r_spec; var r_hontaikataban; var r_spec; var r_kudo; var r_judo; var r_kudo_pcd; var r_judo_pcd; var r_beltURL; var r_tplURL; var r_w; var r_w_keta; var r_w_tani; var r_w_kw; var tmp_spec = ""; var tmp_index = ""; var cnt_index = 0; var r_pu for (let x = 0; x < Object.keys(arrKekka).length; x++) { if ( arrKekka[x]["check_belt"].indexOf('NG') != -1 || arrKekka[x]["check_kamiai"].indexOf('NG') != -1) { continue; }else{ cnt_index = cnt_index + 1; } r_kataban = arrKekka[x]["series"] + arrKekka[x]["pitch"] + "M" + arrKekka[x]["width"] + arrKekka[x]["spec"] switch (arrKekka[x]["spec"]){ case "-530": case "-RC": case "-HC": case "-HA": switch (arrKekka[x]["pitch"]){ case "2": r_w_keta = 10; r_w_tani = "W"; r_w_kw = 1; break; case "3": case "5": r_w_keta = 1; r_w_tani = "W"; r_w_kw = 1; break; case "8": r_w_keta = 100; r_w_tani = "kW"; r_w_kw = 1000; break; case "14": r_w_keta = 10; r_w_tani = "kW"; r_w_kw = 1000; break; default: } break; case "-HY": switch (arrKekka[x]["pitch"]){ case "3": r_w_keta = 1 r_w_tani = "W" r_w_kw = 1; break; case "5": case "8": r_w_keta = 100 r_w_tani = "kW" r_w_kw = 1000; break; case "14": r_w_keta = 10 r_w_tani = "kW" r_w_kw = 1000; break; default: } break; default: } if(parseFloat($("#t_kudo_kaiten").html()) < parseFloat($("#t_judo_kaiten").html())){ //従動が小スプロケット r_kudo = "PT" + arrKekka[x]["dai_hasuu"] + "P" +arrKekka[x]["pitch"] + "M" + arrKekka[x]["width"]; r_judo = "PT" + arrKekka[x]["hasuu"] + "P" +arrKekka[x]["pitch"] + "M" + arrKekka[x]["width"]; r_kudo_pcd = arrKekka[x]["dai_PCD"]; r_judo_pcd = arrKekka[x]["PCD"]; r_w = Math.floor((parseFloat(arrKekka[x]["alwtrq"]) * parseFloat($("#t_judo_kaiten").html()) / 9.55 / r_w_kw ) *r_w_keta)/r_w_keta r_pu = (parseFloat(arrKekka[x]["alwtrq"]) * parseFloat($("#t_judo_kaiten").html()) / parseFloat(arrKekka[x]['WidthFact']) / 9.55 / 1000 ) $("#th_dendo").html("Transmission Capacity
" + $("#t_judo_kaiten").html() + " r/min. ") }else{ //駆動が小スプロケット r_kudo = "PT" + arrKekka[x]["hasuu"] + "P" +arrKekka[x]["pitch"] + "M" + arrKekka[x]["width"]; r_judo = "PT" + arrKekka[x]["dai_hasuu"] + "P" +arrKekka[x]["pitch"] + "M" + arrKekka[x]["width"]; r_kudo_pcd = arrKekka[x]["PCD"]; r_judo_pcd = arrKekka[x]["dai_PCD"]; r_w = Math.floor((parseFloat(arrKekka[x]["alwtrq"]) * parseFloat($("#t_kudo_kaiten").html()) / 9.55 / r_w_kw) *r_w_keta)/r_w_keta r_pu = (parseFloat(arrKekka[x]["alwtrq"]) * parseFloat($("#t_kudo_kaiten").html()) / parseFloat(arrKekka[x]['WidthFact']) / 9.55 / 1000) $("#th_dendo").html("Transmission Capacity
" + $("#t_kudo_kaiten").html() + " r/min. ") } if(arrKekka[x]["series"] == "P"){ r_series = "PX"; }else if(arrKekka[x]["series"] == "UP"){ r_series = "Ultra PX "; }else{ r_series = "-" } if(arrKekka[x]["spec"] == "-RC"){ r_spec = "RC Type " r_beltURL = "/tecs/pdct/tbl/pdct_Dtl_TBLPXRC.asp?kata=" + 'BG' + arrKekka[x]['beltlen'].substr(0, arrKekka[x]['beltlen'].indexOf('m')) + arrKekka[x]["series"] + arrKekka[x]["pitch"]+ "M" + arrKekka[x]["width"] + arrKekka[x]["spec"]; }else if(arrKekka[x]["spec"] == "-530"){ r_spec = "SHINAYAKA 530 Type " r_beltURL = "/tecs/pdct/tbl/pdct_Dtl_TBL5B.asp?kata=" + 'BG' + arrKekka[x]['beltlen'].substr(0, arrKekka[x]['beltlen'].indexOf('m')) + arrKekka[x]["series"] + arrKekka[x]["pitch"]+ "M" + arrKekka[x]["width"] + arrKekka[x]["spec"]; }else if(arrKekka[x]["spec"] == "-HC"){ r_spec = "HC Type " r_beltURL = "/tecs/pdct/tbl/pdct_Dtl_TBLPXC.asp?kata=" + 'BG' + arrKekka[x]['beltlen'].substr(0, arrKekka[x]['beltlen'].indexOf('m')) + arrKekka[x]["series"] + arrKekka[x]["pitch"]+ "M" + arrKekka[x]["width"] + arrKekka[x]["spec"]; }else if(arrKekka[x]["spec"] == "-HY"){ r_spec = "HY Type " r_beltURL = "/tecs/pdct/tbl/pdct_Dtl_TBLPXY.asp?kata=" + 'BG' + arrKekka[x]['beltlen'].substr(0, arrKekka[x]['beltlen'].indexOf('m')) + arrKekka[x]["series"] + arrKekka[x]["pitch"]+ "M" + arrKekka[x]["width"] + arrKekka[x]["spec"]; }else if(arrKekka[x]["spec"] == "-HA"){ r_spec = "HA Type " r_beltURL = "/tecs/pdct/tbl/pdct_Dtl_TBLPXA.asp?kata=" + 'BG' + arrKekka[x]['beltlen'].substr(0, arrKekka[x]['beltlen'].indexOf('m')) + arrKekka[x]["series"] + arrKekka[x]["pitch"]+ "M" + arrKekka[x]["width"] + arrKekka[x]["spec"]; } r_tplURL = "/tecs/pdct/tbl/pdct_TPLSP.asp" if ( arrKekka[x]["beltlen"].indexOf('No belts are in the lineup. ') != -1) { r_hontaikataban = "長さ" + arrKekka[x]["beltlen"].substr(0, arrKekka[x]["beltlen"].indexOf("<")) + "のベルトが
ラインアップにありません。"; }else{ r_hontaikataban = '' +'BG' + arrKekka[x]['beltlen'].substr(0, arrKekka[x]['beltlen'].indexOf('m')) + arrKekka[x]['series'] + arrKekka[x]['pitch']+ 'M' + arrKekka[x]['width'] + arrKekka[x]['spec'] + ' (Circumference :'+ arrKekka[x]['beltlen'].substr(0, arrKekka[x]['beltlen'].indexOf('<')) +')'; } //結果テーブル1への格納 if(tmp_spec != r_spec){ if(x + 1 in arrKekka){ if(arrKekka[x]["spec"] != arrKekka[x + 1]["spec"]){ $('#kekka_table_belt').append('\ \ ' + cnt_index + '\ ' + r_kataban + '\ ' + r_series + '・' + r_spec + '\ ' + arrKekka[x]["pitch"] + '\ ' + arrKekka[x]["width"] + '\ ' + arrKekka[x]["hasuu"] + '\ ' + arrKekka[x]["dai_hasuu"] + '\ ' + Math.floor(parseFloat(arrKekka[x]["alwtrq"])*100)/100 + ' N・m
' + r_w + ' ' + r_w_tani + '\ ' + arrKekka[x]['beltlen'].substr(0, arrKekka[x]['beltlen'].indexOf('mm')) + '\ ' + arrKekka[x]['distance_v'] + '\ ' + arrKekka[x]['kamihasuu'] + '\ ' + r_pu + '\ ' + arrKekka[x]['p_dFactorKm'] + '\ ' + arrKekka[x]['p_dFactorKL'] + '\ ' + arrKekka[x]['WidthFact'] + '\ ' + arrKekka[x]["PCD"] + '\ ' + arrKekka[x]["dai_PCD"] + '\ ' + arrKekka[x]["outdia"].replace("NG ","") + '\ ' + arrKekka[x]["dai_outdia"].replace("NG ","") + '\ ' + 'BG' + arrKekka[x]['beltlen'].substr(0, arrKekka[x]['beltlen'].indexOf('m')) + arrKekka[x]['series'] + arrKekka[x]['pitch']+ 'M' + arrKekka[x]['width'] + arrKekka[x]['spec'] + '\ ') }else{ $('#kekka_table_belt').append('\ \ ' + cnt_index + '\ ' + r_kataban + '\ ' + r_series + '・' + r_spec + '\ ' + arrKekka[x]["pitch"] + '\ ' + arrKekka[x]["width"] + '\ ' + arrKekka[x]["hasuu"] + '\ ' + arrKekka[x]["dai_hasuu"] + '\ ' + Math.floor(parseFloat(arrKekka[x]["alwtrq"])*100)/100 + ' N・m
' + r_w + ' ' + r_w_tani + '\ ' + arrKekka[x]['beltlen'].substr(0, arrKekka[x]['beltlen'].indexOf('mm')) + '\ ' + arrKekka[x]['distance_v'] + '\ ' + arrKekka[x]['kamihasuu'] + '\ ' + r_pu + '\ ' + arrKekka[x]['p_dFactorKm'] + '\ ' + arrKekka[x]['p_dFactorKL'] + '\ ' + arrKekka[x]['WidthFact'] + '\ ' + arrKekka[x]["PCD"] + '\ ' + arrKekka[x]["dai_PCD"] + '\ ' + arrKekka[x]["outdia"].replace("NG ","") + '\ ' + arrKekka[x]["dai_outdia"].replace("NG ","") + '\ ' + 'BG' + arrKekka[x]['beltlen'].substr(0, arrKekka[x]['beltlen'].indexOf('m')) + arrKekka[x]['series'] + arrKekka[x]['pitch']+ 'M' + arrKekka[x]['width'] + arrKekka[x]['spec'] + '\ ') } }else{ $('#kekka_table_belt').append('\ \ ' + cnt_index + '\ ' + r_kataban + '\ ' + r_series + '・' + r_spec + '\ ' + arrKekka[x]["pitch"] + '\ ' + arrKekka[x]["width"] + '\ ' + arrKekka[x]["hasuu"] + '\ ' + arrKekka[x]["dai_hasuu"] + '\ ' + Math.floor(parseFloat(arrKekka[x]["alwtrq"])*100)/100 + ' N・m
' + r_w + ' ' + r_w_tani + '\ ' + arrKekka[x]['beltlen'].substr(0, arrKekka[x]['beltlen'].indexOf('mm')) + '\ ' + arrKekka[x]['distance_v'] + '\ ' + arrKekka[x]['kamihasuu'] + '\ ' + r_pu + '\ ' + arrKekka[x]['p_dFactorKm'] + '\ ' + arrKekka[x]['p_dFactorKL'] + '\ ' + arrKekka[x]['WidthFact'] + '\ ' + arrKekka[x]["PCD"] + '\ ' + arrKekka[x]["dai_PCD"] + '\ ' + arrKekka[x]["outdia"].replace("NG ","") + '\ ' + arrKekka[x]["dai_outdia"].replace("NG ","") + '\ ' + 'BG' + arrKekka[x]['beltlen'].substr(0, arrKekka[x]['beltlen'].indexOf('m')) + arrKekka[x]['series'] + arrKekka[x]['pitch']+ 'M' + arrKekka[x]['width'] + arrKekka[x]['spec'] + '\ ') } tmp_spec = r_spec; tmp_index = x; }else{ $('#kekka_table_belt').append('\ \ ' + cnt_index + '\ ' + r_kataban + '\ ' + r_series + '・' + r_spec + '\ ' + arrKekka[x]["pitch"] + '\ ' + arrKekka[x]["width"] + '\ ' + arrKekka[x]["hasuu"] + '\ ' + arrKekka[x]["dai_hasuu"] + '\ ' + Math.floor(parseFloat(arrKekka[x]["alwtrq"])*100)/100 + ' N・m
' + r_w + ' ' + r_w_tani + '\ ' + arrKekka[x]['beltlen'].substr(0, arrKekka[x]['beltlen'].indexOf('mm')) + '\ ' + arrKekka[x]['distance_v'] + '\ ' + arrKekka[x]['kamihasuu'] + '\ ' + r_pu + '\ ' + arrKekka[x]['p_dFactorKm'] + '\ ' + arrKekka[x]['p_dFactorKL'] + '\ ' + arrKekka[x]['WidthFact'] + '\ ' + arrKekka[x]["PCD"] + '\ ' + arrKekka[x]["dai_PCD"] + '\ ' + arrKekka[x]["outdia"].replace("NG ","") + '\ ' + arrKekka[x]["dai_outdia"].replace("NG ","") + '\ ' + 'BG' + arrKekka[x]['beltlen'].substr(0, arrKekka[x]['beltlen'].indexOf('m')) + arrKekka[x]['series'] + arrKekka[x]['pitch']+ 'M' + arrKekka[x]['width'] + arrKekka[x]['spec'] + '\ ') } //結果テーブル2への格納 if ( arrKekka[x]["beltlen"].indexOf('No belts are in the lineup. ') != -1) { r_hontaikataban = "長さ" + arrKekka[x]["beltlen"].substr(0, arrKekka[x]["beltlen"].indexOf("<")) + "のベルトが
ラインアップにありません。"; $('#kekka_table_belt2_kataban').append('' + r_hontaikataban + '') }else{ r_hontaikataban = '' +'BG' + arrKekka[x]['beltlen'].substr(0, arrKekka[x]['beltlen'].indexOf('m')) + arrKekka[x]['series'] + arrKekka[x]['pitch']+ 'M' + arrKekka[x]['width'] + arrKekka[x]['spec'] + ' (Circumference :'+ arrKekka[x]['beltlen'].substr(0, arrKekka[x]['beltlen'].indexOf('<')) +')'; $('#kekka_table_belt2_kataban').append('' + r_hontaikataban + '') } $('#kekka_table_belt2_kudo').append('' + r_kudo + ' (P.C.D.:Φ' + r_kudo_pcd + 'mm)') $('#kekka_table_belt2_judo').append('' + r_judo + ' (P.C.D.:Φ' + r_judo_pcd + 'mm)') $('#kekka_table_belt2_sokuhi').append('1 : ' + arrKekka[x]["sokuhi"] + '') if ( arrKekka[x]["distance"].indexOf('The center distance between shafts is insufficient. ') != -1) { $('#kekka_table_belt2_jikukan').append('' + arrKekka[x]["distance"] + '') }else{ $('#kekka_table_belt2_jikukan').append('' + arrKekka[x]["distance"] + '') } if($("#jiku_space").val() == "" || $("#jiku_space").val() == "0"){ $('#kekka_table_belt2_jikukan_space').append('' + '---' + '') }else{ if ( arrKekka[x]["distance_space"].indexOf('NG') != -1) { $('#kekka_table_belt2_jikukan_space').append('' + arrKekka[x]["distance_space"] + '') }else{ $('#kekka_table_belt2_jikukan_space').append('' + arrKekka[x]["distance_space"] + '') } } $('#kekka_table_belt2_InstTens').append('Recommended :' + arrKekka[x]["InstTensRecomN"] + 'N Maximum :' + arrKekka[x]["InstTensMaxN"] + 'N') /* if ( arrKekka[x]["check_kamiai"].indexOf('NG') != -1) { $('#kekka_table_belt2_check_kamiai').append('' + arrKekka[x]["check_kamiai"] + '') }else{ $('#kekka_table_belt2_check_kamiai').append('' + arrKekka[x]["check_kamiai"] + '') } if ( arrKekka[x]["check_belt"].indexOf('NG') != -1) { $('#kekka_table_belt2_check_belt').append('' + arrKekka[x]["check_belt"] + '') }else{ $('#kekka_table_belt2_check_belt').append('' + arrKekka[x]["check_belt"] + '') } */ } if(cnt_index == 0){ kekka_belt = "N"; } //初期表示 $('#kbelt_1').trigger("click"); } } ).fail(function (jqXHR, textStatus, errorThrown) { // 通信失敗時の処理 alert('選定処理時にエラーが発生しました。条件を見直してください。'); }); } ///////////////////////////////// ///////////ベルトEND///////////// ///////////////////////////////// ///////////////////////////////// ///////ajax完了時の処理/////////// ///////////////////////////////// $("#kekka_box_chain_notice").hide(); $("#kekka_box_belt_notice").hide(); $("#btn_pdf_chain").hide(); $("#btn_pdf_belt").hide(); $.when(ajax1, ajax2).done(function(){ $("#overlay").css("display","") $("#kekka_notice").hide(); if(kekka_chain == "" || kekka_chain == "B_W"){ //水・油条件でチェーン対象外 $("#kekka_box_chain").hide(); $("#kekka_box_chain_notice").fadeIn(300); $("#chain_notice").html('More detailed selection is required for the water and oil conditions specified.

For inquiries, please download the Selection Inquiry Sheet below, describe your selection condition, and attach it to the inquiry form.
(Login to the product information site is required. )

'); }else if(kekka_chain == "B_T"){ //起動停止回数でチェーン対象外 $("#kekka_box_chain").hide(); $("#kekka_box_chain_notice").fadeIn(300); $("#chain_notice").html('More detailed selection is required if the starting frequency is more than 6 times/day.

For inquiries, please download the Selection Inquiry Sheet below, describe your selection condition, and attach it to the inquiry form.
(Login to the product information site is required. )

'); }else if(kekka_chain == "N"){ //選定条件でチェーン対象外 $("#kekka_box_chain").hide(); $("#kekka_box_chain_notice").fadeIn(300); $("#chain_notice").html('No drive chain was found that met the capability. '); }else if(kekka_chain == "TEMP"){ //選定条件でチェーン対象外 $("#kekka_box_chain").hide(); $("#kekka_box_chain_notice").fadeIn(300); $("#chain_notice").html(kekka_chain_txt); $('#chain_notice').html($('#chain_notice').html() + '

For inquiries, please download the Selection Inquiry Sheet below, describe your selection condition, and attach it to the inquiry form.
(Login to the product information site is required. )

' ) }else{ $("#kekka_box_chain").fadeIn(300); $("#btn_pdf_chain").fadeIn(300); } if(kekka_belt == ""){ //水・油条件でベルト対象外 $("#kekka_box_belt").hide(); $("#kekka_box_belt_notice").fadeIn(300); $("#belt_notice").html('More detailed selection is required for the water and oil conditions specified.

For inquiries, please download the Selection Inquiry Sheet below, describe your selection condition, and attach it to the inquiry form.
(Login to the product information site is required. )

'); }else if(kekka_belt == "N"){ //選定条件でベルト対象外 $("#kekka_box_belt").hide(); $("#kekka_box_belt_notice").fadeIn(300); $("#belt_notice").html('No synchronous belt was found that met the capability. '); }else if(kekka_belt == "TEMP"){ //選定条件でベルト対象外 $("#kekka_box_belt").hide(); $("#kekka_box_belt_notice").fadeIn(300); $("#belt_notice").html(kekka_belt_txt); $('#belt_notice').html($('#belt_notice').html() + '

For inquiries, please download the Selection Inquiry Sheet below, describe your selection condition, and attach it to the inquiry form.
(Login to the product information site is required. )

' ) }else{ $("#kekka_box_belt").fadeIn(300); $("#btn_pdf_belt").fadeIn(300); } }) } /*——————————————————————————————————————————————————————————— STEP5での動作処理 ————————————————————————————————————————————————————————————*/ $(document).on('click', '.kekka_table_belt_tr', function(e) { var slct_id; slct_id = $(this).attr("id").substr($(this).attr("id").indexOf("_") + 1); //結果テーブル1の制御 $(".kekka_table_belt_tr").css("background-color","white") $(".kekka_table_belt_tr").removeClass("belt_active"); $(this).css("background-color","rgb(253, 252, 188)") $(this).addClass("belt_active"); //結果テーブル2の制御 $(".kekka_table_belt2_kataban_td").hide(); $("#kbelt2_kataban_" + slct_id).show(); $(".kekka_table_belt2_kudo_td").hide(); $("#kbelt2_kudo_" + slct_id).show(); $(".kekka_table_belt2_judo_td").hide(); $("#kbelt2_judo_" + slct_id).show(); $(".kekka_table_belt2_sokuhi_td").hide(); $("#kbelt2_sokuhi_" + slct_id).show(); $(".kekka_table_belt2_jikukan_td").hide(); $("#kbelt2_jikukan_" + slct_id).show(); $(".kekka_table_belt2_jikukan_space_td").hide(); $("#kbelt2_jikukan_space_" + slct_id).show(); $(".kekka_table_belt2_InstTens_td").hide(); $("#kbelt2_InstTens_" + slct_id).show(); /* $(".kekka_table_belt2_check_kamiai_td").hide(); $("#kbelt2_check_kamiai_" + slct_id).show(); $(".kekka_table_belt2_check_belt_td").hide(); $("#kbelt2_check_belt_" + slct_id).show(); */ //PDF用 $("#kekka_pdf_belt_kataban").html($("#kbelt2_kataban_" + slct_id).html()); $("#kekka_pdf_belt_kudo").html($("#kbelt2_kudo_" + slct_id).html()); $("#kekka_pdf_belt_judo").html($("#kbelt2_judo_" + slct_id).html()); $("#kekka_pdf_belt_sokuhi").html($("#kbelt2_sokuhi_" + slct_id).html()); $("#kekka_pdf_belt_jikukan").html($("#kbelt2_jikukan_" + slct_id).html()); $("#kekka_pdf_belt_jikukan_space").html($("#kbelt2_jikukan_space_" + slct_id).html()); $("#kekka_pdf_belt_InstTens").html($("#kbelt2_InstTens_" + slct_id).html()); }); $(document).on('click', '.kekka_table_chain_tr', function(e) { var slct_id; slct_id = $(this).attr("id").substr($(this).attr("id").indexOf("_") + 1); //結果テーブル1の制御 $(".kekka_table_chain_tr").css("background-color","white") $(".kekka_table_chain_tr").removeClass("chain_active") $(this).css("background-color","rgb(253, 252, 188)") $(this).addClass("chain_active"); //結果テーブル2の制御 $(".kekka_table_chain2_kataban_td").hide(); $("#kchain2_kataban_" + slct_id).show(); $(".kekka_table_chain2_kudo_td").hide(); $("#kchain2_kudo_" + slct_id).show(); $(".kekka_table_chain2_judo_td").hide(); $("#kchain2_judo_" + slct_id).show(); $(".kekka_table_chain2_sokuhi_td").hide(); $("#kchain2_sokuhi_" + slct_id).show(); $(".kekka_table_chain2_jikukan_td").hide(); $("#kchain2_jikukan_" + slct_id).show(); $(".kekka_table_chain2_jikukan_space_td").hide(); $("#kchain2_jikukan_space_" + slct_id).show(); $(".kekka_table_chain2_lub_td").hide(); $("#kchain2_lub_" + slct_id).show(); //PDF用 $("#kekka_pdf_chain_kataban").html($("#kchain2_kataban_" + slct_id).html()); $("#kekka_pdf_chain_kudo").html($("#kchain2_kudo_" + slct_id).html()); $("#kekka_pdf_chain_judo").html($("#kchain2_judo_" + slct_id).html()); $("#kekka_pdf_chain_sokuhi").html($("#kchain2_sokuhi_" + slct_id).html()); $("#kekka_pdf_chain_jikukan").html($("#kchain2_jikukan_" + slct_id).html()); $("#kekka_pdf_chain_jikukan_space").html($("#kchain2_jikukan_space_" + slct_id).html()); $("#kekka_pdf_chain_lub").html($("#kchain2_lub_" + slct_id).html()); }); $(document).on('click', '.btn_chain', function(e) { if($(this).children("img").attr("src") == "/tecs/img/btn_ListOpen.gif"){ $(".chain_oya_index_" + $(this).children("img").attr("id").replace("btn_chain_","")).show(); $(this).children("img").attr("src","/tecs/img/btn_ListClose.gif") }else{ $(".chain_oya_index_" + $(this).children("img").attr("id").replace("btn_chain_","")).hide(); $(this).children("img").attr("src","/tecs/img/btn_ListOpen.gif") } }); $(document).on('click', '.btn_belt', function(e) { if($(this).children("img").attr("src") == "/tecs/img/btn_ListOpen.gif"){ $(".belt_oya_index_" + $(this).children("img").attr("id").replace("btn_belt_","")).show(); $(this).children("img").attr("src","/tecs/img/btn_ListClose.gif") }else{ $(".belt_oya_index_" + $(this).children("img").attr("id").replace("btn_belt_","")).hide(); $(this).children("img").attr("src","/tecs/img/btn_ListOpen.gif") } }); /*——————————————————————————————————————————————————————————— クライアントサイドのチェック処理 ————————————————————————————————————————————————————————————*/ function Check_step3(){ var str_alert = ""; $("#select_temp_other_from").css("background-color", ""); $("#select_temp_other_to").css("background-color", ""); //温度のチェック if($("#select_temp_other").prop("checked")){ if($("#select_temp_other_from").val() == "" && $("#select_temp_other_to").val() == ""){ str_alert = str_alert + 'Enter the “ambient temperature.” '; $("#select_temp_other_from").css("background-color", "pink"); $("#select_temp_other_to").css("background-color", "pink"); }else{ if (!$("#select_temp_other_from").val().match(/^-?[0-9]+[0-9]?$/)) { str_alert = str_alert + 'Please enter a one-byte integer value for "ambient temperature."
'; $("#select_temp_other_from").css("background-color", "pink"); } if (!$("#select_temp_other_to").val().match(/^-?[0-9]+[0-9]?$/)) { str_alert = str_alert + 'Please enter a one-byte integer value for "ambient temperature."
'; $("#select_temp_other_to").css("background-color", "pink"); } } if(str_alert == ""){ if(parseFloat($("#select_temp_other_from").val()) > parseFloat($("#select_temp_other_to").val())){ str_alert = str_alert + 'Please enter a correct value for "Ambient temperature".
'; $("#select_temp_other_from").css("background-color", "pink"); $("#select_temp_other_to").css("background-color", "pink"); } } } if(str_alert == ""){ return "T"; }else{ Swal.fire({ icon: 'warning', title: 'エラー', html: str_alert, allowOutsideClick : false, //枠外クリックは許可しない allowEscapeKey : false, //escも許可しない confirmButtonText : 'Back ', confirmButtonColor: "#767581", width : '600px', padding : '2rem', }); return "F"; } } function Check_step4(){ var str_alert = ""; //(2)原動機のチェック if($("#motor_trq").val() == "" && $("#motor_kw").val() == ""){ str_alert = str_alert + '"Rated torque" or "Rated output" is a required field.
'; $("#motor_trq").css("background-color", "pink"); $("#motor_kw").css("background-color", "pink"); }else{ if($("#motor_trq").val() != ""){ if (!$("#motor_trq").val().match(/^-?[0-9]+\.[0-9]+$/) && !$("#motor_trq").val().match(/^[0-9]+$/)) { str_alert = str_alert + 'Please enter a one-byte integer value for "Rated torque."
'; $("#motor_trq").css("background-color", "pink"); } }else{ if (!$("#motor_kw").val().match(/^-?[0-9]+\.[0-9]+$/) && !$("#motor_kw").val().match(/^[0-9]+$/)) { str_alert = str_alert + 'Please enter a one-byte integer value for "Rated output."
'; $("#motor_kw").css("background-color", "pink"); } } } if($("#motor_maxtrq").val() != ""){ if (!$("#motor_maxtrq").val().match(/^-?[0-9]+\.[0-9]+$/) && !$("#motor_maxtrq").val().match(/^[0-9]+$/)) { str_alert = str_alert + 'Please enter a one-byte integer value for "Maximum torque."
'; $("#motor_maxtrq").css("background-color", "pink"); } }else{ str_alert = str_alert + '「最大トルク」もしくは「定格出力」は必須入力項目です。
'; $("#motor_maxtrq").css("background-color", "pink"); } //(3)駆動軸スプロケット/プーリのチェック if($("#gaikei_kudo").val() == "" && $("#dia_kudo").val() == ""){ str_alert = str_alert + 'Drive shaft sprocket/Belt sprocket: "Max. outer diameter" or "Shaft diameter" is a required field.
'; $("#gaikei_kudo").css("background-color", "pink"); $("#dia_kudo").css("background-color", "pink"); }else{ if($("#gaikei_kudo").val() != ""){ if (!$("#gaikei_kudo").val().match(/^-?[0-9]+\.[0-9]+$/) && !$("#gaikei_kudo").val().match(/^[0-9]+$/)) { str_alert = str_alert + 'Drive shaft sprocket/Belt sprocket: Please enter a one-byte integer value for "Max. outer diameter."
'; $("#gaikei_kudo").css("background-color", "pink"); } }else{ if (!$("#dia_kudo").val().match(/^-?[0-9]+\.[0-9]+$/) && !$("#dia_kudo").val().match(/^[0-9]+$/)) { str_alert = str_alert + 'Drive shaft sprocket/Belt sprocket: Please enter a one-byte integer value for "Shaft diameter."
'; $("#dia_kudo").css("background-color", "pink"); } } } if($("#kaiten_kudo").val() == ""){ str_alert = str_alert + 'Drive shaft sprocket/Belt sprocket: "RPM" is a required field.
'; $("#kaiten_kudo").css("background-color", "pink"); }else{ if (!$("#kaiten_kudo").val().match(/^-?[0-9]+\.[0-9]+$/) && !$("#kaiten_kudo").val().match(/^[0-9]+$/)) { str_alert = str_alert + 'Drive shaft sprocket/Belt sprocket: Please enter a one-byte integer value for "RPM."
'; $("#kaiten_kudo").css("background-color", "pink"); } } //(4)従動軸スプロケット/プーリのチェック if($("#gaikei_judo").val() == "" && $("#dia_judo").val() == ""){ str_alert = str_alert + 'Driven shaft sprocket/Belt sprocket: "Max. outer diameter" or "Shaft diameter" is a required field.
'; $("#gaikei_judo").css("background-color", "pink"); $("#dia_judo").css("background-color", "pink"); }else{ if($("#gaikei_judo").val() != ""){ if (!$("#gaikei_judo").val().match(/^-?[0-9]+\.[0-9]+$/) && !$("#gaikei_judo").val().match(/^[0-9]+$/)) { str_alert = str_alert + 'Driven shaft sprocket/Belt sprocket: Please enter a one-byte integer value for "Max. outer diameter."
'; $("#gaikei_judo").css("background-color", "pink"); } }else{ if (!$("#dia_judo").val().match(/^-?[0-9]+\.[0-9]+$/) && !$("#dia_judo").val().match(/^[0-9]+$/)) { str_alert = str_alert + 'Driven shaft sprocket/Belt sprocket: Please enter a one-byte integer value for "Shaft diameter."
'; $("#dia_judo").css("background-color", "pink"); } } } if($("#kaiten_judo").val() == ""){ str_alert = str_alert + 'Driven shaft sprocket/Belt sprocket: "RPM" is a required field.
'; $("#kaiten_judo").css("background-color", "pink"); }else{ if (!$("#kaiten_judo").val().match(/^-?[0-9]+\.[0-9]+$/) && !$("#kaiten_judo").val().match(/^[0-9]+$/)) { str_alert = str_alert + 'Driven shaft sprocket/Belt sprocket: Please enter a one-byte integer value for "RPM."
'; $("#kaiten_judo").css("background-color", "pink"); } } //(5)軸間距離 if($("#jiku_kyori").val() == ""){ str_alert = str_alert + '"Center distance between shafts" is a required field.
'; $("#jiku_kyori").css("background-color", "pink"); }else{ if (!$("#jiku_kyori").val().match(/^-?[0-9]+\.[0-9]+$/) && !$("#jiku_kyori").val().match(/^[0-9]+$/)) { str_alert = str_alert + 'Please enter a one-byte integer value for "Center distance between shafts."
'; $("#jiku_kyori").css("background-color", "pink"); } } //(6)軸間距離方向のスペース if($("#jiku_space").val() != ""){ if (!$("#jiku_space").val().match(/^-?[0-9]+\.[0-9]+$/) && !$("#jiku_space").val().match(/^[0-9]+$/)) { str_alert = str_alert + 'Please enter a one-byte integer value for "Space to place the chain."
'; $("#jiku_space").css("background-color", "pink"); } } //(7)1日の稼働時間 if($("#day_time").val() == ""){ str_alert = str_alert + '"Operation hours per day" is a required field.
'; $("#day_time").css("background-color", "pink"); }else{ if (!$("#day_time").val().match(/^-?[0-9]+\.[0-9]+$/) && !$("#day_time").val().match(/^[0-9]+$/)) { str_alert = str_alert + 'Please enter a one-byte integer value for "Operating hours per day."
'; $("#day_time").css("background-color", "pink"); } } //(8)起動停止頻度 if($("#day_teishi").val() == ""){ str_alert = str_alert + '"Starting frequency" is a required field.
'; $("#day_teishi").css("background-color", "pink"); }else{ if (!$("#day_teishi").val().match(/^-?[0-9]+\.[0-9]+$/) && !$("#day_teishi").val().match(/^[0-9]+$/)) { str_alert = str_alert + 'Please enter a one-byte integer value for "Starting frequency."
'; $("#day_teishi").css("background-color", "pink"); }else{ if(str_alert == ""){ //チェーン除外 if(parseFloat($("#day_teishi").val()) > 5){ str_alert = "BELT_ONLY_T" } if($("#select_water_low").prop("checked") || $("#select_water_high").prop("checked") ){ str_alert = "BELT_ONLY_W" } } } } if(str_alert == ""){ if($("#select_oil_high").prop("checked") ){ str_alert = "CHAIN_ONLY" } }else if(str_alert == "BELT_ONLY_T" || str_alert == "BELT_ONLY_W"){ if($("#select_oil_high").prop("checked") ){ str_alert = 'There are no chain or belt model numbers that meet the conditions you have entered. ' } } if(str_alert == ""){ return "T"; } else if(str_alert == "BELT_ONLY_T"){ return "B_T"; } else if(str_alert == "BELT_ONLY_W"){ return "B_W"; } else if(str_alert == "CHAIN_ONLY"){ return "C"; }else{ Swal.fire({ icon: 'warning', title: 'エラー', html: str_alert, allowOutsideClick : false, //枠外クリックは許可しない allowEscapeKey : false, //escも許可しない confirmButtonText : 'Back ', confirmButtonColor: "#767581", width : '600px', padding : '2rem', }); return "F"; } } /*——————————————————————————————————————————————————————————— 参照ウィンドウの表示 ————————————————————————————————————————————————————————————*/ $(document).on('click', '#tbl_factor', function(e) { window.open('/tecs/calc/cdc/calc_cdc_tbl_factor.asp'); }); /*——————————————————————————————————————————————————————————— PDFの出力 ————————————————————————————————————————————————————————————*/ function create_pdf_chain(){ Swal.fire({ title: 'Enter customer information (Optional input )', html: '

※If you do not need to enter any information, please leave it blank.

1.System (What kind of equipment )

2.Mechanism name (What kind of power transmission mechanism )

3.others

', allowOutsideClick : false, //枠外クリックは許可しない focusConfirm: false, showCancelButton: true, confirmButtonText : 'Fixed ', cancelButtonText: 'Back ', width : '490px', padding : '2rem', reverseButtons: true, preConfirm: () => { const input1 = document.getElementById('input1').value; const input2 = document.getElementById('input2').value; const input3 = document.getElementById('input3').value; return { input1: input1, input2: input2,input3: input3 }; } }).then((result) => { if (result.isConfirmed) { $("#pdf_input1").html(result.value.input1) $("#pdf_input2").html(result.value.input2) $("#pdf_input3").html(result.value.input3.replace(/\n/g, '
')) WriteLog_cdc("チェーンPDF"); create_pdf_chain_main(); } }); } function create_pdf_chain_main(){ /////////////////////// ////////チェーン//////// /////////////////////// //各条件の転記 $("#chn_selected").html($(".kekka_table_chain_tr.chain_active").children('.srs').html().replace('
','')); $("#pdf_chain_water").html($('label[for="' + $('input[name="select_water"]:checked').attr('id') + '"]').text()); $("#pdf_chain_oil").html($('label[for="' + $('input[name="select_oil"]:checked').attr('id') + '"]').text()); if($("#select_temp_none").prop("checked")){ $("#pdf_chain_temp").html("0℃~60℃") }else{ $("#pdf_chain_temp").html($("#select_temp_other_from").val() + "℃~" + $("#select_temp_other_to").val() + "℃") } $("#pdf_chain_oilgas").html($('label[for="' + $('input[name="select_oilgas"]:checked').attr('id') + '"]').text()); $("#pdf_chain_fuka").html($('label[for="' + $('input[name="select_fuka"]:checked').attr('id') + '"]').text()); if ($("#motor_kw").prop("disabled")) { $("#pdf_chain_motor_title").html("Output shaft torque "); $("#pdf_chain_motor").html($("#motor_trq").val()); $("#pdf_chain_motor_tani").html("N・m"); }else{ $("#pdf_chain_motor_title").html("capacity "); $("#pdf_chain_motor").html($("#motor_kw").val()); $("#pdf_chain_motor_tani").html("kW"); } $("#pdf_chain_motor_maxtrq").html($("#motor_maxtrq").val()); $("#pdf_chain_kaiten_kudo").html($("#kaiten_kudo").val()); if($("#gaikei_kudo").val() == ""){ $("#pdf_chain_gaikei_kudo").html("-"); }else{ $("#pdf_chain_gaikei_kudo").html($("#gaikei_kudo").val()); } if($("#dia_kudo").val() == ""){ $("#pdf_chain_dia_kudo").html("-"); }else{ $("#pdf_chain_dia_kudo").html($("#dia_kudo").val()); } $("#pdf_chain_kaiten_judo").html($("#kaiten_judo").val()); if($("#gaikei_judo").val() == ""){ $("#pdf_chain_gaikei_judo").html("-"); }else{ $("#pdf_chain_gaikei_judo").html($("#gaikei_judo").val()); } if($("#dia_judo").val() == ""){ $("#pdf_chain_dia_judo").html("-"); }else{ $("#pdf_chain_dia_judo").html($("#dia_judo").val()); } $("#pdf_chain_jiku_kyori").html($("#jiku_kyori").val()); $("#pdf_chain_jiku_space").html($("#jiku_space").val()); $("#pdf_chain_day_teishi").html($("#day_teishi").val()); $("#pdf_chain_day_time").html($("#day_time").val()); $("#pdf_chain_chain_kyuyu").html($('label[for="' + $('input[name="chain_kyuyu"]:checked').attr('id') + '"]').text()); $("#pdf_chain_ks").html($("#t_dr").html()); $("#pdf_chain_hasuu").html($(".kekka_table_chain_tr.chain_active").children('.hasuu').html()); $("#pdf_chain_dai_hasuu").html($(".kekka_table_chain_tr.chain_active").children('.dai_hasuu').html()); $("#pdf_chain_link").html($(".kekka_table_chain_tr.chain_active").children('.link').html()); $("#pdf_chain_distance").html($(".kekka_table_chain_tr.chain_active").children('.distance').html()); if(parseFloat($("#kaiten_kudo").val()) < parseFloat($("#kaiten_judo").val())){ $("#pdf_chain_kaiten").html($("#kaiten_judo").val()); }else{ $("#pdf_chain_kaiten").html($("#kaiten_kudo").val()); } $("#pdf_chain_kw").html($(".kekka_table_chain_tr.chain_active").children('.kw').html()); $("#pdf_chain_pd").html(Math.ceil(parseFloat($("#t_kw").html()) * parseFloat($("#t_dr").html()) * 100) / 100); $("#pdf_chain_kudo_hasuu").html($(".kekka_table_chain_tr.chain_active").children('.hasuu').html()); $("#pdf_chain_judo_hasuu").html($(".kekka_table_chain_tr.chain_active").children('.dai_hasuu').html()); $("#pdf_chain_pcd").html($(".kekka_table_chain_tr.chain_active").children('.pcd').html()); $("#pdf_chain_dai_pcd").html($(".kekka_table_chain_tr.chain_active").children('.dai_pcd').html()); $("#pdf_chain_pcd_m").html(parseFloat($(".kekka_table_chain_tr.chain_active").children('.pcd').html()) + 12); $("#pdf_chain_dai_pcd_m").html(parseFloat($(".kekka_table_chain_tr.chain_active").children('.dai_pcd').html()) + 12); $("#pdf_chain_kudo_max_gaikei").html($("#gaikei_kudo").val()); $("#pdf_chain_judo_max_gaikei").html($("#gaikei_judo").val()); $("#pdf_chain_space").html(Math.round((parseFloat($("#pdf_chain_distance").html()) - (parseFloat($("#pdf_chain_pcd").html())/2 + parseFloat($("#pdf_chain_dai_pcd").html())/2))*100)/100); $("#pdf_chain_jikukan").html(Math.round((parseFloat($("#pdf_chain_distance").html()) + parseFloat($("#pdf_chain_pcd_m").html())/2 + parseFloat($("#pdf_chain_dai_pcd_m").html())/2)*100)/100); $("#pdf_chain_jikukan_space").html(parseFloat($("#pdf_chain_jiku_space").html()) - 20); if($("#jiku_space").val() == "" || $("#jiku_space").val() == "0"){ $("#pdf_chain_jikukan_div").css("display","none"); } //各種判定 //伝動能力チェック if(parseFloat($(".kekka_table_chain_tr.chain_active").children('.kw').html()) > parseFloat($("#t_kw").html()) * parseFloat($("#t_dr").html())){ $("#pdf_chain_hantei_1").html("<OK >"); }else{ $("#pdf_chain_hantei_1").html("<判定NG>"); } //最大外形チェック if($("#gaikei_kudo").val()==""){ $("#pdf_chain_hantei_2").html("<判定なし>"); $("#pdf_chain_kudo_max_gaikei").html("-"); }else{ if(parseFloat($(".kekka_table_chain_tr.chain_active").children('.pcd').html()) + 12 < parseFloat($("#gaikei_kudo").val())){ $("#pdf_chain_hantei_2").html("<OK >"); }else{ $("#pdf_chain_hantei_2").html("<判定NG>"); } } if($("#gaikei_judo").val()==""){ $("#pdf_chain_hantei_3").html("<判定なし>"); $("#pdf_chain_judo_max_gaikei").html("-"); }else{ if(parseFloat($(".kekka_table_chain_tr.chain_active").children('.dai_pcd').html()) + 12 < parseFloat($("#gaikei_judo").val())){ $("#pdf_chain_hantei_3").html("<OK >"); }else{ $("#pdf_chain_hantei_3").html("<判定NG>"); } } //駆動側スプロケットと従動側スプロケットの干渉チェック if(parseFloat($("#pdf_chain_distance").html()) - (parseFloat($("#pdf_chain_pcd").html())/2 + parseFloat($("#pdf_chain_dai_pcd").html())/2) >= 10){ $("#pdf_chain_hantei_4").html("<OK >"); }else{ $("#pdf_chain_hantei_4").html("<判定NG>"); } //軸間距離方向のスペースチェック if(parseFloat($("#pdf_chain_distance").html()) + parseFloat($("#pdf_chain_pcd_m").html())/2 + parseFloat($("#pdf_chain_dai_pcd_m").html())/2 <= parseFloat($("#pdf_chain_jiku_space").html()) - 20){ $("#pdf_chain_hantei_5").html("<OK >"); }else{ $("#pdf_chain_hantei_5").html("<判定NG>"); } //表示 $("#disp_pdf").css("display","block") const doc = new jspdf.jsPDF(); const width = doc.internal.pageSize.width const date = new Date(); doc.setPage(1); const elements = ["#pdf_header","#pdf_header_logo","#pdf_chain"]; //貼り付ける画像要素配列 let promises = []; doc.setFont('Koruri-Regular'); doc.setFontSize(8); doc.text(date.toLocaleString(), 180, 5); elements.forEach((selector, index) => { const element = document.querySelector(selector); promises.push( html2canvas(element, { scale: 1.4 }).then((canvas) => { // html2canvas(element, { scale: 2 }).then((canvas) => { const imgData = canvas.toDataURL("image/png"); switch(index) { case 0: doc.addImage(imgData, 'PNG', 10, 2, width * 0.5, 0) break; case 1: doc.addImage(imgData, 'PNG', 170, 7) break; case 2: doc.addImage(imgData, 'PNG', 10, 20, width, 0) break; case 3: doc.addPage(); doc.setPage(2); doc.addImage(imgData, 'PNG', 10, 10, width, 0) break; default: } }) ); }); Promise.all(promises).then(() => { html2canvas(document.querySelector('#pdf_input_text'), { scale: 1 }).then((canvas) => { const imgData = canvas.toDataURL("image/png"); doc.addPage(); doc.addImage(imgData, 'PNG', 10, 10, width* 0.9, 0); //非表示 $("#disp_pdf").css("display","none") doc.save(date.toLocaleString() + '_tsubaki calculation result_' + $(".kekka_table_chain_tr.chain_active").children('.kataban').html() + '.pdf'); }); }); } function create_pdf_belt(){ Swal.fire({ title: 'Enter customer information (Optional input )', html: '

※If you do not need to enter any information, please leave it blank.

1.System (What kind of equipment )

2.Mechanism name (What kind of power transmission mechanism )

3.others

', allowOutsideClick : false, //枠外クリックは許可しない focusConfirm: false, showCancelButton: true, confirmButtonText : 'Fixed ', cancelButtonText: 'Back ', width : '490px', padding : '2rem', reverseButtons: true, preConfirm: () => { const input4 = document.getElementById('input4').value; const input5 = document.getElementById('input5').value; const input6 = document.getElementById('input6').value; return { input4: input4, input5: input5,input6: input6 }; } }).then((result) => { if (result.isConfirmed) { $("#pdf_input1").html(result.value.input4) $("#pdf_input2").html(result.value.input5) $("#pdf_input3").html(result.value.input6.replace(/\n/g, '
')) WriteLog_cdc("ベルトPDF"); create_pdf_belt_main(); } }); } function create_pdf_belt_main(){ /////////////////////// /////////ベルト///////// /////////////////////// $("#belt_selected").html($(".kekka_table_belt_tr.belt_active").children('.srs').html()); $("#pdf_belt_water").html($('label[for="' + $('input[name="select_water"]:checked').attr('id') + '"]').text()); $("#pdf_belt_oil").html($('label[for="' + $('input[name="select_oil"]:checked').attr('id') + '"]').text()); if($("#select_temp_none").prop("checked")){ $("#pdf_belt_temp").html("0℃~60℃") }else{ $("#pdf_belt_temp").html($("#select_temp_other_from").val() + "℃~" + $("#select_temp_other_to").val() + "℃") } $("#pdf_belt_oilgas").html($('label[for="' + $('input[name="select_oilgas"]:checked').attr('id') + '"]').text()); $("#pdf_belt_fuka").html($('label[for="' + $('input[name="select_fuka"]:checked').attr('id') + '"]').text()); if ($("#motor_kw").prop("disabled")) { $("#pdf_belt_motor_title").html("Output shaft torque "); $("#pdf_belt_motor").html($("#motor_trq").val()); $("#pdf_belt_motor_tani").html("N・m"); }else{ $("#pdf_belt_motor_title").html("capacity "); $("#pdf_belt_motor").html($("#motor_kw").val()); $("#pdf_belt_motor_tani").html("kW"); } $("#pdf_belt_motor_maxtrq").html($("#motor_maxtrq").val()); $("#pdf_belt_kaiten_kudo").html($("#kaiten_kudo").val()); if($("#gaikei_kudo").val() == ""){ $("#pdf_belt_gaikei_kudo").html("-"); }else{ $("#pdf_belt_gaikei_kudo").html($("#gaikei_kudo").val()); } if($("#dia_kudo").val() == ""){ $("#pdf_belt_dia_kudo").html("-"); }else{ $("#pdf_belt_dia_kudo").html($("#dia_kudo").val()); } $("#pdf_belt_kaiten_judo").html($("#kaiten_judo").val()); if($("#gaikei_judo").val() == ""){ $("#pdf_belt_gaikei_judo").html("-"); }else{ $("#pdf_belt_gaikei_judo").html($("#gaikei_judo").val()); } if($("#dia_judo").val() == ""){ $("#pdf_belt_dia_judo").html("-"); }else{ $("#pdf_belt_dia_judo").html($("#dia_judo").val()); } $("#pdf_belt_jiku_kyori").html($("#jiku_kyori").val()); $("#pdf_belt_jiku_space").html($("#jiku_space").val()); $("#pdf_belt_day_teishi").html($("#day_teishi").val()); $("#pdf_belt_day_time").html($("#day_time").val()); $("#pdf_belt_idra").html($('label[for="' + $('input[name="belt_idra"]:checked').attr('id') + '"]').text()); $("#pdf_belt_ko").html($("#t_ko").html()); $("#pdf_belt_ki").html($("#t_ki").html()); $("#pdf_belt_ks").html($("#t_ks").html()); $("#pdf_belt_ka").html($("#t_ka").html()); $("#pdf_belt_hasuu").html($(".kekka_table_belt_tr.belt_active").children('.hasuu').html()); $("#pdf_belt_dai_hasuu").html($(".kekka_table_belt_tr.belt_active").children('.dai_hasuu').html()); $("#pdf_belt_width").html($(".kekka_table_belt_tr.belt_active").children('.width').html()); $("#pdf_belt_length").html($(".kekka_table_belt_tr.belt_active").children('.length').html()); $("#pdf_belt_distance").html($(".kekka_table_belt_tr.belt_active").children('.distance_v').html()); $("#pdf_belt_kamihasuu").html($(".kekka_table_belt_tr.belt_active").children('.kamihasuu').html()); if(parseFloat($("#kaiten_kudo").val()) < parseFloat($("#kaiten_judo").val())){ $("#pdf_belt_kaiten").html($("#kaiten_judo").val()); }else{ $("#pdf_belt_kaiten").html($("#kaiten_kudo").val()); } $("#pdf_belt_pu").html( Math.floor(parseFloat($(".kekka_table_belt_tr.belt_active").children('.pu').html()) * 100) / 100 ); $("#pdf_belt_km").html($(".kekka_table_belt_tr.belt_active").children('.p_dFactorKm').html()); $("#pdf_belt_kl").html($(".kekka_table_belt_tr.belt_active").children('.p_dFactorKL').html()); $("#pdf_belt_kw").html($(".kekka_table_belt_tr.belt_active").children('.WidthFact').html()); if($(".kekka_table_belt_tr.belt_active").children('.srs').html() == "ウルトラPX・HA仕様") { $("#pdf_belt_ke").html("1.2"); $("#pdf_belt_pd").html(Math.ceil(parseFloat($("#t_kw").html()) * (parseFloat($("#pdf_belt_ko").html()) + parseFloat($("#pdf_belt_ki").html()) + parseFloat($("#pdf_belt_ks").html())) * parseFloat($("#pdf_belt_ka").html()) * 1.2 * 100)/100); }else{ $("#pdf_belt_ke").html("-"); $("#pdf_belt_pd").html(Math.ceil($("#t_kw").html() * (parseFloat($("#pdf_belt_ko").html()) + parseFloat($("#pdf_belt_ki").html()) + parseFloat($("#pdf_belt_ks").html())) * parseFloat($("#pdf_belt_ka").html()) * 100)/100); } $("#pdf_belt_check_kw").html(Math.ceil(parseFloat($(".kekka_table_belt_tr.belt_active").children('.pu').html()) * parseFloat($(".kekka_table_belt_tr.belt_active").children('.p_dFactorKm').html()) * parseFloat($(".kekka_table_belt_tr.belt_active").children('.p_dFactorKL').html()) * parseFloat($(".kekka_table_belt_tr.belt_active").children('.WidthFact').html()) * 100)/100); $("#pdf_belt_kudo_hasuu").html($(".kekka_table_belt_tr.belt_active").children('.hasuu').html()); $("#pdf_belt_judo_hasuu").html($(".kekka_table_belt_tr.belt_active").children('.dai_hasuu').html()); $("#pdf_belt_pcd").html($(".kekka_table_belt_tr.belt_active").children('.pcd').html()); $("#pdf_belt_dai_pcd").html($(".kekka_table_belt_tr.belt_active").children('.dai_pcd').html()); $("#pdf_belt_outdia").html($(".kekka_table_belt_tr.belt_active").children('.outdia').html()); $("#pdf_belt_dai_outdia").html($(".kekka_table_belt_tr.belt_active").children('.dai_outdia').html()); $("#pdf_belt_kudo_max_gaikei").html($("#gaikei_kudo").val()); $("#pdf_belt_judo_max_gaikei").html($("#gaikei_judo").val()); $("#pdf_belt_space").html(Math.round((parseFloat($("#pdf_belt_distance").html()) - (parseFloat($("#pdf_belt_outdia").html())/2 + parseFloat($("#pdf_belt_dai_outdia").html())/2)) * 10) / 10); $("#pdf_belt_jikukan").html(Math.round((parseFloat($("#pdf_belt_distance").html()) + parseFloat($("#pdf_belt_outdia").html())/2 + parseFloat($("#pdf_belt_dai_outdia").html())/2) * 10) / 10); $("#pdf_belt_jikukan_space").html(parseFloat($("#pdf_belt_jiku_space").html()) - 20); if($(".kekka_table_belt_tr.belt_active").children('.kataban').html().indexOf('2M') > 0){ $("#pdf_belt_w").html("W=4mm"); }else if($(".kekka_table_belt_tr.belt_active").children('.kataban').html().indexOf('3M') > 0){ $("#pdf_belt_w").html("W=6mm"); } else if($(".kekka_table_belt_tr.belt_active").children('.kataban').html().indexOf('5M') > 0){ $("#pdf_belt_w").html("W=10mm"); } else if($(".kekka_table_belt_tr.belt_active").children('.kataban').html().indexOf('8M') > 0){ $("#pdf_belt_w").html("W=15mm"); }else if($(".kekka_table_belt_tr.belt_active").children('.kataban').html().indexOf('14M') > 0){ $("#pdf_belt_w").html("W=40mm"); } if($("#jiku_space").val() == "" || $("#jiku_space").val() == "0"){ $("#pdf_belt_jikukan_div").css("display","none"); } //各種判定 //設計動力チェック if(parseFloat($("#pdf_belt_pd").html()) <= parseFloat($("#pdf_belt_check_kw").html())){ $("#pdf_belt_hantei_1").html("<OK >"); }else{ $("#pdf_belt_hantei_1").html("<判定NG>"); } //最大外形チェック if($("#gaikei_kudo").val()==""){ $("#pdf_belt_hantei_2").html("<判定なし>"); $("#pdf_belt_kudo_max_gaikei").html("-"); }else{ if(parseFloat($(".kekka_table_belt_tr.belt_active").children('.outdia').html()) < parseFloat($("#gaikei_kudo").val())){ $("#pdf_belt_hantei_2").html("<OK >"); }else{ $("#pdf_belt_hantei_2").html("<判定NG>"); } } if($("#gaikei_judo").val()==""){ $("#pdf_belt_hantei_3").html("<判定なし>"); $("#pdf_belt_judo_max_gaikei").html("-"); }else{ if(parseFloat($(".kekka_table_belt_tr.belt_active").children('.dai_outdia').html()) < parseFloat($("#gaikei_judo").val())){ $("#pdf_belt_hantei_3").html("<OK >"); }else{ $("#pdf_belt_hantei_3").html("<判定NG>"); } } //駆動側プーリと従動側プーリの干渉チェック if(parseFloat($("#pdf_belt_distance").html()) - (parseFloat($("#pdf_belt_outdia").html())/2 + parseFloat($("#pdf_belt_dai_outdia").html())/2) >= 10){ $("#pdf_belt_hantei_4").html("<OK >"); }else{ $("#pdf_belt_hantei_4").html("<判定NG>"); } //軸間距離方向のスペースチェック if(parseFloat($("#pdf_belt_distance").html()) + parseFloat($("#pdf_belt_outdia").html())/2 + parseFloat($("#pdf_belt_dai_outdia").html())/2 <= parseFloat($("#pdf_belt_jiku_space").html()) - 20){ $("#pdf_belt_hantei_5").html("<OK >"); }else{ $("#pdf_belt_hantei_5").html("<判定NG>"); } //表示 $("#disp_pdf").css("display","block") const doc = new jspdf.jsPDF(); const width = doc.internal.pageSize.width const date = new Date(); doc.setPage(1); const elements = ["#pdf_header","#pdf_header_logo","#pdf_belt"]; //貼り付ける画像要素配列 let promises = []; doc.setFont('Koruri-Regular'); doc.setFontSize(8); doc.text(date.toLocaleString(), 180, 5); elements.forEach((selector, index) => { const element = document.querySelector(selector); promises.push( html2canvas(element, { scale: 1.4 }).then((canvas) => { // html2canvas(element, { scale: 2 }).then((canvas) => { const imgData = canvas.toDataURL("image/png"); switch(index) { case 0: doc.addImage(imgData, 'PNG', 10, 0, width * 0.5, 0) break; case 1: doc.addImage(imgData, 'PNG', 170, 7) break; case 2: doc.addImage(imgData, 'PNG', 10, 15, width, 0) break; default: } }) ); }); Promise.all(promises).then(() => { html2canvas(document.querySelector('#pdf_input_text'), { scale: 1 }).then((canvas) => { const imgData = canvas.toDataURL("image/png"); doc.addPage(); doc.addImage(imgData, 'PNG', 10, 10, width* 0.9, 0); doc.save(date.toLocaleString() + '_tsubaki calculation result_'+ $(".kekka_table_belt_tr.belt_active").children('.kataban').html() +'.pdf'); //非表示 $("#disp_pdf").css("display","none") }); }); } /*——————————————————————————————————————————————————————————— ログテーブルへの書き込み処理 ————————————————————————————————————————————————————————————*/ function WriteLog_cdc(step) { let select_temp; let yurumihari_idra; let uchisoto_idra; let kataban; let srs; let retsu; let pitch; let width; let hasuu; let dai_hasuu; let dendo; if($('input[name="select_temp"]:checked').val() == "other"){ select_temp = $('#select_temp_other_from').val() + '~' + $('#select_temp_other_to').val(); }else{ select_temp = '0~60'; } if($('input[name="belt_idra"]:checked').val() == "ok"){ yurumihari_idra = $('input[name="yurumihari_idra"]:checked').val(); uchisoto_idra = $('input[name="uchisoto_idra"]:checked').val(); }else{ yurumihari_idra = ''; uchisoto_idra = ''; } if(step == "チェーンPDF"){ kataban = $(".kekka_table_chain_tr.chain_active").children('.kataban').html(); srs = $(".kekka_table_chain_tr.chain_active").children('.srs').html().replace('
',''); retsu = $(".kekka_table_chain_tr.chain_active").children('.retsu').html(); pitch = $(".kekka_table_chain_tr.chain_active").children('.pitch').html(); width = ''; hasuu = $(".kekka_table_chain_tr.chain_active").children('.hasuu').html(); dai_hasuu = $(".kekka_table_chain_tr.chain_active").children('.dai_hasuu').html(); dendo = $(".kekka_table_chain_tr.chain_active").children('.dendo').html().replace('
','/'); }else if(step == "ベルトPDF"){ kataban = $(".kekka_table_belt_tr.belt_active").children('.kataban').html(); srs = $(".kekka_table_belt_tr.belt_active").children('.srs').html().replace('
',''); retsu = ''; pitch = $(".kekka_table_belt_tr.belt_active").children('.pitch').html(); width = $(".kekka_table_belt_tr.belt_active").children('.width').html(); hasuu = $(".kekka_table_belt_tr.belt_active").children('.hasuu').html(); dai_hasuu = $(".kekka_table_belt_tr.belt_active").children('.dai_hasuu').html(); dendo = $(".kekka_table_belt_tr.belt_active").children('.dendo').html().replace('
','/'); } $.post( "calc_cdc_writelog.asp" , { id:"" , step:step , select_water: $('input[name="select_water"]:checked').val() , select_oil: $('input[name="select_oil"]:checked').val() , select_temp:select_temp , select_oilgas: $('input[name="select_oilgas"]:checked').val() , select_fuka: $('input[name="select_fuka"]:checked').val() , motor_kw: $('#motor_kw').val() , motor_trq: $('#motor_trq').val() , motor_maxtrq: $('#motor_maxtrq').val() , kaiten_kudo: $('#kaiten_kudo').val() , gaikei_kudo: $('#gaikei_kudo').val() , dia_kudo: $('#dia_kudo').val() , kaiten_judo: $('#kaiten_judo').val() , gaikei_judo: $('#gaikei_judo').val() , dia_judo: $('#dia_judo').val() , jiku_kyori: $('#jiku_kyori').val() , jiku_space: $('#jiku_space').val() , day_time: $('#day_time').val() , day_teishi: $('#day_teishi').val() , chain_kyuyu: $('input[name="chain_kyuyu"]:checked').val() , belt_idra: $('input[name="belt_idra"]:checked').val() , yurumihari_idra: yurumihari_idra , uchisoto_idra: uchisoto_idra , kataban: kataban , srs: srs , retsu: retsu , pitch: pitch , width: width , hasuu: hasuu , dai_hasuu: dai_hasuu , dendo: dendo , pdf_1:$("#pdf_input1").html() , pdf_2:$("#pdf_input2").html() , pdf_3:$("#pdf_input3").html() } ); } /*——————————————————————————————————————————————————————————— 操作マニュアル関連 ————————————————————————————————————————————————————————————*/ // $(document).on('click','#aside4_button',function(e) { window.open("FAQ_English.pdf", "manual", "width=800,height=800,scrollbars=yes"); });