Difference between revisions of "MC-Basic:cam.SLAVEDATA"
(Created page with "{{MC-Basic |SHORT FORM= Sdat |SYNTAX= ''<cam>.''SlaveData[''<index>''] = ''<value of data>''<br> ?''<cam>''.SlaveData[''<index''>] |AVAILABILITY= All versions |DESCRIPTION...") |
|||
(8 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 4: | Line 5: | ||
|SYNTAX= | |SYNTAX= | ||
− | ''<cam>.''SlaveData['' | + | ''<cam>.''SlaveData[<''index''>] = ''<value of data>''<br> |
− | ?'' | + | ?<''cam''>.SlaveData[''<index''>] |
|AVAILABILITY= | |AVAILABILITY= | ||
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. | + | 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= | ||
− | '' | + | <''index''>: Long<br> |
''<value of data>'': Double | ''<value of data>'': Double | ||
|RANGE= | |RANGE= | ||
− | '' | + | <''index''>: 1 to MaxLong |
|UNITS= | |UNITS= | ||
Line 34: | Line 35: | ||
|EXAMPLE= | |EXAMPLE= | ||
− | Cam1.SlaveData[3] = 57. | + | Cam1.SlaveData[3] = 57.5 |
+ | ::::Set master data element number 3 in the table | ||
|SEE ALSO= | |SEE ALSO= |
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