Sie sind auf Seite 1von 2

SIMOTION: PROFIdrive scaling reference values

Question:
Process data (PZD) can be exchanged cyclically between the user program in SIMOTION and a SINAMICS drive via
a telegram extension. However, the data is not transferred in the technological unit present in the drive, but scaled
according to DPV1, as an integer in hexadecimal format (in relation to 4000 Hex or 4000 0000 Hex).
How can the received PZD actual values be converted back to the technological variable?
How do the PZD setpoints have to be scaled for transfer to the drive?
Solution:
The PZD data can be accessed in SIMOTION via I/O addresses.
The PZD data is always related to the standard value of 4000 Hex for WORD or 4000 0000 Hex for DWORD for the
data exchange. The following applies for the relationship:

PZD value

Parameter value

__________________

Standard value
PZD value:
Parameter wert:
Standard value:
Reference value:

____________________

Reference value

PZD value transferred as integer via the bus in HEX format.


Technological value of the drive parameter which is to be read or written in REAL (FLOAT) format.
4000 Hex for WORD or 4000 0000 Hex for DWORD (corresponds to 100% of the reference value).
Technological reference value (p200x, 100 C or 100%) in REAL (FLOAT) format for which the
standard value will be transferred. The meaning of this numerical value depends on to which
category the signal belongs that is to be transferred:
4000 Hex (4000 0000 Hex) corresponds to p2000 ... p2007 reference speed, reference voltage,
etc.
4000 Hex (4000 0000 Hex) corresponds to 100 C temperature
4000 Hex (4000 0000 Hex) corresponds to 100% percent

The following program example contains two functions for the conversion or calculation of PZD values in WORD
format (4000 Hex).
a)

The FC_PZD_read function converts the received PZD values back to the technological variable. The formula for
the conversion is as follows:

PZD value

Parameter value =

__________________

x Reference value

Standard value
b)

The FC_PZD_write function scales the technological values for the transfer before sending. The formula for the
conversion is as follows:

Parameter value
PZD value =

_____________________

Standard value

Reference value

Subject to change without prior notice.


Siemens AG 2013
1-150SVUY-Attachment_en.doc

Page 1 / 2

Edition 11.03.2013

INTERFACE
FUNCTION FC_PZD_read;
FUNCTION FC_PZD_write;
END_INTERFACE
IMPLEMENTATION
FUNCTION FC_PZD_read : REAL // back calculation of the received PZD value to
parameter value
VAR_INPUT
PZD_Input_Value : WORD; // received PZD value
Reference_Value : REAL; //reference value (p200x, 100 C or 100%)
END_VAR
FC_PZD_read := (INT_TO_REAL(WORD_TO_INT(PZD_Input_Value)) / 16384) *
Reference_Value;
END_FUNCTION

FUNCTION FC_PZD_write : WORD // calculation of the PZD value for transferring to


the drive
VAR_INPUT
Output_Value: REAL;
// parameter value for transfer to the drive
Reference_Value: REAL;
// reference value (p200x, 100 C or 100%)
END_VAR
FC_PZD_write:= INT_TO_WORD(REAL_TO_INT(Output_Value / Reference_Value *
16384));
END_FUNCTION
END_IMPLEMENTATION

Subject to change without prior notice.


Siemens AG 2013
1-150SVUY-Attachment_en.doc

Page 2 / 2

Edition 11.03.2013

Das könnte Ihnen auch gefallen