I want to make my own report (if so go directly to file-logger, skip the reader setup)
I want to read a code from a preprinted product with a camera, print sequentially from a data file, and produce a file containing the code linked to the record in the data file. That is, I want to know what code went with what customer.
Make a job with a camera and an inkjet type “File Logger” for which you must have a license.This inkjet must be referenced to a sync-point or a product detect as a reference in order to get the number, below to PD 2, AFTER the camera result has been received. That is, all information for the file-logger must be available at the reference. It is clear that you do not reference to something that happens before what you want to log.
Now, from 3.58 P30 on, regardless of what you define, the Information is sent to the file at the last object in the machine, in the example below the gate. This way, you don’t have to bother with references. Please define the same reference and distance as the gate!
Declare the reader mode as logg. Set the number of digits you expect (here 9).
In the File Logger, declare like with another regular inkjet, the fields you want to get printed. In below case, they are going to be logged in C:\temp\FileName GBR.txt. Notice that you have to enter the path, here c:\temp. For a computer in the network \\ComputerName\c\temp (of course the network cannot be overloaded otherwise you better log locally !!!)
Notice that you can enter the splitting size which must be 0 (no split), 1’000, 10’000, 50’000, or 100’000. Also, if you wanted only the bad products, enter just B. If you wanted only the good products, enter G alone.
If you wanted a file for good products and another file for bad products, you would have to declare 2 file-loggers.
To control on-line what is being logged, simply check the trace function and you will see in the RTX console every record that is being logged as it happens.
If you had the split set to 1’000, the directory to c:/logger, GBR to GR (only good and reorders, no bad ones) and the file name was big bundle size, you will find the following files (first is the gile name then GBR, then split) as you produce:
If you want to add a header with your own definition, place your text in d:/header.txt. Every time a log file is created anew, your header will read from that file. Make sure it has a carriage return line feed at the end.
The part number is 83178 and it costs 2,500 per controller.