MC-Basic:CREATEPLSDATA

From SoftMC-Wiki
Revision as of 12:09, 19 May 2025 by Hallel (talk | contribs) (Added PLSPOSITION)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Language: English  • 中文(简体)‎

This command creates a PLS data table for holding the PLS position values. Any existing data associated with the specified PLS is erased and all PLS position data is reset to zero.
<number of points> defines the number of rows in the position data table. The individual PLS position values are then set in PLSPosition.

Short form

CPDat

Syntax

CreatePlsData <number of points> <pls name>

Availability

All versions

Type

<number of points>: Long
<pls>: string

Range

<number of points>: 1 to MaxLong

<pls name>: Any name that is not a keyword and is not already given to a variable in the system.

Scope

Configuration, Task or Terminal

Limitations

  • Write only.
  • Data cannot be stored while being changed.
  • The PLS cannot be enabled while data are being changed.
  • The PLS must be declared as PLS.

Examples

CreatePlsData 10 MyPls

MyPls.PLSPosition[1] = 5

See Also