So far, this is all very exciting, and if you’re anything like I was, being able to toggle between these two positions was fun, and I had a huge grin on my face. But, it’s still not really given us anything useful. When we turn the robot on, it still doesn’t know what to do, and will go back to the free position where the servos are not powered. We need to change that.
It would be good if when we turn the 1HV on, it would go to our newly set home position. And that’s exactly what we’re going to do next.
Power cycle the robot then go back to H2H. Select the sync checkbox, and remove any objects in the worksheet. (If you still have the POS there from earlier, right click it and select delete). We’re now going to load our first pre-defined motion.
On the CD that came with the kit, you’ll find some Sample Motions. I have the Japanese CD (If I find English versions I’ll update the location - or if anyone knows where they are then please let me know!) so the names are a little harder to match, but go with the start of the file as they are all numbered differently.
Select the folder icon in the top left to open a motion, and select ‘1HV000_Startup.rcb’. This will load the motion which frees the servos, then moved the robot to the home position as it’s first action when turned on.
To use our own Home position, double click on the blue Home Pos object in the worksheet to open the POS window. In the bottom left of the window, you’ll see the Home icon (the house). Click this and our home position settings will be set into the POS sliders for us.
At this point, you’re probably wondering why we have a step in the motion to free the servos. The reason is quite simple. Since we don’t know where the servos will be positioned when we turn the robot on, if we go straight to the home position, we could damage the servos.
The next step is to read the current servo positions from the servos themselves so we know where to start the motion to get to the Home positions. Finally we move the robot to the Home position.
Before we can set the motion to be executed on startup, we need to upload it to the RBC’s memory. We do this by clicking the write icon, then selecting a location in the memory to store the motion. I selected M80 (the last slot) but you can select any slot you want. Click ok and the motion will be written. The OK message will be displayed under the icon bar if successful.
|