OneShot ONS Strutured text

Join Date
Jun 2017
Location
Lisbon
Posts
24
Hi all,

With ControlLogix, I know that we can do something similar to ONS in Strutured text, I cannot remember how to make. It is something like repeat the tag in the code....šŸ™ƒ
Any help would be appreciated.

Thank you
BBB
 
There should be a function block called R_TRIG.

You'd first define it as a variable.

VAR
One_Shot :R_TRIG;
END_VAR

To activate you reference the CLK input.

One_Shot(CLK:=Some_Bool_Input);

To use the one-shot output, reference Q.

IF One_Shot.Q THEN
...
END_IF
 

Similar Topics

Question regarding ONESHOT logic. Can the SAME ONESHOT be used in several locations within the same subroutine? For an example: Logic in the...
Replies
21
Views
20,289
Hey all, I'm kind of new to structured text programming and I'm trying to understand why a routine someone else wrote doesn't quite work. There is...
Replies
2
Views
1,441
Hi Guys! I'm writing a Function Block and I want an internal counter to reset at the call of this FB. Now I have searched at it seems I can't...
Replies
7
Views
3,651
How to I trigger on a positive transition oneshot in function block? In ladder I just use the |P| coil, but can't find anything similar in...
Replies
2
Views
4,455
I know Rockwell is trying to steer users into using multiple timed tasks instead of the old standby of having one continuous task as a way of...
Replies
13
Views
5,650
Back
Top Bottom