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

Sending position via serial in background

  • cezex
  • December 3, 2013 at 1:29 PM
  • Thread is Resolved
  • cezex
    Reactions Received
    1
    Trophies
    3
    Posts
    123
    • December 3, 2013 at 1:29 PM
    • #1

    Hi,
    Is it possible to send position (as well as axis angles, I guess) via serial like in CWRITE/CREAD manual example "in background"?
    I mean, can I run concurrently more than one program in Kuka? (KSS 5.2)

  • Greedy
    Guest
    • December 3, 2013 at 1:34 PM
    • #2

    Only 2 task available at KUKA

    SPS and Motion task.

    You can use interrupts in motion task. Or you can write your code in to SPS.

  • cezex
    Reactions Received
    1
    Trophies
    3
    Posts
    123
    • December 3, 2013 at 1:40 PM
    • #3

    I want my robot to send position data via serial all the time, I mean during "teaching" session and while running a program (move).
    Forgive me my ignorance, what is SPS?

  • Greedy
    Guest
    • December 3, 2013 at 1:43 PM
    • #4

    submit interpreter.

    There is S I R on status bar. Green "S" mean is; you have running SPS.

    Edited once, last by Greedy (December 3, 2013 at 2:42 PM).

  • Online
    SkyeFire
    Reactions Received
    1,038
    Trophies
    12
    Posts
    9,371
    • December 4, 2013 at 5:01 AM
    • #5

    SPS is German for "PLC." The SPS is a KRL program that runs continuously in the background of the robot, regardless of what the foreground program is doing. SPS is used for tasks that must be accomplished regardless of whether the robot is stopped, running, faulted, or otherwise.

    You could add serial output commands to the SPS, but since the SPS loops faster than the serial output can keep up with, you will need to create internal status flags to keep from issuing a new CWRITE command before the previous command completes. Putting WAITs of any kind inside the SPS loop is generally ill-advised.

  • cezex
    Reactions Received
    1
    Trophies
    3
    Posts
    123
    • December 4, 2013 at 12:02 PM
    • #6

    Do I have anything else running in SPS?

  • panic mode
    Reactions Received
    1,262
    Trophies
    11
    Posts
    13,027
    • December 4, 2013 at 2:26 PM
    • #7

    check it out, it is just a file with SUB extension rather than SRC:
    KRC:\KRC\R1\SYSTEM\SPS.SUB

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • cezex
    Reactions Received
    1
    Trophies
    3
    Posts
    123
    • December 4, 2013 at 8:48 PM
    • #8

    Ok, when I'd find it, what it's supposed to do (I mean SPS routine)? The robot was making cars in it's previous life, now it is going to make films, can I write my own code, ignoring (deleting) it's current SPS?
    There are any requirements for SPS without of some robot won't run?
    Still I dont get it.
    Please point me to a source manual I can find some knowledge, please
    Cez

  • robotecnik
    Reactions Received
    19
    Trophies
    4
    Posts
    568
    • December 4, 2013 at 9:24 PM
    • #9

    The sps is a software plc that runs in parallel of the motion task.

    You could see it in your system folder. Go into expert mode, go to the system folder and open it. Open all folds and take a look inside. Probably it will have plenty of code lines inside.

    Be careful with the folds you delete. I don't have any sps program at hand, but it is easy to see the user code area (it is inside a fold that reads something like "user plc program here").

    Good luck.

    Sent from my BlackBerry 9300 using Tapatalk

    http://www.robotecnik.com | Robots, CNC and PLC programming.

  • panic mode
    Reactions Received
    1,262
    Trophies
    11
    Posts
    13,027
    • December 5, 2013 at 2:15 AM
    • #10

    SPS is a PLC. it can be used to run initialization or continuous background tasks (regardless if your motion program is running or not, regardless of selected mode of operation). for example you can add code to start/stop conveyor, flash some stack light, do some diagnostics, select or abort programs, force speed limits etc. you can do many things you would do in a motion program but - not motion itself.

    overall it looks like:


    ; start here

    ; init section (executed one time)

    LOOP
    ; statements inside loop are executed all the time (scan)

    ENDLOOP

    ; end, this never gets executed unless there is something to break out of loop

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • cezex
    Reactions Received
    1
    Trophies
    3
    Posts
    123
    • December 5, 2013 at 1:03 PM
    • #11

    I'm really confused. Manual says this:
    "Caution!
    The Submit interpreter must not be used for time-critical applications! A PLC must be used in such cases. Reasons:"

    So what is PLC? An SPS or something to be used instead of SPS?

  • Bulo
    Reactions Received
    1
    Trophies
    3
    Posts
    95
    • December 5, 2013 at 1:19 PM
    • #12

    External PLC is faster then SPS..


    Inviato da mio iPhone utilizzando Tapatalk

  • cezex
    Reactions Received
    1
    Trophies
    3
    Posts
    123
    • December 5, 2013 at 1:35 PM
    • #13

    Thanks but what is PLC? And even if this could (must?) be external, can I send positions from Kuka via serial with this?

  • Greedy
    Guest
    • December 5, 2013 at 1:47 PM
    • #14

    Yes you can send position data via serial but not in realtime. You can send it as much as sps do.

  • cezex
    Reactions Received
    1
    Trophies
    3
    Posts
    123
    • December 5, 2013 at 2:37 PM
    • #15

    TNX, I didn't mean RealTime, I want to have it "in background". Please tell me where I can find (manuals) some help.
    Cez

  • cezex
    Reactions Received
    1
    Trophies
    3
    Posts
    123
    • December 5, 2013 at 10:15 PM
    • #16

    Ok, No SPS runnig (nor selected). The Icon "S" is white (grey).
    In my opinion, if this is so, I could have my very fresh, own, independent SPS (still no reply about PLC, what is it) code.
    Can I?

    Edited once, last by cezex (December 7, 2013 at 2:28 AM).

  • panic mode
    Reactions Received
    1,262
    Trophies
    11
    Posts
    13,027
    • December 6, 2013 at 12:25 AM
    • #17

    PLC is Programmable Logic Controller. Technically it could be anything that has ability to perform control tasks as long as it is programmable. In practice however by PLC one understands specialized hardware platform designed to easily configure and use variety of I/O and networks. For example:

    http://en.wikipedia.org/wiki/Programmable_logic_controller

    Some common PLCs are:

    http://www.google.com/search?hl=en&q…&tbm=isch&cad=h
    http://www.google.com/search?hl=en&q…&tbm=isch&cad=h
    http://www.google.com/search?hl=en&q…&tbm=isch&cad=h
    http://www.google.com/search?hl=en&q…&tbm=isch&cad=h

    They can be programmed in various languages (ladder logic, structured text, function block, ...). some are graphical and offer great way to see code in action.

    User entered code is scanned repeatedly. scan time (scan interval) is usually 1-50ms. performance of the PLCs is increasing just like any other digital platform (PCs, smart phones).
    in recent years there was more products on the market which are not hardware PLC, they are SoftPLCs (software running on a PC). the I/O are added through use of network (fieldbus).
    while SoftPLCs are interesting in many ways (can run faster than hardware PLC and use huge amounts of memory compared to hardware PLCs) they also have disadvantages and hardware based PLCs are not to be replaced any time soon. the really nice thing about PLCs is ability to control large number of IO, edit code even while it runs production (online edit). compared to hardware PLCs, making/editing code in SPS task of the robot is a rather cumbersome and inflexible - this is why many users add true (hardware) PLC to their robots.

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • cezex
    Reactions Received
    1
    Trophies
    3
    Posts
    123
    • December 6, 2013 at 1:57 PM
    • #18

    So, I cannot use any PLC to send Robot position in background process, yes?
    In another words, in my robot S is grey, it means I can put there the example from CREAD/CWRITE manual and run it?

  • panic mode
    Reactions Received
    1,262
    Trophies
    11
    Posts
    13,027
    • December 6, 2013 at 5:33 PM
    • #19

    you have to fix that first... you need S to be green.

    normally you should just go to Configure menu and start submit interpreter, but if there is a problem with the code in the SPS (something does not compile), it will again fault and stop SPS.

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • Online
    SkyeFire
    Reactions Received
    1,038
    Trophies
    12
    Posts
    9,371
    • December 6, 2013 at 9:22 PM
    • #20

    S=Green: SPS is running
    S=Red: SPS is halted (possibly faulted)
    S=Grey: SPS has been cancelled -- no SPS program is selected

    If you Open the SPS.SUB file, it will automatically be deselected to allow you to edit it. Closing it should re-start it automatically, unless you have induced an error.

    SPS has two sections: an init section above the LOOP command, and the main loop between the LOOP and ENDLOOP commands. The init section runs once when the robot boots, or when the SPS is re-started after having been cancelled (Stop/Start will not be enough). The code inside the main loop will then run indefinitely.

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