PartCheck
From PlcWiki
(Difference between revisions)
Petr.zalabak (Talk | contribs) m (→Other parameters) |
Petr.zalabak (Talk | contribs) |
||
Line 14: | Line 14: | ||
2 - SumEven + 3*SumOdd MOD 36 | 2 - SumEven + 3*SumOdd MOD 36 | ||
3 - Sum MOD 43 (Code39) | 3 - Sum MOD 43 (Code39) | ||
+ | *Operation.''name''.CheckSumSubString[i] = Regexp | ||
+ | It is possible to define the substring from the scanned bar code for the CheckSum test. | ||
+ | For example: | ||
+ | Operation.PartCheck_BrakeBau.CheckSumSubString[0] = ^.*\*(.*)\*.*$ | ||
+ | Scanned barcode: 204#6R1 614 105 G##315313184#210510 *'''204 FTAC00BXGIG'''*= | ||
+ | Only the highlighted substring (204 FTAC00BXGIG) will be tested for the CheckSum |
Revision as of 22:50, 3 June 2010
Generally, this type of an operation checks if the scanned part is the correct one, which is requested for this product.
Mandatory parameters
- Operation.name.Type = PartCheck
- 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
- 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.CheckSumSubString[i] = Regexp
It is possible to define the substring from the scanned bar code for the CheckSum test. For example: Operation.PartCheck_BrakeBau.CheckSumSubString[0] = ^.*\*(.*)\*.*$ Scanned barcode: 204#6R1 614 105 G##315313184#210510 *204 FTAC00BXGIG*= Only the highlighted substring (204 FTAC00BXGIG) will be tested for the CheckSum