# Vision System Experimentation in Furniture Industrial Environment
## 3 Applied Methodology
### Deployment of the Vision System Solution  
The deployment initially involved the Industreweb 4.0 TM Edge Factory Connector, the camera and a PLC. To make it clear to the operator how to proceed with the current piece, the code attached to each piece is scanned with a barcode reader, which is connected to the Industreweb CollectTM Engine; this allows the Factory Connector to query the ERP in order to get the piece details back. These instructions are then displayed in a clear way to the operator on a screen next to the machine. Barcodes are unique for each piece and they are represented in the Code 128 format [13]. Besides this, the text available in the label is also a unique identifier and it is used to get the information for the piece. As an example, the following four relevant parts of the code \"CSF2503327P2\" depicted in Figure 3 have been selected to provide an overview of how the pieces are identified:  
Figure 2: IndustrewebTM 4.0 Edge Factory Connector architecture. 1. The prefix CSF in the ERP code represents that the piece above is a flexible standard piece but unique inside the current lot;
2. The code 08/20 in the top left corner of the label represents the lot, and means week 8 of year 20;
3. The codes 3094 and P14, which are on further to the previous one, represent the first and second part of an identifier used for that piece;
4. Finally, the keyword Ruta represents the route that the piece traverses in the factory. For example, 1 xN1 means one operation made in machine N1, while 4 xB2 represents 4 operations which have been done in the machine B4, all of them performed in the same production line at LAGRAMA. All the information about the piece can be fetched from the barcode by querying the database through the API of the ERP. Once the rig was configured, this was transferred to the manufacturer premises to connect the sensors placed in the machine, which then enabled a first connectivity testing with the EFFP Data Broker and tools. A bespoke electronic panel and cabinet, to host all the required devices and connections for the collection of sensor data in the industrial environment, were designed and built. The main components included in the cabinet included:  
1. Industreweb 4.0(tm) Edge Factory Connector: this is the Edge solution described above which enables the monitoring of real-time data;
2. Programmable Logic Controller (PLC): this controller is needed to manage the recognition of the codes through the camera;
3. Vision system camera: the autofocus system in charge of scanning the codes in the pieces;
4. Network switch: to enable the network connection of the PLC and the Factory Connector;
5. Power supply: to power all the devices installed in the electric panel placed inside the cabinet. The electrical cabinet is placed halfway along the second part of the conveyor belt, which is considered to be the best location given the layout distribution. The camera is placed in the end of the conveyor just before the classification point, as seen in Figure 4.  
Figure 3: Detail of label attached to piece. The metallic cabinet is used to store the electrical panel with all the connected devices. This is plugged into AC power and connected to the network through an Ethernet cable. This also provides the external connections to the temperature probes, pressure sensors and electrical current sensors to monitor the parameters of the machine. Whilst this machine monitoring is part of the solution, the focus of this paper is the interactive element led by the barcode scanning functionality. A PLC has been included as part of the solution and is the component in charge of supporting the code recognition through the vision system camera. In order to manage the network connection between the different components, a network switch is also included in the electrical panel. Figure 5 shows the final installation of the cabinet containing the hardware next to the machine. The electrical cabinet and the camera--that make up the vision system--are installed at the selected part of the production line.