How to trigger inject node 1 time when PLC BOOL variable become true?

Hello Community,

I have a PLC BOOL variable, when become true i want to trigger an inject node 1 time, how can it be done?

Warmest regards,

Best reply by CodeShepherd

I guess you are talking about an inject node in Node-RED. I would simply subscribe to the Boolean value and check in a function if its true and pass a message to the following nodes for that case. So your function is the trigger and no inject node is needed.

View original
2 replies