12/13/2012 2:51 AM | |
Posts: 68 Rating: (0) |
Hey, Thaks for quick reply. Again my question is I have to compare each byte & check if it matches. How do it with multiple instance.
|
12/13/2012 7:16 AM | |
Posts: 2348 Rating: (264)
|
Then can you place your code here (non-instance) - then i can show how to modify it. I dont see any difference in 2 implementations... |
12/13/2012 2:46 PM | |
Posts: 68 Rating: (0) |
Hi, Attaching here source file of block. Explanation of IOs fields is following :- VAR_INPUT DectedBarcodeLength : INT ; // Its length of detected barcode in bytes END_VAR VAR_OUTPUT ErrorCode : INT ; Prod_Identified : BOOL ; DetectedProd_ID : BOOL ; //// Its Product ID of detected barcode let say it matches it product 1 (1st dat of db3) then it will be a bool output (1st data of db5) Barcode data will come in db301 from byte 101 to byte 127. My code works but its sortfall are :-
I would also appriciate if you suggest a better idea or maybe some better code.
AttachmentSource Files.zip (84 Downloads) |
Last edited by: plcbug at: 12/13/2012 3:10 PM |
|
Follow us on