DR-Visual Logic
DR-Visual Logic
06
* Motions and Motion numbers used in this example are not same as the provided basic motion. This example assumes motion was created by DR-SIM and downloaded to the DRC. To download motion go to www.hovis.co.kr/guide
0 1 Assign Variable
Operating the robot is same as operating the robot servo motor. Value has to be assigned so that servo will be able to operate. Click Data > Variable module.
Click
0 2 Start
Click and drag the connecting line located at left side of the module to the Start Point and dock.
Drag
0 3 Start Programming
When the module and the Start Point is docked properly, module will become active and change color as seen in the photo to the left. This means programming has started.
79
PA RT
06
PART PART
0 5 Viewing C-Like
Click
Click the C-like tab near the top right and task programming window will open as shown in the photo to the left. This is the task window of the entire program. Codes are very similar to the C language structure so studying the codes will help the user become familiar with the C language structure. Cursor will jump follwing the clicked module, making it easy to see the module changing to text.
0 6 Variable Setup
2 Select 1 Click
This section makes the servo motor to operate on its own. Select Constant as the Variable Type. In properties, set constant value as 96. When 96(0x60) is entered in the servo TorgControl register, servo becomes ready to operate. This value is sent to the torque value of the next moduel through the output connector.
3 Input
80
PA RT
06
1
PART PART
This section applies contact value 96 to all servos. Select Variable > Type : Servo RAM. Select Servo RAM : TorqCtrl . Set Servo ID : 254. 254 means it will be applied to all connected servos..
2 3
0 8 Motion Ready
2 3 4
When the motion is loaded, robot may make a sudden movement or motion change from the current position. If the difference between the current position and the start of the motion is drastically different, it may cause stress to the motors or pose danger to the user. To prevent such an occurence Motion Ready is used to give time for motion to start. Select Motion > Move . Select Play/Stop : Play . Select Motion Index : 2. Load motion No 2. As a reference, motion No 2 in this progam makes the r obot sit and stand. It does not necessarily have to be No 2. User can select another motion No to use. Select Motion Ready : True . When True is selected, robot will slowly change to starting position of the moiton.
0 9 Delay
To prevent the motion from starting before Motion Ready ends, set Delay value to 1.5s.
81
PA RT
06
PART
PART
1 1 Motion Movement
If Motion Ready value is set to False, motion will run from start to finish. Select Motion Ready : False .
Click
82
PA RT
06
4 Drag
1 3 Wait
Wait untill the motion ends. Go to the begining and repeat when motion ends.
1 Click
2 Click
3 Click
83
PA RT
06
PART PART
84