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

Can't build any LS file with a joint move, error code 0x160002

  • Tarnarmour
  • January 22, 2025 at 9:14 PM
  • Thread is Resolved
  • Tarnarmour
    Reactions Received
    1
    Posts
    26
    • January 22, 2025 at 9:14 PM
    • #1

    I've been automatically generating and compiling LS files into TP code for a while now with no issues, but I've just found a weird problem with timed joints moves. For context, I'm running the old 5.30 controller software version (compatibility for a customer with an old robot). Here's the LS file I'm trying to translate:

    Code
    /PROG  COL_PLC1
    /ATTR
    PROTECT		= READ_WRITE;
    TCD:  STACK_SIZE	= 0,
          TASK_PRIORITY	= 50,
          TIME_SLICE	= 0,
          BUSY_LAMP_OFF	= 0,
          ABORT_REQUEST	= 0,
          PAUSE_REQUEST	= 0;
    DEFAULT_GROUP	= 1,*,*,*,*;
    CONTROL_CODE	= 00000000 00000000;
    /MN
    	1:	J PR[1] 750msec CNT100 ACC100;
    /POS
    
    /END
    Display More

    and here's the error I get when building:

    Quote

    ----------------------------------------------------------------------
    Translating E:\plc_test\col_plc1.ls

    Error occurred during load
    E:\plc_test\col_plc1.ls(13)
    on line 13, column 38
    Undefined instruction
    E:\plc_test\col_plc1.ls(13)
    on line 13, column 31
    Undefined instruction
    Build Failed: Error translating program: Code: 0x160002: [SPRUNCMDF] status = 38000F; "ERSRCH 0X160002 " :
    ----------------------------------------------------------------------

    Display More

    If I change to a linear move, this works fine. If I change the velocity type to percentage, like 1: J PR[1] 100% CNT100 ACC100;, it's fine. What's really weird is that if I open the teach pendant and change the program, I can make it a timed move, and I can even print out an LS file. But that same LS file then will not re-build.

    Again this is with the old 5.30 software version, but does anyone have any idea about this?

  • HawkME
    Reactions Received
    568
    Trophies
    10
    Posts
    3,268
    • January 22, 2025 at 11:46 PM
    • #2

    Probably a bug in the complier that Fanuc overlooked.

  • Hazard
    Reactions Received
    15
    Trophies
    3
    Posts
    55
    • January 23, 2025 at 7:06 PM
    • #3

    Could be the unit of measure for speed. On my 5.30 robots I don't see msec as an available option. I only see mm/sec, cm/sec, inch/min, deg/sec, and sec.

  • Hazard
    Reactions Received
    15
    Trophies
    3
    Posts
    55
    • January 23, 2025 at 7:19 PM
    • #4

    Actually those units of measure are for linear motions. For joint motions I only see % and sec.

  • Tarnarmour
    Reactions Received
    1
    Posts
    26
    • January 23, 2025 at 7:47 PM
    • #5
    Quote

    For joint motions I only see % and sec.

    So you can't even set the <msec> option? I can set it in the teach pendant, I just can't build an LS file that has it set. Very weird, but good to know that <sec> will probably work.

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

  • roboguide
  • Build codes
  • Compiling eror
  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