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

Help understanding errors while compiling

  • ashwinmudigonda
  • February 22, 2018 at 7:20 PM
  • Thread is Resolved
  • ashwinmudigonda
    Trophies
    3
    Posts
    43
    • February 22, 2018 at 7:20 PM
    • #1

    I am trying to write a TCP client in Karel to talk to a simple python server. I went through the manual and configured a client on $HOST_CFG[1]. I typed the example client from the manual into Notepad++(I couldn't copy paste)

    Code
    PROGRAM loopcl
    %STACKSIZE = 4000
    %NOLOCKGROUP
    %NOPAUSE=ERROR+COMMAND+TPENABLE
    %ENVIRONMENT uif
    %ENVIRONMENT sysdef
    %ENVIRONMENT kclop
    %ENVIRONMENT bynam
    %ENVIRONMENT fdev
    %ENVIRONMENT flbt
    %INCLUDE klevccdf
    %INCLUDE klevkeys
    %INCLUDE klevkmsk
    
    
    VAR
    	file_var : FILE
    	tmp_int	 : INTEGER
    	tmp_str  : STRING[128]
    	status	 : INTEGER
    	entry	 : INTEGER
    	loop1	 : BOOLEAN
    
    BEGIN
    	SET_FILE_ATR(file_var, ATR_IA)
    	SET_VAR(entry, '*SYSTEM*'. '$HOST_CFG[1].$SERVER_PORT',80000,status)
    
    	-- Connect the tag
    	WRITE('Connecting...',CR)
    	MSG_CONNECT('C1:',status)
    	WRITE(' Connect status = ',status,CR)
    	loop1 = TRUE
    	IF status = 0 THEN
    		WHILE loop1 = TRUE DO
    			WRITE('Opening file...',CR)
    			OPEN FILE file_var('rw','C1:')
    			status = IO_STATUS(file_var)
    			IF status = 0 THEN
    				FOR tmp_int = 1 TO 100 DO
    					tmp_str = '0123456789012345'
    					WRITE file_var(tmp_str::10)
    					WRITE('Wrote 126 bytes',CR)
    					IF status <> 0 THEN
    						WRITE('Loop test fails',CR)
    						loop1 = FALSE
    						tmp_int = 100
    					ELSE
    						WRITE('Read 126 bytes',CR)
    						READ file_var(tmp_str::10)
    						status = IO_STATUS(file_var)
    						WRITE('Read status ', status,CR)
    					ENDIF
    				ENDFOR
    				WRITE('Closed file',CR)
    				CLOSE FILE file_var
    			ELSE
    				WRITE('Error opening file',CR)
    				loop1 = FALSE
    			ENDIF
    		ENDWHILE
    		WRITE('Disconnecting...',CR)
    		MSG_DISCO('C1:',status)
    		WRITE('Done.',CR)
    	ENDIF
    END loopcl
    Display More


    We have HandlingPro evaluation version. I was able to load and compile simple programs. I tried to load the Karel_Client.ls program, and got error messages (see attached). I am not sure what they mean. Clicking on them does not help.

    Could someone point me in a direction on how to debug?

    Images

    • 2018_02_22_12_15_58_HandlingPRO_Evaluation_30_days_left_HandlingPRO1.png
      • 22.02 kB
      • 1,276 × 378
      • 49

    Files

    2018_02_22_12_15_58_HandlingPRO_Evaluation_30_days_left_HandlingPRO1.png_thumb 4.57 kB – 86 Downloads
  • Go to Best Answer
  • ashwinmudigonda
    Trophies
    3
    Posts
    43
    • February 22, 2018 at 7:34 PM
    • #2

    I tried to write a simpler hello world and got errors trying to load the program in HandlingPro.

    Code
    --hello_world.kl
    
    
    PROGRAM hello_world
    
    
    BEGIN
    	WRITE('Hello, world!',CR)
    END hello_world

    ----

    I tried following the instructions in this page - http://www.onerobotics.com/posts/2013/int…el-programming/

    i was able to compile the hello_world to a .pc file.
    I was able to find it on the pendant after copying it onto a USB drive and inserting it into the controller.

    However, when I choose LOAD, I get

    The KAREL option is required.

    When I check the STATUS, I do see

    KAREL Cmd. Language J650
    KAREL Run-Time Env J539

    on the pendant.

    Am I missing something?

    Images

    • Untitled.png
      • 32.96 kB
      • 1,274 × 708
      • 39

    Files

    Untitled.png_thumb 7.84 kB – 85 Downloads

    Edited once, last by ashwinmudigonda (February 22, 2018 at 8:31 PM).

  • pdl
    Reactions Received
    270
    Trophies
    9
    Posts
    1,545
    • February 22, 2018 at 8:54 PM
    • #3

    You need to have Karel installed.

    The options that you listed will only allow you to view Karel variables and positions, but will not allow you to execute a Karel program.

  • Nation
    Typical Robot Error
    Reactions Received
    552
    Trophies
    9
    Posts
    1,933
    • February 22, 2018 at 9:03 PM
    • #4

    pdl is right. You need option R632, which is Karel. Also, since you are creating your own TCP/IP packets, you will need User Socket Messaging as well, option R648.

    Check out the Fanuc position converter I wrote here! Now open source!

    Check out my example Fanuc Ethernet/IP Explicit Messaging program here!

    Edited once, last by Nation (February 23, 2018 at 4:12 PM).

  • rf103
    Reactions Received
    18
    Trophies
    4
    Posts
    264
    • February 23, 2018 at 3:11 PM
    • #5

    Nation: shouldn't that be R632?

    ashwinmudigonda: which controller is this? R-30iB?

  • Nation
    Typical Robot Error
    Reactions Received
    552
    Trophies
    9
    Posts
    1,933
    • February 23, 2018 at 4:13 PM
    • #6
    Quote from rf103


    Nation: shouldn't that be R632?

    You are right. I had a typo. I've edited my post to display the correct info.

    Check out the Fanuc position converter I wrote here! Now open source!

    Check out my example Fanuc Ethernet/IP Explicit Messaging program here!

  • ashwinmudigonda
    Trophies
    3
    Posts
    43
    • February 24, 2018 at 5:38 PM
    • #7
    Quote from rf103


    Nation: shouldn't that be R632?

    ashwinmudigonda: which controller is this? R-30iB?

    Yes. It is a R-30iB Plus.

    I got the FANUC rep to give us a PAC, but when I try to install in the CTRL START mode, I get OPTN-033 Image not backed up

  • ashwinmudigonda
    Trophies
    3
    Posts
    43
    • February 24, 2018 at 6:23 PM
    • Best Answer
    • #8

    Never mind. I figured it out. The manuals from FANUC are bad.

    I had to choose the USB as the media source, and then follow the rep's steps to AUTH and INSTALL KAREL.

    Then I couldn't figure out how to get out CTRL START mode. Turns out I had to tap on the FCTN button and choose the cold start option.

    Hopefully this will help someone else flailing through these steps.

  • Azermath
    Trophies
    3
    Posts
    58
    • March 21, 2018 at 8:34 PM
    • #9

    :help: does anyone know how to trigger Auto update in the Ctrl Start? i had to install and auth both my Camera and IRvision but i can't seem to get past this auto update.

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