Trinamic 11-0011 TMCM-171 BLDC Output For 3-phase BLDC Motors 11-0011 Datenbogen

Produktcode
11-0011
Seite von 134
 
TMCL Reference Manual 
29 
 
 
 
Trinamic Motion Control GmbH & Co KG 
Sternstraße 67 
D – 20357 Hamburg, Germany 
http://www.trinamic.com 
 
Overview of available input ports: 
I/O  bank  0  –  digital  inputs.  The  ADIN  lines  can  be  read  as  digital  or  analogue  inputs  at  the  same  time.  The 
analogue values can be accessed in bank 1.  
Note: When using a digital input it is often useful to switch on its pull-up resistor. Please see the SIO command 
on how to do this. 
Type 
I/O line 
Range 
ADIN0 
0/1
 
ADIN1 
0/1 
ADIN2 
0/1
 
ADIN3 
0/1 
ADIN4 
0/1 
ADIN5 
0/1 
ADIN6 
0/1
 
ADIN7 
0/1 
OPTO1 
0/1
 
OPTO2 
0/1 
10 
SHUTDOWN 
0/1 
 
I/O bank 1 – analogue inputs (not on all modules). The ADIN lines can be read as digital or analogue inputs at the 
same time. The digital states can be accessed in bank 0.  
Note:  When  using  an  input  in  analogue  mode  its  pull-up  resistor  must  be  switched  off.  Please  see  the  SIO 
command on how to do this. 
Type 
I/O line  Range 
ADIN0 
0…1023
 
ADIN1 
0…1023 
ADIN2 
0…1023
 
ADIN3 
0…1023
 
ADIN4 
0…1023 
ADIN5 
0…1023
 
ADIN6 
0…1023 
ADIN7 
0…1023
 
 
I/O bank 2: here, the status of the digital outputs (see section 3.14) can be read back. 
 
Note: Not all I/O lines are available on every module. Please see the documentation of the individual module for 
details. There may also be more I/O lines on newer modules. 
 
Extension in TMCL V3.30 and 6.22: 
On the TMCM-30x, TMCM-34x and TMCM-61x modules it is now possible to read all eight digital inputs with only 
one GIO command. This can be done by setting the type parameter to 255 and the bank parameter to 0. In this 
case  the  status  of  all  eight  digital  input  lines  will  be  read  to  the  lower  eight  bits  of  the  accumulator.  So  the 
following program can be used to represent the states of the eight input lines on the eight output lines: 
Loop: GIO 255, 0 
SIO 255,2,-1 
 JA Loop