EasyManua.ls Logo

TR-Electronic MP Series - Examples of Access to Parameters Via PKW Channel; Read Command P947[0]; Write Command P100 with Value 1000000

TR-Electronic MP Series
252 pages
Go to English
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...
PROFINET communication with encoTRive
TR-Electronic GmbH 2008, All Rights Reserved Printed in the Federal Republic of Germany
Page 158 of 252 TR - EMO - BA - DGB - 0019 - 08 06/06/2019
5.3.1 Examples of access to parameters via PKW channel
5.3.1.1 Read command P947[0]
The control wants to read the first element of parameter 947 "Faults":
PKE Command identifier: 7 (Request parameter value array word) + parameter
number: 947 (0x3B3)
IND Index = 0
PWE Parameter value = 0
PKW command from the control:
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
PKE
IND
PWE
0x73
0xB3
0x00
0x00
0x00
0x00
0x00
0x00
PKW response from encoTRive:
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
PKE
IND
PWE
0x43
0xB3
0x00
0x00
0x00
0x00
0x02
0xBC
Result:
encoTRive responds positively and returns the value 700 (0x2BC) = tracking error.
5.3.1.2 Write command P100 with value 1000000
The control wants to write parameter 100 "Actual value of position" with value
1000 000:
PKE Command identifier = 3 (Change parameter value (double word)) +
parameter number = 100 (0x64)
IND Index = 0
PWE Parameter value = 1000000 (0xF4240)
PKW command:
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
PKE
IND
PWE
0x30
0x64
0x00
0x00
0x00
0x0F
0x42
0x40
PKW response:
Byte 0
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
PKE
IND
PWE
0x70
0x64
0x00
0x00
0x00
0x00
0x00
0x01
Result:
encoTRive responds negatively via PKE 0x7xxx => Order cannot be executed and
PWE 0x0001 => Value cannot be changed.

Table of Contents

Related product manuals