{"id":4860,"date":"2018-07-17T18:22:22","date_gmt":"2018-07-17T17:22:22","guid":{"rendered":"http:\/\/pthat.com\/?page_id=4860"},"modified":"2018-07-17T20:11:27","modified_gmt":"2018-07-17T19:11:27","slug":"commandexamples","status":"publish","type":"page","link":"https:\/\/pthat.com\/index.php\/commandexamples\/","title":{"rendered":"Command Examples"},"content":{"rendered":"<p>[et_pb_section admin_label=&#8221;section&#8221; transparent_background=&#8221;off&#8221; background_color=&#8221;#f9f9f9&#8243; allow_player_pause=&#8221;off&#8221; inner_shadow=&#8221;off&#8221; parallax=&#8221;off&#8221; parallax_method=&#8221;off&#8221; padding_mobile=&#8221;off&#8221; make_fullwidth=&#8221;off&#8221; use_custom_width=&#8221;off&#8221; width_unit=&#8221;on&#8221; make_equal=&#8221;off&#8221; use_custom_gutter=&#8221;off&#8221;][et_pb_row admin_label=&#8221;row&#8221; make_fullwidth=&#8221;off&#8221; use_custom_width=&#8221;off&#8221; width_unit=&#8221;on&#8221; use_custom_gutter=&#8221;off&#8221; padding_mobile=&#8221;off&#8221; background_color=&#8221;#f9f9f9&#8243; allow_player_pause=&#8221;off&#8221; parallax=&#8221;off&#8221; parallax_method=&#8221;off&#8221; make_equal=&#8221;off&#8221; parallax_1=&#8221;off&#8221; parallax_method_1=&#8221;off&#8221; column_padding_mobile=&#8221;on&#8221;][et_pb_column type=&#8221;4_4&#8243;][et_pb_text admin_label=&#8221;Text&#8221; background_layout=&#8221;light&#8221; text_orientation=&#8221;center&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;]<\/p>\n<h1><span style=\"font-size: 36pt;\">Command Set Examples<\/span><\/h1>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section admin_label=&#8221;Section&#8221; fullwidth=&#8221;off&#8221; specialty=&#8221;off&#8221; transparent_background=&#8221;off&#8221; allow_player_pause=&#8221;off&#8221; inner_shadow=&#8221;off&#8221; parallax=&#8221;off&#8221; parallax_method=&#8221;off&#8221; padding_mobile=&#8221;off&#8221; make_fullwidth=&#8221;off&#8221; use_custom_width=&#8221;off&#8221; width_unit=&#8221;on&#8221; make_equal=&#8221;off&#8221; use_custom_gutter=&#8221;off&#8221;][et_pb_row admin_label=&#8221;Row&#8221; make_fullwidth=&#8221;off&#8221; use_custom_width=&#8221;off&#8221; width_unit=&#8221;on&#8221; use_custom_gutter=&#8221;off&#8221; padding_mobile=&#8221;off&#8221; allow_player_pause=&#8221;off&#8221; parallax=&#8221;off&#8221; parallax_method=&#8221;off&#8221; make_equal=&#8221;off&#8221; parallax_1=&#8221;off&#8221; parallax_method_1=&#8221;off&#8221; column_padding_mobile=&#8221;on&#8221;][et_pb_column type=&#8221;4_4&#8243;][et_pb_text admin_label=&#8221;Text&#8221; background_layout=&#8221;light&#8221; text_orientation=&#8221;left&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;]<\/p>\n<p><span style=\"font-size: x-large;\"><span style=\"font-size: 14pt;\">Here we shall list some quick and easy examples to help people get up and running.<\/span><\/span><\/p>\n<p><span style=\"font-size: x-large;\"><span style=\"font-size: 14pt;\">You can find a fully comprehensive breakdown of all the commands in the <strong><a href=\"https:\/\/pthat.com\/index.php\/command-set\/\">Command Set\u00a0Page<\/a><\/strong> for more of a detailed view.<\/span><\/span><\/p>\n<p><span style=\"font-size: x-large;\"><span style=\"font-size: 14pt;\"><span style=\"font-size: x-large;\"><span style=\"font-size: 14pt;\">When you first get your PTHAT you can test it by manually sending commands via a Terminal program such as Putty, Hyper Terminal etc.<\/span><\/span><\/span><\/span><\/p>\n<p><span style=\"font-size: x-large;\"><span style=\"font-size: 14pt;\"><span style=\"font-size: x-large;\"><span style=\"font-size: 14pt;\">Also before placing it onto the Raspberry pi you might want to do some testing using your PC using the USB&gt;Serial Adapter Board as shown in the <a href=\"https:\/\/pthat.com\/index.php\/using-with-other-mcus\/\">Stand Alone Page<\/a>.<\/span><\/span><\/span><\/span><\/p>\n<p><span style=\"font-size: x-large;\"><span style=\"font-size: 14pt;\"><span style=\"font-size: x-large;\"><span style=\"font-size: 14pt;\"><span style=\"font-size: x-large;\"><span style=\"font-size: 14pt;\"><span style=\"font-size: x-large;\"><span style=\"font-size: 14pt;\">While testing we would recommend the Standard Speed with\u00a0a Baud rate of 115200, so make sure the link on the PTHAT mainboard is removed as shown below:<span style=\"font-size: x-large;\"><span style=\"font-size: 14pt;\"><span style=\"font-size: x-large;\"><span style=\"font-size: 14pt;\"><br \/>\n<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<table style=\"width: 711px;\">\n<tbody>\n<tr>\n<td style=\"width: 281px;\"><span style=\"font-size: 18pt;\"><strong>Standard Speed<\/strong><\/span><\/td>\n<td style=\"width: 245.75px;\"><span style=\"font-size: 18pt;\"><strong>High Speed<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 281px;\"><span style=\"font-size: 14pt;\">BaudRate = 115200<\/span><br \/>\n<span style=\"font-size: 14pt;\">Parity = None<\/span><br \/>\n<span style=\"font-size: 14pt;\">StopBits = One<\/span><br \/>\n<span style=\"font-size: 14pt;\">DataBits = 8<\/span><br \/>\n<span style=\"font-size: 14pt;\">Handshake = None<\/span><\/td>\n<td style=\"width: 245.75px;\"><span style=\"font-size: 14pt;\">BaudRate =\u00a0806400<\/span><br \/>\n<span style=\"font-size: 14pt;\">Parity = None<\/span><br \/>\n<span style=\"font-size: 14pt;\">StopBits = One<\/span><br \/>\n<span style=\"font-size: 14pt;\">DataBits = 8<\/span><br \/>\n<span style=\"font-size: 14pt;\">Handshake = None<\/span><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 281px;\" colspan=\"2\"><span style=\"font-size: 14pt;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4532\" src=\"https:\/\/pthat.com\/wp-content\/uploads\/2016\/12\/Jumper1BaudSetting.jpg\" alt=\"\" width=\"567\" height=\"384\" srcset=\"https:\/\/pthat.com\/wp-content\/uploads\/2016\/12\/Jumper1BaudSetting.jpg 567w, https:\/\/pthat.com\/wp-content\/uploads\/2016\/12\/Jumper1BaudSetting-300x203.jpg 300w\" sizes=\"auto, (max-width: 567px) 100vw, 567px\" \/><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-size: 14pt;\">Now you have your board rate set, simply open up\u00a0your preferred Terminal Program, select the COM port that is connected to the PTHAT and open the port.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">The first Test we would do is to send a Request Firmware Version Command.<br \/>\nSo type in:<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><strong><code>I00FW*<\/code><\/strong><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">You should now get a reply back of<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><strong><code>CNC Design Ltd Pulse Train Hat V5.1 2017*<\/code><\/strong><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">This now shows\u00a0that you have the correct communications setup and the PTHAT is listening to you.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">So lets now jump straight in and get a motor running. First make sure that your motor is connected and powered up to the X-Axis. Also for this example we are presuming the Micro Stepper Driver is set to 1600 pulses per revolution.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">We are first going to set the X-Axis telling it the speed and that we want it to rotate 10 revolutions.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"> The pulses we know are 1600 that we need to send for 1 revolution so for\u00a010 revolutions it would be 16000 pulses.<\/span><br \/>\n<span style=\"font-size: 14pt;\"><br \/>\nThe speed will depend on the Frequency we send and most of the time you will want to use RPM and a calculation will be needed to convert this to Hz. There are online calculators that will do this for you, but\u00a0 you have to take into consideration the number of pulses per revolution that your motor driver is set to.<\/span><br \/>\n<span style=\"font-size: 14pt;\"> In our case it is 1600 pulses per revolution,\u00a0so to get our base frequency of 1RPM we can use the following 1600 * 0.0166666666666667 which equals 26.666Hz.<\/span><br \/>\n<span style=\"font-size: 14pt;\"> Now that is slow, so lets do 200RPM for this test, which would be 200*26.666Hz=5333.200Hz<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">We set this using the Set Axis Command and so we send it out.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><strong><code>I00CX005333.200000001600011110001001*<\/code><\/strong><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">We should now get two replies back.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><strong><code>RI00CX*<\/code><\/strong><\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><strong><code>CI00CX*<\/code><\/strong><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Timing is very important and you must wait for both replies to come back before sending any other commands.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Now to start the motor send a Start X-Axis Command.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><strong><code>I00SX*<\/code><\/strong><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">You will receive a reply back<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><strong><code>RI00SX*<\/code><\/strong><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">The motor should now ramp up until it reaches 200 RPM and rotate 10 times with a ramp down.<\/span><br \/>\n<span style=\"font-size: 14pt;\"> After all the pulses have completed you will now get a X Count Pulse completed reply back<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><strong><code>CI00SX*<\/code><\/strong><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">And that is it ! your first test movement complete.<br \/>\n<\/span><br \/>\n<span style=\"font-size: 14pt;\"> To double check that it did actually stop on\u00a016000 pulses you could send the following command<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><strong><code>I00XP*<\/code><\/strong><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">The reply should come back with<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><strong><code>RI00XP*<\/code><\/strong><\/span><br \/>\n<span style=\"font-size: 14pt;\"><strong> <code>XP10000016000*<\/code><\/strong><\/span><br \/>\n<span style=\"font-size: 14pt;\"><strong> <code>CI00XP*<\/code><\/strong><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">As you can see you get the command received back, followed by the pulse count and then a completed command. You will notice the 1 after the XP which is the direction the motor is turning. You can also send this command at anytime while the motor is running to get the current pulse back and use it to update a counter in your software.<\/span><\/p>\n<hr \/>\n<p><span style=\"font-size: 14pt;\"><br \/>\nNow for another example lets do the same again but with two motors. We will set two motors, one on the X-Axis and one on Y-Axis\u00a0and start them off at the same time.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><code><strong>I00CX005333.200000001600011110001001*<\/strong><br \/>\n<\/code><\/span><br \/>\n<span style=\"font-size: 14pt;\"> Wait for replies before sending any other commands.<br \/>\n<\/span><br \/>\n<span style=\"font-size: 14pt;\"><strong> <code>RI00SX*<br \/>\nCI00SX*<\/code><\/strong><\/span><\/p>\n<p><span style=\"font-size: 12pt;\"><code>Send Set command<\/code><\/span><strong><code><br \/>\n<\/code><\/strong><\/p>\n<p><span style=\"font-size: 14pt;\"><strong><span style=\"font-family: Courier New;\">I00CY005333.200000001600011110001001*<\/span><\/strong><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Wait for replies before sending any other commands.<\/span><br \/>\n<span style=\"font-size: 14pt;\"> <code><br \/>\n<strong>RI00SY*<\/strong><br \/>\n<strong>CI00SY*<\/strong><\/code><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Now send a Start All command.<br \/>\n<\/span><br \/>\n<span style=\"font-size: 14pt;\"><strong><span style=\"font-family: Courier New;\"> I00SA*<\/span><\/strong><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Again we will get a reply telling us that the command was received <\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><strong><code>RI00SA*<\/code><\/strong><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">And when both motors reach their pulse count we will get two more replies back<\/span><\/p>\n<p><span style=\"font-size: 14pt;\"><strong><code>CI00SX* <code>CI00SY*<\/code><\/code><\/strong><\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Both motors should of\u00a0completed\u00a010 revolutions each (16000 Pulses).<br \/>\nYou can repeat the above for all 4 motors if you want by setting X.Y,Z and E Axis and using the Start All command.<\/span><\/p>\n<p><span style=\"font-size: 14pt;\">Please feel free to contact us if you want other examples placed on this page.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 14pt;\"><code><\/code><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 14pt;\"><span style=\"font-size: 14pt;\"><span style=\"font-size: 14pt;\">\u00a0\u00a0\u00a0<\/span><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section admin_label=&#8221;Section&#8221; global_module=&#8221;3990&#8243; fullwidth=&#8221;off&#8221; specialty=&#8221;off&#8221; transparent_background=&#8221;off&#8221; allow_player_pause=&#8221;off&#8221; inner_shadow=&#8221;off&#8221; parallax=&#8221;off&#8221; parallax_method=&#8221;off&#8221; padding_mobile=&#8221;off&#8221; make_fullwidth=&#8221;off&#8221; use_custom_width=&#8221;off&#8221; width_unit=&#8221;on&#8221; make_equal=&#8221;off&#8221; use_custom_gutter=&#8221;off&#8221;][et_pb_row global_parent=&#8221;3990&#8243; admin_label=&#8221;Row&#8221;][et_pb_column type=&#8221;4_4&#8243;][et_pb_text global_parent=&#8221;3990&#8243; admin_label=&#8221;Text&#8221; background_layout=&#8221;dark&#8221; text_orientation=&#8221;center&#8221; header_font_size=&#8221;75px&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;]<\/p>\n<h1>Closer look\u00a0at the PCB&#8217;s<\/h1>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row global_parent=&#8221;3990&#8243; admin_label=&#8221;Row&#8221;][et_pb_column type=&#8221;4_4&#8243;][et_pb_pricing_tables global_parent=&#8221;3990&#8243; admin_label=&#8221;Pricing Tables&#8221; show_bullet=&#8221;on&#8221; center_list_items=&#8221;off&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221; custom_button=&#8221;off&#8221; button_letter_spacing=&#8221;0&#8243; button_use_icon=&#8221;default&#8221; button_icon_placement=&#8221;right&#8221; button_on_hover=&#8221;on&#8221; button_letter_spacing_hover=&#8221;0&#8243; remove_featured_drop_shadow=&#8221;off&#8221;] [et_pb_pricing_table featured=&#8221;on&#8221; title=&#8221;PTHAT Mainboard&#8221; currency=&#8221;\u00a3&#8221; per=&#8221;Ex VAT&#8221; sum=&#8221;35&#8243; href=&#8221;%22https:\/\/ukcnc.net\/index.php?route=product\/product&amp;path=69&amp;product_id=129%22&#8243; button_text=&#8221;Buy Now&#8221; header_font_select=&#8221;default&#8221; header_font=&#8221;||||&#8221; subheader_font_select=&#8221;default&#8221; subheader_font=&#8221;||||&#8221; currency_frequency_font_select=&#8221;default&#8221; currency_frequency_font=&#8221;||||&#8221; price_font_select=&#8221;default&#8221; price_font=&#8221;||||&#8221; body_font_select=&#8221;default&#8221; body_font=&#8221;||||&#8221; custom_button=&#8221;off&#8221; button_font_select=&#8221;default&#8221; button_font=&#8221;||||&#8221; button_use_icon=&#8221;default&#8221; button_icon_placement=&#8221;right&#8221; button_on_hover=&#8221;on&#8221; button_url=&#8221;https:\/\/ukcnc.net\/index.php?route=product\/product&amp;path=69&amp;product_id=129&#8243;] + Single Channel Main Board. + JTAG Programmer. + Set of Mounting Spacers and Bolts. [\/et_pb_pricing_table][et_pb_pricing_table featured=&#8221;on&#8221; title=&#8221;PTHAT Add on Board&#8221; currency=&#8221;\u00a3&#8221; per=&#8221;Ex VAT&#8221; sum=&#8221;30&#8243; button_url=&#8221;https:\/\/ukcnc.net\/index.php?route=product\/product&amp;path=69&amp;product_id=129&#8243; button_text=&#8221;Buy Now&#8221; header_font_select=&#8221;default&#8221; header_font=&#8221;||||&#8221; subheader_font_select=&#8221;default&#8221; subheader_font=&#8221;||||&#8221; currency_frequency_font_select=&#8221;default&#8221; currency_frequency_font=&#8221;||||&#8221; price_font_select=&#8221;default&#8221; price_font=&#8221;||||&#8221; body_font_select=&#8221;default&#8221; body_font=&#8221;||||&#8221; custom_button=&#8221;off&#8221; button_font_select=&#8221;default&#8221; button_font=&#8221;||||&#8221; button_use_icon=&#8221;default&#8221; button_icon_placement=&#8221;right&#8221; button_on_hover=&#8221;on&#8221;] +Expansion Add on Board. +Increases the PTHAT to 4 channels. +Extra I\/O Functionality. +Set of Mounting Spacers. [\/et_pb_pricing_table][et_pb_pricing_table featured=&#8221;on&#8221; title=&#8221;PTHAT Full Package&#8221; currency=&#8221;\u00a3&#8221; per=&#8221;Ex VAT&#8221; sum=&#8221;55&#8243; button_url=&#8221;https:\/\/ukcnc.net\/index.php?route=product\/product&amp;path=69&amp;product_id=129&#8243; button_text=&#8221;Buy Now&#8221; header_font_select=&#8221;default&#8221; header_font=&#8221;||||&#8221; subheader_font_select=&#8221;default&#8221; subheader_font=&#8221;||||&#8221; currency_frequency_font_select=&#8221;default&#8221; currency_frequency_font=&#8221;||||&#8221; price_font_select=&#8221;default&#8221; price_font=&#8221;||||&#8221; body_font_select=&#8221;default&#8221; body_font=&#8221;||||&#8221; custom_button=&#8221;off&#8221; button_font_select=&#8221;default&#8221; button_font=&#8221;||||&#8221; button_use_icon=&#8221;default&#8221; button_icon_placement=&#8221;right&#8221; button_on_hover=&#8221;on&#8221;] +Single Channel Main Board. +Expansion Add on Board. +Increases the PTHAT to 4 channels. +Extra I\/O Functionality. +JTAG Programmer. +Set of Mounting Spacers and Bolts. +Save \u00a310 with this Package [\/et_pb_pricing_table] [\/et_pb_pricing_tables][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Command Set Examples Here we shall list some quick and easy examples to help people get up and running. You can find a fully comprehensive breakdown of all the commands in the Command Set\u00a0Page for more of a detailed view. When you first get your PTHAT you can test it by manually sending commands via [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":10,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"<p><span style=\"font-size: 14pt;\">The PTHAT is controlled by sending simple serial commands.<\/span><\/p><p>\u00a0<\/p><ul><ul><li><span style=\"font-size: 14pt;\">All commands are sent as Text (ASCII) format. This may mean sending more data in the communications, but it saves the end programmer having to do LongToByte calculations and keeps things simpler.<br \/> <\/span><\/li><\/ul><\/ul><p>\u00a0<\/p><ul><ul><li><span style=\"font-size: 14pt;\"><span style=\"font-size: 14pt;\">Each command has to be terminated with a <span style=\"font-size: 18pt;\"><strong>*<\/strong><\/span> character and all letters\u00a0must be\u00a0in capitals. Replies from the PTHAT will also be returned with a <span style=\"font-size: 18pt;\">*<\/span> character.<\/span><\/span><\/li><\/ul><\/ul><p>\u00a0<\/p><ul><ul><li><span style=\"font-size: 14pt;\"><span style=\"font-size: 14pt;\">Also each command must have the full byte count. For example if you wanted to set a frequency of 1000Hz (1kHz), you can not just enter 1000 it must be formatted as 001000.00 in the Set Axis Command. Our software examples show the formatting.<\/span><\/span><\/li><\/ul><\/ul><p>\u00a0<\/p><ul><ul><li><span style=\"font-size: 14pt;\"><span style=\"font-size: 14pt;\">After every command is sent, you will receive a Received command reply back and also a Completed command reply back. The Received command lets you know that the PTHAT has received the command okay and the Completed command reply lets you know if was executed ok. You can turn these replies off if needed, but be aware that it does not turn off all Completed command replies such as when an Axis finishes its pulse count.<\/span><\/span><\/li><\/ul><\/ul><p>\u00a0<\/p><ul><ul><li><span style=\"font-size: 14pt;\"><span style=\"font-size: 14pt;\">All commands can be either sent as Instant commands that get executed straight away or a Buffered commands, where they get stored in the PTHAT memory and get executed one after the other. Using Buffered commands is useful if sending lots of small motor movements where the latency of the serial port communications could an issue. We will cover this more in the examples page.<\/span><\/span><\/li><\/ul><\/ul><p>\u00a0<\/p><ul><ul><li><span style=\"font-size: 14pt;\">Multiple Set Axis Commands can be send before then sending a Start Command. This allows all four motors to be synchronised on start as well as keeping interpolation maintained if running a X'Y setup.<\/span><\/li><\/ul><\/ul><p>\u00a0<\/p><p><span style=\"font-size: 14pt;\">The communication settings should be:<\/span><\/p><p><span style=\"font-size: 14pt;\">BaudRate = 115200<\/span><br \/> <span style=\"font-size: 14pt;\">Parity = None<\/span><br \/> <span style=\"font-size: 14pt;\">StopBits = One<\/span><br \/> <span style=\"font-size: 14pt;\">DataBits = 8<\/span><br \/> <span style=\"font-size: 14pt;\">Handshake = None<\/span><\/p><p><span style=\"font-size: 14pt;\">Below we will show each command and break it down to show what each byte of the command does.<\/span><\/p><p><span style=\"font-size: 14pt;\">\u00a0<\/span><\/p><hr \/><p>\u00a0<\/p><p><span style=\"font-size: 24pt;\">\u2297<br \/> <\/span>[table id=2 \/]<br \/> [table id=3 \/]<br \/> [table id=1 \/]<\/p><hr \/><p>\u00a0<\/p><p><span style=\"font-size: 24pt;\">\u2297<br \/> <\/span>[table id=4 \/]<br \/> [table id=5 \/]<br \/> [table id=6 \/]<\/p><hr \/><p>\u00a0<\/p><p><span style=\"font-size: 24pt;\">\u2297<br \/> <\/span>[table id=7 \/]<br \/> [table id=8 \/]<br \/> [table id=9 \/]<\/p><hr \/><p>\u00a0<\/p><p><span style=\"font-size: 24pt;\">\u2297<br \/> <\/span>[table id=10 \/]<br \/> [table id=11 \/]<br \/> [table id=12 \/]<\/p><hr \/><p>\u00a0<\/p><p><span style=\"font-size: 24pt;\">\u2297<br \/> <\/span>[table id=13 \/]<br \/> [table id=14 \/]<br \/> [table id=15 \/]<\/p><hr \/><p>\u00a0<\/p><p><span style=\"font-size: 24pt;\">\u2297<br \/> <\/span>[table id=16 \/]<br \/> [table id=17 \/]<br \/> [table id=18 \/]<\/p><hr \/><p>\u00a0<\/p><p><span style=\"font-size: 24pt;\">\u2297<br \/> <\/span>[table id=19 \/]<br \/> [table id=20 \/]<br \/> [table id=21 \/]<\/p><hr \/><p>\u00a0<br \/> <span style=\"font-size: 24pt;\">\u2297<br \/> <\/span>[table id=35 \/]<br \/> [table id=36 \/]<br \/> [table id=37 \/]<\/p><hr \/><p>\u00a0<\/p><p><span style=\"font-size: 24pt;\">\u2297<br \/> <\/span>[table id=23 \/]<br \/> [table id=24 \/]<br \/> [table id=25 \/]<\/p><hr \/><p>\u00a0<\/p><p><span style=\"font-size: 24pt;\">\u2297<br \/> <\/span>[table id=26 \/]<br \/> [table id=27 \/]<br \/> [table id=28 \/]<\/p><hr \/><p>\u00a0<\/p><p><span style=\"font-size: 24pt;\">\u2297<br \/> <\/span>[table id=29 \/]<br \/> [table id=30 \/]<br \/> [table id=31 \/]<\/p><hr \/><p>\u00a0<\/p><p><span style=\"font-size: 24pt;\">\u2297<br \/> <\/span>[table id=32 \/]<br \/> [table id=33 \/]<br \/> [table id=34 \/]<\/p><hr \/><p>\u00a0<\/p>","_et_gb_content_width":"","footnotes":""},"class_list":["post-4860","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pthat.com\/index.php\/wp-json\/wp\/v2\/pages\/4860","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pthat.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pthat.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pthat.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pthat.com\/index.php\/wp-json\/wp\/v2\/comments?post=4860"}],"version-history":[{"count":12,"href":"https:\/\/pthat.com\/index.php\/wp-json\/wp\/v2\/pages\/4860\/revisions"}],"predecessor-version":[{"id":4880,"href":"https:\/\/pthat.com\/index.php\/wp-json\/wp\/v2\/pages\/4860\/revisions\/4880"}],"wp:attachment":[{"href":"https:\/\/pthat.com\/index.php\/wp-json\/wp\/v2\/media?parent=4860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}