摘要
每个Modbus RS485通讯任务通常需要几个CPU执行周期,而每时刻只能有一个通讯任务被执行和等待。本文巧妙利用对数1的循环移位结合通讯指令,实现Modbus主站通讯中对多个任务的优化协调管理。
Usually each Modbus RS485 communication task needs several CPU execution cycles, and only one communication task is evacuated or waited at each moment. This article uses logarithmic 1 cyclic shift combined communication instruction to realize optimized coordinate management of multiple tasks in Modbus main communication.
出处
《价值工程》
2015年第32期104-105,共2页
Value Engineering