MCV_WriteCamTableElement
FB to change the online elements of a CAM table in the CAM table memory.
Block diagram
FB parameters
VAR_INPUT | |||
Variable name | Data type | Description | |
Execute | BOOL | The new table value is written on the rising edge. | |
CamTableID | MC_CAM_ID | CAM table ID | |
CamTableLine | UDINT | CAM table line number for the table value to be written (starting at 0) | |
CamTableColumn | UINT | CAM table column number for the table value to be written (starting at 0) | |
Mode | UDINT | Selecting the CAM table element | |
Value | Meaning | ||
0 | Table value (default) | ||
1 | Table type “Tabletype” | ||
2 | Interpolator type “Functiontype” | ||
3 | Line number “Lines” | ||
Value | LREAL | New table value |
VAR_OUTPUT | ||
Variable name | Data type | Description |
Done | BOOL | The CAM tables were successfully written. |
Error | BOOL | Is TRUE if an error occurs in the FB. |
ErrorID | WORD | Error identifier |
Behaviour of the FB:
- Only CAM tables which are currently not accessed can be changed.