1 / 3

彩灯循环的 PLC 控制系统

彩灯循环的 PLC 控制系统. 移位寄存器指令. 设计者 :张丹丹 学校 :天津市电子信息高级技术学校. 寄存器移位指令( Shift register ). 寄存器 移位指令的操作数: DATA :数据输入端,将该位的值移入移位寄存器;数据类型为 BOOL 变量。 S_BIT :移位寄存器的最低位的地址,数据类型为 BOOL 变量。 N :指定移位寄存器的长度和移动方向。 N 存储单元的长度为字节型,最大为 64 , N 为正时,在输入端的上升沿, DATA 数据输入端的数据由低位移入,最高位被移到溢出位。 N 为负时,从最高位移入,最低位被移到溢出位。.

shad-pace
Download Presentation

彩灯循环的 PLC 控制系统

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 彩灯循环的PLC控制系统 移位寄存器指令 设计者:张丹丹 学校:天津市电子信息高级技术学校

  2. 寄存器移位指令(Shift register) 寄存器移位指令的操作数: DATA:数据输入端,将该位的值移入移位寄存器;数据类型为BOOL变量。 S_BIT:移位寄存器的最低位的地址,数据类型为BOOL变量。 N:指定移位寄存器的长度和移动方向。N存储单元的长度为字节型,最大为64,N为正时,在输入端的上升沿,DATA数据输入端的数据由低位移入,最高位被移到溢出位。N为负时,从最高位移入,最低位被移到溢出位。 语句表 SHRB DATA, S-BIT, N

  3. 寄存器移位指令(Shift register) 移位条件:EN输入端由断变通时,进行一次移位,每移一位需要一个脉冲信号,移位几次就要有几个脉冲信号,因此移位条件一定是一个脉冲信号。

More Related