![Trinamic TMCL TMCM-6212 Firmware Manual Download Page 40](http://html1.mh-extra.com/html/trinamic/tmcl-tmcm-6212/tmcl-tmcm-6212_firmware-manual_1163068040.webp)
TMCM-6212 TMCL
™
Firmware Manual • Firmware Version V1.11 | Document Revision V1.07 • 2019-JAN-25
40 / 140
3.6.13
GIO (Get Input)
With this command the status of the available general purpose outputs of the module can be read. The
function reads a digital or an analog input port. Digital lines will read as 0 or 1, while the ADC channels
deliver their 16 bit result in the range of 0. . . 65535. In standalone mode the requested value is copied to
the accumulator register for further processing purposes such as conditional 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 state of the i/o line specified by the type parameter and the bank parameter is read.
Related commands:
SIO.
Mnemonic:
GIO <port number>, <bank number>
Binary Representation
Instruction
Type
Motor/Bank
Value
15
<port number>
<bank number> (0/1/2)
0 (don’t care)
Reply in Direct Mode
Status
Value
100 - OK
status of the port
Example
Get the value of ADC channel 0.
Mnemonic:
GIO 0, 1.
Binary Form of GIO 0, 1
Field
Value
Target address
01
h
Instruction number
0F
h
Type
00
h
Motor/Bank
01
h
Value (Byte 3)
00
h
Value (Byte 2)
00
h
Value (Byte 1)
00
h
Value (Byte 0)
00
h
Checksum
11
h
©2019 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at