Cancel
Showing results for 
Search instead for 
Did you mean: 

Variable value is coming 0 in randtime datatype

Dear All,

 

I am using global variable (minor) for stopping the entity on conveyor for random time. I have used the data type "randtime" and define the uniform value 25:00 to 2:00:00. Yet it is taking time as 0 (zero). Attaching the snap shot. In it i have highlighted area in red border rectangle.

 

How to solve the problem. I am using 13.1 version.

1 REPLY 1
Highlighted

Re: Variable value is coming 0 in randtime datatype

Legend
Legend

You'll need to set the value of minor before the wait in your OnExit method.  You can do this with the rollDice method:

 

minor.rollDice

wait time_to_num(minor)