Trinamic 11-0011 TMCM-171 BLDC Output For 3-phase BLDC Motors 11-0011 数据表
产品代码
11-0011
TMCL Reference Manual
28
Trinamic Motion Control GmbH & Co KG
Sternstraße 67
D – 20357 Hamburg, Germany
http://www.trinamic.com
3.15 GIO – Get Input / Output
Description: This function reads a digital or analogue input port. So, digital lines will read 0 and 1, while the ADC
channels deliver their 10 bit result in the range of 0…1023. In stand-alone mode the requested value is copied to
the "accumulator" (accu) for further processing purposes such as conditioned jumps. In direct mode the value is
only output in the “value” field of the reply, without affecting the accumulator. The actual status of a digital output
line can also be read.
Internal function: The specified line is read.
Related commands: SIO, WAIT
Mnemonic: GIO <port number>, <bank number>
Binary representation:
channels deliver their 10 bit result in the range of 0…1023. In stand-alone mode the requested value is copied to
the "accumulator" (accu) for further processing purposes such as conditioned jumps. In direct mode the value is
only output in the “value” field of the reply, without affecting the accumulator. The actual status of a digital output
line can also be read.
Internal function: The specified line is read.
Related commands: SIO, WAIT
Mnemonic: GIO <port number>, <bank number>
Binary representation:
INSTRUCTION NO.
TYPE
MOT/BANK
VALUE
15
<port number>
<bank number>
(don't care)
Reply in direct mode:
STATUS
VALUE
100 – OK
<status of the
port>
port>
Example: get the analogue value of ADC channel 3
Mnemonic: GIO 3, 1
Binary:
Byte Index
0
1
2
3
4
5
6
7
8
Function
Target-
address
address
Instruction
Number
Number
Type
Motor/
Bank
Bank
Operand
Byte3
Byte3
Operand
Byte2
Byte2
Operand
Byte1
Byte1
Operand
Byte0
Byte0
Checksum
Value (hex)
$01
$0f
$03
$01
$00
$00
$00
$00
$14
Reply:
Byte Index
0
1
2
3
4
5
6
7
8
Function
Host-
address
address
Target-
address
address
Status Instruction Operand
Byte3
Operand
Byte2
Byte2
Operand
Byte1
Byte1
Operand
Byte0
Byte0
Checksum
Value (hex)
$02
$01
$64
$0f
$00
$00
$01
$fa
$72
value: 506