Beruflich Dokumente
Kultur Dokumente
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
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
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
Page 2 / 2
Edition 11.03.2013