DPM sysvars unexposed to KAREL?

  • I am trying to set up DPM on my robot and have decided that directly setting offsets in the DPM system variables will work best for my application; however, when I attempted to set

    Code
    $dpm_sch[1].$grp[1].$ofs[1].$ini_ofs = x        -- offset in x direction, type REAL


    as described in the manual, I got the following output from ktrans:

    Code
    17 $dpm_sch[1].$grp[1].$ofs[1].$ini_ofs = x
                ^ ERROR
    Id must be defined before this use.  Id: $DPM_SCH


    How do I set my offsets with KAREL?


    Thanks!

  • Update, the entire chain of variables I use [above] exists on my controller, I was able to find them in the Variables tab. However, I still cannot use them in a program because KTRANS does not recognize them as available pieces of data.


    The more general question here is how can I make KTRANS aware of additional software packages I have activated on my controller?


    Thanks again!

  • The Karel translator will only translate a couple of direct system variable writes. To write to variables it doesn't know, you have to use the SET_VAR built-in with '*SYSTEM*' as the program name.

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

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

Advertising from our partners