MCV_UpdateCamTable
This FB can command the reload of individual CAM tables.
Block diagram
FB parameters
VAR_IN_OUT | ||
Variable name | Data type | Description |
CamTable | MC_CAM_REF | This structure contains the filename of the CAM table. |
VAR_INPUT | ||
Variable name | Data type | Description |
Execute | BOOL | The specified CAM table is loaded on the rising edge. |
VAR_OUTPUT | ||
Variable name | Data type | Description |
Done | BOOL | The CAM table was successfully loaded. |
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 reloaded.
- The CAM table is referenced by its filename.
- If the CAM table ID entered in the CAM table header already exists in the CAM table memory, an attempt is made to save the new table to the previous memory. If the previous memory location is insufficient, the table is saved to the next free memory location.
- If the CAM table ID does not exist in the CAM table memory, the new table is saved to the next free memory location.