![Control Techniques Profibus-DP Скачать руководство пользователя страница 41](http://html.mh-extra.com/html/control-techniques/profibus-dp/profibus-dp_user-manual_2658677041.webp)
Issue Number: 3
41
9.3.3
Reset Using DPL Code
If both of the menu 9 logic functions within the Unidrive are being used,
some DPL code can be used to monitor the control word, and reset the
Unidrive. The code should be placed in the SPEED, ENCODER or
CLOCK task to ensure frequent scanning of the RESET bit.
ENCODER {
reset% = #18.31
; new state of RESET signal
; check for 0 to 1 transition of RESET bit
IF reset% = 1 AND old_reset% = 0 THEN
; set #10.38 to 100 until Drive Healthy bit is set
DO
#10.38
=
100
LOOP WHILE #10.01 = 0
ENDIF
old_reset% = reset% ; store current state of RESET signal
}
If another trip condition occurs while the Unidrive is tripped, the Unidrive
must be reset twice before all trips are cleared. This is achieved by
using the
DO...WHILE
loop until the Drive Healthy bit (#10.01) is set.
The DPL program will also be reset, and the INITIAL task will run when
the reset sequence ins complete.
NOTE
If a run-time (program) error occurs in the UD70, the DPL program will
stop, and the master controller will not be able to reset the Unidrive
using the Profibus-DP network. In this case, the Unidrive node can
only be reset using non-cyclic data to access #10.38.
9.4 Non-Cyclic
Parameter
Store
Unidrive: #17.19
0 = no action
1 = store Profibus-DP configuration
Setting #17.19 to 1 will store all #20.PP parameters, and all internal 32-
bit _Pxx% and _Qxx% registers. The Profibus-DP interface will also be
reset, and may cause the Profibus-DP master to indicate a network
error. Any changes made to the configuration via the non-cyclic
communications channel will take effect when the reset sequence has
been completed.
NOTE
The Unidrive Profibus-DP interface will take approximately 700ms to
complete the reset sequence, after which the network can be re-
started.