Siemens SINAMICS G110M Manual page 44

Speed control of a startdrive with tia portal via profibus dp with safety integrated (via terminal) and hmi
Hide thumbs Also See for SINAMICS G110M:
Table of Contents

Advertisement

5 Functional Mechanisms of this Application
5.2 Parameter access functionality
1
Start WRREC
2
Wait for end of
WRREC
3
Check result of
WRREC
4
Start RDREC
5
Wait for end of
RDREC
6
Check result of
RDREC
7
Check for errors,
copy outputs
8
Finalize job
Calling the system functions "WRREC" and "RDREC"
Once the currently required control bits have been set in the step sequence of FB
20 "Parameters", the "WRREC" instruction "Write data set" and the "RDRE"
instruction "Read data set" are called. They can be found in the "instructions" task
card of the TIA Portal under...
Via the "READ_WRITE" input variable of FB20 it is selected which of the two calls
enables the "WRREC" instruction. Both calls only differ in which DB is sent to the
SINAMICS drive: the one to write parameters or the one to read parameters.
SINAMICS G120 DP at S7-1200
Entry-ID: 70155469,
V1.4,
The "REQ" signal of the "WRREC" instruction is set, the
parameter values to be written are entered in DB
"write_drive_parameters" and step 2 is activated.
If the "BUSY" signal of the "WRREC" instruction goes to 0
again, step 3 is activated.
It is checked whether the data set was written successfully.
If yes, the "REQ" signal of the "WRREC" instruction is
deleted again and step 4 is activated.
If the "WRREC" instruction reports error 16#DF80_B500
(peer not ready), step 3 is activated again so that "WRREC"
repeats the job.
If a different error has occurred, the "REQ" signal of the
"WRREC" instruction is deleted, an internal error bit is set
and step 7 is activated.
The "REQ" signal of the "RDREC" instruction is set and step
5 is activated.
If the "BUSY" signal of the "RDREC" instruction goes to 0
again, step 6 is activated.
It is checked whether the data set was read successfully. If
yes, the "REQ" signal of the "RDREC" instruction is deleted
again and step 7 is activated.
If "RDREC" reports error 16#DE80_B500 (peer not ready),
step 5 is activated again so that the "RDREC" instruction
repeats the job.
If a different error has occurred, the "REQ" signal of the
"RDREC" instruction is deleted, an internal error bit is set and
step 7 is activated.
It is checked whether one of the internal error bits is set or
whether an error bit has been set in the response of the
converter.
In the event of an error
If no error bit has been set, the read times for the read
job are output and step 8 is activated.
If no error bit has been set, the write times for the write
job are output and step 8 is activated.
The "busy" signal is deleted, the "done" signal is set and step
0 is activated again.
> Expanded instructions
> Distributed I/Os.
07/2018
The respective output bit parameter "drive_error" or
"transmission error" is set,
the output bit parameter "busy" is deleted,
999999.9s is output as read time,
step 0 activated.
44

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents