June 19, 2019, 03:07:28 AM
Robotforum | Industrial Robots Community

 Communication kuka/Cognex using EthernetKRL (TCP/IP protocol)

veryhot_post Author Topic:  Communication kuka/Cognex using EthernetKRL (TCP/IP protocol)  (Read 936 times)

0 Members and 1 Guest are viewing this topic.

June 06, 2019, 04:01:07 PM
Reply #25
Offline

SkyeFire

Global Moderator

Today at 03:07:28 AM
Reply #26

Advertisement

Guest

June 06, 2019, 04:13:53 PM
Reply #26
Offline

Dante


I receive the data but it's just the cognex welcome message "Welcome to In-Sigh (tm) 5100 Session 0" after I do not see the prompt for the User and if I send that even the username he me invalid password returns

see the images Data attached.

June 06, 2019, 07:48:50 PM
Reply #27
Offline

SkyeFire

Global Moderator
Your SWRITE command is still writing "User:" and "Password" into your output string.  You cannot do that

Second, stop using the same string for your output and input.  That's just going to potentially give you bad test data.

Also... are you sending "SE8" before you do the login?  That's also no good.

June 06, 2019, 08:23:32 PM
Reply #28
Offline

Dante


Thanks for feedback SkyeFire
output[/b] string.  You cannot do that

Second, stop using the same string for your output and input.  That's just going to potentially give you bad test data.

Also... are you sending "SE8" before you do the login?  That's also no good.

1. in my KRL program I first open the connection with :
RET = EKI_Init ( "Configcomm")
RET = EKI_Open ( "Configcomm")
Normally I should have the welcome message to be able to log in but that's not the case

2.After when I send an instruction to In-Sight with the instruction:
SWRITE (Cmd [], STATE, OFFSET, "% s", "SE8")
Cmd [STRLEN (cmd []) + 1] = 'H0D'
Cmd [STRLEN (cmd []) + 2] = 'H0A'
this time I get a answer from cognex which is this: "Welcome to Is-Sight 5100 Session 0" but without the "User:"

3. Then if I send admin to see if he will ask me the Password with:
SWRITE (Cmd [], STATE, OFFSET, "% s", "admin")
Cmd [STRLEN (cmd []) + 1] = 'H0D'
Cmd [STRLEN (cmd []) + 2] = 'H0A'

and I receive the following message in the Buffer:
"User: Password: Invalid Password"

Configuration:
Eki ->client
In-Sight -> server (telnet port: 23)
I do not understand why I can not see the authorization for the User and Password.
I'll put a zip file containing the config file and the program tomorrow when I'm in the office.

June 07, 2019, 12:45:10 PM
Reply #29
Offline

Dante


with Sending RAW data "Stream" we have the EOS (end of string) is added automatically when we send a data and when we read in a memory, the suffix EOS indicates the end of the reading.

In my config file I have EOS = "13,10" which corresponds to CR + LF
That's why I do not get all the data sent by In-Sight.

In-Sigth send: "Welcome to In-Sigth (tm) 5100 Session 0
                              User: "
and I receive: "Welcome to In-Sigth (tm) 5100 Session 0" because in the course of reading he read the return carriage and the line feed.

How to do ???
« Last Edit: June 07, 2019, 12:46:54 PM by Dante »

June 07, 2019, 02:27:25 PM
Reply #30
Offline

SkyeFire

Global Moderator
Well, you can't send "SE8" until after you've logged in.  That's absolute.

I've never seen an InSight that doesn't send the login prompt immediately upon connection opening, though.  What does WireShark show?  Does the Cognex send back the login prompt immediately after the EKI_OPEN command?

The "User:" will be in the buffer, you probably have to use an additional EKI_GET to see it.  But really, you don't need to see that -- just open the connection, send "admin"+CR&LF, then send password+CR&LF, at which point you should be logged in and can start sending Native Mode commands.

June 11, 2019, 08:55:08 AM
Reply #31
Offline

Dante


Thanks  :top:  for your help guys , it works.
« Last Edit: June 11, 2019, 11:04:39 AM by Dante »

Today at 03:07:28 AM
Reply #32

Advertisement

Guest


Share via facebook Share via linkedin Share via pinterest Share via reddit Share via twitter

question
KUKA communication with Cognex In sight

Started by Robin de Bree on KUKA Robot Forum

16 Replies
2033 Views
Last post June 12, 2018, 12:21:38 PM
by panic mode
clip
Kuka communication failure with Cognex In-Sight smart camera over Profinet

Started by YangTao on KUKA Robot Forum

13 Replies
7620 Views
Last post December 13, 2016, 03:09:58 PM
by SkyeFire
xx
Delayed response in over communication on EthernetKRL

Started by piyushjadhav on KUKA Robot Forum

2 Replies
1175 Views
Last post May 12, 2017, 04:10:48 PM
by piyushjadhav
xx
Fanuc / Cognex EIP communication

Started by worseltes on Fanuc Robot Forum

5 Replies
6163 Views
Last post December 16, 2015, 09:39:40 PM
by ESIELI