Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Display the Status of machine Dynamically using a Variable

Dear All,

 

I have a request where the utilization of machine needs to be displayed in simulation and value should change dynamically.

 

(eg) Machine 1 - Working time is :

Machine 1 - Waiting time is:

Machine 1 - Blocked time is:

 

Is it possible to display them?

I know it is easy to take it from Charts but this is an option I would like to explore.

 

I did a similar activity for displaying Current state of the machine as below:

I have added a comment for each machine and added an observer to them for recording "ResCurrentState" and method executed is :

if ?.resCurrentState ="Blocked" then
    Comment3.text:="Waiting for Operator"
elseif ?.resCurrentState ="Waiting" then
    Comment3.text:="Waiting for Part"
    
elseif ?.resCurrentState ="Working" then
    if ST20_Pos=1 then
        Comment3.text:="Manual process"
    elseif ST20_Pos=2 then
        Comment3.text:="Auto process"
    else
        Comment3.text:=?.resCurrentState
    end
else
   Comment3.text:=?.resCurrentState
end

2 REPLIES

Re: Display the Status of machine Dynamically using a Variable

Phenom
Phenom

have a look at the methods for accessing Statistcs 

 

in the help file

 

Unbenannt.PNG

 

 

Betreff: Display the Status of machine Dynamically using a Variable

Valued Contributor
Valued Contributor

Do you know the attributes "statBlockingPortion","statWorkingPortion","statWaitingPortion",...?

__________________________________
Have a look in the help, before asking.
EDAG-PS: https://www.edag-ps.de/