CIA DSP305 Layer Setting Services and Protocol(LSS)

LSS distinguishes between an LSS manager (typically residing in the host controller) and the LSS servers. LSS enables the LSS manager to modify the LSS server’s CANopen node-ID and to switch the entire network from one data rate to another. LSS utilizes exactly two CAN frames. The CAN data frame 7E5h carries the command from the LSS manager to one or several LSS servers. The CAN frame 7E4h is used to provide the response(s) to the LSS manager. LSS is specified in the document CiA 305.

CANopen node-ID assignment via LSS

The entire 128 bit of the Identity object 1018h (vendor-ID, product-code, revision number, serial number) are called the LSS address. The LSS address allows the LSS manager to differentiate between the LSS servers, even if one or several LSS servers do not own a valid CANopen node-ID. Via the LSS switch state selective command, the LSS servers forces exactly one LSS server to enter the LSS configuration state. Only in this state the LSS server accepts a new CANopen node-ID that is proposed by the LSS manager. It is the LSS manager’s task to ensure that during the assignment of the CANopen node-ID, there is only one LSS server in the LSS configuration state.

In case the LSS addresses of the LSS servers are unknown to the LSS manager, the LSS manager may have several means to detect the LSS addresses. In case the LSS servers already own a valid CANopen node-ID, the LSS manager just reads the content of the object 1018h of all LSS servers in the system, via SDO. In case the LSS servers do not own a valid CANopen node-ID the LSS manager has to rely on additional LSS services. The LSS fastscan service enables the LSS manager to scan via bit masks, whether there exists an unconfigured LSS server with an LSS address in a given LSS address range. By executing several scanning cycles, the LSS manager can identify exactly one unconfigured LSS server and can subsequently provide a valid CANopen node-ID. 

CANopen bit rate switch via LSS

The LSS enable the LSS manager to switch the entire CANopen system from one to another bit rate. Therefore the LSS manager configures the new intended bit rate individually via LSS in all CANopen devices in the system. After the successful configuration, the LSS manager requests the bit rate switch via a global LSS service at all LSS servers at the very same time. After a switch delay, all devices in the network operate on the new bit rate.

It is recommended to use the LSS bit rate switch very carefully. In case there is at least one device that is not switching correctly to the new bit rate, the CANopen network shows a severe error behavior. A proper control system is not available any longer. Devices operating on the “wrong” bit rate have to be identified, and dismantled from the system. Those devices have to be placed in a separate system for reconfiguration, prior to installing them again in the control system. For initial bit rate adjustment, LSS bit rate switch is not suitable. For such scenarios, the automatic bit rate switch is to be considered.

Typical identification of unconfigured LSS server by means of LSS Fastscan

In case several unconfigured LSS servers exist in a CANopen system, they can be identified by means of the LSS Fastscan service. To be able to distinguish between the different unconfigured LSS servers, the LSS manager achieves the at the beginning unknown LSS addresses of the unconfigured LSS, through a certain number of LSS fastscan scanning cycles. In the first request of a scanning cycle the LSS manager proposes a bit pattern of the size 1 to 31 bit for the IDnumber (either vendor-ID, product code, revision number, serial number of unknown LSS address). All unconfigured LSS servers evaluate, whether their LSS address matches with the proposed bit pattern in the given part. Only if the proposed bit pattern is identical to the given part of the LSS server’s LSS address, the LSS server indicates this to the LSS manager and will continue operating in this scanning cycle. All other unconfigured LSS servers withdraw from the current scanning cycle and will wait for the next scanning cycle. In the next LSS manager’s request the LSS manager again proposes a bit pattern of the size 1 to 31 bit for another part of the LSS address to be identified. Again all unconfigured LSS servers participating in this scanning cycle compare the proposed bit pattern with the relevant part of their LSS address and indicate a 100% match to the LSS manager. Other LSS servers, where the proposed bit mask is not equal to the relevant part of the LSS address, do not take part in this scanning cycle any longer. This way, by repeating this procedure several times, the LSS manager is enabled to identify a single, unconfigured LSS server and automatically gets the entire LSS address. As soon as one unconfigured LSS server is identified, the LSS manager can assign a CANopen node-ID value to this LSS server so that the LSS server is enabled to take part in the CANopen network.

To decrease the boot-up time in CANopen systems that may be modified by the end user, the LSS manager could store LSS addresses that have been identified. On each power-up, the LSS manager could try those addresses first and if then there is still an unconfigured LSS server left in the system, the generic LSS scanning cycle is started.

  • 15
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
含以下CANopen 协议及子协议,请选择 DS301 规范了对应用层、通信子协议进行了全面描述外,还为特定的应用提供了扩展架构,定义了更多规则和特殊通信对象。例如:定义 了网络管理对象(节点保护,寿命保护),并定义了使用这些对象的详细规则,是包含通信接口、应用过程以及对象字典的CANopen设备的基本 模型 DS301 应用层 DS302 CANopen 管理结构与可编程驱动器 DS303 1接线接头说明,2国际单位的表示和前缀,3指示灯说明(1,2,3) DS304 网络安全结构及相关说明 DS305 无 DS306 EDS电子数据表说明 DS308 性能测量说明 DS309 TCPIP(1,2,3) 1-通用原则与服务 2-Modbus/TCP 影射 3-ASCII码影射 EDS 文件规范 设备子协议: 通常命名编号为DS4XX DS401 通用IO模块 DS402 电机驱动器 DS404 闭环测控仪器 DS405 可编程设备 DS406 旋转与线性编码器 DS408 无 DS410 角度测量仪 DS412 医疗器械(1,2,6),1--通用定义,2---X光准直仪,3--x光发生器,4--疾人表配置,5--X光标准,6--剂量测量系统 DS414 织布机驱动(1,2) 1--通用定义 2--馈线 DS417 升降控制器 DS418 电池驱动模块 DS419 电池充电器 DS420 挤压设备(1,2,3,4,5,6) DS422 市政车辆 DS801 CANopen Automactic bit-rate detection DS802 CANopen CAN remote frames 远程帧-避免使用 DS808 CANopen CiA 444 应用注释和实施指南 CANopen CiA 444 application note and implementation guideline DS201207 DSV1.1 工业应用的应用层
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值