PD42-1270 TMCL
™
Firmware Manual • Firmware Version V1.00 | Document Revision V1.0 • 2017-Mar-02
18 / 91
3.6.2
GAP (Get Axis Parameter)
Most motion / driver related parameters of the PD42-1270 can be adjusted using e.g. the SAP command.
With the GAP parameter they can be read out. In standalone mode the requested value is also transferred
to the accumulator register for further processing purposes (such as conditional jumps). In direct mode
the value read is only output in the value field of the reply, without affecting the accumulator.
Info
For a table with parameters and values that can be used together with this
command please refer to section
4
.
Internal function:
The specified value gets copied to the accumulator.
Related commands:
SAP, AAP.
Mnemonic:
GAP <parameter number>, <axis>
Binary Representation
Instruction
Type
Motor/Bank
Value
6
see chapter
4
0
<value>
Reply in Direct Mode
Status
Value
100 - OK
value read by this command
Example
Get the actual position of motor 0.
Mnemonic:
GAP 1, 0.
Binary Form of GAP 1, 0
Field
Value
Target address
01
h
Instruction number
06
h
Type
01
h
Motor/Bank
00
h
Value (Byte 3)
00
h
Value (Byte 2)
00
h
Value (Byte 1)
00
h
Value (Byte 0)
00
h
Checksum
08
h
©2017 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at
www.trinamic.com
Read entire documentation.