Application of CAN bus technique in the photoelectric encoders
-
摘要:介绍了采用CAN总线数据传输方式的系统中,光电编码器CAN总线接口的设计与应用。首先,设计了由单片机、独立CAN总线控制器SJA1000、CAN总线收发器TJA1050及高速光耦TLP113等构成的光电编码器CAN总线接口硬件电路;然后,介绍了光电编码器CAN总线接口的软件设计,包括初始化的设计、CAN总线报文接收及发送的设计;最后,通过周立功公司的“USBCAN1”型号CAN总线接口卡验证了该光电编码器CAN总线接口设计的可行性。实验中采用1米长的屏蔽双绞线作为传输介质,通信速率为800kbps;结果表明:带有CAN接口的光电编码器克服了传统的通信线路的缺点,具有更高的实时性、可靠性且通信速率高、传输距离长、抗干扰能力强,更加适用于自动化测量和控制系统。Abstract:Photoelectric encoder CAN bus interface is put forward in order to make photoelectric encoder used in the system which adopts CAN Bus as data transmission method. Firstly, CAN bus interface hardware circuit of photoelectric encoder is designed which is composed of singlechip, CAN bus controller SJA1000, CAN bus transceiver TJA1050 and high-speed optical coupling TLP113 ; secondly, the paper introduces the design of CAN bus interface software consisted of the design of initialization, receiving message and sending message; lastly, the feasibility of photoelectric encoder CAN bus interface is proofed by “USBCAN1”CAN interface card produced by ZLG company. In the test, communication speed rate is 800kbps and one-meter shield twisted pair line is used as the transmission medium; the results show that the photoelectric encoder with CAN bus interface overcomes communication line’s shortcomings of classical photoelectric encoder system . The system can work in automatic measuring and controlling system better as a result of the advantages of more real-time and reliability , high transfer rate , long transfer distance and high resistance.
-
Key words:
- photoelectric encoder/
- CAN bus/
- SJA1000
点击查看大图
计量
- 文章访问数:4540
- HTML全文浏览量:517
- PDF下载量:2221
- 被引次数:0