GE Proficy Rising Edge Structured Text

obi1987

Member
Join Date
Jan 2014
Location
lahore
Posts
114
Hi!

Anyone can share example of GE Proficy Rising Edge Structured Text?

I have found text as below

InstanceOfR_TRIG( CLK := inBool, Q => outBool,
ENO => outBool);

What I am getting from when the clk will be 1 Q will be1 for 0 to 1 transition.

Now what is the Instance is it my tag?Anyone can share with example it will be helpful.

Thanks.
 
You can do this a couple of ways.

1. Drag the R_TRIG instruction from the Toolchest into a structured text block.
It will ask you for a name.
The name you create will have a data type of R_TRIG.

2. You can create the variable first, then type it in the structured text.
Be sure to create the instance under the block. It may work as a global instance, but I would not recommend it.
When you create the variable, make its type R_TRIG.
 
When I am droping it from toolchest the same text just appeared in Structured Text block.

Variable should be the same which i have to use for Positive edge or it is just a new variable

For Example my Tag is P_PED

Var
Test : R_TRIG;
End_VAR

OR

Var
P_PED : R_TRIG;
End_VAR

Can you please give me an example?
 
GFK-2950 chapter 8 covers structured text and has many good examples. Also, there are R_TRIG and F_TRIG function blocks available if you don't want to do it in structured text.
 
EXAMPLE USE
VAR

(* Declares that we want a single variable of the function block R_TRIG
We name the instance "myRisingTrigger" *)
myRisingTrigger : R_TRIG;

bInput1 : BOOL; (* This is the input we will want to see the rising edge of *)
myCounter : INT; (* Counter for number of edges *)
END_VAR
---
(* In the program we use the function block instance *)
myRisingTrigger(CLK:=bInput1);
IF myRisingTrigger.Q THEN
myCounter := myCounter + 1;
END_IF
---

myRisingTrigger.Q is true only on the rising edge of bInput1, which you can verify by watching the counter.
 

Similar Topics

I'm getting frustrated creating arrays of variables in Machine edition. I need to make 2 variable arrays that are 102x2 in size, with varying...
Replies
3
Views
88
Hi I am wondering if the RXI-042 PLC model (below PN) is programable via Proficy Machine Endition, if so, what is the firmware version needed for...
Replies
2
Views
86
Greetings, I am working on a project and I would like to scale %AI to -10.0 to 10.0 VDC. The module Input data is stored as a 16 bit Integer and...
Replies
4
Views
61
I am trying to download a program with usb to serial cable in rx3i IC695CPE305 while logic and configuration is equal but when i start downloading...
Replies
1
Views
39
Back
Top Bottom