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

Setting P variables from D or B variable

  • Gurtej Singh
  • September 5, 2021 at 6:16 PM
  • Thread is Resolved
  • Gurtej Singh
    Trophies
    2
    Posts
    29
    • September 5, 2021 at 6:16 PM
    • #1

    Hi everyone,

    I want to set P variable using D variables in INFORM for my DX200 controller. I am changing D variables from my computer and would like to use them for changing P variable. Any help would be appreciated.

    TIA

    Gurtej Singh

  • 95devils
    Reactions Received
    234
    Trophies
    8
    Posts
    1,947
    • September 5, 2021 at 6:32 PM
    • #2

    Use the SETE instruction in ARITH. Depending on the format on the P variable the elements are 1 is S, 2 is L, 3 is U and so forth. If the P variable is XYZ, 1 is X, 2 is Y, 3 is Z and so forth.

    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.

  • Gurtej Singh
    Trophies
    2
    Posts
    29
    • September 6, 2021 at 5:28 PM
    • #3

    Oh wow thank you so much ..it worked really fine.!!

    Can we use this way for getting velocity from D variables also..?

    Quote from 95devils

    Use the SETE instruction in ARITH. Depending on the format on the P variable the elements are 1 is S, 2 is L, 3 is U and so forth. If the P variable is XYZ, 1 is X, 2 is Y, 3 is Z and so forth.

  • 95devils
    Reactions Received
    234
    Trophies
    8
    Posts
    1,947
    • September 6, 2021 at 7:55 PM
    • #4

    For velocities you can use an Integer or a Double.

    MOVJ VJ=D000

    MOVL V=D000

    You have to take decimals into account. On a VJ there are two decimal places. On a V= there is 1. On a V= the controller uses mm/sec regardless of what you are using.

    D000=1000

    This would be the equivalent of MOVJ VJ=10.00 or a MOVL V=100.0 mm/sec.

    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.

  • Gurtej Singh
    Trophies
    2
    Posts
    29
    • September 6, 2021 at 8:09 PM
    • #5

    Thank you for this info i will try it !!

    And last thing .. can we copy data from B variable to D variable using SET or is there some other things to be considered..?

    BR

  • 95devils
    Reactions Received
    234
    Trophies
    8
    Posts
    1,947
    • September 7, 2021 at 12:14 AM
    • #6

    Yes, you can use the SET to copy the content’s box of a Byte into the content’s box of a Double. If you need to do addition, subtraction, multiplication, or division you can also use the SET with the EXPRESS tag to reduce the number of instructions.

    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.

  • Gurtej Singh
    Trophies
    2
    Posts
    29
    • September 10, 2021 at 1:51 PM
    • #7

    I tried to copy content of B000 to D000 using : SET D000 B000 but it came up with error: 2080 (Depress INSERT or MODIFY)

  • 95devils
    Reactions Received
    234
    Trophies
    8
    Posts
    1,947
    • September 10, 2021 at 2:15 PM
    • #8

    You are simply trying to add an instruction and the cursor is not right above the END instruction. Press INSERT then ENTER.

    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.

  • TSGIR
    Reactions Received
    81
    Trophies
    6
    Posts
    714
    • September 10, 2021 at 3:11 PM
    • #9

    When you will add new instruction that aren't in the job content, press INSERT + ENTER.

    When there are instruction in the job content and you will change sections of it, after change press MODIFY + ENTER.

  • Gurtej Singh
    Trophies
    2
    Posts
    29
    • September 10, 2021 at 4:58 PM
    • #10
    Quote from 95devils

    You are simply trying to add an instruction and the cursor is not right above the END instruction. Press INSERT then ENTER.

    Quote from TSGIR

    When you will add new instruction that aren't in the job content, press INSERT + ENTER.

    When there are instruction in the job content and you will change sections of it, after change press MODIFY + ENTER.

    Thank you so much it worked perfectly fine this issue is resolved !!

  • Abbas Aqapour
    Trophies
    2
    Posts
    11
    • November 18, 2023 at 11:03 AM
    • #11

    what is different between B and LB and LB[] and so on?

  • Robodoc
    Reactions Received
    56
    Trophies
    7
    Posts
    1,059
    • November 18, 2023 at 2:02 PM
    • #12

    any variable with an "L" is local to that job only and must be setup in the job header before you can use it.

    Any variable with "[ ]" is for array addressing.

    Variables without an "L" are global so any job can have access to them.

    Robodoc

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
  • yaskawa
  • Yaskawa dx200
  • Yaskawa Motoman
  • P variables
  • D variable
  • B variable
  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