The bit field distribution (BTD) instruction

fish888

Member
Join Date
Mar 2016
Location
Indiana
Posts
3
I have the following question when read a PLC book, regarding The bit field distribution (BTD) instruction. Thank you in advance for help.

Given:
Source address: N70:22
Source data: 0000000101101000
Source bit: 3
Destination address: N70:22 (same as source address)
Destination bit: 5
Length: 6

Question:
After the BTD instruction is executed, which of following is true?
A. Not allowed (error will occur during compilation) because the destination bit is within the source data location.
B. The result is that "101101" shifted left by two bits, i.e., 0000010110101000, leaving the lowest 2 bits of source data unchanged.
C. The process is to copy and write one bit at a time, starting from lowest bit, so that the bits 5 to 8 of the source data are changed during this process, and the result in N70:22 is 0000001010101000.
 
Really appreciate your prompt help. May I ask if your answer is based on a real machine or simulator, or a convention? Is this a convention (or rule) that can apply to most PLCs or some particular PLC? Thank you again. (Please correct me if my question is not appropriate.)
 
I worked with BTD instruction on field, and it's work like I explained to you.
My answer is based on Allen Bradley literature, so it's rule. đź““
I used BTD instruction only with Allen Bradley Compact Logix, but I am pretty sure in other PLC exist same logic for that instruction like in Allen Bradley.
 

Similar Topics

Can someone explain the difference between the two instructions? Bit field distribute almost sound like a shift register, but maybe I'm wrong...
Replies
1
Views
3,025
Hi guys, I am needing to write 8 bits to the lower half of a 16 bit word without affecting the data in the upper half of the 16 bit word. I need...
Replies
4
Views
3,102
See the screenshot of EIP tag list. We are trying to read in a digital input that is hard-wired. It is shown here as I31.1. I believe we cannot...
Replies
7
Views
282
A couple days ago I accidentally toggled an alwasyoff bit. The issue is it was set up as a single OTU on a rung, nothing else, and used as XICs...
Replies
3
Views
226
Hi I have an old panel builder 32 that I’m replacing for a factory talk me hmi . In the plc for the old panel builder there is a coms bit for the...
Replies
0
Views
74
Back
Top Bottom