INITCAM        Initialize and copy a cam table from the EEPROM memory to the RAM memory

Syntax                        

INITCAM LoadAddress, RunAddress

Copy cam table from EEPROM to RAM

Operands        LoadAddress: 16-bit unsigned integer - cam table start address in the EEPROM

RunAddress: 16-bit unsigned integer - cam table start address in the RAM

PlaceTMLOnline

Binary code

INITCAM

DescriptionPrepares a cam table for use. The cam tables are first downloaded into the EEPROM memory of the drive/motor, together with the rest of the TML program. Then using INITCAM command a cam table is copied from the EEPROM memory into the drive/motor RAM memory. The LoadAddress is the start address in the EEPROM memory where the cam table was downloaded and the RunAddress is the start address in the RAM memory where to copy the cam table. After the execution of this command the TML variable CAMSTART takes the value of the RunAddress

Example        

INITCAM 18864,2560;//Copy CAM table from EEPROM memory

//(address 0x49B0) to RAM memory

//(address 0xA00)