MC-Basic:cam.SLAVEDATA
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