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. KUKA 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

serial comunication krc2

  • m.dinio
  • December 4, 2021 at 9:20 PM
  • Thread is Unresolved
  • m.dinio
    Reactions Received
    1
    Trophies
    2
    Posts
    61
    • December 4, 2021 at 9:20 PM
    • #1

    hello dears,

    i'm new in krl.

    please help me to start with serial comunication on krc2.

    how to open COM2 and send and receive data to another pc.

    may you send simple example program.

    thanks alot

  • Online
    SkyeFire
    Reactions Received
    1,038
    Trophies
    12
    Posts
    9,371
    • December 5, 2021 at 2:05 AM
    • Best Answer
    • #2

    Depends on what generation KRC2, and what KSS version it's running.

    I have an old example program for KSS 5 (KRC2 ed2005) at http://kuka.skyefire.org/

    But you would also have to configure the serial port in... HW.INF, if I recall correctly.

    ed2005 KRC2s used COM3. I think the pre-2005 models used COM2.

  • Online
    MOM
    Reactions Received
    175
    Trophies
    7
    Posts
    1,418
    • December 7, 2021 at 12:11 AM
    • #3

    it also depends on the protocol you want to use

    - for sensor communication you want to use the 3964r protocol (it is like tcp)

    - for other communication you want to use XON/XOFF (it is like udp)

    Question: what is your goal?

  • m.dinio
    Reactions Received
    1
    Trophies
    2
    Posts
    61
    • December 7, 2021 at 9:44 AM
    • #4

    thanks for your response.

    i want to use this protocol for sensor communication (gripper and conveyor sensors )

  • Online
    SkyeFire
    Reactions Received
    1,038
    Trophies
    12
    Posts
    9,371
    • December 7, 2021 at 4:54 PM
    • #5

    You still didn't mention what generation KRC2 you're using.

    Dug out some old backup files. These are from ed2005s, running KSS 5.4:

    HW_INF.INI:

    Code
    [SERIAL]
    ;ENABLE:  COM is accessible by robot (vxWorks)
    ;DISABLE: COM is accessible by Win95
    ;CONSOLE: for developer only
    COM3=ENABLE    ;[ENABLE, DISABLE, CONSOLE]

    SERIAL.INI contains the settings for the serial port: baud rate, protocol, parity, etc.

    Code
    ; SERIAL.INI
    ; Configuration of the serial ports and their protocols
    ;
    ; Lindemann 27.02.2002 KUKA Controls:
    ;           update comments and COM4 removed
    ; Lindemann/Scheffold 25.10.2002 KUKA Controls:
    ;           XONXOFF: DSR signal now setable
    ;
    ; Protocol description:
    ; 3964R    Standard software protocol  (Siemens)
    ; SRVT     Servo Robot Vision Telegram (use only with Servo Robot)
    ; WTC      Spot Weld Controller        (use only with Weltronic Controler)
    ; XONXOFF  Xon/Xoff software protocol  (use also as pure serial communication)
    ;
    [COM1]
    
    BAUD=9600
    CHAR_LEN=8   ; 7,8
    STOP_BIT=1   ; 1,2  at time not changeable
    PARITY=2     ; EVEN=2, ODD=1, NONE=0
    
    PROC=1       ; 3964R=1, SRVT=2, WTC=3, XONXOFF=4
    
    [COM2]
    
    BAUD=9600
    CHAR_LEN=8   ; 7,8
    STOP_BIT=1   ; 1,2  at time not changeable
    PARITY=2     ; EVEN=2, ODD=1, NONE=0
    
    PROC=1       ; 3964R=1, SRVT=2, WTC=3, XONXOFF=4
    
    [COM3]
    
    BAUD=9600
    CHAR_LEN=8   ; 7,8
    STOP_BIT=1   ; 1,2  at time not changeable
    PARITY=2     ; EVEN=2, ODD=1, NONE=0
    
    PROC=1       ; 3964R=1, SRVT=2, WTC=3, XONXOFF=4
    
    
    [3964R]
    
    CHAR_TIMEOUT=500   ; msec
    QUITT_TIMEOUT=500  ; msec
    TRANS_TIMEOUT=2000 ; msec
    
    MAX_TX_BUFFER=2      ; 1..5         number of send buffers
    MAX_RX_BUFFER=10     ; 1..20        number of receive buffers
    SIZE_RX_BUFFER=100   ; 1..2048      size of receive buffers
    PROTOCOL_PRIOR=1     ; HIGH=1, LOW=0
    
    [SRVT]
    CHAR_TIMEOUT=200     ; msec
    
    MAX_TX_BUFFER=2      ; 1..5
    MAX_RX_BUFFER=2      ; 1..20
    SIZE_RX_BUFFER=100   ; 1..2048
    
    [WTC]
    CHAR_TIMEOUT=200     ; msec
    
    MAX_TX_BUFFER=2      ; 1..5
    MAX_RX_BUFFER=2      ; 1..20
    SIZE_RX_BUFFER=50    ; 1..2048
    
    [XONXOFF]
    CHAR_TIMEOUT=50      ; msec   Timeout after last received character
                         ;        to recognize the end of telegram
    MAX_TX_BUFFER=2      ; 1..5
    MAX_RX_BUFFER=2      ; 1..20
    SIZE_RX_BUFFER=100   ; 1..2048 longest expected telegram length + 15 characters
    
    XON_VAL=17           ; 0..255  XON  character (decimal)
    XOFF_VAL=19          ; 0..255  XOFF character (decimal)
                         ; if XON_VAL=0 and XOFF_VAL=0 then XON/XOFF protocol
                         ; is disabled (pure serial communication)
    DSR_LINE=0           ; 0 = DSR line not connected, 1 = DSR line must be high
    
    [TEST]
    ;testprint (Rx/Tx-telegrams) on telnet if value > 0
    TESTPRINT=0
    
    [END SECTION]
    Display More

    The CWRITE manual contains some information on serial port config.

    Files

    CreadCwrite_54_55_57.pdf 807.69 kB – 41 Downloads
  • mehrandinio
    Trophies
    2
    Posts
    7
    • December 8, 2021 at 5:43 PM
    • #6

    I configured serial.ini with xonxoff proc and comminucation is good .

    But when i change proc to 3649R and send data to laptop i receive 02 02 02 02 15 assci . :thinking_face:

  • hermann
    Reactions Received
    403
    Trophies
    9
    Posts
    2,593
    • December 9, 2021 at 9:38 AM
    • #7

    Search web for 3964r (not 3649 !) protocol, and you will see why. The protocol needs specific answers for every sent data.

    There are plenty of informations in the web.

  • Online
    MOM
    Reactions Received
    175
    Trophies
    7
    Posts
    1,418
    • December 9, 2021 at 11:03 AM
    • #8
    Quote from mehrandinio

    But when i change proc to 3649R and send data to laptop i receive 02 02 02 02 15 assci .

    This is actually STX STX STX STX NAK

    The KRC is sending STX in order to start the communication.

    Your other PC is not responding in the specified time and the KRC repeats STX.

    After 3 retrys the KRC stops to send the request and sends NAK


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

Similar Threads

  • KR2 kss 4.1.4 serial comunication reads but doesn't write

    • jore731
    • June 26, 2018 at 10:49 AM
    • KUKA Robot Forum

Tags

  • KRC2
  • serial
  • comunication
  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