You have the option to enable the Motor break from the Drive IO.
First please verify PN511 is set to the correct IO terminal configuration:
Connect an external relay as follow: