MC-Basic:pls.HWASSISTANCE

From SoftMC-Wiki
Revision as of 09:46, 20 November 2022 by Rasty (talk | contribs)
Jump to: navigation, search

The high-accuracy PLS timing mode is activated by HWAssistance.

  • PLS High Accuracy On (<pls>.HWAssistance = <value>)
When high-accuracy mode is active, the Product software extrapolates the exact time at which the axis will reach the PLS position, based on its current position, velocity and acceleration, and sets an output event for that time.
If HWAssistance is active, the timing of the PLS output switch will be computed to an accuracy of microseconds.
The exact timing of the PLS switch is computed according to the current velocity and acceleration values of the samples before and after the PLS position.
In instances of constant acceleration or linear acceleration change between the two samples, the timing of the PLS is computed exactly to ±1µs.
  • PLS High Accuracy Off (<pls>.HWAssistance = 0)
When HWAssistance is not active (normal PLS), the PLS outputs are toggled at the moment the PLS source crosses the PLS position.
The timing of the PLS switch is always an integer number of motion samples; therefore, the ::timing accuracy of the PLS is equivalent to the motion bus cycle.
NOTE-Info.svgNOTE
Note that with fw version ?'"`UNIQ--nowiki-00000001-QINU`"'? and before, the position command delay of P?'"`UNIQ--nowiki-00000002-QINU`"'?
samples will be taken into account as ?'"`UNIQ--nowiki-00000003-QINU`"'? expression. This means that in case of ?'"`UNIQ--nowiki-00000004-QINU`"'?,
when the PLSposition is passed, the output will be triggered after 1 sample delay plus Δt, the inter-sample delay.
NOTE-Info.svgNOTE
Hwassistance is available only in systems that have the hardware that support this functionality

Short form

<pls>.HWAssistance

Syntax

?<pls>. HWAssistance

Availability

Versions 4.21.2 and higher

Type

Long

Range

0  - no HW assistance
1  - el2258 time-stamping module
2  - CDHD2 PCOM1/PCOM2


FALSE

Default

FALSE

Scope

Configuration, Task or Terminal

Limitations

  • Available only in systems with hardware that supports this functionality timestamping module el2258 or CDHD2 PCOM1/PCOM2
  • Modal/Nodal

Examples

?PLS1. HWAssistance

PLS1. HWAssistance = 2 CDHD2 Setup
1.Add objects 0x2191.0/0x2205.1 (PCOM1) or 0x2192.0/0x2206.1 (PCOM1) to TXPDO
2.Two (2) outputs above digital outputs will be implicitly mapped into sys.dout

See Also