I think that what you are trying to do violates the rules of the PLC ladder logic.
In your example, you do not show how relay1 is controlled. If you add one more rung to the logic, that connects an INPUT to relay1 so that you can affect the state of relay1, you will get a warning message from i-TRiLOGI:
Relay "relay1" has already been energized!
I think that the problem that you are having with the Rising Edge Contact is that you are attempting to define the state of relay1 two different ways in the same PLC program:
[*]The edge contact attempts to make relay1 TRUE for a single scan through the logic
[*]The latch function attempts to make relay1 TRUE.
[/list]
If you are attempting to set a RELAY on a rising edge event, you might want to consider constructs that will work with the PLC.
The following ladder gives the most common ways of getting this done:
Gary d