This is part of 2.2.0-devlatest release: 2.1.0.
🚧 Development version – not released yet! 🚧

MLxxWriteBoolInDint

0.2.0

Write a single bit in a `DINT`.

Function for writing a Bool in a DintOfBools.[BitNr]

Version history

0.2.0

  deGroot

Changes

Changed:
  • calculate mask using FOR loop
  • function return value set to VOID
show full history

0.1.0

  deGroot

Changes

Changed:

Overview

kindnametypedefaultcomment
inputBitNrDINTbitnumber for writing [0-31]
inputBitStatusBOOLbitstatus to write DintOfBools.[BitNr]
in_outDintOfBoolsDINTDINT to be accessed as 32 BOOL's

Details

BitNr

DINT

Bitnumber for writing [0-31]

BitStatus

BOOL

Bitstatus to write DintOfBools.[BitNr]

DintOfBools

DINT

DINT to be accessed as 32 BOOL's

Implementation

Snippet of the function call:
MLxxWriteBoolInDint(
  BitNr := , 
  BitStatus := , 
  DintOfBools := );

Pages built with Hugo - 14 Nov 2025 17:47 CET