Difference between revisions of "MC-Basic:pls.HWIOtime"

From SoftMC-Wiki
Jump to: navigation, search
m
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
|SYNTAX= <pls>.HWIOtime[<index>]
+
|SYNTAX=  
|AVAILABILITY= 4.7.8
+
<pls>.HWIOTIME[<[''index''>]<br>
 +
Where index = 1 to <motion buffer size>  x <PLS motion buffer>
 +
 
 +
|AVAILABILITY= Version 4.7.8 and later
 
|DESCRIPTION=
 
|DESCRIPTION=
Returns the current state of the hardware time buffers, if nothing assigned -1 is returned, else the time in microseconds inside the current sample when the PLS will be triggered
+
Debugging variable.<br>
 +
Returns the contents of the hardware time buffer. The returned value is the time within the current sample at which the PLS event will occur. <br>
 +
Returns '''-1''' if the sample does not contain a PLS.
 +
 
 
|TYPE= long
 
|TYPE= long
 
|RANGE=  
 
|RANGE=  
<index>: 0 ... Sercos buffer X PLS motion buffer (=40)
+
-1 to <motion bus cycle time in µs>
|<pls>.HWIOtime[<index>]: 0 to maxLong
+
 
 
|UNITS=  microseconds
 
|UNITS=  microseconds
|DEFAULT= -1 (buffer empty)
+
|DEFAULT= -1  
 
|SCOPE= Terminal/Task
 
|SCOPE= Terminal/Task
|LIMITATIONS= Read-Only
+
|LIMITATIONS=
|EXAMPLE= ?P1.HWIOtime[1]
+
 
 +
Read only
 +
 
 +
must query HW_PLS_DEBUG_LVL_SET(2,0,0)
 +
|EXAMPLE=  
 +
lDummy = HW_PLS_DEBUG_LVL_SET(2,0,0)
 +
 
 +
?P1.HWIOtime[1]
 +
 
 
|SEE ALSO=
 
|SEE ALSO=
[[Axystems:MC-Basic:pls.PLSdelaytime| PLSdelaytime]]<br>
+
[[MC-Basic:pls.PLSdelaytime| PLSdelaytime]]<br>
[[Axystems:PLS_timing_issues| PLS Timinig Issues]]
+
[[PLS Timing Issues| PLS Timinig Issues]]
  
 
}}
 
}}

Latest revision as of 08:24, 11 October 2018

Debugging variable.
Returns the contents of the hardware time buffer. The returned value is the time within the current sample at which the PLS event will occur.
Returns -1 if the sample does not contain a PLS.

Syntax

<pls>.HWIOTIME[<[index>]
Where index = 1 to <motion buffer size> x <PLS motion buffer>

Availability

Version 4.7.8 and later

Type

long

Range

-1 to <motion bus cycle time in µs>

Units

microseconds

Default

-1

Scope

Terminal/Task

Limitations

Read only

must query HW_PLS_DEBUG_LVL_SET(2,0,0)

Examples

lDummy = HW_PLS_DEBUG_LVL_SET(2,0,0)

?P1.HWIOtime[1]

See Also

PLSdelaytime
PLS Timinig Issues