Difference between revisions of "MC-Basic:cam.SLAVEDATA"

From SoftMC-Wiki
Jump to: navigation, search
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:cam.SLAVEDATA}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
Line 12: Line 13:
  
 
|DESCRIPTION=
 
|DESCRIPTION=
This property is used to access a discrete element of slave data. The index specifies which element in the table is being accessed. Cam table data can be changed while the table is active. If the table is monotonic before the value is set, then monotonicity is verified when the value is set. If, as a result of the change, the table is no longer monotonic, the table is flagged as being non-monotonic.
+
This property is used to access a discrete element of slave data. The index specifies which element in the table is being accessed. cam table data can be changed while the table is active. If the table is monotonic before the value is set, then monotonicity is verified when the value is set. If, as a result of the change, the table is no longer monotonic, the table is flagged as being non-monotonic.
  
 
|TYPE=
 
|TYPE=

Latest revision as of 10:08, 25 April 2017

Language: English  • 中文(简体)‎

This property is used to access a discrete element of slave data. The index specifies which element in the table is being accessed. cam table data can be changed while the table is active. If the table is monotonic before the value is set, then monotonicity is verified when the value is set. If, as a result of the change, the table is no longer monotonic, the table is flagged as being non-monotonic.

Short form

Sdat

Syntax

<cam>.SlaveData[<index>] = <value of data>

?<cam>.SlaveData[<index>]

Availability

All versions

Type

<index>: Long
<value of data>: Double

Range

<index>: 1 to MaxLong

Scope

Configuration, Task or Terminal

Limitations

The value of a discrete element of data cannot be changed while the data structure is being stored to a file. If the table is in use, and the new value would cause the table to be non-monotonic, the new value is rejected.

Examples

Cam1.SlaveData[3] = 57.5 

Set master data element number 3 in the table