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. Yaskawa Motoman 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

SETPRM command

  • Fester1981
  • October 21, 2019 at 1:36 AM
  • Thread is Unresolved
  • Fester1981
    Reactions Received
    1
    Trophies
    3
    Posts
    23
    • October 21, 2019 at 1:36 AM
    • #1

    I want to change the "work home position", being CUBE 64 by code with the SETPRM command on a DX200. The Inform manual is a bit vague on this topic however.

    This should be possible with:

    Code: SYSTEMJOB.JBI
    0001'***** systemjob
    0002 DOUT OT#(4082) OFF                   OT#(4082)=HOME VALUES SET
    0003'
    0004*top
    0005 IF( IN#(4082)=ON ) THEN              IN#(4082)=HOME VALUES ACK
    0006  SETPRM KIND=6 PRMNO=I050 D050       D050=HOMEPOS TMP
    0007  DOUT OT#(4082) OFF                  OT#(4082)=HOME VALUES SET
    0008 ENDIF
    .
    .

    and

    Code: MASTER
    0001 SET LD000 63948
    0002 SET LD001 -295875
    0003 SET LD002 -63009
    0004 SET LD003 444067
    0005 SET LD004 168215
    0006 SET LD005 -188758
    0007 'home position
    0008 WAIT IN#(4082)=OFF                    IN#(4082)=HOME VALUES ACK
    0009 FOR LI000 = 0 TO 5
    0010  SET I050 LI000 + 1072
    0011  SET D050 LD[LI000]                   D050=HOMEPOS TMP
    0012  DOUT OT#(4082) ON                    OT#(4082)=HOME VALUES SET
    0013  '*****
    0014  TIMER T=0.40
    0015  WAIT IN#(4082)=OFF                   IN#(4082)=HOME VALUES ACK
    0016  SET I050 LI000 + 1080
    0017  DOUT OT#(4082) ON                    OT#(4082)=HOME VALUES SET
    0018  '*****
    0019  TIMER T=0.40
    0020  WAIT IN#(4082)=OFF                   IN#(4082)=HOME VALUES ACK
    0021 NEXT LI000
    .
    .
    Display More

    This would change parameters S3C1072(MIN)/1080(MAX) to S3C1077/1085 to the values from LD001 to LD005 in the master job.

    When starting the masterjob, I receive following error message:

    The SETPRM instruction was executed while another system was in execution
    Setting error 
    (1)Check the following settings.
    ·The SETPRM instruction cannot execute while another system is operating. Correct the job. 


    What am I missing here?

    There are 2 rules for success:

    1. Never reveal everything you know,

    Edited once, last by Fester1981 (October 21, 2019 at 1:42 AM).

  • 95devils
    Reactions Received
    234
    Trophies
    8
    Posts
    1,949
    • October 24, 2019 at 2:44 PM
    • #2

    The system will not allow the use of the SETPRM instruction when multiple system jobs are running. If a single system job was running then, yes, the SETPRM instruction would work.

    Unless I am missing something, I would change this to a robot job or include the instructions in a startup or initialization job that gets executed out of the master. This code would only execute when starting from the top of the master and would be outside the process loop. If security is the reason for making it a system job, what about making it a macro?

    Does setting of the work home need to be executed continuously?

    I know a thing or two, because I’ve seen a thing or two. Don't even ask about a third thing. I won't know it.

  • Fester1981
    Reactions Received
    1
    Trophies
    3
    Posts
    23
    • October 24, 2019 at 6:25 PM
    • #3

    If I'm not mistaken, I only have one system job running. I reduced the integrator's 3 to 1 by moving most of it to the ladder. But I will have to check tomorrow to be sure.

    I only found the SETPRM instruction in the systemjob instruction list. That's the only reason that I've put it there. The code that I've put at "MASTER" in my first post was in fact a simplification. It is not actually the masterjob but the job called from it, if a specific EoAT is installed.

    It only needs to be checked/modified if the masterjob is started from the top.

    There are 2 rules for success:

    1. Never reveal everything you know,

  • 95devils
    Reactions Received
    234
    Trophies
    8
    Posts
    1,949
    • October 24, 2019 at 7:34 PM
    • #4

    I was able to run a system job and a robot job with something similar to your code successfully. When I had two or more system jobs and a robot job running I would get the alarm.

    I missed the DX200 part. The GETPRM/SETPRM instructions came out on the NX100 controller. Yaskawa has made changes to what job type the instructions can go in. NX100, I believe, was a robot job. DX100 and DX200 those instructions are available in a macro job.

    I know a thing or two, because I’ve seen a thing or two. Don't even ask about a third thing. I won't know it.

  • Fester1981
    Reactions Received
    1
    Trophies
    3
    Posts
    23
    • October 29, 2019 at 11:58 PM
    • #5
    Quote from 95devils

    I was able to run a system job and a robot job with something similar to your code successfully. When I had two or more system jobs and a robot job running I would get the alarm.

    I missed the DX200 part. The GETPRM/SETPRM instructions came out on the NX100 controller. Yaskawa has made changes to what job type the instructions can go in. NX100, I believe, was a robot job. DX100 and DX200 those instructions are available in a macro job.

    I tried executing the command in every type of job that had it in the instruction list. GETPRM works fine every time while SETPRM yields the same error. I'll e-mail Yaskawa tomorrow for more info...

    There are 2 rules for success:

    1. Never reveal everything you know,

  • 95devils
    Reactions Received
    234
    Trophies
    8
    Posts
    1,949
    • October 30, 2019 at 12:59 PM
    • #6

    Let us know what Yaskawa says. I'm curious.

    I know a thing or two, because I’ve seen a thing or two. Don't even ask about a third thing. I won't know it.

  • Fester1981
    Reactions Received
    1
    Trophies
    3
    Posts
    23
    • October 31, 2019 at 8:10 PM
    • #7
    Quote from 95devils

    Let us know what Yaskawa says. I'm curious.

    They want me to make a CMOS.BIN backup. The robot is occupied with a production run for the moment so I will have to get back to them next week.

    There are 2 rules for success:

    1. Never reveal everything you know,

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

  • dx200
  • SETPRM
  • system job
  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