Herunterladen Diese Seite drucken

TR-Electronic 65 Serie Montageanleitung Seite 167

Vorschau ausblenden Andere Handbücher für 65 Serie:

Werbung

Example:
To perform the Preset, with the aid of the System-Function-Block "SFB53" (WRREC),
an acyclic write service must be executed. Therefore, no more cyclical output data are
needed to provide a position value.
Figure 9: Preset execution by means of the CPU 315-2 PN/DP and SFB53
Function call, example:
CALL „WRREC" , DB53
REQ
ID
INDEX
LEN
DONE
BUSY
ERROR
STATUS
RECORD
For ID, here 0 is specified. This corresponds to the logical address of the
measuring system (address of the input data in HEX)
Index = 2 means PRESET function
The variable encoder contains the desired value
Further information about the SFB53 can be taken from the system documentation of
the control unit.
6.7.1 Switch-on / Switch-off the Data status
If the Preset adjustment function is executed the cyclic Real-Time-Data are set to
"BAD", see chapter "Data status" on page 124. When the procedure was finished
completely, the data status is reset to "GOOD". If a changing of the status is
undesired, this function can be switched off by setting the two most significant bits:
Output double word ODx
Byte
Bit
Data
ON
OFF
Printed in the Federal Republic of Germany
04/25/2022
:=TRUE
:=DW#16#0
:=2
:=4
:=
:=
:=
:=
:=#encoder
x+0
31 – 24
31
30
29
24
2
-2
2
- 2
00
xxxxxx
11
xxxxxx
Preset adjustment value (binary)
TR-ECE-BA-DGB-0063 v15
x+1
23 – 16
15 – 8
23
16
15
2
- 2
2
xxxxxxxx
xxxxxxxx
xxxxxxxx
xxxxxxxx
x+2
x+3
7 – 0
8
7
- 2
2
- 2
xxxxxxxx
xxxxxxxx
 TR-Electronic GmbH 2007, All Rights Reserved
Page 123 of 131
0

Werbung

loading