Help - Search - Members - Calendar
Full Version: BSL instruction and array tag
Forums.MrPLC.com > PLCs and Supporting Devices > Allen Bradley
slcman
Hi,
I need to use data shift in my program. I want to use BSL instruction in a 1769-L32E plc. I'm not able to create a array tag. When I compile I alway have a error due to a array tag not created (picture). I did't found anything on "create a array tag" in help menu.

In my sample, array_1 is; type : Base Data type: DINT Scope: MainProgram Style: Decimal

Finally, I have another question: where is my first scan bit S:1/15 ???? I used these bit very often in my SLC pgm.

Thanks
Ken Roach
Define your "array1" tag as a Boolean Array instead of a DINT. For the base data type, key in "BOOL[32]" or "BOOL[64]".

Arrays in ControlLogix are designated when you create the tag, and put the array dimension in square brackets. That's also how array elements are addressed in logic.

There are a small handful of Status flags that are implemented as pre-defined tags, including "S:FS", which is the First Scan bit. All other status information in the Logix family is accessed using Get System Variable (GSV) instructions.
slcman
QUOTE(Ken Roach @ Feb 28 2007, 12:43 AM) [snapback]50605[/snapback]
Define your "array1" tag as a Boolean Array instead of a DINT. For the base data type, key in "BOOL[32]" or "BOOL[64]".

Arrays in ControlLogix are designated when you create the tag, and put the array dimension in square brackets. That's also how array elements are addressed in logic.

There are a small handful of Status flags that are implemented as pre-defined tags, including "S:FS", which is the First Scan bit. All other status information in the Logix family is accessed using Get System Variable (GSV) instructions.


Thanks for your help. BOOL array doesn't work with BSL instruction, I must use a DINT array [1] for 32 bit shift register. I really appreciate S:FS bit....ist's hard to find on a first experience!
Contr_Conn
In tag editor specify array_1 properties as DINT[1]
In BSL instruction specify array_1[0] to point to the first array word

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.