Yt_MS_CamStruct
Yt_MS_CamStruct: VAR
| Variable Name | Data Type | Description | Usage |
|---|---|---|---|
| Yt_MaxCamSize | INT | Variable used in the Yt_MS_ArrayType array definition. Allows overwriting of the value. | IF Value < Yt_MaxCamSize THEN |
Yt_MS_CamStruct: STRUCT
| Element | Data Type | Description | Usage |
|---|---|---|---|
| Header | Yt_CamHeader | Refer to the Yt_CamHeader structure | myTable.Header.DataSize:= UDINT#32; |
| MS_Header | Yt_MS_Header | Refer to the Yt_MS_Header struture | myTable.MS_Header.SlaveIncremental := FALSE; |
| MS_Data | Yt_MS_ArrayType | Refer to the Yt_MS_ArrayType structure | myTable.MS_Data[0].Master := LREAL#0.0; |
Yt_CamHeader: STRUCT
| Element | Data Type | Description | Usage |
|---|---|---|---|
| TableType | Yt_TableType | Refer to YT_TableType ENUM type | myTable.Header.TableType := Yt_TableType#MasterSlaveArray; |
| Reserved1 | UINT | Reserved for future use |
|
| DataSize | UDINT | The size of MS_Data in bytes. Multiply the number of master / slave pairs * 16. | myTable.Header.DataSize := UDINT#32; |
Yt_MS_Header: STRUCT
| Element | Data Type | Description | Usage |
|---|---|---|---|
| SlaveIncremental | BOOL | FALSE (default) indicates that the slave data in the Yt_MS_CamStruct is absolute from the beginning of the data. TRUE indicates that the data is incremental from point to point in the entire data collection. | myTable.MS_Header.SlaveIncremental := FALSE; |
| MasterIncremental | BOOL | FALSE (default) indicates that the master data in the Yt_MS_CamStruct is absolute from the beginning of the data. TRUE indicates that the data is incremental from point to point in the entire data collection. | myTable.MS_Header.MasterIncremental := FALSE; |
| Reserved1 | UINT | Reserved for future use |
|
| Reserved2 | UINT | Reserved for future use |
|
| Reserved3 | UINT | Reserved for future use |
|
Yt_MS_ArrayType: ARRAY
| Array Name | Data Type | Range | Description | Usage |
|---|---|---|---|---|
| Yt_MS_ArrayType | YT_MS_Pair | 0..Yt_MaxCamSize | Array that contains master slave position data | myTable.MS_Data[0].Master := LREAL#0.0; |
YT_MS_Pair: STRUCT
| Element | Data Type | Description | Usage |
|---|---|---|---|
| Master | LREAL | Master position in master user units. One or many Yt_MS_Pair make up a cam motion profile | myTable.MS_Data[0].Master := LREAL#0.0; |
| Slave | LREAL | Slave position in slave user units. One or many Yt_MS_Pair make up a cam motion profile | myTable.MS_Data[0].Slave := LREAL#0.0; |