EasyManua.ls Logo

HCS DAC-42A - Simple Commands; CMD 3 Master Read; CMD = 3, Master Read Parameters (7 Bytes); CMD = 3, Response from Slave (4 + CNT Bytes)

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 42
DAC-42(A)-x-PN
Manual
Revision: 1.0
22.01.2024
8 Simple commands
8.1 CMD 3 Master Read
8.1.1 CMD = 3, Master Read parameters (7 bytes)
Write first…
Byte
Abbreviation
Description
0
TADR
Telegram address, defined by the user, Range 0..255, 0..0xFF
1
SADR
= 01
Slave address
2
CMD
Command: 3 = Read multiple parameters by the master
3
IDH
High byte parameter ID of first parameter
4
IDL
Low byte parameter ID of
first parameter
5
N
-
high
High
-
Byte Number parameters
6
N
-
low
Low
-
Byte Number parameters
…Write last
TADR Telegram address, defined by the Profinet-Master.( Set by the User )
SADR 1 = standard (single slave)
CMD Command: 3 = Read parameter by the master
IDH,IDL H-Byte and Low-Byte of parameter-ID in HEX
0x0000 .. 0x0109 = Valid ID-Range. Please take into account the gaps in the parameter list
N-high High-Byte Number parameters (words), normally zero
N-low Low-Byte Number parameters (words), 1 to 8 (0x08)
(maximal 8 parameters readable at once)
8.1.2 CMD = 3, Response from Slave (4 + CNT bytes)
Write first…
Byte
Abbreviation
Description
0
TADR
Telegram address, defined by the read command, Range 0..255, 0..0xFF
1
SADR
Slave
address
2
CMD
Command: 3 = Read multiple parameters by the master
3
CNT
N*2, Number of data bytes
4
DAT1H
High byte value of first parameter
5
DAT1L
Low Byte value of first parameter
If CNT > 2: ……
CNT+2 = N
DATnH
High byte value of last
(n)parameter
CNT+3 = N
DATnL
Low Byte value of last (n)parameter
…Write last
TADR Telegram address, defined by the Profinet-Master. (Set by the read command)
SADR Slave address, 1 = standard (single slave)
CMD Command: 3 = Read parameter by the master
CNT N*2, Number of data bytes (Maximal 16 data bytes)
IDH,IDL H-Byte and Low-Byte of parameter-ID in HEX
0x0000 .. 0x00109 = Valid ID-Range
DAT1H.. DAT nH,
DAT1L.. DAT nL, Two data bytes in HEX, without decimal sign
0x7FFF == +32767
0x8000 == -32768

Table of Contents