CableCheck (Poka-Yoke Check)
From PlcWiki
(Difference between revisions)
Petr.zalabak (Talk | contribs) (Created page with 'Generally, this type of an operation checks if the scanned barcode mathes the product ID. It can be called a unique part check. The scanned bar code (or its substring) needs to m…') |
Petr.zalabak (Talk | contribs) (→Other parameters) |
||
Line 7: | Line 7: | ||
*Operation.''name''.SelectPattern[i] = Regexp | *Operation.''name''.SelectPattern[i] = Regexp | ||
*Operation.''name''.PartStart[i] = int | *Operation.''name''.PartStart[i] = int | ||
- | |||
*Operation.''name''.PartLength[i] = int | *Operation.''name''.PartLength[i] = int | ||
+ | These two parameters (in case of an operation type CableCheck) define the start position and the substring length '''in the product ID'''. | ||
*Operation.''name''.CheckSumType[i] = int | *Operation.''name''.CheckSumType[i] = int | ||
Possible values of CheckSumType: | Possible values of CheckSumType: | ||
Line 19: | Line 19: | ||
No - Part number consists of Product ID + Suffix | No - Part number consists of Product ID + Suffix | ||
Yes - Part number consists of Prefix + Product ID | Yes - Part number consists of Prefix + Product ID | ||
+ | |||
+ | == Examples == | ||
+ | 1. The part number consists of a product ID + suffix "ABC": | ||
+ | Product ID: 1234567 | ||
+ | Tested Part number: '''1234567'''ABC | ||
+ | ''Settings:'' | ||
+ | Operation.MainHarness.Type = CableCheck | ||
+ | Operation.MainHarness.Index = 1 | ||
+ | Operation.MainHarness.SelectPattern[0] = ^\d{7}ABC$ | ||
+ | Operation.MainHarness.SNStore = No |
Revision as of 08:24, 14 May 2010
Generally, this type of an operation checks if the scanned barcode mathes the product ID. It can be called a unique part check. The scanned bar code (or its substring) needs to match the product ID (or its substring).
Mandatory parameters
- Operation.name.Type = CableCheck
- Operation.name.Index = (int) index
Other parameters
Bar code settings
- Operation.name.SelectPattern[i] = Regexp
- Operation.name.PartStart[i] = int
- Operation.name.PartLength[i] = int
These two parameters (in case of an operation type CableCheck) define the start position and the substring length in the product ID.
- Operation.name.CheckSumType[i] = int
Possible values of CheckSumType: 0 - No check (default settings) 1 - SumEven + 3*SumOdd MOD 10 2 - SumEven + 3*SumOdd MOD 36 3 - Sum MOD 43 (Code39)
- Operation.name.SNStore = No | Yes
This parameter is used here to define if the part bar code is different by its prefix or suffix: No - Part number consists of Product ID + Suffix Yes - Part number consists of Prefix + Product ID
Examples
1. The part number consists of a product ID + suffix "ABC": Product ID: 1234567 Tested Part number: 1234567ABC Settings: Operation.MainHarness.Type = CableCheck Operation.MainHarness.Index = 1 Operation.MainHarness.SelectPattern[0] = ^\d{7}ABC$ Operation.MainHarness.SNStore = No