MC-Basic:cam.SIZE

From SoftMC-Wiki
Revision as of 09:56, 25 April 2017 by Chi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Language: English  • 中文(简体)‎

This property returns the number of points defined for the given cam table. This property accesses a discrete element of slave data. <index> specifies which element in the table is being accessed. cam table data can be changed while the table is active.

Short form

Sdat

Syntax

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

?<cam>.SlaveData[<index>]

Availability

Since Version 4.0.1
All versions

Type

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

Range

0 to MaxLong<index>: 1.. 2147483647

Scope

Task or TerminalConfiguration, Task or Terminal

Limitations

  • Read only
  • The value of a discrete element of data cannot be set while the data structure is being stored to a file.
  • The elements cannot be changed while the cam table is active. A cam table is active if camming is enabled (AXIS.SLAVE=2) and the cam table is being pointed to by the master (AXIS.ACTIVECAM).

Examples

?Cam1 .SizeCam1.SlaveData[3] = 347

Set slave data element number 3 in the table

See Also