You are on page 1of 2

AOI_PackMLModeStateTimes

Description:
This AOI (Add-On-Instruction, encapsulated and protected code) complements the AOI_PackML instruction by
reportin the current and cumulati!e seconds (since last reset) in any mode and state"
Ladder Instruction:
Function Block Instruction:
Structured Text Instruction:
AOI_PackML(AOI_PackMLMode#tateTimes, Inp_PackML#tatus, #ts_#tate$urrent#econds,
#ts_#tate$umulati!e#econds, #ts_Mode$urrent#econds, #ts_Mode$umulati!e#econds,
#ts_AccTime#ince%eset)&
Parameters:
Name Data Tpe !e"
#
$sa%e $nits Accepta&le
'alues
Description
AOI_PackML AOI_Pack
ML
' InOut This is the AOI control ta
(nableIn )OOL Input
(nableOut )OOL Output
Inp_PackML#tatus AOI_Pack
ML
' InOut PackML Machine #tatus *rom
AOI_PackML base ta
$md_%eset$urrentModeTimes )OOL Input + , %eset %eset the times *or the current
mode and current mode
states only" -o to the data
table to !ie. this !alue"
$md_%esetAllTimes )OOL Input + , %eset %eset the times *or all modes
and all mode states" This .ill
also reset the
OutAccTime#ince%eset timer"
#ts_#tate$urrent#econds /I0T ' Output #econds Amount o* time in the current
state" This !alue .ill be reset
a*ter a state chane"
#ts_#tate$umulati!e#econds /I0T123,
+45
' InOut #econds $umulati!e amount o* time in
any state *or any mode" 6or
e7ample, the !alue in
Out#tate$umulati!e#econds1
+,25 represents the cumulati!e
time *or the startin state in
mode +"
328933::3"doc Pae + o* 3
Name Data Tpe !e"
#
$sa%e $nits Accepta&le
'alues
Description
#ts_Mode$urrent#econds /I0T ' Output #econds Amount o* time in the current
mode" This !alue .ill be reset
a*ter a mode transition"
#ts_Mode$umulati!e#econds /I0T1235 ' InOut #econds $umulati!e amount o* time in
any mode" 6or e7ample, the
!alue in
OutMode$umulati!e#econds1
+5 represents the cumulati!e
time in mode +"
#ts_AccTime#ince%eset /I0T ' Output #econds Accumulated time since the
last In$md%esetAllTimes"
Time%ollO!er;arnin )OOL Output Indicates that the time in the
OutAccTime#ince%eset has
rolled o!er at 3,+98,942,:98
seconds (<:4 years)" This
can be reset by
In$md%esetAllTimes"
Tpical Instruction $se
The AOI is desined to be run .ith no run input conditions"
AOI !e(ision )istor
+"= Initial %elease
Initial %elease
328933::3"doc Pae 3 o* 3

You might also like