Any system variable store the string like "LR MATE 200iD/7L"?
How to get Fanuc Robot seriers by Karel Program
-
chibai -
July 19, 2023 at 6:55 AM -
Thread is Resolved
-
- Go to Best Answer
-
MOM
July 19, 2023 at 8:41 AM Approved the thread. -
If you're looking to get a Fanuc Robot series by Karel Program, there are a few things you'll need to do. First, you'll need to make sure you have the correct version of the Karel programming language for your robot. This language is used to program Fanuc robots, and each robot has its own specific version of the language.
Once you have the correct version of Karel, you can start programming your robot. One way to get the series of your Fanuc robot is by using the system variable called $ROBOT. This variable contains a string that describes the type of robot you're using, including the series and model number.
To get the series information from the $ROBOT variable, you can use the STRCMP function to compare it to a string that contains the series name you're looking for. For example, if you're looking for the LR MATE 200iD/7L series, you could use the following code:
CodeIF STRCMP($ROBOT, "LR MATE 200iD/7L") == 0 THEN ! Your code here for LR MATE 200iD/7L series ENDIF
This code will check if the $ROBOT variable contains the string "LR MATE 200iD/7L", and if it does, it will execute the code inside the IF statement. You can replace the comment with your own code that's specific to the LR MATE 200iD/7L series.
Thanks for youre reply, I will try it in RobotGuide, and "$ROBOT" is not valid for compile, I guess we need some %ENVIRONMENT OR %INCLUDE.
I have another strange question, that is I can not find $ROBOT in system variable of TP(menu->0(next)->6(system)->2(variable))
-
- Best Answer
$ROB_ORD_NUM[1] contains the mechanical arm order number for group 1. "H772" corresponds to a R2000ic/125L for example. The numbers are shown when you start a cell from scratch for arm model:
H750 corresponds to a LR MATE 200iD/7L.
You could also hammer through the $FEATURE array, as it will have the actual name of the arm in there, but it pretty much be in a random spot depending on how many options the robot has.
-
$ROB_ORD_NUM[1] contains the mechanical arm order number for group 1. "H772" corresponds to a R2000ic/125L for example. The numbers are shown when you start a cell from scratch for arm model:
H750 corresponds to a LR MATE 200iD/7L.
You could also hammer through the $FEATURE array, as it will have the actual name of the arm in there, but it pretty much be in a random spot depending on how many options the robot has.
Thank you, I think this is a complete answer for me~~
I wish I could mark your reply as answer