{"id":3159,"date":"2020-04-16T03:01:46","date_gmt":"2020-04-15T18:01:46","guid":{"rendered":"https:\/\/mindstorms.tokyo\/?page_id=3159"},"modified":"2020-04-16T03:01:46","modified_gmt":"2020-04-15T18:01:46","slug":"tank","status":"publish","type":"page","link":"https:\/\/mindstorms.tokyo\/en\/action\/tank\/","title":{"rendered":"Tank Block\u3010How to use MINDSTORMS\u3011"},"content":{"rendered":"\n<a href=\"https:\/\/amzn.to\/3aRNDiS\" target=\"_blank\" rel=\"noopener noreferrer\">\n<img src=\"https:\/\/m.media-amazon.com\/images\/S\/abs-image-upload-na\/e\/AmazonStores\/ATVPDKIKX0DER\/0b0d850b84aa310ad38fa5c65f7a7337.w3000.h600._CR0%2C0%2C3000%2C600_SX1920_.jpg\" alt=\"LEGO\u30c6\u30af\u30cb\u30c3\u30af\" title=\"LEGO\u30c6\u30af\u30cb\u30c3\u30af\" border=\"0\">\n<\/a>\n\n\n\n<h2 style=\"text-align:center\" class=\"h2\">LEGO \u3010MINDSTORMS\u3011EV3<\/h2>\n\n\n\n<h1>Move Tank Block<\/h1>\n\n\n\n<div>\n<h4 style=\"text-align:left\" id=\"area1\" class=\"h4\">Move Tank Block\u3000- Overview -\u3000<\/h4>\n<br>\n<center>\n\n<div class=\"box1\">\n <div class=\"sel1\">\n  <select name=\"channel\" onchange=\"imgChange(this)\">\n   <option value=\"5\" hidden=\"\">Select the mode<\/option>\n   <option value=\"5\">Overview<\/option>\n   <option value=\"0\">Off<\/option>\n   <option value=\"1\">On<\/option>\n   <option value=\"2\">On for Seconds<\/option>\n   <option value=\"3\">On for Degrees<\/option>\n   <option value=\"4\">On for Rotations<\/option>\n  <\/select>\n <\/div>\n\n<img src=\"https:\/\/mindstorms.tokyo\/wp-content\/uploads\/tank_overview_EN-e1586971730773.png\" name=\"imgsmp\">\n\n<br><br>\n\n\n\n<div>\n<div class=\"ad_pc\">\n<iframe src=\"\/\/rcm-na.amazon-adsystem.com\/e\/cm?o=1&amp;p=26&amp;l=ur1&amp;category=amazonhomepage&amp;f=ifr&amp;linkID=da254e3c8b5ee3714127a5aa4677ef37&amp;t=hitorigotokun-20&amp;tracking_id=hitorigotokun-20\" width=\"468\" height=\"60\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"><\/iframe>\n<\/div>\n\n<div class=\"ad_sp\">\n<iframe src=\"\/\/rcm-na.amazon-adsystem.com\/e\/cm?o=1&amp;p=42&amp;l=ur1&amp;category=amazonhomepage&amp;f=ifr&amp;linkID=aaf6b36c0aa3345cae58c3e7f77b3541&amp;t=hitorigotokun-20&amp;tracking_id=hitorigotokun-20\" width=\"234\" height=\"60\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"><\/iframe>\n<\/div>\n<\/div>\n\n\n\n<\/div>\n<\/center>\n<br>\n\n<div class=\"box2\">\n <div id=\"area2\">The Move Tank block can make a robot drive forward, backward, turn, or stop. Use the Move Tank block for robot vehicles that have two Large Motors, with one motor driving the left side of the vehicle and the other the right side. You can make the two motors go at different speeds or in different directions to make your robot turn.<\/div>\n <div id=\"area3\">\u3000<\/div>\n <div id=\"area4\">\uff0aRobot vehicles with two drive motors can also be controlled by the Move Steering block. The Move Steering block is similar to the Move Tank block, but has a different way of controlling turns.<\/div>\n <div id=\"area5\">\u3000<\/div>\n <div id=\"area6\">Select the two motors (A, B, C, or D) that you want the Move Tank block to control by using the Port Selector on the top of the block. Click on each motor letter to choose the port for that motor. The first port should be the motor on the left side of the vehicle, and the second port should be the motor on the right side.<\/div>\n <div id=\"area7\">\u3000<\/div>\n <div id=\"area8\">Use the Mode Selector to select how you want to control the motors. After selecting the mode, you can choose values for the inputs. The inputs available will change depending on the mode. The modes and inputs are described below.<\/div>\n <div id=\"area9\">\u3000<\/div>\n <div id=\"area10\">[Modes] : On , Off , On for Seconds , On for Degrees , On for Rotations<\/div>\n<\/div>\n\n\n<script language=\"JavaScript\">\n<!--\nimg0=new Image()\nimg0.src=\"https:\/\/talk-to-myself.com\/wp-content\/uploads\/2019\/05\/tank_0.png\"\nimg1=new Image()\nimg1.src=\"https:\/\/talk-to-myself.com\/wp-content\/uploads\/2019\/05\/tank_1.png\"\nimg2=new Image()\nimg2.src=\"https:\/\/talk-to-myself.com\/wp-content\/uploads\/2019\/05\/tank_2.png\"\nimg3=new Image()\nimg3.src=\"https:\/\/talk-to-myself.com\/wp-content\/uploads\/2019\/05\/tank_3.png\"\nimg4=new Image()\nimg4.src=\"https:\/\/talk-to-myself.com\/wp-content\/uploads\/2019\/05\/tank_4.png\"\nimg5=new Image()\nimg5.src=\"https:\/\/mindstorms.tokyo\/wp-content\/uploads\/tank_overview_EN-e1586971730773.png\"\n\nfunction imgChange(parts){\nfname=parts.options[parts.selectedIndex].value;\n\n\nif(fname==0){\n  document.imgsmp.src=img0.src;\n  document.getElementById(\"area1\").innerText = \"Off\";\n  document.getElementById(\"area2\").innerText = \"The Off mode turns both motors off. Use the Off mode to stop a robot that was started by the On mode earlier in the program. See the example above.\";\n  document.getElementById(\"area3\").innerText = \"\u3000\";\n  document.getElementById(\"area4\").innerText = \"If Brake at End is True, the motors are stopped immediately. The motors will be held in their stopped position until another Move or Motor block starts them, or until the program ends.\";\n  document.getElementById(\"area5\").innerText = \"If Brake at End is False, power to the motors is simply turned off. The motors will coast using any remaining momentum until they stop, or until another Move or Motor block starts.\";\n  document.getElementById(\"area6\").innerText = \"\u3000\";\n  document.getElementById(\"area7\").innerText = \"[Inputs used] : Brake at End\";\n  document.getElementById(\"area8\").innerText = \"\";\n  document.getElementById(\"area9\").innerText = \"\";\n  document.getElementById(\"area10\").innerText = \"\";\n }\n\nif(fname==1){\n  document.imgsmp.src=img1.src;\n  document.getElementById(\"area1\").innerText = \"On\";\n  document.getElementById(\"area2\").innerText = \"The On mode turns both motors on, then immediately continues to the next block in the program.\";\n  document.getElementById(\"area3\").innerText = \"You can control the speed and direction of the motors using the Power Left and Power Right inputs.\";\n  document.getElementById(\"area4\").innerText = \"The motors will run until they are stopped or changed by another block later in the program, or until the program ends.\";\n  document.getElementById(\"area5\").innerText = \"\";\n  document.getElementById(\"area6\").innerText = \"\";\n  document.getElementById(\"area7\").innerText = \"\";\n  document.getElementById(\"area8\").innerText = \"\";\n  document.getElementById(\"area9\").innerText = \"\";\n  document.getElementById(\"area10\").innerText = \"\";\n }\n\nif(fname==2){\n  document.imgsmp.src=img2.src;\n  document.getElementById(\"area1\").innerText = \"On For Seconds\";\n  document.getElementById(\"area2\").innerText = \"On for Seconds turns both motors on for the number of seconds in the Seconds input, then turns them off. The block will wait until the time has passed before the program will continue to the next block.\";\n  document.getElementById(\"area3\").innerText = \"\u3000\";\n  document.getElementById(\"area4\").innerText = \"You can control the speed and direction of your robot using the Power Left and Power Right inputs. Use Brake at End to stop your robot after exactly the specified number of seconds.\";\n  document.getElementById(\"area5\").innerText = \"\u3000\";\n  document.getElementById(\"area6\").innerText = \"[Inputs used] : Power Left , Power Right , Seconds , Brake at End\";\n  document.getElementById(\"area7\").innerText = \"\u3000\";\n  document.getElementById(\"area8\").innerText = \"\uff0aYou can use a decimal point in the Seconds input to get an exact amount of time, such as 3.5 for three and a half seconds, and 0.25 seconds for one quarter of a second.\";\n  document.getElementById(\"area9\").innerText = \"\";\n  document.getElementById(\"area10\").innerText = \"\";\n }\n\nif(fname==3){\n  document.imgsmp.src=img3.src;\n  document.getElementById(\"area1\").innerText = \"On For Degrees\";\n  document.getElementById(\"area2\").innerText = \"On for Degrees turns both motors on, waits until one of them has turned for the number of degrees of rotation in the Degrees input, and then turns both motors off.\";\n  document.getElementById(\"area3\").innerText = \"This can be used to make your robot travel a specific distance or turn a specific amount. 360 degrees of rotation corresponds to one full turn of a motor.\";\n  document.getElementById(\"area4\").innerText = \"\u3000\";\n  document.getElementById(\"area5\").innerText = \"You can control the speed and direction of your robot using the Power Left and Power Right inputs. Use Brake at End to stop your robot after exactly the specified number of degrees.\";\n  document.getElementById(\"area6\").innerText = \"[Inputs used] : Power Left , Power Right , Degrees , Brake at End\";\n  document.getElementById(\"area7\").innerText = \"\u3000\";\n  document.getElementById(\"area8\").innerText = \"\uff0aThe distance that your robot will travel depends on the Degrees input. However, the distance also depends on the diameter of the drive wheels used and other physical factors. The internal rotation sensors in the motors measure the amount of rotation at the motor hubs.\";\n  document.getElementById(\"area9\").innerText = \"\u3000\";\n  document.getElementById(\"area10\").innerText = \"\uff0aNote that the Degrees input measures the amount of motor rotation of the forward or faster motor, not the change in the robot\u2019s direction when turning. The change in the robot\u2019s direction will depend on wheel diameter, wheel spacing, and other factors.\";\n }\n    \nif(fname==4){\n  document.imgsmp.src=img4.src;\n  document.getElementById(\"area1\").innerText = \"On For Rotations\";\n  document.getElementById(\"area2\").innerText = \"On for Rotations turns both motors on, waits until one of them has turned for the number of rotations in the Rotations input, then turns both motors off. This can be used to make your robot travel a specific distance or turn a specific amount.\";\n  document.getElementById(\"area3\").innerText = \"\u3000\";\n  document.getElementById(\"area4\").innerText = \"You can control the speed and direction of your robot using the Power Left and Power Right inputs. Use Brake at End to stop your robot after exactly the specified number of rotations.\";\n  document.getElementById(\"area5\").innerText = \"\u3000\";\n  document.getElementById(\"area6\").innerText = \"[Inputs used] : Power Left , Power Right , Rotations , Brake at End\";\n  document.getElementById(\"area7\").innerText = \"\u3000\";\n  document.getElementById(\"area8\").innerText = \"\uff0aThe On for Rotations mode is exactly the same as the On for Degrees mode, but it uses a different unit of rotation. You can also use a decimal point in the Rotations input to get parts of a rotation.\";\n  document.getElementById(\"area9\").innerText = \"\";\n  document.getElementById(\"area10\").innerText = \"\";\n }\n\nif(fname==5){\n  document.imgsmp.src=img5.src;\n  document.getElementById(\"area1\").innerText = \"Overview\";\n  document.getElementById(\"area2\").innerText = \"The Move Tank block can make a robot drive forward, backward, turn, or stop. Use the Move Tank block for robot vehicles that have two Large Motors, with one motor driving the left side of the vehicle and the other the right side. You can make the two motors go at different speeds or in different directions to make your robot turn.\";\n  document.getElementById(\"area3\").innerText = \"\u3000\";\n  document.getElementById(\"area4\").innerText = \"\uff0aRobot vehicles with two drive motors can also be controlled by the Move Steering block. The Move Steering block is similar to the Move Tank block, but has a different way of controlling turns.\";\n  document.getElementById(\"area5\").innerText = \"\u3000\";\n  document.getElementById(\"area6\").innerText = \"Select the two motors (A, B, C, or D) that you want the Move Tank block to control by using the Port Selector on the top of the block. Click on each motor letter to choose the port for that motor. The first port should be the motor on the left side of the vehicle, and the second port should be the motor on the right side.\";\n  document.getElementById(\"area7\").innerText = \"\u3000\";\n  document.getElementById(\"area8\").innerText = \"Use the Mode Selector to select how you want to control the motors. After selecting the mode, you can choose values for the inputs. The inputs available will change depending on the mode. The modes and inputs are described below.\";\n  document.getElementById(\"area9\").innerText = \"\u3000\";\n  document.getElementById(\"area10\").innerText = \"[Modes] : On , Off , On for Seconds , On for Degrees , On for Rotations\";\n }\n}\n\n\/\/ -->\n<\/script>\n    \n<\/div>\n<div class=\"veu_socialSet veu_socialSet-position-after veu_contentAddSection\"><script>window.twttr=(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};if(d.getElementById(id))return t;js=d.createElement(s);js.id=id;js.src=\"https:\/\/platform.twitter.com\/widgets.js\";fjs.parentNode.insertBefore(js,fjs);t._e=[];t.ready=function(f){t._e.push(f);};return t;}(document,\"script\",\"twitter-wjs\"));<\/script><ul><li class=\"sb_facebook sb_icon\"><a class=\"sb_icon_inner\" href=\"\/\/www.facebook.com\/sharer.php?src=bm&u=https%3A%2F%2Fmindstorms.tokyo%2Fen%2Faction%2Ftank%2F&amp;t=LEGO%20EV3%20MINDSTORMS%20by%20%E7%8B%AC%E3%82%8A%E8%A8%80%E3%81%8F%E3%82%93\" target=\"_blank\" onclick=\"window.open(this.href,'FBwindow','width=650,height=450,menubar=no,toolbar=no,scrollbars=yes');return false;\"><span class=\"vk_icon_w_r_sns_fb icon_sns\"><\/span><span class=\"sns_txt\">Facebook<\/span><span class=\"veu_count_sns_fb\"><\/span><\/a><\/li><li class=\"sb_twitter sb_icon\"><a class=\"sb_icon_inner\" href=\"\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fmindstorms.tokyo%2Fen%2Faction%2Ftank%2F&amp;text=LEGO%20EV3%20MINDSTORMS%20by%20%E7%8B%AC%E3%82%8A%E8%A8%80%E3%81%8F%E3%82%93\" target=\"_blank\" ><span class=\"vk_icon_w_r_sns_twitter icon_sns\"><\/span><span class=\"sns_txt\">twitter<\/span><\/a><\/li><li class=\"sb_hatena sb_icon\"><a class=\"sb_icon_inner\" href=\"\/\/b.hatena.ne.jp\/add?mode=confirm&url=https%3A%2F%2Fmindstorms.tokyo%2Fen%2Faction%2Ftank%2F&amp;title=LEGO%20EV3%20MINDSTORMS%20by%20%E7%8B%AC%E3%82%8A%E8%A8%80%E3%81%8F%E3%82%93\" target=\"_blank\"  onclick=\"window.open(this.href,'Hatenawindow','width=650,height=450,menubar=no,toolbar=no,scrollbars=yes');return false;\"><span class=\"vk_icon_w_r_sns_hatena icon_sns\"><\/span><span class=\"sns_txt\">Hatena<\/span><span class=\"veu_count_sns_hb\"><\/span><\/a><\/li><li class=\"sb_pocket sb_icon\"><a class=\"sb_icon_inner\"  href=\"\/\/getpocket.com\/edit?url=https%3A%2F%2Fmindstorms.tokyo%2Fen%2Faction%2Ftank%2F&title=LEGO%20EV3%20MINDSTORMS%20by%20%E7%8B%AC%E3%82%8A%E8%A8%80%E3%81%8F%E3%82%93\" target=\"_blank\"  onclick=\"window.open(this.href,'Pokcetwindow','width=650,height=450,menubar=no,toolbar=no,scrollbars=yes');return false;\"><span class=\"vk_icon_w_r_sns_pocket icon_sns\"><\/span><span class=\"sns_txt\">Pocket<\/span><span class=\"veu_count_sns_pocket\"><\/span><\/a><\/li><li class=\"sb_copy sb_icon\"><button class=\"copy-button sb_icon_inner\"data-clipboard-text=\"LEGO EV3 MINDSTORMS by \u72ec\u308a\u8a00\u304f\u3093 https:\/\/mindstorms.tokyo\/en\/action\/tank\/\"><span class=\"vk_icon_w_r_sns_copy icon_sns\"><i class=\"fas fa-copy\"><\/i><\/span><span class=\"sns_txt\">Copy<\/span><\/button><\/li><\/ul><\/div><!-- [ \/.socialSet ] -->","protected":false},"excerpt":{"rendered":"<p>MINDSTORMS &#8220;Tank Block&#8221; Explanation<\/p>\n","protected":false},"author":1,"featured_media":2451,"parent":3125,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_locale":"en_US","_original_post":"http:\/\/talk-to-myself.com\/?page_id=1089","vkexunit_cta_each_option":""},"_links":{"self":[{"href":"https:\/\/mindstorms.tokyo\/wp-json\/wp\/v2\/pages\/3159"}],"collection":[{"href":"https:\/\/mindstorms.tokyo\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mindstorms.tokyo\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mindstorms.tokyo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mindstorms.tokyo\/wp-json\/wp\/v2\/comments?post=3159"}],"version-history":[{"count":3,"href":"https:\/\/mindstorms.tokyo\/wp-json\/wp\/v2\/pages\/3159\/revisions"}],"predecessor-version":[{"id":3163,"href":"https:\/\/mindstorms.tokyo\/wp-json\/wp\/v2\/pages\/3159\/revisions\/3163"}],"up":[{"embeddable":true,"href":"https:\/\/mindstorms.tokyo\/wp-json\/wp\/v2\/pages\/3125"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mindstorms.tokyo\/wp-json\/wp\/v2\/media\/2451"}],"wp:attachment":[{"href":"https:\/\/mindstorms.tokyo\/wp-json\/wp\/v2\/media?parent=3159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}