DirectWriteBit Tag Command

Help Contents

Introduction

The DirectWriteBit tag command writes a bit value directly to a data source. A data source can any of the following:

Parameters

DataAddress : ANY_STRING

The address of the data in the data source. The format of this parameter depends on the type of data source. See the remarks section to determine which format to use.

Value : BOOL

The value to write.

Remarks

The DirectWriteBit tag command writes a single bit directly to a data source.

To use the DirectWriteBit tag command both of these conditions must be met:

The format of the DataAddress parameter depends on the type of data source. Use this table to choose the appropriate format for each data source:

Data Source TagDataAddress Format
Allen Bradley PLC Allen Bradley PLC Data Address Format
Idec Micro PLC Idec Micro PLC Data Address Format
Mitsubishi Melsec PLC Mitsubishi Melsec PLC Data Address Format
Modbus Device Modbus PLC Data Address Format
MQTT Connection MQTT Topic name
Omron PLC Omron PLC Data Address Format
Siemens S7 PLC Siemens S7 PLC Address Format

You can execute DirectWriteBit tag command from:

Requirements

Fernhill SCADA VersionVersion 2.3
Required User RightDirectWrite

Applies To

The DirectWriteBit tag command can be used with these tag types:

Further Information

DirectWriteByte

For information about writing an array of bytes to a data source.

DirectWriteString

For information about writing a text string to a data source.

DirectWriteWord

For information about writing an array of words to a data source.