{"id":14249,"date":"2024-08-08T17:23:24","date_gmt":"2024-08-08T22:23:24","guid":{"rendered":"https:\/\/cyflex.com\/?page_id=14249"},"modified":"2025-11-06T12:45:54","modified_gmt":"2025-11-06T17:45:54","slug":"canfd_set","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/14-i-o-systems\/canfd_set\/","title":{"rendered":"canfd_set"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<\/div>\n<dl>\n<dd>\n<p>Set a CAN message to be sent at a specified interval using the CanFD driver.<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>canfd_set<\/strong>\u00a0&lt;CanMessageID|MessageName&gt; &lt;SendInterval&gt; [index] [-c=n] [name=&#8230;] [count=&#8230;]<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<table>\n<tbody>\n<tr>\n<td>\n<p>CanMessageId<br \/>\nor<br \/>\nMessageName<\/p>\n<\/td>\n<td>\n<p>Specify either:<\/p>\n<ul>\n<li>The message ID from the *.dbc file.<\/li>\n<li>The message name from the *.dbc file.<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>SendInterval<\/p>\n<\/td>\n<td>\n<p>Specify the delay time between messages in milliseconds. The default is 10 milliseconds.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>index<\/p>\n<\/td>\n<td>\n<p>Optional. Specify an index to send repeated messages at different times. The default is 0.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>-c=n<\/p>\n<\/td>\n<td>\n<p>Optional. Specify the channel number: 0 or 1.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>name<\/td>\n<td>Optional. Specify the register name. The default value is used if not specified.\u00a0<\/td>\n<\/tr>\n<tr>\n<td>\n<p>count<\/p>\n<\/td>\n<td>\n<p>Optional. Specify the number of messages to send. The default is infinite.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/dd>\n<\/dl>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<p><strong>canfd_set<\/strong> 100 50<br \/>\nSend the message on the default channel.<\/p>\n<p><strong>canfd_set<\/strong> 100 1000 -c=1<br \/>\nSend the message on the second channel.<\/p>\n<p><strong>canfd_set<\/strong> 100 1000 name=CanDbc2<br \/>\nSend the message on the default channel with a CanDbc task started with the register name &#8220;CanDbc2&#8221;.<\/p>\n<p><strong>canfd_set<\/strong> 100 1000 name=CanDbc2 count=3<br \/>\nSend only 3 messages on the default channel with a CanDbc task started with the register name &#8220;CanDbc2&#8221;.<\/p>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>Channel number must be 0 or 1. SendInterval behaves as follows: 0 disables sending, values between 1 and 19 send the message once then disable, and values 20 or greater send the message every specified milliseconds.<\/p>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<p><a href=\"https:\/\/cyflex.com\/index.php\/canfd\/\">CanFD<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Set a CAN message to be sent at a specified interval using the CanFD driver. Enter: canfd_set\u00a0&lt;CanMessageID|MessageName&gt; &lt;SendInterval&gt; [index] [-c=n] [name=&#8230;] [count=&#8230;] Where: CanMessageId or MessageName Specify either: The message ID from the *.dbc file. The message name from the *.dbc file. SendInterval Specify the delay time between messages in milliseconds. The default is [&hellip;]<\/p>\n","protected":false},"author":30,"featured_media":0,"parent":1964,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-14249","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/14249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=14249"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/14249\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1964"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=14249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}