{"id":17127,"date":"2026-09-22T11:33:45","date_gmt":"2026-09-22T03:33:45","guid":{"rendered":"https:\/\/www.qec.tw\/?p=17127"},"modified":"2026-09-22T11:33:47","modified_gmt":"2026-09-22T03:33:47","slug":"motor-setmaxprofilevelocity","status":"publish","type":"post","link":"https:\/\/www.qec.tw\/ja\/ethercat\/api\/device\/cia402\/motor-setmaxprofilevelocity\/","title":{"rendered":"motor.setMaxProfileVelocity()"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">[EtherCAT Device CiA402]<\/p>\n\n\n\n<h2 id=\"h-description\" class=\"wp-block-heading\">Description<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Set the max profile velocity object.<\/p>\n\n\n\n<h2 id=\"h-relevant-objects\" class=\"wp-block-heading\">Relevant Objects<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Object 607F<sub>h<\/sub>: Max profile velocity<\/li>\n<\/ul>\n\n\n\n<h2 id=\"h-syntax\" class=\"wp-block-heading\">Syntax<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>int setMaxProfileVelocity(uint32_t value);<\/code><\/p>\n\n\n\n<h2 id=\"h-parameters\" class=\"wp-block-heading\">Parameters<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>[in] value<\/code><br>The max profile velocity to be set.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"h-return-value\" class=\"wp-block-heading\">Return Value<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Return an <a href=\"https:\/\/www.qec.tw\/ethercat\/api\/error-code\/\">error code<\/a>. If the returned value is zero, it indicates a successful execution of this function.<\/p>\n\n\n\n<h2 id=\"h-comment\" class=\"wp-block-heading\">Comment<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This function must be called after a successful execution of <a href=\"https:\/\/www.qec.tw\/ethercat\/api\/master\/ethercatmaster-begin\/\" target=\"_blank\" rel=\"noreferrer noopener\"><code>EthercatMaster::begin()<\/code><\/a>. This function is non-blocking and can be called in callback functions if the related object is mapped to PDO.<\/p>\n\n\n\n<h2 id=\"h-example-code\" class=\"wp-block-heading\">Example Code<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>#include \"Ethercat.h\" \n\nEthercatMaster master;\nEthercatDevice_CiA402 motor;\n\nvoid setup() {\n  master.begin();\n  motor.attach(0, master);\n  motor.setMaxProfileVelocity(50000);\n} \n\nvoid loop() {\n  \/\/ put your main code here, to run repeatedly: \n}<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Please see the\u00a0<a href=\"https:\/\/www.qec.tw\/ethercat\/api\/cia402\/\" target=\"_blank\" rel=\"noreferrer noopener\">EtherCAT CiA 402 User Manual<\/a>\u00a0for more QEC EtherCAT instructions and API usage.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[EtherCAT Device CiA402] Description Set the max profile velocity object. Relevant Objects Syntax int setMaxProfileVelocity(uint32_t value); Parameters Return Value Return an error code. If the [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":18678,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[315],"tags":[162,54,191],"class_list":["post-17127","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cia402","tag-86duino","tag-ethercat","tag-qec"],"_links":{"self":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts\/17127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/comments?post=17127"}],"version-history":[{"count":3,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts\/17127\/revisions"}],"predecessor-version":[{"id":18743,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts\/17127\/revisions\/18743"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/media\/18678"}],"wp:attachment":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/media?parent=17127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/categories?post=17127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/tags?post=17127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}