I-7088 and M-7088 User Manual, Rev: A1.2 7MH-026-A12
134
3.1. 02 (0x02) Read PWM Status
This function code is used to read the PWM status of a module.
Request
00
Address
1 Byte
1 to 247
01 Function
code 1
Byte
0x02
02 ~
03
Starting channel
2 Bytes 0x00 to 0x07, where 0x00
corresponds to channel 0,
0x01 corresponds to PWM
channel 1, etc.
04 ~
05
Number of input
channels
2 Bytes N, 1 to 8; (Starting channel
+ N) This should be less
than or equal to 0x08
Response
00
Address
1 Byte
1 to 247
01 Function
code 1
Byte
0x02
02
Byte count
1 Byte
1
03
Input channel data 1 Byte
A bit corresponds to a
channel. When the bit is 1,
it denotes that the channel
is outputting PWM signals.
If the bit is 0 it denotes that
the channel is not set to
use PWM output.