Class TableParameters
The TableParameters class provides methods to interact with table parameters in a TwinCAT ADS system. It allows reading and writing various table properties such as ID, Name, SubType, MainType, LineCount, ColumnCount, TotalCount, StepWidth, MasterPeriod, and SlaveDifferencePerMasterPeriod. It also provides methods to get and set the activation mode for online changes, read and write single values in the table, and convert slave positions to master positions.
public class TableParameters
- Inheritance
-
TableParameters
- Inherited Members
Properties
ColumnCount
Number of columns (m)
public uint ColumnCount { get; }
Property Value
ID
Table ID
public uint ID { get; }
Property Value
LineCount
Number of lines (n)
public uint LineCount { get; }
Property Value
MainType
Table main type
public TableMainType MainType { get; }
Property Value
MasterPeriod
Master period (cyclic table). Base unit (e.g. degree)
public double MasterPeriod { get; }
Property Value
Name
Table name
public string Name { get; }
Property Value
SlaveDifferencePerMasterPeriod
Slave difference per master period (cyclic table). Base unit (e.g. degree)
public double SlaveDifferencePerMasterPeriod { get; }
Property Value
SlavePositionToMaster
Read slave position to the given master position (relates only to the "row values" of the table)
public double SlavePositionToMaster { get; set; }
Property Value
StepWidth
Step width (position delta) (equidistant table ) Equidistant Tables Base unit (e.g. mm)
public double StepWidth { get; }
Property Value
SubTupe
Table sub type
public TableSubType SubTupe { get; }
Property Value
TotalCount
Total number of elements (n*m)
public uint TotalCount { get; }
Property Value
Methods
GetActivationMode(out TableActivationMode, out double, out CamScalingMode, out CamScalingMode)
Get activation mode for online change from table data (only MF).
public void GetActivationMode(out TableActivationMode activationMode, out double activationPosition, out CamScalingMode masterScalingType, out CamScalingMode slaveScalingType)
Parameters
activationMode
TableActivationModeActivation mode: 0: 'instantaneous' (default) 1: 'master cam pos.' 2: 'master' axis pos.' 3: 'next cycle' 4: 'next cycle once' 5: 'as soon as possible' 6: 'off' 7: 'delete queued data'
activationPosition
doubleActivation position (e.g. mm)
masterScalingType
CamScalingModeMaster scaling type 0: user defined (default) 1: scaling with auto offset 2: off
slaveScalingType
CamScalingModeSlave scaling type 0: user defined (default) 1: scaling with auto offset 2: off
GetSingleValue(uint, uint)
public double GetSingleValue(uint line, uint column)
Parameters
Returns
SetActivationMode(TableActivationMode, double, CamScalingMode, CamScalingMode)
Set Activation mode for online change from table data (only MF).
public void SetActivationMode(TableActivationMode activationMode, double activationPosition, CamScalingMode masterScalingType, CamScalingMode slaveScalingType)
Parameters
activationMode
TableActivationModeActivation mode: 0: 'instantaneous' (default) 1: 'master cam pos.' 2: 'master' axis pos.' 3: 'next cycle' 4: 'next cycle once' 5: 'as soon as possible' 6: 'off' 7: 'delete queued data'
activationPosition
doubleActivation position (e.g. mm)
masterScalingType
CamScalingModeMaster scaling type 0: user defined (default) 1: scaling with auto offset 2: off
slaveScalingType
CamScalingModeSlave scaling type 0: user defined (default) 1: scaling with auto offset 2: off
SetSingleValue(uint, uint, double)
Write single value [n,m].
public void SetSingleValue(uint line, uint column, double value)