Sub-Function 38(0X26)-Write The Enabled/Disable Status Of Channels - ICP DAS USA ZT-2005-C8 User Manual

Table of Contents

Advertisement

5.3.10.6 Sub-function 38(0x26)-Write The
Enabled/Disable status of Channels
Desctiption
This sub-function code is used to specify the channels to be enabled in a
module.
Syntax
Byte
00
01
02
03
03~04
Response
Byte
00
01
02
03
04~05
Error Response
Byte
00
01
02
03~04
Examples
Command
Response
Sets the enable/disable status of channels from module address 26, and reponse
channel 0, 2, 4, 6 are disable, channel 1, 3, 5, 7 are enable.
ICP DAS, ZT-2005-C8 User Manual, Version v1.0.1
Copyright © 2014 by ICP DAS Co., Ltd. All Rights Reserved.
Description
Module address
Function Code
Sub function code
Enabled/Disabled status
Checksum (CRC16)
Description
Module address
Function Code
Sub function code
Enabled/Disabled status
Checksum (CRC16)
Description
Module address
Function Code
Exception Code
Checksum (CRC16)
1A 46 26 AA [7C F6]
1A 46 26 00 [FC 89]
Value
1~247
0x46
0x26
0x00~0xFF, enabled/disabled
status of each channel, where bit 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.
Two bytes checksum
Value
1~247
0x46
0x26
0:OK
Other:Error
Two bytes checksum
Value
1~247
0xC6
Refrt to section 5.3
Two bytes checksum
Page 57

Advertisement

Table of Contents
loading

Table of Contents