EasyManua.ls Logo

HCS DAC-42A - CMD = 6, Error from DAC-4 X(A) (4 Bytes); Telegram Example CMD = 6; Example, Write Parameter

HCS DAC-42A
70 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DAC-42(A)-x-PN
Page 45
DAC-42(A)-x-PN
Manual
Revision: 1.0
22.01.2024
8.3.3 CMD = 6, Error from DAC-4x(A) (4 bytes)
Write first…
Byte
Abbreviation
Description
0
TADR
Telegram
address, defined by the write command, Range 0..255, 0..0xFF
1
SADR
Slave address
2
ERR
Error code
3
EXCE
Exception
…Write last
ERR Error code: 0x86 = write failed
EXCE Exception:
1 = Command not supported
2 = Wrong ID
3 = Wrong Data Value
4 = Writing of ID failed
5 = timeout slave, address wrong or not installed or
Invalid number of connected slaves
6 = Internal checksum error (Modbus)
Example for error response:
SADR 3 is not valid and SADR in the master telegram is set to 3
Byte
Data
Abbreviation
Description
0
0x23
TADR
Response telegram address (defined by the write command)
1
0x03
SADR
Actual slave address
2
0x86
ERR
Error, Bit „7“ with command 0x06 is set
3
0x05
EXCE
timeout
slave, address wrong or not installed
8.4 Telegram example CMD = 6
8.4.1 Example, write parameter
Master wants to write parameter „C1.07” with value 1.000 V:
ID = 0x0030
DATA = 0x3E8 ( = 1000 in decimal)
TADR = 0x23
SADR = 0x01
Byte
Data
Abbreviation
0
0x23
TADR
1
0x01
SADR
2
0x06
CMD
3
0x00
IDH
4
0x30
IDL
5
0x03
DATL
6
0xE8
DATH
Response from slave (module), command was successful executed
ID = 0x0030
DATA = 0x3E8 ( = 1.000 V)
Byte
Data
Abbreviation
0
0x23
TADR
1
0x01
SADR
2
0x06
CMD
3
0x00
IDH
4
0x30
IDL
5
0x03
DATL
6
0xE8
DATH

Table of Contents