Sign in to follow this  
Followers 0
slcman

BSL instruction and array tag

4 posts in this topic

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 Edited by slcman

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
In tag editor specify array_1 properties as DINT[1] In BSL instruction specify array_1[0] to point to the first array word

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0