M-7026
M-7026 User Manual Rev: 1.5 Date: 2016/03/10
155
3.1 Function 02 (0x02) - Read the Status of
the Digital Input Channels
This function code is used to read the status of the Digital Input for
the module.
Request
00
Address
1 Byte 1 to 247
01
Function Code
1 Byte 0x02
02 - 03 Starting Channel
2 Bytes 0x20 to 0x22, where 0x20 corresponds
to channel 0, and 0x21 corresponds to
channel 1, etc.
04 - 05 Number of Input
Channels (N)
2 Bytes N, 1 to 5 (Starting c N)
Response
00
Address
1 Byte 1 to 247
01
Function Code
1 Byte 0x02
02
Byte Count
1 Byte 1
03
Data from Input
Channels
1 Byte A bit corresponds to a channel. When the
bit is 0, it denotes that the channel is
inactive. If the bit is 0, it denotes that the
channel is active.
Error Response
00
Address
1 Byte 1 to 247
01
Function Code
1 Byte 0x82
02
Exception Code
1 Byte 03: the (starting c the number of
input channels) is out of range, or an
incorrect number of bytes were
received.
Summary of Contents for M-7026
Page 8: ...M 7026 User Manual Rev 1 5 Date 2016 03 10 8 1 3 Pin Assignments...
Page 12: ...M 7026 User Manual Rev 1 5 Date 2016 03 10 12 1 5 Block Diagram...
Page 13: ...M 7026 User Manual Rev 1 5 Date 2016 03 10 13 1 6 Application Wiring...
Page 43: ...M 7026 M 7026 User Manual Rev 1 5 Date 2016 03 10 43 Section 1 8 1 Analog Input Calibration...
Page 47: ...M 7026 M 7026 User Manual Rev 1 5 Date 2016 03 10 47 Section 5 1 INIT Mode...
Page 90: ...M 7026 M 7026 User Manual Rev 1 5 Date 2016 03 10 90 Section 5 2 Dual Watchdog Operation...
Page 113: ...M 7026 M 7026 User Manual Rev 1 5 Date 2016 03 10 113 Section 2 68 AARECi...
Page 127: ...M 7026 M 7026 User Manual Rev 1 5 Date 2016 03 10 127 Section 2 62 AADODD...
Page 129: ...M 7026 M 7026 User Manual Rev 1 5 Date 2016 03 10 129 Related Commands Section 2 61 AADI...
Page 141: ...M 7026 M 7026 User Manual Rev 1 5 Date 2016 03 10 141 Related Commands Section 2 53 AACECi...
Page 180: ...M 7026 M 7026 User Manual Rev 1 5 Date 2016 03 10 180...
Page 183: ...M 7026 M 7026 User Manual Rev 1 5 Date 2016 03 10 183...