Contact US
JILIN PROVINCE SANSHENG SENSING TECHNOLOGY CO.,LTD
Tel:0431-81857464/13804324526
Contact: Ms PaulaZhang
Email: paulazhang@san-sheng.net
Website: www.san-sheng.net

NEWS

Current location >> Home>> Product

Application of Encoder CAN Bus Interface in Photoelectric Tracking System

JILIN PROVINCE SANSHENG SENSOR TECHNOLOGY CO.,LTD  Time£º2018/12/14  Browse£º75times

The angle information (degrees, minutes, seconds) of the absolute photoelectric axis encoder is sent from the CAN controller to the CAN bus or from the CAN bus to the CAN receive buffer, which is done automatically by the SJA1000 bus controller. Its CAN bus interface communication program consists of initialization subroutine, send subroutine and receive subroutine. First of all, according to the actual system needs to choose CAN bus mode, here choose PeliCAN mode, 12MHz crystal, bus data transfer rate set to 500Kbits / s, each bus node to set the same data transfer rate to ensure normal communication. Judge SJA1000 reliable connection with the single-chip, and then initialize the SJA1000 controller, in the SJA1000 reset mode, set the initial state of each register. Initialization flow chart shown in Figure 4. The sending and receiving of data is accomplished by the sending subroutine and the receiving subroutine. The data ID is determined by the packet ID. When sending data, the principle of setting the message ID receiving flag segment is: the corresponding ID of the node to be received The bit is 0 and the remaining bits are 1. Receive data, the contrary, by ID to determine whether to send to their own information, is the receiver, not filter out

 

 

hybrid encoder, non-magnetic encoder, multi-turn encoder, multi-turn combination encoder, draw wire encoder, digital readout, linear scale

Previous£º The working principle of magnetic rotary encoder


Next£º WHAT IS THE MECHANICAL INTERFACE?

Copyright ? 2015 SANSHENG SENSOR TECHNOLOGY CO.,LTD.All rights reserved Technical support£ºRuijie Network Technology Company