Skip to main content

Check Sheets

The Check Sheets configuration screen allows a user to manage all aspects of check sheet configuration. You can add a check sheet or click on an existing check sheet to edit or delete it.

Configure Check Table


The Check Sheet Editor allows you to create a set of checks that are required to be performed. The Configure Check Sheets button allows you to switch between editing and viewing the check sheet.
You will need to enter a name for the check sheet before you can do anything else with the check sheet. The 'Estimated Minutes' Field allow you to set the expected duration it should take for a manual check sheet to be filled out. Entering a value here will automatically create a check item for 'duration' that a user will fill out. This provide information on how long a set of checks actually takes. The Configure Check Sheets Close button will exit the editor and return you to the Check Sheet Table.

Configure Check Sheets

Check Sheet configuration is divided across the following tabs...

  • Info: You can add a descriptive field about this check sheet and link it with other documents such as SOPs.
  • Settings: General settings
  • Checks: Add specific checks that need to be carried out
  • Triggers: Add triggers that will cause this check sheet to be scheduled or automatically executed

Check Sheet Settings​

Configure Check Sheets

  • Enabled: Enable or disable a check sheet.
  • Sign Off Required: Require a sign off for approval. If unchecked a submitted check sheet is automatically moved to the 'Approved' status. Only approved checks are used in SPC analysis.
  • Auto: Indicate that this check sheet only contains checks whose values will be automatically captured when the check sheet is triggered. Add Check leaves Auto check sheets out of its list unless Include Auto Checks is ticked.
  • Folder: Saves the check sheet in a specific folder.
  • Asset Required: Determines if an asset must be selected for this check sheet.
  • Item Required: Determine if an items must be selected for this check sheet.
  • Issue Check Sheet: Choose a check sheet to schedule immediately upon test failure.
  • Notifications: Select a team or user for email notifications on test failure.
  • Sync Date: The 'Taken Date' of the Check Sheet by default is the date the check sheet is submitted. You can override this to force all check items and the check sheet itself to use the datetime picked for a check that is of datetime data type. This can be used when all check items are to be referenced to say the 'code time' printed on a product. To use this feature, simply create a check item that is of data type 'datetime' and then select it in this dropdown. When the user selects the date time, it will now be used for the 'Taken Time'.

Check Sheet Checks​

A check sheet can contain any number of checks and checks can be grouped together logically. Click the Configure Check Sheets to add a new check or Configure Check Sheets to edit an existing check.

Configure Check Sheets

Check Groups​

Checks are grouped into tabs. With the check sheet in Draft or In Revision, the buttons above the checks add, edit, copy and delete groups, and the arrows move the selected group left or right.

Copy Group copies the selected group, with all of its checks, as a new tab at the end of the same check sheet. It suggests the group's next free name ("Main" copies to "Main 2", "Stage 2" to "Stage 3"), which you can change; a name the check sheet already has is refused. Everything about each check comes along: its settings, images, attribute or data source tag, and specification. Within the copy:

  • A trigger check in the group is copied too, and the copied checks it triggers use the copy.
  • A calculation that refers to a check in the group ('Main\Length') refers to the copy ('Main 2\Length').
  • Triggers and calculation references to checks in other groups are kept as they are.

The Check Item Editor allows you to create the specific checks to be taken. Checks can be manual entry, automatically pulled from PLC tags or calculated based on the value of other checks taken.

Check Item Settings - General​

Configure Check Items

Give your check item a name and assign it to a group. You can enable or disable it and determine whether it is a required or optional check. You can also add instructions that are displayed to the user when they select this check item.

Check Type​

There are several check types you can select from...

  • Check This is the main check type in that this check item will receive a value and store it against this check item.
  • Calculated A calculated check will perform a custom calculation based on the values of other check items. Those check items can be check types or calculated types themselves.
  • Trigger A trigger check is used to trigger the capture of other check item values.

Data Type This property defines the expected type of data expected to be received by this check and this selection drives other check item selections, including the component presented to the use to input the value. Options are Boolean, Datetime, Float, Geo Location, Image, Integer, String.


Check Item Settings - Data Properties​

Configure Check Items

  • Number of Measurements: Set the # of measurements to be taken for this check. Allows for within-subgroup variance analysis.
  • Assign Attribute: Attributes are used to associate a check with a tolerance spec and a data source tag path. A check reads its value from either an attribute or its own data source tag, so Assign Attribute is hidden while a data source tag is set.
  • Data Source Tag: A tag the check reads its value from without an attribute, for a value that isn't specific to an asset (a utility supply temperature, say). Type the tag path or browse for it with the tag button. Like an attribute's data source, the tag is read when the check is triggered by a trigger check, and on an auto check sheet. Shown when the check has no attribute.
    • Scale Factor: The tag value is multiplied by this; empty is 1.
    • Ignore Zero Values: A zero read from the tag is treated as no value.
  • Dynamic: When enabled, this check item will only be shown when a valid tolerance can be found for the associated attribute. Usage is to prevent displaying checks that may not be valid for certain items (products/materials).
  • Units: Define engineering units for data display. Standard units are added for you, including °C, °F, µm, mL, kPa, N·m, pH, ppm, µS/cm, Ω and kΩ; any other unit can be typed in, with any symbol.
  • Format: Enter a format string for data presentation following the custom numeric string format i.e. #,##0.##
  • Persistent: When enabled, persistence will copy over the value entered the last time this check was taken. If asset and/or item is required, it will use previous value for that asset/item combination.

Specification​

  • Tolerance: Only shown if check datatype is a String or Number. Number choices are: 'Attribute Tolerance' (if check item is associated with an attribute), 'Tolerance', 'Set Point' and 'Range'. String choices are: 'Regex'.
  • Range: A value outside the range is saved as a failed check. Optional Entry Limits (Lower and Upper Entry Limit) go further: a value outside them is refused when it is entered, with a message, rather than saved. Set the entry limits to the range itself to make the range strict, so a value outside it can't be entered at all. A value between the entry limits but outside the range is still accepted and saved as failed. The entry limits are shown in red when they sit inside the range.

Check Item Settings - Entry Options​

Configure Check Items

Entry Options allows you to present the user with a number of different ways to enter in a value for a check item. You don't need to provide an entry option, a standard text field or numeric input field will be presented to the user and keyboard entry is always permitted (but validated).

The entry options that can be selected from vary based on the check item data type....

Boolean Data Type​

  • Boolean: Generates buttons based on values defined in the picklist values. Pick list values are in json format. 'TRUE' defines the button(s) that will yield a 1 result, 'FALSE' a 0. i.e. {'TRUE':['Yes'], 'FALSE':['No']}

Integer and Float Data Types​

  • Number: Generates buttons from attribute tolerance if it exists otherwise uses values defined in the picklist values. Pick list values are in json format. 'denominator' defines the increment part (0.1 will generate 0.1, 1.2, .3 etc. ). 'lel' and 'uel' defines the lower and upper value range, 'ucl', 'lcl', 'lsl', 'usl' defines the spec limit. i.e. {'denominator':0.5, 'lel':1,'lsl':1.1, 'lcl':1.8, 'tgt':2, 'ucl':2.2, 'usl':2.6, 'uel':3}
  • Time: Presents the user with a time key pad to enter duration in hours, minutes and seconds for a check. The value is stored in seconds.
  • Fraction: Generates buttons from attribute tolerance if it exists otherwise uses values defined in the picklist values. Pick list values are in json format. 'denominator' defines the increment part (0.1 will generate 0.1, 1.2, .3 etc. ). 'lel' and 'uel' defines the lower and upper value range, 'ucl', 'lcl', 'lsl', 'usl' defines the spec limit. i.e. {'denominator':0.5, 'lel':1,'lsl':1.1, 'lcl':1.8, 'tgt':2, 'ucl':2.2, 'usl':2.6, 'uel':3}

String Data Type​

  • Tree: Generates a tree selector. Selection options are generated from a comma separated list. Each option must be wrapped in single quotes and use / to create the tree structure. i.e. 'Kanoa Industries/T1-Acme, TX','Kanoa Industries/T2-Acme, TX','Kanoa Enterprises/P1','Kanoa Enterprises/P1/Line 1','Kanoa Enterprises/P2/Line 2'. Do not have spaces between tree elements
  • Text: Generates buttons with the text defined in the pick list values. Pick list values are in json format. i.e. {'PASS':["Perfect", "Good"], 'WARNING':["Fair", "Average"], 'FAIL':["Bad"],'NEUTRAL':["Doesn't Matter"]}
  • Boolean: Generates buttons based on values defined in the picklist values. Pick list values are in json format. 'TRUE' defines the button(s) that will yield a 1 result, 'FALSE' a 0. i.e. {'TRUE':['Yes'], 'FALSE':['No']}
  • Barcode Scanner: Provides a button that will uses a mobile devices camera to scan a barcode. Only valid for devices that have a built-in camera. A custom script can be selected to further parse the scanned in bar code. Refer to 'Creating custom scripts' for more info.

Trigger: If the check sheet has checks defined as triggers, you can choose a trigger check item that will cause this check to be taken. Used primarily to pull data from an external datasource such as a plc.


Check Item Settings - Calculator​

When a Check Item is of type 'Calculated', you can apply a mathematical formula or a custom python script to any number of check item values in the check sheet.

Configure Check Sheets

Aggregates​

Select Average, Sum, Range, Min, Max or Standard Deviation from the drop down and then select check items from the table to calculate the aggregated value. Note only check items with a numeric data type are shown in the table.

Eval​

Selecting 'Eval' allows check item values to be included into a formula. This option implements the python eval() function allowing formulas such as ('Check Item 1' + 'Check Item 2') / 'Check Item 3'. See python eval function for help on this.

Custom Scripts​

Custom scripts can be written in python unleashing the power of python and Ignition to perform any type of calculation desired.

Select the script option and then select the script you want to run against the selected check items.

Custom scripts can be created in the KANOA_SCRIPTS project. Simply create your function and add any entry in the calcList of the getCalculators() function.

The paramsDict parameter passed to the custom function passes a dictionary containing the chkItemName and list of measurement values for that chkItem.

paramsDict = {'values': {'QR Scan': ['PIC3012017182#2237918#24011503']}

The return value from you custom script must be a tuple containing the returned value and a string message. Return None for a successfully executed script. Return a string to display an error to the user.

example return 'Hello World', None or '', 'An error occurred'

Configure Check Sheets

Testing Your Calculated CheckItem​

Dummy values are entered for check item values to verify correct syntax for calculations.

Configure Check Sheets


Check Sheet Triggers​

The trigger tab allows you to define what should trigger a check sheet. Check Sheets can be scheduled manually without a trigger, but if you want a set of checks to be performed whenever shift changes, or when a new product starts running on a line or after maintenance has been completed, all these scenarios can be supported by adding one or more triggers.

Configure Check Sheets

Click the + button to add a new trigger or Configure Check Sheets to edit an existing trigger.

Configure Check Sheets

Trigger Types​

  • Manual: A check sheet can be manually created without this trigger, however if manual trigger is created, it will specify how much time a user has to take the checks once it has been scheduled.

  • Mode Change: When the mode changes on an asset i.e. from Changeover to Production, this trigger will schedule a check sheet if it meets the specified mode/shift, other options. An optional From Mode limits it to a change from that mode, so a check sheet can run on Changeover to Production but not on Maintenance to Production.

  • Product Change: When the product changes on an asset, this check sheet will be scheduled if the currently running product is specified by the check sheet.

    • Every Product: Quality check is required every time the product changes
    • Unique Products Per Shift: Quality check is required only once per product per shift
    • Once Per Shift: Only one quality check will be performed per shift
  • Re-Test: Set the delay, coming due etc. when a check sheet is scheduled due to a re-test being required.

  • Shift Change: Check sheet will be scheduled if the current shift meets the shift settings of this trigger.

  • Timed Interval: This check sheet will be triggered periodically based on the mode and shift settings.

  • Recurring: The check sheet is scheduled on a repeating calendar rule (every weekday at 6:00, the first Monday of the month, ...). Times are in the asset's site time zone, so 6:00 stays 6:00 at the plant across daylight-saving changes, whatever time zone the gateway runs in.

  • State Change: The check sheet is scheduled when an asset has been in one of the chosen states for at least the minimum time (For at least n mins), for example a check after a line has been Blocked for 10 minutes. It's scheduled once each time the asset goes into the state, so a short stop that clears before the minimum time doesn't trigger a check.

  • Infeed Count, Outfeed Count, Waste Count: The check sheet is scheduled every n counts of the asset's infeed, outfeed or waste counter.

  • General Count: The same, for one of the asset's general counters, by its name.

    For the count triggers, the count starts when the trigger is added and never resets: it carries on across product and shift changes, and what's left over after each n counts toward the next. When n counts are reached while a check sheet is still open, that check is skipped. Counts made while the check sheet doesn't apply (another shift, product, mode or tool than its settings) aren't counted.

State Change and the count triggers are checked by the quality timer, so a check sheet is scheduled within one timer interval of the state's minimum time or the count being reached.

Note If a trigger causes a new check sheet to be scheduled when there is already an existing check sheet scheduled, it will set the current check sheet to aborted if it has not already been started and create the new check sheet.

Timers​

  • Delay: Delay in minutes between a trigger executing and the check sheet being scheduled. Primarily used on shift change to give shift personnel a chance to drink their tea before being bombarded with checks to be performed. Until it passes, the check is In Delay: no screen shows it, and the trigger won't create another.
  • Coming Due: Once a check sheet is scheduled, indicates to a user how long they have in minutes before this check will become due. For Recurring and Timed Interval triggers, it's how far ahead of the due time the check appears.
  • Over Due: Provides amount of time in minutes a user has to start performing the checks once it becomes due.
  • Grace: Number of minutes a check sheet will remain over due before its status is set to 'Missed'.

A check sheet added by hand (Manual trigger) is due as soon as it's added, so its Delay and Coming Due don't apply. With Over Due 30 and Grace 30, it's Over Due after 30 minutes and Missed after 60.

A scheduled check sheet that hasn't been started moves through the following statuses on its own, driven by its trigger's timers:

In Delay → Coming Due → Due → Over Due → Missed

A check is In Delay only when its trigger has a Delay; with none it starts Coming Due.

A check sheet added by hand (Add Check) skips In Delay and Coming Due: it's Due as soon as it's added, so only the Manual trigger's Over Due and Grace apply to it. Delay and Coming Due apply to checks a trigger schedules.

When someone starts filling out a check sheet, it will automatically move to 'In Progress'.

  • Submit moves it to Submitted. If the sheet doesn't require a sign-off, it goes straight on to Approved.
  • An Approved check can later be Rejected so it can be corrected: open it from the Check Table, switch it from view to edit mode with the toggle at the upper right, and click Reject. Change the values and resubmit it. Rejecting and approving need the Approve Checks security function.
  • A check that hasn't been approved can be Cancelled or Disabled.

Reports and SPC only look at Check Sheet events that are in the Approved status.


Check Sheet Version Control​

In the table, we can see that each check sheet has a status column.

Check Sheet Versioning

A released check sheet can't be edited directly. To change one, set its status from Released to In Revision, make the changes, then set it back to Released. Operators keep using the released version until the revision is released.

If you click the arrow on the far left of a check sheet's row, its previous versions are shown. You can view each one, and revert the check sheet to a previous version.

Version states​

StateWhat it means
DraftA new check sheet that hasn't been released yet. It's version 1.
ReleasedThe version operators use. A check sheet has one released version at a time.
In RevisionA copy of the released version being edited. It's disabled, so operators don't see it.
ArchivedA version that a newer release replaced. It's kept, with its events, and can be reverted to.

What a revision does​

  1. Released to In Revision: the released check sheet is copied to a new check sheet named "<name> - In Revision", with the next version number. The copy is what you edit; the released version stays in use.
  2. In Revision to Released:
    • the old released version is archived and renamed "<name> - <its version number>";
    • the revision is released, enabled and renamed back to "<name>";
    • check sheets that used any version of it as their re-test sheet now use the new release.
  3. Reverting to an archived version sets it back to In Revision as the newest version, named "<name> ver<its old number> - In Revision". Release it to put it back in use.

Because a revision is a copy, each version is its own check sheet with its own chkShtId. An event taken on a check sheet keeps the chkShtId of the version that was used, so you can always tell which version an operator filled in.

The check sheet ids​

IdWhat it identifiesChanges
chkShtIdOne version of a check sheet.Every revision gets a new one.
masterChkShtIdThe current released version: its chkShtId. Every version of the check sheet points at it.Each time a revision is released, it moves to the new release.
chkShtVersionGroupIdThe check sheet across all its versions.Never.

Reports, SPC and the quality analysis functions take a masterChkShtId and include the events of every version of the check sheet.

Referring to a check sheet from your own views and scripts​

Because masterChkShtId moves on each release, a view, dashboard or script that stores one stops finding the check sheet after its next revision is released. Store the chkShtVersionGroupId instead, and look up the current masterChkShtId from it when you need one:

groupId = 12 # stored once; it never changes
sheets = system.kanoa.quality.sheet.getSheets({'chkShtVersionGroupId': groupId, 'chkShtVersionStateName': 'Released'})
masterChkShtId = sheets.getValueAt(0, 'masterChkShtId') if sheets.getRowCount() else None
# then, for example
data = system.kanoa.quality.analysis.getContinuousChartData(masterChkShtId, chkItemPath, startDate, endDate)

To find the chkShtVersionGroupId of a check sheet you already refer to by chkShtId or masterChkShtId, look it up in its version history:

history = system.kanoa.quality.sheet.getSheetVersionHistory({'chkShtId': chkShtId})
groupId = history.getValueAt(0, 'chkShtVersionGroupId') if history.getRowCount() else None

chkShtVersionGroupId is returned by getSheets, getSheetsByAsset and getSheetVersionHistory. getSheets and getSheetVersionHistory can filter by it.