trying to communicate with a SICK LMS400 laser scanner via its ethernet connection.
in
Integration and Hardware
•
1 year ago
As anyone done this? I'm using the network library.I made the scanner a client with ip address 192.168.0.4 TCP port =2111. To measure continuously from scanner you must write the command sMN Rreqdata 21 where sMN.. is a string and 21 is an uint. i noticed uint is not a valid datatype in processing. Could this be my problem? To overcome this I made two bytes as follows:-
btye a=0;
btye b=21;
.
.
myClient.write("sMN Rreqdata" + a + b); //this line should start scanner measuring but it doesn't
i have pinged scanner and it is ok
i can send my code if it helps?
I hope somone can advise?
1