![ICP DAS USA M-7024 Скачать руководство пользователя страница 155](http://html1.mh-extra.com/html/icp-das-usa/m-7024/m-7024_user-manual_614159155.webp)
I-7021/22/24, M-7022/24/28 User Manual, Rev: B2.3
155
M-7024R, M-7024U
3.2 02 (0x02) Read Discrete Inputs
This function code is used to read the digital input status of a
module.
Request
00
Address
1 Byte
1 to 247
01
Function code
1 Byte
0x02
02 ~ 03 Starting channel
2 Bytes 0x20 to 0x24 for M-7024R
0x20 to 0x23 for M-7024U
where 0x20 corresponds to
channel 0, 0x21 corresponds to
channel 1, etc
04 ~ 05 Number of input
channels
2 Bytes 1 to 5 for M-7024R
1 to 4 for M-7024U
Note:
This function is only available to the M-7024R and M-7024U.
Response
00
Address
1 Byte
1 to 247
01
Function code
1 Byte
0x02
02
Byte count
1 Byte
1
03
Data of input
channels
1 Byte
A bit corresponds to a channel.
When the bit is 1 it denotes that
the channel is on. If the bit is 0 it
denotes that the channel is off.
Error Response
00
Address
1 Byte
1 to 247
01
Function code
1 Byte
0x82
02
Exception code
1 Byte
02: starting channel out of range
03: (starting c number of
input channels) out of range,
incorrect number of bytes
received
Содержание M-7024
Страница 9: ...I 7021 22 24 M 7022 24 28 User Manual Rev B2 3 9 1 2 Terminal Assignment 7021 7021P 7022 ...
Страница 10: ...I 7021 22 24 M 7022 24 28 User Manual Rev B2 3 10 7024 7024L 7024R ...
Страница 11: ...I 7021 22 24 M 7022 24 28 User Manual Rev B2 3 11 7024U 7028 ...
Страница 46: ...I 7021 22 24 M 7022 24 28 User Manual Rev B2 3 46 1 13 3 Wall Mounting ...