Announcement

REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at https://forum.rexygen.com.

Looking forward to meeting you there!
 

#1 2016-03-11 16:26:14

deepak
Member
Registered: 2015-11-27
Posts: 9

Rexlang block freezes when there is an illegal operation

Hi , I noticed that the Rexlang block freezes due to an illegal operation then refuses to reset. In my program , I had put in a line
output_y0= input_1/input_2.

When the program is first downloaded , Input_2 is '0' because input_2 has to be manually entered from HMI. So after the program is downloaded, The rexlang block does not produce output_y0 .On checking rexview, the iE code says error - division by zero. Later, even when a positive value is entered from HMI, it still does not produce output_y0.  The issue has been solved with a bit of if, else logic as in if in input_2 is zero , Output_y0= some initial constant value.

Im not sure if this is a bug or it is intentional, just thought id share it on the forum. Thanks !

Offline

#2 2016-03-12 23:33:51

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: Rexlang block freezes when there is an illegal operation

Thanks for posting your findings. This is a feature in versions <=2.10.x, not a bug. In future versions the REXLANG block will have a RESET input.

Offline

Board footer

Powered by FluxBB