Download - CyberResearch

Transcript
M-7015
3.3.9 Sub-function 38 (0x26) Set channel
enable/disable
This sub-function code is used to specify the channels to be
enabled in a module.
Request
00
01
02
03
Address
1 Byte
Function code
1 Byte
Sub function code 1 Byte
Enable/disable 1 Byte
1 to 247
0x46
0x26
0x00 ~ 0x3F, enable/disable
setting of each channel, where bit
setting
0 corresponds to channel 0, bit 1
corresponds to channel 1, etc.
When the bit is 1 it denotes that
the channel is enabled and 0
denotes that the channel is
disabled.
Note: This sub-function is only applicable to the M-7015.
Response
00
01
02
03
Address
Function code
Sub function code
Enable/disable
setting
1 Byte
1 Byte
1 Byte
1 Byte
1 to 247
0x46
0x26
0: OK
others: error.
Error Response
00
01
02
128
Address
Function code
Exception code
1 Byte
1 Byte
1 Byte
1 to 247
0xC6
03: enable/disable setting out of
range, incorrect number of
bytes received
CM 7013/15/33, M-7015/33 User’s Manual, Rev: B1.7 7PH-008-B17