请教S5-115U上升沿,用STL怎么编程?
与S7上升沿FP,有何不同?
能举个简单的例子最好不过了,谢谢!
问题补充:
论坛是哪个大侠说,S5没有现成的上升沿指令,需要自己编写
不知道阿鸣大侠的指令是不是上升沿指令?有点糊涂,呵呵
希望大侠给出明确答案
最佳答案
For S5,Bit Test Operations:
TB:Test a bit for signal state "1"。A single bit is scanned regardless of the RLO. The RLO is affected according to the bit''''s signal state。
TBN:Test a bit for signal state "0"。A single bit is scanned regardless of the RLO. The RLO is affected according to the bit''''s signal state。
例:
TB D 12.11
= F 5.2 //When data bit 11 of data word DW 12 becomes "1" , flag F 5.2 is set conditionally
详见:
《S5-115U Programmable Controller》下载:
http://plc.scetc.net/down/zz/plc/siemens1/SIMATIC.S5%EF%BC%8D115U.pdf
提问者对于答案的评价:
谢谢阿鸣大侠,希望您能给解答下我补充的问题,谢谢
原创文章,作者:more0621,如若转载,请注明出处:https://www.zhaoplc.com/plc133397.html