![Trinamic PD57-1060 Firmware Manual Download Page 60](http://html1.mh-extra.com/html/trinamic/pd57-1060/pd57-1060_firmware-manual_1163104060.webp)
PD57/60-1060 / TMCM-1060 TMCL™ Firmware Manual (V1.04 / 2011-AUG-29)
60
Copyright © 2011, TRINAMIC Motion Control GmbH & Co. KG
Motor
USB
Power
Serial
communication
GPIO
S/D
4
1
4
1
1
8
1
4
1
5
Figure 5.2: Connectors of TMCM-1060
5.7.15.1
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.
Reading both 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.
Use following program to represent the states of the input lines on the output lines:
Loop: GIO 255, 0
SIO 255, 2,-1
JA Loop
1
8
Pin
I/O port
Command
Range
3
IN_0
GIO 0, 0
0/1
4
IN_1
GIO 1, 0
0/1