J_Simmons
Member
I am trying to display the total run time for a piece of equipment. I have the program side done, but I can't figure out how to display it on the screen. Here is
my code for timing the operation.
// Rung 1
// Address 0
STR X0
STRN X1
AND T0
TMRA T0 K600
// Rung 2
// Address 6
STR T0
STRN X1
AND CT0
CNT CT0 K60
// Rung 3
// Address 12
STR CT0
STR C1777
CNT CT2 K9999
// Rung 4
// Address 17
NOP
#BEGIN ELEMENT_DOC
"X0","Running","","Machine Running"
"X1","Stopped","","Machined Stopped"
"C1777","AFI","","Always False Instruction"
"T0","Sec","Seconds by tenth",""
"CT0","Mins","Minute Count",""
"CT2","Hrs","","Hour Count"
"SP0","_FirstScan","",""
#END
my code for timing the operation.
// Rung 1
// Address 0
STR X0
STRN X1
AND T0
TMRA T0 K600
// Rung 2
// Address 6
STR T0
STRN X1
AND CT0
CNT CT0 K60
// Rung 3
// Address 12
STR CT0
STR C1777
CNT CT2 K9999
// Rung 4
// Address 17
NOP
#BEGIN ELEMENT_DOC
"X0","Running","","Machine Running"
"X1","Stopped","","Machined Stopped"
"C1777","AFI","","Always False Instruction"
"T0","Sec","Seconds by tenth",""
"CT0","Mins","Minute Count",""
"CT2","Hrs","","Hour Count"
"SP0","_FirstScan","",""
#END