very nice...
C3 Bridge Interface Server
-
VDm -
August 21, 2020 at 12:27 PM -
Thread is Unresolved
-
-
Hi,
I am following the manual to establish a communication system between our robot and the control system. I have attempted to send some encoded commands directly to the server. However, I am unable to perform program control (subtype II), specifically selecting or running a KRL program.
I wrote a simple KRL program named "Hi5" for testing and placed it in the program folder. This program executes a loop five times, and on each iteration, it uses MsgNotify to display the message "Hi" and waits for one second before the next iteration. The encoded request message I used is 02 8C 00 0F 0A 05 00 01 00 03 48 00 69 00 35 00 00 00 00. I am not entirely sure about the program's parameters, but I believe "Hi5" does not use any parameters, hence the Length of Parameters is zero, and the name of the parameter is absent. I have also tried other program names such as "Hi5", "Hi5.src", Hi5(), and "Hi5.src", but none have worked; their return error code is 00.
Could you please advise on the correct request message needed to select or run a KRL program? Any examples you could provide would be extremely helpful.
Best regards,
JEllist
-
that is awfully short message. one should include path to program, with program name but no extension or parenthesis.
for example selecting program name
KRC:\R1\Program\Hi5.src
should use parameter
KRC:\R1\Program\Hi5
and selecting that program should be encoded as
00 01 00 33 0A 05 00 00 00 15 4B 00 52 00 43 00 3A 00 5C 00 52 00 31 00 5C 00 50 00 72 00 6F 00 67 00 72 00 61 00 6D 00 5C 00 5F 00 48 00 4F 00 4D 00 45 00 00 00 00
-
Wow, thank you for the quick and detailed help! I hadn’t realized that the path needed to be included as well. I’ll give it a try tomorrow. Really appreciate it!
-
i find C3B to be extremely reliable. but as i was first working on it, i found the need to encode and decode messages and log them in this very format. this allowed me to create quick reply to your question - i simply created program hi5.src and selected it, than copied logged message.
-
Hello again,
I apologize for the inconvenience, but I could not find any direct file transfer channels in the provided documentation. I am curious to know how to implement direct file transfers in my own client, similar to what is done in C3Easy. Is it necessary to separately extract the contents of a file and then use the "MESSAGE #22. CREATE NEW FILE" to initially create a new file, followed by utilizing other file system operations to replicate the same file on the Robot? I would appreciate any guidance or protocols that you might recommend for this purpose.
-
Hello again,
I apologize for the inconvenience, but I could not find any direct file transfer channels in the provided documentation. I am curious to know how to implement direct file transfers in my own client, similar to what is done in C3Easy. Is it necessary to separately extract the contents of a file and then use the "MESSAGE #22. CREATE NEW FILE" to initially create a new file, followed by utilizing other file system operations to replicate the same file on the Robot? I would appreciate any guidance or protocols that you might recommend for this purpose.
3.9.11. MESSAGE #29. WRITE FILE CONTENT (BEGINNING)
3.9.12. MESSAGE #29. WRITE FILE CONTENT (DATA CHUNK)
3.9.14. MESSAGE #29. WRITE FILE CONTENT (FINAL) <- this method creates new file or updates the content of existing one
-
and this should be obvious but many will miss this - depending how large the file is you may have to repeat 3.9.12 multiple times - until all chunks are transferred.
-