---
tag: m0511
title: Unlock Machine
brief: Unlock the machine if it has a passcode
author: shitcreek, thinkyhead

since: 2.0.6.1
requires: PASSWORD_FEATURE
group: security

codes: [ M511 ]
related: [ M510, M512 ]

notes:
  - Requires `PASSWORD_FEATURE`.

parameters:
  -
    tag: P
    optional: false
    description: The passcode to try.
    values:
      -
        tag: passcode
        type: int

example:
  -
    pre: Unlock a machine with passcode '12345'
    code: M511 P12345
---
Check the given passcode and unlock the machine if it is correct. Otherwise, delay for a period of time before allowing another attempt.
