Bit position

RayJ

Guest
R
Looking for a solution to mimic a file bit compare instruction(FBC) in a AB SLC504 ser B.The FBC instrucution is only supported in a ser C.
The application is to display the position of a bit as it shifts through a file of 48 bits.Have tried the bit shift left instruction but this does not report the position.

Ray...
 
All Series B SLC-5/04 controllers are EEPROM upgradeable.... if you need the instruction, I figure upgrade the controller to include the instruction.

The easiest way I can think of to search a 48-bit array is a loop that checks the state of one bit at a time. Ordinarily this would take 48 scans of the controller, or some fancy JMP/LBL work to make it all happen in one scan. Like so:

[attachment]

bitfind.gif
 
I just upgraded the firmware on a series B SLC 5/04 just so I could use DDT/FBC instructions. A/B part # 1747-OS401, it cost "us" $104.
 
Ken Roach said:
some fancy JMP/LBL work to make it all happen in one scan.

And increase your scan time.

I usually handle my database manipulation one bit or register at a time, like Ken is showing. Unless you NEED the information to be complete by the end of the scan, there's no need to keep the processor from its other tasks.

AK
 
Twido i neee help?

Hi everyone


if any can help me with this i´m having problems with twido and a maple hmi 530c i did everything the manual said and i can get any communication betwen the hmi and the twido, im using a 485 port 1 as slave an hmi 485 as a master


what im doing wrong??
 
Re: Twido i neee help?

fide said:
what im doing wrong??
The first thing you did wrong was hijack an existing thread instead of starting a new topic... (n)

Are you absolutely sure you constructed the cable properly according to THESE instructions?

beerchug

-Eric
 

Similar Topics

I have an array of DINT and I want to turn a coil on if bit position 0 of any of the array is on, and so on. So in plain text: ArrayBit: DINT...
Replies
13
Views
5,430
I am trying to duplicate some Modicon code in a Contrologix PLC. This a sequence step number that is incremented on each step (78 steps). The...
Replies
5
Views
2,335
I need to send a real value reference from my PLC as two 16 bit integers (which are combined in the drive as a 32 bit word) but I'm at a bit of a...
Replies
3
Views
2,035
In GE land they have a bit pos (bit position) command. What would be the best approach for doing the same thing in a SLC 5/05? In GE we use the...
Replies
1
Views
3,045
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
283
Back
Top Bottom