R_TRIG is used as a rising edge detector.
R_TRIG detects the transition from FALSE to TRUE at the CLK input. When the rising edge is detected, the element assigns the output to TRUE. At the next execution round, the output is returned to FALSE despite the state of the input.