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. Stäubli & Bosch 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

My First Program

  • skrobot
  • May 30, 2015 at 4:02 AM
  • Thread is Resolved
  • skrobot
    Trophies
    4
    Posts
    17
    • May 30, 2015 at 4:02 AM
    • #1

    I tried to write a simple program today. I get the following error on the pendant. (Invalid application: check program parameters in call() or spawn instructions. )
    I copied the program from the manual. I named it robb.
    In robb is the following:
    begin
    for nPos = -90 to 90 step -5
    jDest.j3 = nPos
    movej(jDest,flange,mDesc)
    waitEndMove()
    endFor
    end
    The parameters are dimensioned as follows:
    jDest-Element-joint
    mDesc-Element-mdesc
    and the local...
    nPos-Collection-num

    The start file contains the following:
    begin
    taskCreate "robb", 100, robb()
    end

    After I try to load it in my application manager, I get the following on the VAL3 Studio screen:
    TakeFeature "207". Status: "ContainerNotFound"

    I tried to make an init() file and add NPos =0 but I cannot seem to find it in the same folder as robb and I get the same results.
    The controller is the CS8C. I am using VAL3 ver 7.2.1 to generate and send the files to the controller and the controller has ver.6.5.
    What am I doing wrong here?
    Thank you.

    Edited once, last by skrobot (May 30, 2015 at 3:09 PM).

  • TygerDawg
    Reactions Received
    6
    Trophies
    3
    Posts
    187
    • June 1, 2015 at 3:16 PM
    • #2

    Those error messages are cryptic, but I wonder if the issue is: every Staubli VAL3 application requires a start() and stop() program. From start() you call other program to make things happen. Is this what is going on?

    Other:
    the "for nPos = -90 to 90 step -5" will produce values -90, -95, -100, ..., won't it? Is this what you want? And what happens when nPos reaches +/-180?

    TygerDawg

    Blue Technik

    http://www.bluetechnik.com

  • skrobot
    Trophies
    4
    Posts
    17
    • June 2, 2015 at 12:48 AM
    • #3

    Thank you very much TygerDawg for your prompt response.
    That was a typing error with the for next statement.
    I am only able to move the arm (rs60) in Jog mode

    I just started a very short program.
    I open Val3 7.2.1
    Under New Application, I enter" HelloRobot"
    I right click under HelloRobot and add New Program
    It is also named 'HelloRobot"
    It looks like I have three files in the HelloRobot family, namely:
    HelloRobot()
    start()
    stop()

    Inside HelloRobot() between begin and end, I add the following line.
    popUpMsg("Hello Robot World")
    I open the start folder and add the following between begin and end:
    taskCreate "HelloRobot",100,HelloRobot()

    I also tried call HelloRobot() and both of these together. I got the same results in all cases.
    I click the Upload All Applications.

    I get the following:
    Version 's7.2.1' of the emulator does not match version 's6.5' of the controller.
    I enter "OK".

    Using the pendant and/or the PC screen...
    I select Application manager
    Val3 applications
    +Disk
    HelloRobot (it is set as manual.)

    I get the following error in a box:
    HelloRobot - Invalid application:
    check program parameters in call()
    or spwan instructions.

    And I do not know what spwan means. Is it sp-wan?
    I cannot find it in the instructions.

    I also tried autoload and autostart as well.
    All other files I have created are in manual mode.

    What am I doing wrong?
    Thank you.

    Edited once, last by skrobot (June 2, 2015 at 12:57 AM).

  • TygerDawg
    Reactions Received
    6
    Trophies
    3
    Posts
    187
    • June 2, 2015 at 4:44 AM
    • #4

    It has been a long time since I wrote VAL3 code, and I no longer have access to VAL3Studio or a CS8 controller. I'm going on memory. You really should be having this conversation with Staubli Technical Support. It appears that you are trying to learn the VAL3 language without benefit of going to a class.

    Suggestion: name your application HelloRobot or whatever. Call your main operating program main() or whatever. It is less confusing.

    When you create a new application, it builds with programs start() and stop() by default. Add a new program main().

    Inside of the start() program you should be adding a CALL to main() program. When you use the Applications Manager to load the application HelloRobot, you then press the RUN button on the pendant. This action executes the start() program, and does whatever you tell it to do like execute program main().

    Is not necessary to do any createTask() yet, which if for advanced work. This is done by default anyway.

    I assume "spwan" is actually "spawn" misspelled.

    TygerDawg

    Blue Technik

    http://www.bluetechnik.com

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