⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cml__io_8h-source.html

📁 美国COPLEY驱动器,程序开发工具之一.
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<a name="l00182"></a>00182 <span class="comment"></span>   <a class="code" href="CML__IO_8h.html#a92a87">IOEVENT_AIN_PDO0</a>                = 0x00010000,<a name="l00183"></a>00183 <span class="comment"></span><a name="l00184"></a>00184 <span class="comment">   /// Analog input PDO 1 was received.  This PDO is similar to analog input</span><a name="l00185"></a>00185 <span class="comment">   /// PDO 0, however it maps the second group of 4 16-bit analog inputs.</span><a name="l00186"></a>00186 <span class="comment"></span>   <a class="code" href="CML__IO_8h.html#a92a88">IOEVENT_AIN_PDO1</a>                = 0x00020000,<a name="l00187"></a>00187 <span class="comment"></span><a name="l00188"></a>00188 <span class="comment">   /// Analog input PDO 2 was received.  This PDO is similar to analog input</span><a name="l00189"></a>00189 <span class="comment">   /// PDO 0, however it maps the third group of 4 16-bit analog inputs.</span><a name="l00190"></a>00190 <span class="comment"></span>   <a class="code" href="CML__IO_8h.html#a92a89">IOEVENT_AIN_PDO2</a>                = 0x00040000<a name="l00191"></a>00191 };<a name="l00192"></a>00192 <a name="l00193"></a>00193 <span class="comment">/***************************************************************************/</span><span class="comment"></span><a name="l00194"></a>00194 <span class="comment">/**</span><a name="l00195"></a>00195 <span class="comment">  Standard CANopen I/O module settings.  This structure may be passed to an</span><a name="l00196"></a>00196 <span class="comment">  I/O module object during initialization.  It allows custom settings to be</span><a name="l00197"></a>00197 <span class="comment">  assigned to the module.</span><a name="l00198"></a>00198 <span class="comment">  */</span><a name="l00199"></a>00199 <span class="comment">/***************************************************************************/</span><a name="l00200"></a><a class="code" href="structIOModuleSettings.html">00200</a> <span class="keyword">struct </span><a class="code" href="structIOModuleSettings.html">IOModuleSettings</a><a name="l00201"></a>00201 {<span class="comment"></span><a name="l00202"></a>00202 <span class="comment">   /// The CANopen heartbeat protocol is one of two standard methods used</span><a name="l00203"></a>00203 <span class="comment">   /// to constantly watch for network or device problems.  </span><a name="l00204"></a>00204 <span class="comment">   /// When the heartbeat protocol is used, each device on the CANopen</span><a name="l00205"></a>00205 <span class="comment">   /// network transmits a 'heartbeat' message at a specified interval.</span><a name="l00206"></a>00206 <span class="comment">   /// The network master watches for these messages, and is able to </span><a name="l00207"></a>00207 <span class="comment">   /// detect a device error if it's heartbeat message is not received</span><a name="l00208"></a>00208 <span class="comment">   /// within the expected time.</span><a name="l00209"></a>00209 <span class="comment">   ///</span><a name="l00210"></a>00210 <span class="comment">   /// This parameter configures the heartbeat period (milliseconds)</span><a name="l00211"></a>00211 <span class="comment">   /// that will be used by this module to transmit it's heartbeat</span><a name="l00212"></a>00212 <span class="comment">   /// message.</span><a name="l00213"></a>00213 <span class="comment">   ///</span><a name="l00214"></a>00214 <span class="comment">   /// If this parameter is set to zero, then the heartbeat protocol</span><a name="l00215"></a>00215 <span class="comment">   /// is disabled on this node.</span><a name="l00216"></a>00216 <span class="comment">   ///</span><a name="l00217"></a>00217 <span class="comment">   /// Default: zero (not used)</span><a name="l00218"></a><a class="code" href="structIOModuleSettings.html#o0">00218</a> <span class="comment"></span>   <a class="code" href="CML__Utils_8h.html#a8">uint16</a> <a class="code" href="structIOModuleSettings.html#o0">heartbeatPeriod</a>;<a name="l00219"></a>00219 <span class="comment"></span><a name="l00220"></a>00220 <span class="comment">   /// Additional time to wait before generating a heartbeat error (milliseconds)</span><a name="l00221"></a>00221 <span class="comment">   /// If the heartbeat protocol is used, then this value, combined with the</span><a name="l00222"></a>00222 <span class="comment">   /// heartbeatTime will determine how long the network master waits for the</span><a name="l00223"></a>00223 <span class="comment">   /// node's heartbeat message before it generates a heartbeat error.</span><a name="l00224"></a>00224 <span class="comment">   ///</span><a name="l00225"></a>00225 <span class="comment">   /// Note that setting this to zero does not disable the heartbeat protocol.</span><a name="l00226"></a>00226 <span class="comment">   /// set the heartbeatPeriod value to zero to disable heartbeat.</span><a name="l00227"></a>00227 <span class="comment">   ///</span><a name="l00228"></a>00228 <span class="comment">   /// Default 100 (ms)</span><a name="l00229"></a><a class="code" href="structIOModuleSettings.html#o1">00229</a> <span class="comment"></span>   <a class="code" href="CML__Utils_8h.html#a8">uint16</a> <a class="code" href="structIOModuleSettings.html#o1">heartbeatTimeout</a>;<a name="l00230"></a>00230 <span class="comment"></span><a name="l00231"></a>00231 <span class="comment">   /// Node guarding guard time (milliseconds)</span><a name="l00232"></a>00232 <span class="comment">   ///</span><a name="l00233"></a>00233 <span class="comment">   /// The CANopen node guarding protocol is a second method (the first being the</span><a name="l00234"></a>00234 <span class="comment">   /// heartbeat protocol) for devices on the network to watch for network problems.</span><a name="l00235"></a>00235 <span class="comment">   /// In this protocol, the master controller sends a request message out to the </span><a name="l00236"></a>00236 <span class="comment">   /// slave device at a specified interval.  The slave device responds to this </span><a name="l00237"></a>00237 <span class="comment">   /// request with a message indicating it's state.</span><a name="l00238"></a>00238 <span class="comment">   ///</span><a name="l00239"></a>00239 <span class="comment">   /// The main difference between this protocol and the heartbeat protocol is that</span><a name="l00240"></a>00240 <span class="comment">   /// both the slave node and the master are able to recognize network errors.</span><a name="l00241"></a>00241 <span class="comment">   /// With the heartbeat protocol only the network master is able to identify </span><a name="l00242"></a>00242 <span class="comment">   /// network problems.</span><a name="l00243"></a>00243 <span class="comment">   ///</span><a name="l00244"></a>00244 <span class="comment">   /// Note that only one of these two protocols can be active in a node device at</span><a name="l00245"></a>00245 <span class="comment">   /// any time.  If the heartbeat period is non-zero, then the heartbeat protocol</span><a name="l00246"></a>00246 <span class="comment">   /// will be used.</span><a name="l00247"></a>00247 <span class="comment">   ///</span><a name="l00248"></a>00248 <span class="comment">   /// This parameter gives the node guarding period for use with this node.  This</span><a name="l00249"></a>00249 <span class="comment">   /// is the period between node guarding request messages sent by the master </span><a name="l00250"></a>00250 <span class="comment">   /// controller.</span><a name="l00251"></a>00251 <span class="comment">   ///</span><a name="l00252"></a>00252 <span class="comment">   /// Note that both this parameter, and the life time factor must be non-zero for</span><a name="l00253"></a>00253 <span class="comment">   /// node guarding to be used.</span><a name="l00254"></a>00254 <span class="comment">   ///</span><a name="l00255"></a>00255 <span class="comment">   /// Default 0 (ms)</span><a name="l00256"></a><a class="code" href="structIOModuleSettings.html#o2">00256</a> <span class="comment"></span>   <a class="code" href="CML__Utils_8h.html#a8">uint16</a> <a class="code" href="structIOModuleSettings.html#o2">guardTime</a>;<a name="l00257"></a>00257 <span class="comment"></span><a name="l00258"></a>00258 <span class="comment">   /// Node guarding life time factor</span><a name="l00259"></a>00259 <span class="comment">   ///</span><a name="l00260"></a>00260 <span class="comment">   /// When the node guarding protocol is used, this parameter is used by the slave</span><a name="l00261"></a>00261 <span class="comment">   /// device to determine how long to wait for a node guarding request from the </span><a name="l00262"></a>00262 <span class="comment">   /// master controller before signaling an error condition.</span><a name="l00263"></a>00263 <span class="comment">   ///</span><a name="l00264"></a>00264 <span class="comment">   /// The life time factor is treated as a multiple of the guard time.  </span><a name="l00265"></a>00265 <span class="comment">   ///</span><a name="l00266"></a>00266 <span class="comment">   /// If this parameter and the node guard time are both non-zero,</span><a name="l00267"></a>00267 <span class="comment">   /// and the heartbeatTime is zero, then node guarding will be setup </span><a name="l00268"></a>00268 <span class="comment">   /// for the amplifier.</span><a name="l00269"></a>00269 <span class="comment">   ///</span><a name="l00270"></a>00270 <span class="comment">   /// Default 3 (multiples of the guard time)</span><a name="l00271"></a><a class="code" href="structIOModuleSettings.html#o3">00271</a> <span class="comment"></span>   <a class="code" href="CML__Utils_8h.html#a6">uint8</a> <a class="code" href="structIOModuleSettings.html#o3">lifeFactor</a>;<a name="l00272"></a>00272 <span class="comment"></span><a name="l00273"></a>00273 <span class="comment">   /// Use the standard digital input PDO object.  If true (default) then </span><a name="l00274"></a>00274 <span class="comment">   /// a standard PDO object will be configured to read up to 64 digital</span><a name="l00275"></a>00275 <span class="comment">   /// inputs any time one of them changes.  If false, then this PDO </span><a name="l00276"></a>00276 <span class="comment">   /// will not be configured.</span>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -