CAN接线基础

CAN is a two wire network that is designed to facilitate communication between multiple devices on your robot. It is recommended that CAN on your robot follow a “daisy-chain” topology. This means that the CAN wiring should usually start at your roboRIO and go into and out of each device successively until finally ending at the PDP.

../../../_images/daisychain.png

标准接线

CAN通常使用黄色和绿色的导线布线,黄色表示CAN-High信号,绿色则表示CAN-Low信号。大多设备都使用黄色和绿色的配色方案用来指导应如何插入导线。

从roboRIO到PCM的CAN接线。

../../../_images/pcm-can.jpg

从PCM到PDP的CAN接线。

../../../_images/pdp-can.jpg

终端

布线从roboRIO处开始,在PDP处结束是被建议的,因为CAN网络需要用120:math:Omega`电阻终止,而这两个器件都内置了这些电阻。PDP随附的CAN总线终端电阻的跳线处于“ ON”位置。建议将跳线保持在此位置,并将任何额外的CAN节点放置在roboRIO和PDP之间(保证PDP位于总线末端)。如果您希望将PDP放置在总线中间(使用两对PDP CAN端子),将跳线移至“ OFF”位置,并将自己的120 :math:Omega` 终端电阻放置在CAN总线链的末端。