Herunterladen Inhalt Inhalt Diese Seite drucken

Examples Of Access To Parameters Via Pkw Channel; Read Command P947[0]; Write Command P100 With Value 1000000 - TR-Electronic MP-Series Benutzerhandbuch

Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

PROFINET communication with encoTRive

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
0x73
PKW response from encoTRive:
Byte 0
0x43
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:
PKW command:
Byte 0
0x30
PKW response:
Byte 0
0x70
Result:
encoTRive responds negatively via PKE 0x7xxx => Order cannot be executed and
PWE 0x0001 => Value cannot be changed.
 TR-Electronic GmbH 2008, All Rights Reserved
Page 158 of 252
Byte 1
Byte 2
PKE
IND
0xB3
0x00
Byte 1
Byte 2
PKE
IND
0xB3
0x00
PKE Command identifier = 3 (Change parameter value (double word)) +
parameter number = 100 (0x64)
IND Index = 0
PWE Parameter value = 1000000 (0xF4240)
Byte 1
Byte 2
PKE
IND
0x64
0x00
Byte 1
Byte 2
PKE
IND
0x64
0x00
TR - EMO - BA - DGB - 0019 - 08
Byte 3
Byte 4
Byte 5
0x00
0x00
0x00
Byte 3
Byte 4
Byte 5
0x00
0x00
0x00
Byte 3
Byte 4
Byte 5
0x00
0x00
0x0F
Byte 3
Byte 4
Byte 5
0x00
0x00
0x00
Byte 6
Byte 7
PWE
0x00
0x00
Byte 6
Byte 7
PWE
0x02
0xBC
Byte 6
Byte 7
PWE
0x42
0x40
Byte 6
Byte 7
PWE
0x00
0x01
Printed in the Federal Republic of Germany
06/06/2019

Werbung

Kapitel

Inhaltsverzeichnis
loading

Diese Anleitung auch für:

Ma-seriesMd-300

Inhaltsverzeichnis