The leader in industrial automation and control solutions

Instruction Parameters

Supported PLC Series

PLC-AESPLC-FBPLC-ES

Supported Data Registers

MXYKLFTCSZRQD@DConstant
D
n

Supported Flags

FlagBitSupport
ErrorF11.0
ZeroF11.1
CarryF11.2

Number of Steps

Steps
3

Operands

OperandDescription
DThe first operand.
Entries are only WORD data registers.
This is the location of the data register to set the bit, n to OFF.
nThe second operand.
Entries are WORD data registers or constants.
This is the bit number of the data register, D, to set to OFF.

The value range is 0 ~ 15.

Notice

Error Flag (F11.0) Notice

The error flag, F11.0, will be ON for one scan when the address of the data register assigned by @D exceeds the range of the data register, D. The range of the data register, D, is dependent on the CPU type.

Instruction Behavior

The BRST and BRSTP instructions behave as follows:

  • The value, n, is value from 0 ~ 15.
    • If the value, n, is greater than 15, the remainder from n ÷ 16 is the equivalent.
      • Example: if n = 17, the remainder is 1. This is the same as n = 1.
  • Bits turned ON by either instruction.
    • Bits can be turned OFF with the BSET or BSET

Ladder Diagram Examples

BRST

The BRST instruction sets a BOOL value in the WORD data register, D, from ON (1) to OFF (0). The BOOL value of the bit to set is defined by the value,

The BRST instruction sets a BOOL value in the WORD data register, D, from ON (1) to OFF (0). The BOOL value of the bit to set is defined by the value, n.

Currently, the value of the data register, D60, is 32,028, and the 14th bit is 1.

Currently, the value of the data register, D60, is 32,028, and the 14th bit is 1.

When the contact, M3.5, is powered ON (1), the 14th bit of the data register, D60, turns from 1 to 0.

When the contact, M3.5, is powered ON (1), the 14th bit of the data register, D60, turns from 1 to 0.

As a result, the value of the data register, D60, is now 15,644, and the 14th bit is now 0.

As a result, the value of the data register, D60, is now 15,644, and the 14th bit is now 0.

Ladder Diagram Example for MapleLogic BRST/BRSTP instruction.

BRSTP

The BRSTP one-shot instruction sets a BOOL value in the WORD data register, D, from ON (1) to OFF (0). The BOOL value of the bit to set is defined by

The BRSTP one-shot instruction sets a BOOL value in the WORD data register, D, from ON (1) to OFF (0). The BOOL value of the bit to set is defined by the value, n. Every time this instruction executes, it energizes the output only once.

Currently, the value of the data register, D65, is -25,412, and the 3rd bit is 1.

Currently, the value of the data register, D65, is -25,412, and the 3rd bit is 1.

When the contact, M4.0, is powered ON (1), the 3rd bit of the data register, D65, turns from 1 to 0.

When the contact, M4.0, is powered ON (1), the 3rd bit of the data register, D65, turns from 1 to 0.

As a result, the value of the data register, D65, is now -25,420, and the 3rd bit is now 0.

As a result, the value of the data register, D65, is now -25,420, and the 3rd bit is now 0.

Ladder Diagram Example for MapleLogic BRST/BRSTP instruction.