I know very little about KAREL
I created a ROBOT in ROBOGUIDE that has the KAREL Software Option.
I created this program to convert a PR[1] and Store it in PR[2] in Notpad++
PROGRAM CONVERT_TO_JOINT -- Syntax ok ??
%nolockgroup -- no idea what this does
%comment = 'Convert XYZ to JOINT -- ??
%alphabetize -- ?? Why
VAR
xyz :XYZWPR
jpos :JOINTPOS
status :INTEGER
BEGIN
xyz= GET_POS_REG(1, status) -- corresponds to getting PR[1] stored into “xyz”
jpos=xyz -- convert ‘xyz’ to JOINTPOS
SET_JPOS_REG(2,jpos,status) -- set PR[2] as the joint position of jpos
END CONVERT_TO_JOINT
Now...
1. How does the syntax look? I think I'm missing some $UFRAME and $UTOOL statements?
2. How do I get it compiled (built?), Loaded to the controller, and Called from a TP program (ROBOGUIDE)?
Cheers!