1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Industrial Robot Support and Discussion Center
  4. Kawasaki Robot Forum
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

Question about Kawasaki TCP/IP Communication on C#

  • Kasim
  • July 18, 2020 at 2:39 PM
  • Thread is Resolved
  • Kasim
    Reactions Received
    1
    Trophies
    2
    Posts
    8
    • July 18, 2020 at 2:39 PM
    • #1

    Hello Everyone,

    I am going to get data from Kawasaki robot with ethernet socket. I succesfully get data on KCwinTCP.

    on Microsoft visual studio windows form app. Here I can connect to robot. I don't know which port will I use? I have tried different port. but there is no data: (Just Connected)

    Actually I want to get data on C# like KCwinTCP

    Here Program code. Is there something wrong?:

    Code
    namespace Kawasaki_Robot
    {
        public partial class Form1 : Form
        {
             SimpleTcpServer server; //Server
             private void Form1_Load(object sender, EventArgs e)
            {
                server = new SimpleTcpServer();
                server.Delimiter = 0x13; //enter
                server.StringEncoder = Encoding.UTF8;
                server.DataReceived += Server_DataReceived;
            }
             private void Server_DataReceived(object sender, SimpleTCP.Message e)
            {
                try
                {
                    txtStatus.Invoke((MethodInvoker)delegate ()
                    {
                        txtStatus.Text += e.MessageString;
                        e.ReplyLine(string.Format("You said: {0}", e.MessageString));
                    });
                }
                catch
                {
    
                }
            }
             private void button6_Click(object sender, EventArgs e)
            {
                try
                {
                    txtStatus.Text += "Server Starting...\r\n";
                    System.Net.IPAddress ip = System.Net.IPAddress.Parse(txtHost.Text);
                    server.Start(ip, Convert.ToInt32(txtPort.Text));
                    if (server.IsStarted)
                    {
                        txtStatus.Text += "Connected\r\n";
                    }
                    else
                    {
                        txtStatus.Text += "Could not Connect";
                    }
                }
                catch(Exception)
                {
                    MessageBox.Show("Server Failed");
                }
            }
               private void button7_Click(object sender, EventArgs e)
            {
                            if (server.IsStarted)
                    server.Stop();
                txtStatus.Text += "Server stop\r\n";
                txtStatus.Text += "Disconnected\r\n";
            }
    
        }
    }
    Display More

    Edited 2 times, last by Kasim (July 24, 2020 at 5:04 PM).

  • kwakisaki
    Reactions Received
    694
    Trophies
    11
    Posts
    4,770
    • July 19, 2020 at 9:08 AM
    • #2

    KCWin TCP is Telnet application and uses port 23.

    As it is telnet application, in order to replicate communication from windows environment, you require to use KRCC dll in windows environment.

    KRCC dll allows for direct command exchange between windows and Kawasaki.

    You can find versions of Kawasaki official KRCC dll (which include help files for explanation) in the following thread to download:

    KRCC problem with windows 1903 and .net >= 4.0

    Attached is an example of something I did using windows environment (I am no expert in windows programming) using the KRCC dll to create window environment and communicate with Kawasaki.

    The video displays example communicating with KROSET (Kawasaki Simulation Application) using specific IP Address and Port No.

    For communication to real world robot, only requires IP address and port 23.

    Patryk Zajdel and MJ23 are members (I hope they don't mind me mentioning them) here who have further developed and may be able to assist you.

    Hope this helps......

    Files

    KRCC_dll.mp4 6.46 MB – 248 Downloads

    View my channel at Industrial Robotics Consultancy Limited - YouTube

  • Kasim
    Reactions Received
    1
    Trophies
    2
    Posts
    8
    • July 19, 2020 at 7:38 PM
    • #3

    Thank you for reply. I understood a little bit. But my question literally is not this.

    I mean I want to get back-up from kawasaki robot, or ".as" file of robot. or datasheet... whatever you say.

    Back-up from KCwinTCP like that Here screenshot:

    I have tried ip address and port 23. it is connected. but there is no incoming data.

  • Kasim
    Reactions Received
    1
    Trophies
    2
    Posts
    8
    • July 19, 2020 at 7:40 PM
    • #4

    I also tried with "Hercules Setup Utility" program. I opened a server. I connected with my form app (visual studio). I sent test data from Hercules. After than it came to my form app. So it is working. Here screenshot:

    So when I put robot Ip address and port 23 or different port. It can connected. but there is no incoming data like back-up.as file.

  • kwakisaki
    Reactions Received
    694
    Trophies
    11
    Posts
    4,770
    • July 19, 2020 at 8:44 PM
    • #5

    How is the Kawasaki supposed to receive, decode, execute and send data?

    It will not automatically read a string message to an AS Command......it does not work like that.

    KRCC dll library contains the correct commands to allow to build an application that runs on windows pc to communicate to Kawasaki using AS Commands.

    Just sending string messages to an ethernet port will not work without either:

    1. Using a dll library to prepare and send the data packet correctly.

    2. Making programs in Kawasaki to receive, read, decode, execute and send data.

    View my channel at Industrial Robotics Consultancy Limited - YouTube

  • Kasim
    Reactions Received
    1
    Trophies
    2
    Posts
    8
    • July 19, 2020 at 9:30 PM
    • #6

    Okey I understood better :smiling_face:

    I will try and I am going to reply in here.

    Thank you very much

  • MJ23
    Reactions Received
    2
    Trophies
    2
    Posts
    4
    • July 20, 2020 at 4:53 PM
    • #7

    Hey there,

    I can only confirm what kwakisaki said. With KRCC dll it is fairly easy to establish a connection with the robot and send commands.

    However, downloading and uploading files caused some trouble for me at the beginning, if you experience any problems with that feel free to ask :winking_face:

  • Kasim
    Reactions Received
    1
    Trophies
    2
    Posts
    8
    • July 25, 2020 at 2:13 PM
    • #8

    I successfully connected to robot. I can get backup with KRcc.dll

    Now I have new missions. If I have a issue I open new thread.

    Thank you everybody :smiling_face:

  • kwakisaki
    Reactions Received
    694
    Trophies
    11
    Posts
    4,770
    • July 26, 2020 at 9:29 AM
    • #9

    Well done, glad to hear you've been successful.........:top:

    View my channel at Industrial Robotics Consultancy Limited - YouTube

  • Kanishka Anuranga
    Reactions Received
    1
    Trophies
    2
    Posts
    2
    • March 15, 2021 at 11:20 AM
    • #10
    Quote from kwakisaki

    KCWin TCP is Telnet application and uses port 23.

    As it is telnet application, in order to replicate communication from windows environment, you require to use KRCC dll in windows environment.

    KRCC dll allows for direct command exchange between windows and Kawasaki.

    You can find versions of Kawasaki official KRCC dll (which include help files for explanation) in the following thread to download:

    KRCC problem with windows 1903 and .net >= 4.0

    Attached is an example of something I did using windows environment (I am no expert in windows programming) using the KRCC dll to create window environment and communicate with Kawasaki.

    The video displays example communicating with KROSET (Kawasaki Simulation Application) using specific IP Address and Port No.

    For communication to real world robot, only requires IP address and port 23.

    Patryk Zajdel and MJ23 are members (I hope they don't mind me mentioning them) here who have further developed and may be able to assist you.

    Hope this helps......

    Display More

    I am trying to implement the above task like that video. If you don't mind could you please share the source codes?

  • kwakisaki
    Reactions Received
    694
    Trophies
    11
    Posts
    4,770
    • March 15, 2021 at 11:36 AM
    • #11

    You can have them with pleasure, it's pretty messy in there............

    Kawasaki KRcc3\bin\x64\debug was the last time I touched it which I used for the video I think.........

    Files

    Kawasaki KRcc Main.zip 895.65 kB – 184 Downloads

    View my channel at Industrial Robotics Consultancy Limited - YouTube

  • Kanishka Anuranga
    Reactions Received
    1
    Trophies
    2
    Posts
    2
    • March 15, 2021 at 12:40 PM
    • #12
    Quote from kwakisaki

    You can have them with pleasure, it's pretty messy in there............

    Kawasaki KRcc3\bin\x64\debug was the last time I touched it which I used for the video I think.........

    Thank you so much for your kind consideration. This is a lot to me... Thanks again... Good Day.

  • poncho_hasm
    Trophies
    2
    Posts
    3
    • August 19, 2022 at 7:40 PM
    • #13
    Quote from Kasim

    I successfully connected to robot. I can get backup with KRcc.dll

    Now I have new missions. If I have a issue I open new thread.

    Thank you everybody :smiling_face:

    I'm trying to do backups too, would you mind sharing your code?

    Thanks

  • dm.bogachev
    Reactions Received
    45
    Trophies
    2
    Posts
    86
    • August 21, 2022 at 12:27 PM
    • #14

    I have a Python implementation of Telnet-connection with save/load functional, if someone is interested

    RobotTelnetClient.py.txt

  • poncho_hasm
    Trophies
    2
    Posts
    3
    • August 23, 2022 at 6:30 PM
    • #15
    Quote from dm.bogachev

    I have a Python implementation of Telnet-connection with save/load functional, if someone is interested

    RobotTelnetClient.py.txt

    Thank you very much works like a charm :grinning_face_with_smiling_eyes:

  • JG-ROB
    Trophies
    1
    Posts
    1
    • February 2, 2023 at 5:06 PM
    • #16

    Thanks a lot guys.

    Question:

    Is there a Kawasaki controller simulator to install on my pc and make test on my local pc without real robot connection

  • kwakisaki
    Reactions Received
    694
    Trophies
    11
    Posts
    4,770
    • February 2, 2023 at 5:22 PM
    • #17

    Welcome to the forum......... :beerchug:

    Kawasaki provides a dedicated OLP application called KROSET.

    This is available from your local Kawasaki distributor or if you are a Kawasaki client, you can sign up to their download centre and download it from there:

    Kawasaki Robotics Download Centre - Manuals, Software and Tools for Kawasaki Robots - Robotforum - Support and discussion community for industrial robots and cobots (robot-forum.com)

    KROSET is one application.

    - Licensed USB HASP Dongle offers specific applications based on license obtained with no restrictions.

    - Trial License available for 60 days, but must be applied for and has all applications with no restrictions.

    - Lite mode is when you don't have a license, but can still use the applications but with restrictions.

    If you look at my Youtube channel you will see some demonstrations of many functions using KRoset.

    View my channel at Industrial Robotics Consultancy Limited - YouTube

  • minhkhang304
    Trophies
    1
    Posts
    2
    • November 19, 2023 at 5:13 AM
    • #18

    hello everyone,

    i got a misstion:

    - E74 communication with cognex camera,

    - could you please kindly share AS program to send data from robot via TCP/ip

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Tags

  • robot
  • kawasaki
  • robot arm
  • data
  • Communication
  • TCP/IP
  • socket
  • Ports
  • C#
  • Csharp
  • visual studio
  • Ip address
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download