Codesys中的基于事件的任务可以触发跌落边缘吗?
我目前正在研究一个结合埃斯托电路的项目。在正常情况下,雅桥电路传输a“正常”(true)信号。当按下雅口按钮时,信号掉落并变成错误。数字信号只是为了让我捕获,因此在短时间内,在与所有电动机和系统故障连接之前,我可以在短时间内发出“一击”命令(受控停止)。
我尝试使用数字估算输出在“任务配置”下配置基于事件的任务(似乎是最理想的用例)。但是,“事件”条件需要布尔值变量,并且只会在上升的边缘实例上触发。因为我的估算信号通常是“ on”(true),除非我可以以某种方式扭转事件的条件,否则这对我不起作用。
我知道我可以使用IF语句和逆变器将我要寻找的功能合并到我的主要任务中,但是似乎愚蠢的似乎没有任何选择可以颠倒事件的条件。
如果我要的是可能的,请告诉我。如果有人能确认不可能,我也会接受该答案。
I am currently working on a project that incorporates an EStop circuit. The EStop circuit transmits a 'normally on' (TRUE) signal under normal circumstances. When the EStop button is pressed the signal drops out and becomes FALSE. The digital signal is just for me to catch so I can potentially issue a 'one-shot' command (controlled stop), in the brief period, before connection to all motors and systems fault out.
I have tried configuring an event based task under 'Task Configurations' using the digital EStop output (seemed like the most ideal use case). However the 'event' conditions require a Boolean variable and will only trigger on a rising edge instance. Because my EStop signal is normally 'on' (TRUE) this will not work for me unless I can somehow invert the conditions of the event.
I understand I can incorporate the functionality I am looking for within my main task using an if statement and an inverter, but it seems silly there seems to be no option to invert the conditions of the event.
If what I am asking for is possible please let me know. If anyone can confirm it is NOT possible I will also accept that answer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论