Bit Field Distribute With Target (Btdt); Structured Text; Function Block; Fbd_Bit_Field_Distribute Structure - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Chapter 7
Move/Logical Instructions (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT)
Bit Field Distribute with
Target (BTDT)
BTDT(BTDT_tag);
Input Parameter
Data Type
EnableIn
BOOL
Source
DINT
SourceBit
DINT
Length
DINT
DestBit
DINT
Target
DINT
Output Parameter
Data Type
EnableOut
BOOL
Dest
DINT
306
The BTDT instruction first copies the Target to the Destination. Then the instruction
copies the specified bits from the Source, shifts the bits to the appropriate position, and
writes the bits into the Destination. The Target and Source remain unchanged.
This instruction is available in relay ladder as BTD, see
Operands:

Structured Text

Variable
BTDT tag

Function Block

Operand
BTDT tag

FBD_BIT_FIELD_DISTRIBUTE Structure

Description
Function Block:
If cleared, the instruction does not execute and outputs are not updated.
If set, the instruction executes.
Default is set.
Structured Text:
No effect. The instruction executes.
Input value containing the bits to move to Destination.
Valid = any integer
The bit position in Source (lowest bit number from where to start the move).
Valid = 0...31
Number of bits to move.
Valid = 1...32
The bit position in Dest (lowest bit number to start copying bits into).
Valid = 0...31
Input value to move to Dest prior to moving bits from the Source.
Valid = any integer
Description
The instruction produced a valid result.
Result of the bit move operation. Arithmetic status flags are set for this output.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Type
FBD_BIT_FIELD_DISTRIBUTE
Type
FBD_BIT_FIELD_DISTRIBUTE
page
303.
Format
Description
Structure
BTDT structure
Format
Description
Structure
BTDT structure

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents