Table of Contents

Class TableParameters

Namespace
TwinSharp.NC
Assembly
TwinSharp.dll

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

uint

ID

Table ID

public uint ID { get; }

Property Value

uint

LineCount

Number of lines (n)

public uint LineCount { get; }

Property Value

uint

MainType

Table main type

public TableMainType MainType { get; }

Property Value

TableMainType

MasterPeriod

Master period (cyclic table). Base unit (e.g. degree)

public double MasterPeriod { get; }

Property Value

double

Name

Table name

public string Name { get; }

Property Value

string

SlaveDifferencePerMasterPeriod

Slave difference per master period (cyclic table). Base unit (e.g. degree)

public double SlaveDifferencePerMasterPeriod { get; }

Property Value

double

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

double

StepWidth

Step width (position delta) (equidistant table ) Equidistant Tables Base unit (e.g. mm)

public double StepWidth { get; }

Property Value

double

SubTupe

Table sub type

public TableSubType SubTupe { get; }

Property Value

TableSubType

TotalCount

Total number of elements (n*m)

public uint TotalCount { get; }

Property Value

uint

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 TableActivationMode

Activation 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 double

Activation position (e.g. mm)

masterScalingType CamScalingMode

Master scaling type 0: user defined (default) 1: scaling with auto offset 2: off

slaveScalingType CamScalingMode

Slave scaling type 0: user defined (default) 1: scaling with auto offset 2: off

GetSingleValue(uint, uint)

public double GetSingleValue(uint line, uint column)

Parameters

line uint
column uint

Returns

double

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 TableActivationMode

Activation 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 double

Activation position (e.g. mm)

masterScalingType CamScalingMode

Master scaling type 0: user defined (default) 1: scaling with auto offset 2: off

slaveScalingType CamScalingMode

Slave 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)

Parameters

line uint

n-th line

column uint

m-th column

value double

Single value. Base unit (e.g. mm)