![Trinamic TMCM-351 Firmware Manual Download Page 56](http://html1.mh-extra.com/html/trinamic/tmcm-351/tmcm-351_firmware-manual_1163054056.webp)
TMCM-351 TMCL Firmware V4.45 Manual (Rev. 1.06 / 2014-MAY-16)
56
www.trinamic.com
4.6.31
AGP (accumulator to global parameter)
The content of the accumulator register is transferred to the specified global parameter. For practical usage,
the accumulator has to be loaded e.g. by a preceding GAP instruction. The accumulator may have been
modified by the CALC or CALCX (calculate) instruction.
Note that the global parameters in bank 0 are EEPROM-only and thus should not be modified automatically
by a standalone application.
For a table with parameters and bank numbers which can be used together with this command please refer
to chapter 6.
Related commands:
AAP, SGP, GGP, SAP, GAP, GIO, CALC, CALCX
Mnemonic:
AGP <parameter number>, <bank number>
Binary representation:
INSTRUCTION NO.
TYPE
MOT/BANK
VALUE
35
<parameter number>
<bank number>
don’t care
Reply in direct mode:
STATUS
VALUE
100 – OK
don’t care
Example:
Copy accumulator to TMCL user variable #3
Mnemonic:
AGP 3, 2
Binary:
Byte Index
0
1
2
3
4
5
6
7
Function
Target-
address
Instruction
Number
Type
Motor/
Bank
Operand
Byte3
Operand
Byte2
Operand
Byte1
Operand
Byte0
Value (hex)
$01
$23
$03
$02
$00
$00
$00
$00