UNPKG

@kuriousdesign/machine-sdk

Version:

Shared data types and helpers for machine-related repositories

47 lines (46 loc) 1.29 kB
import { FaultCodeData } from "./Machine"; import { BannerMode, Color, States, VisibilityState } from ".."; export interface ComponentAnimation { visibility: VisibilityState; needsExpertUser: boolean; backgroundColor: Color; accentColor: Color; fontColor: Color; wasClicked: boolean; } export interface ButtonBar { stopBtn: ComponentAnimation; unloadBtn: ComponentAnimation; loadBtn: ComponentAnimation; unlockBtn: ComponentAnimation; startBtn: ComponentAnimation; lockBtn: ComponentAnimation; resetBtn: ComponentAnimation; jobChangeBtn: ComponentAnimation; clearFaultsBtn: ComponentAnimation; energizeBtn: ComponentAnimation; } export interface StatusBar { jobName: string; statusMsg: States; status: number; cncTimeLeft: number[]; goodCnt: number; batchQty: number; dateAndTime: string; bannerMode: BannerMode; faultCodeData: FaultCodeData; } export interface RackHmiPbs { editRawShelfBtn: ComponentAnimation; editDoneShelfBtn: ComponentAnimation; cancelBtn: ComponentAnimation; saveBtn: ComponentAnimation; } export interface HmiData { buttonBar: ButtonBar; statusBar: StatusBar; rackPbs: RackHmiPbs; heartbeatPLC: number; heartbeatHMI: number; }