上升沿_PLC基本知识 -- 4.5 One-Shots / 上升下降沿 (顺便学英文)

One-shots / 上升沿or下降沿

A one-shot is an interesting and invaluable programming tool. At first glance it might be difficult to figure out why such an instruction is needed. After we understand what this instruction does and how to use it, however, the necessity will become clear.

One-shot是一种有趣的、无价的编程工具。乍一看,很难理解为什么需要这样的指令。然而,在我们理解了这个指令的作用以及如何使用它之后,必要性就变得清楚了。

A one-shot is used to make something happen for ONLY 1 SCAN (you do remember what a scan is, right??) Most manufacturers have one-shots that react to an OFF to ON transition and a different type that reacts to an ON to OFF transition. Some names for the instructions could be difu/difd (differential up/down), sotu/sotd (single output up/down), osr (one-shot rising) and others. They all, however, end up with the same result regardless of the name.

One-shot是用来让某事只在一个扫描周期内发生(你还记得什么是扫描吧?)。大多数品牌的PLC有两种类型的One-shot指令,一种是在由OFF转换成ON时发生,另一种是在由ON转换成OFF时发生。这些指令的名称可以是DIFU/DIFD(differential up/down)、SOTU/SOTD(single output up/down)、或者OSR(one-shot rising)等等。然而,不管名称如何,它们最终得到的结果都是相同的。

1cd149859dd88278a634f1c0c56af555.png

One-shot Instruction / One-shot 指令(上升沿指令)

Above is the symbol for a difu (one-shot) instruction. A difd looks the same but inside the symbol it says "difd". Some of the manufacturers have it in the shape of a box but, regardless of the symbol, they all function the same way. For those manufacturers that don't include a differential down instruction, you can get the same effect by putting a NC (normally closed) instruction before it instead of a NO(normally open) instruction. (i.e. reverse the logic before the difu instruction)

上面是DIFU(One-shot)指令的符号,DIFD的符

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值