The big question is how the scanner communicates. That information should be available from the manufacturer. That will be necessary to figure out how to program the robot to talk to that scanner (or if it's even possible).
That's right.
I do have option 616-1 PC interface
If the barcode scanner supports Serial and Socket communication methods, you can use your preferred data communication method.
If you know the model name of the barcode scanner, you can search for it on the manufacturer's website, where they provide a manual on data communication methods.
Generally, widely used SICK products support common communication methods such as Hard-Wire, RS232C, and TCP/IP (SOPAS ET Configuration Software).
VAR string sRecv_Data;
VAR socketdev Socket1;
PERS string sIP_Server := "192.168.0.8";
PERS num nPort_Server := 23;
PROC main()
! Create and connect the socket in error handlers
SocketClose Socket1;
SocketCreate Socket1;
SocketConnect Socket1, sIP_Server, nPort_Server;
SocketSend socket1\Str:= "Hey Server! How are U?";
SocketReceive socket1\Str:= sRecv_Data\Time:=WAIT_MAX;
SocketClose socket1;
RETURN;
ENDPROC
Display More
The setup for Socket Data Communication is simple. (This configuration assumes that the robot controller is the client and the scanner is the server.) You just need to specify the IP and port of the server you want to connect to and exchange data in the form of strings.