PartCheck
From PlcWiki
(Difference between revisions)
Petr.zalabak (Talk | contribs) |
Petr.zalabak (Talk | contribs) |
||
Line 20: | Line 20: | ||
Scanned barcode: 204#6R1 614 105 G##315313184#210510 *'''204 FTAC00BXGIG'''*= | Scanned barcode: 204#6R1 614 105 G##315313184#210510 *'''204 FTAC00BXGIG'''*= | ||
Only the highlighted substring (204 FTAC00BXGIG) will be tested for the CheckSum | Only the highlighted substring (204 FTAC00BXGIG) will be tested for the CheckSum | ||
+ | *Operation.''name''.InvalidLabelAllowed = No | '''Yes''' |
Revision as of 12:12, 14 July 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
- Operation.name.InvalidLabelAllowed = No | Yes