EasyManua.ls Logo

Dobot CR5 - Page 98

Dobot CR5
111 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DOBOT CR5 User Guide 6 Program Language
Issue V3.5.3.1 (2020-05-09) User Guide Copyright © Yuejiang Technology Co., Ltd
93
Table 6.40 Star timing command
Function
ResetElapsedTime()
Description
Start timing after all commands before this command are executed completely. Use in conjunction
with ElapsedTime() command
For example: Get the execution time that a piece of code takes
Parameter
None
Return
None
Example
Go(P2, " Speed=100 Accel=100")
ResetElapsedTime()
for i=1,10 do
Jump(P1, " Speed=100 Accel=100 Start=0 End=0 ZLimit=185")
Jump(P2, " Speed=100 Accel=100 Start=0 End=0 ZLimit=185")
end
print (ElapsedTime())
Sleep(1000)
Table 6.41 Stop timing command
Function
ElapsedTime()
Description
Stop timing and return the time difference. Use in conjunction with ResetElapsedTime()
command
Parameter
None
Return
Time difference. Unit: ms
Example
Go(P2, " Speed=100 Accel=100")
ResetElapsedTime()
for i=1,10 do
Jump(P1, " Speed=100 Accel=100 Start=0 End=0 ZLimit=185")
Jump(P2, " Speed=100 Accel=100 Start=0 End=0 ZLimit=185")
end
print (ElapsedTime())
Sleep(1000)
Table 6.42 Get current time command
Function
Systime()

Table of Contents

Other manuals for Dobot CR5

Related product manuals