EasyManua.ls Logo

HCS DAC-42A - CMD = 15, Error from DAC-4 X(A) (4 Bytes); Examples, CMD = 15, Single Slave, DAC-4 X(A)

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 48
DAC-42(A)-x-PN
Manual
Revision: 1.0
22.01.2024
9.3 CMD = 15, 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: 0x8F = write failed
EXCE Exception:
1 = Command not supported
2 = Wrong ID
3 = Wrong Data Value
4 = Writing of ID failed
5 = timeout (Modbus)
6 = Internal checksum error (Modbus)
7 = Invalid number of connected slaves
8 = timeout slave, address wrong or not installed
9 = Profinet node (SADR = 0) send, received data length to small. The data length of the selected
GSD module is too small.
Example for error response:
Module 3 is not installed and SNUM 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
0x8F
ERR
Error, Bit „7“ with command 0x0F in decimal 15 is set
3
0x08
EXCE
timeout slave, address wrong or not installed
9.4 Examples, CMD = 15, single slave, DAC-4x(A)
E22 is set to 1 and hardware Enable is connected to the DAC-4x(A).
Master writes set value of 1.000 V to slave (module):
Byte
Data
Abbreviation
Description
0
0x23
TADR
Telegram address, defined by the user, Range 0..255, 0..0xFF
1
0x01
SNUM
0x01 means single slave
2
0x0F
CMD
0x0F in decimal 15
3
0x00
DAT1.1
Control byte
, 0x00 (default value, no bus
-
disable)
4
(1000)
DAT1.2H
Process Value1 = A1.01, set value branch 1
0x03E8 ( = 1000 in decimal = 1.000V)
5
DAT1.2L
6
(0)
DAT1.3H
Process Value2 = A1.02, feedback value branch 1
0x0000 ( = 0 in decimal = 0.000V)
7
DAT1.3L
Response slave (module) no.1:
Byte
Data
Abbreviation
Description
0
0x23
TADR
Response telegram address (defined by the write command)
1
0x01
SADR
Actual slave address
2
0x0F
CMD
0x0F in decimal 15
3
0x40
DAT1.1H
Status word
High byte of module state = 0x40 (HW enable = active)
4
0x00
DAT1.1L
Low byte of module state = 0x00
5
0x00
(0)
DAT1.2H
VALUE1 = d1.11
0x0000 ( = 0 in decimal = 0.000V )
6
0x00
DAT1.2L
7
0x03
(1000)
DAT1.3H
VALUE2 = d1.10
0x03E8 ( = 1000 in decimal = 1.000V)
8
0xE8
DAT1.3L
(x) = value in decimal.

Table of Contents