TMCM-1310 TMCL Firmware V1.11 Manual (Rev. 1.16 / 2014-MAR-19)
40
www.trinamic.com
R
EADING ALL DIGITAL INPUTS WITH ONE
GIO
COMMAND
:
-
Set the type parameter to 255 and the bank parameter to 0.
-
In this case the status of all digital input lines will be read to the lower eight bits of the accumulator.
U
SE FOLLOWING PROGRAM TO REPRESENT THE STATES OF THE INPUT LINES ON THE OUTPUT LINES
:
Loop: GIO 255, 0
SIO 255, 2,-1
JA Loop
6.8.15.2
I/O Bank 1 – Analogue Inputs
The ADIN lines can be read back as digital or analogue inputs at the same time. The digital states
can be accessed in bank 0.
F
URTHER READ
-
OUT COMMANDS
I/O port
Command
Supply voltage [1/10V]
GIO 8, 1
Temperature [˚C]
GIO 9, 1
Coil current A [mA]
GIO 10, 1
Coil current B [mA]
GIO 11, 1
Input current [mA]
GIO 12, 1
6.8.15.3
I/O Bank 2 – States of Digital Outputs
The states of the OUT lines (that have been set by SIO commands) can be read back using bank 2.
I/O Connector
Pin
I/O port
Command
Range
0
3
AIN_0
GIO 0, 1
0… 4095
1
3
AIN_4
GIO 4, 1
0… 4095
I/O Connector
Pin
I/O port
Command
Range
0
7
OUT_0
GIO 0, 2, <n>
1/0
0
8
OUT_1
GIO 1, 2, <n>
1/0
0
9
OUT_2
GIO 2, 2, <n>
1/0
0
10
OUT_3
GIO 3, 2, <n>
1/0
1
7
OUT_4
GIO 4, 2, <n>
1/0
1
8
OUT_5
GIO 5, 2, <n>
1/0
1
9
OUT_6
GIO 6, 2, <n>
1/0
1
10
OUT_7
GIO 7, 2, <n>
1/0