Forums.MrPLC.com: BSL instruction and array tag - Forums.MrPLC.com

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

BSL instruction and array tag Rate Topic: -----

#1
User is offline   slcman 

  • Sparky
  • PipPipPip
  • Group: MrPLC Member
  • Posts: 331
  • Joined: 24-March 05
  • Gender:Male
  • Country:Canada
    Canada
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

Attached thumbnail(s)

  • Attached Image: Sans_titre.JPG

This post has been edited by slcman: 27 February 2007 - 10:34 PM

------------------------------------------------------------------------------------------------------------------------------------------------------------
SLCMAN
0

#2
User is offline   Ken Roach 

  • Propeller Head
  • PipPipPipPipPipPip
  • Group: MrPLC Member
  • Posts: 2,180
  • Joined: 31-January 02
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.
0

#3
User is offline   slcman 

  • Sparky
  • PipPipPip
  • Group: MrPLC Member
  • Posts: 331
  • Joined: 24-March 05
  • Gender:Male
  • Country:Canada
    Canada

View PostKen Roach, on Feb 28 2007, 12:43 AM, said:

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!
------------------------------------------------------------------------------------------------------------------------------------------------------------
SLCMAN
0

#4
User is offline   Contr_Conn 

  • Sparky
  • PipPipPip
  • Group: MrPLC Member
  • Posts: 426
  • Joined: 07-September 03
  • Country:United States
    United States
In tag editor specify array_1 properties as DINT[1]
In BSL instruction specify array_1[0] to point to the first array word
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users