aoi packmlmodestatetimes

Upload: praneeth-nm

Post on 13-Oct-2015

45 views

Category:

Documents


1 download

DESCRIPTION

PackML AOI standards for batch processing

TRANSCRIPT

AOI_PackMLModeStateTimes

AOI_PackMLModeStateTimesDescription: This AOI (Add-On-Instruction, encapsulated and protected code) complements the AOI_PackML instruction by reporting the current and cumulative seconds (since last reset) in any mode and state.

Ladder Instruction:

Function Block Instruction:

Structured Text Instruction:

AOI_PackML(AOI_PackMLModeStateTimes, Inp_PackMLStatus, Sts_StateCurrentSeconds, Sts_StateCumulativeSeconds, Sts_ModeCurrentSeconds, Sts_ModeCumulativeSeconds, Sts_AccTimeSinceReset);Parameters:NameData TypeReq?UsageUnitsAcceptable ValuesDescription

AOI_PackMLAOI_PackMLYInOutThis is the AOI control tag

EnableInBOOLInput

EnableOutBOOLOutput

Inp_PackMLStatusAOI_PackMLYInOutPackML Machine Status from AOI_PackML base tag

Cmd_ResetCurrentModeTimesBOOLInput1 = ResetReset the times for the current mode and current mode states only. Go to the data table to view this value.

Cmd_ResetAllTimesBOOLInput1 = ResetReset the times for all modes and all mode states. This will also reset the OutAccTimeSinceReset timer.

Sts_StateCurrentSecondsDINTYOutputSecondsAmount of time in the current state. This value will be reset after a state change.

Sts_StateCumulativeSecondsDINT[32, 18]YInOutSecondsCumulative amount of time in any state for any mode. For example, the value in OutStateCumulativeSeconds[1,3] represents the cumulative time for the starting state in mode 1.

Sts_ModeCurrentSecondsDINTYOutputSecondsAmount of time in the current mode. This value will be reset after a mode transition.

Sts_ModeCumulativeSecondsDINT[32]YInOutSecondsCumulative amount of time in any mode. For example, the value in OutModeCumulativeSeconds[1] represents the cumulative time in mode 1.

Sts_AccTimeSinceResetDINTYOutputSecondsAccumulated time since the last InCmdResetAllTimes.

TimeRollOverWarningBOOLOutputIndicates that the time in the OutAccTimeSinceReset has rolled over at 2,147,483,647 seconds (~68 years). This can be reset by InCmdResetAllTimes.

Typical Instruction Use

The AOI is designed to be run with no rung input conditions.

AOI Revision History1.0 Initial Release

Initial Release

AOI_PackMLModeStateTimes.docxPage 1 of 2