GetSrvData (System Variable) [Version 1.5 or later]


Gets the internal servo data of robot joints.


<InternalServoData> = GetSrvData(<DataNumber>)


GetSrvData gets the internal servo data specified by <DataNumber> into <InternalServoData>.
<InternalServoData> is a joint type data of robot. <DataNumber> should be any of the following:
<DataNumber>
<InternalServoData>
1
Current motor speed (Actual speed) in rpm
2
Motor rotation angle error in pulses
4
Motor current absolute value in ratio (%) to the rated value
5
Motor torque control value (excluding torque offset) in ratio (%) to the rated value
8
Joint position or angle control value in mm or degrees
17
Tool-end speed (3 position elements only in the work coordinates) in mm/s
18
Tool-end positioning speed (3 position elements only in the work coordinates) in mm
19
Tool-end speed (3 position elements only in the tool coordinates) in mm/s
20
Tool-end positioning speed (3 position elements only in the tool coordinates) in mm




  • Data numbers other than those given above are reserved. Do not use any other number other than the above, although no error will result if you specify any number up to 30.
  • If you attempt to fetch the servo data when the single-joint servo data monitor is running, the fetching process may become very slow. Take care when using the single-joint servo data monitor.
  • If you change <DataNumber>, the modification may take time. Do not change it so frequently.
  • Execute this command in a TAKEARMed task that holds an arm semaphore. If not in a TAKEARMed task, the error "21F7: Cannot take arm semaphore" will result.


DIM lp1 As Position
DIM lv1 As Vector
Lp1 = (10, 10, 5, 0, 9, 0, 1 )
Lv1 = (50, 10, 50 )
AREA 2, lp1, lv1, 104, 1
'Declares I/O number 104 specified by lv1 at the
'position specified by lp1 in area number 2.
SETAREA 2
'Makes the area check of number 2 valid.
RESETAREA 2
'Initializes the area check of number 2.


Top