Your query is to retrieve the values appropriate to each motor, kindly follow the below steps,
Declare a variable of type int, sum_TotalTime with value as 0.
Use for each row in a datable activity, and in the input variable pass the table variable value into it.
Inside the loop, use assign activity to assign the values into a variable like
str_Machine = CurrentRow(“Machine”)
int_TotalTime = Current(“TotalTime”)
Finally, in the same loop, use another assign activity to sum the values of the totaltime and storing them into the sum variable. sum_TotalTime = sum_TotalTime + int_TotalTime
Outside of the loop, you will get the total time of the motor.
Hope, this helps to solve your problem. If so, kindly mark it as solution which would be helpful for others.