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

KUKA.Sim - Read and Write to KRL variables from python script?

  • Varun Kumar
  • September 30, 2024 at 5:35 PM
  • Thread is Unresolved
  • Varun Kumar
    VK
    Trophies
    1
    Posts
    9
    • September 30, 2024 at 5:35 PM
    • #1

    Hello

    I am currently using kuka.sim 4.3 and have a KRL project imported. The KRL programs seem to run in kuka.sim when selected and executed individually.

    There is a cell.src script which seems to look for an external controller (possibly a PLC) to give a PG.NO to run

    Question : Is it possible to expose KRL variables in a KRL program to a python script for a component and also modify it during simulation (or) connect to the signals in the config.dat and read its output in a python script.

    It would be great to be able to read and write to KRL variables from a python script. in the case below the PGNO variable inside of getting it from L83.

    Could anyone provide an example to read and write to a KRL variable in a KRL program via a python script please? or if its even possible?

    Thanks in advance

    Images

    • image.png
      • 194.65 kB
      • 558 × 488
      • 15

    Edited 2 times, last by Varun Kumar (September 30, 2024 at 5:41 PM).

  • SkyeFire
    Reactions Received
    1,061
    Trophies
    12
    Posts
    9,465
    • September 30, 2024 at 8:58 PM
    • #2

    I don't have KUKA.Sim, but my understanding is that the current versions are basically Visual Components with some KUKA-specific modifications. In "vanilla" VC, there isn't any KRL (or TP, or RAPID, etc) unless you use one of the postprocessor output add-ons, and that's a one-way export.

    In VC, robot variables in the VC robot objects are accessible from Python, so I assume the same would hold true for KSim. But I'm unsure about the KRL program variables.

    You might have better luck asking this in the Visual Components user forum.

  • MOM
    Reactions Received
    176
    Trophies
    7
    Posts
    1,424
    • October 1, 2024 at 12:59 AM
    • #3

    For this you would need the VRC-Interface (paid option). With this option can read/write Inputs and outputs and more.

  • Varun Kumar
    VK
    Trophies
    1
    Posts
    9
    • October 2, 2024 at 5:13 PM
    • #4

    Hi MOM Could you send a link to VRC-Interface please, just so I know I am looking at the right one? have you had any experience in exposing the KRL I/Os and variables from kuka.som to "VRC-Interface" - was it straightforward to use?

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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • 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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Similar Threads

  • Automating program upload to KRC4 via Ethernet

    • nicok
    • February 23, 2023 at 5:46 PM
    • KUKA Robot Forum

Tags

  • Program
  • Python
  • OPC-UA
  • kukasim 4.3
  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