Search the Community

Showing results for tags 'array'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 47 results

  1. GX Work2 Comments in Arrays

    I am very new to the Mitsubishi PLC world (I have a lot of experience with A/B and Omron though).  I am having an issue trying to assign comments to an array of Globally scoped bits - I am also using Structured Ladder - NOT simple ladder.  Is it possible to do this?  I have contacted there tech support group and they were of little help.  I don't care if I update the label comment or the device comment, I just want to assign a simple comment that can be displayed (i.e. I am using this for step sequences).   Any help would be greatly appreciated!  
  2. I am trying to use arrays in the ladder command BMOV and want it assigned to devices. What I want is a string is stored on my HMI at D300 and it is 12 characters so it is really at D300, D301, D302, D303, D304. I can use DMOVE D300 D425 K5 and it will move the string. But I want to do it for a recipe where I cycle through all twelve recipes and get BMOV D300 D425 K5, then BMOVE D300 D430 D5, then BMOVE D300 D435 D5, etc. I have attempted everthing. The problem is when I try to do BMOV myString myList[Index] K5. I have to create a data type that is used by myList so I can have each entry assigned do D425, D430 etc. Any thoughts or hints.
  3. Hello:   Im new on this foroum, and Im glad to become a member, and new on the Sysmac studio too . I have the following ST program line: My_array[0]:= y[0];   Where My_array, is a array of bool, and y array too. After load and all, on monitoring return a "!" Sign, and trying to change value retuns "Failed to write variable, check if variable or memory area are alloed to write". I tried to move both arrays from global to local, and change adressing in "AT" field, witout changes. Any help will be wellcome. Thanks in advance Dante  
  4. Hi Guys! I have a problem with data collection. I use RS Logix 5000 software. I need to collect 11 int value. The sampling frequency is about 2 or 3 second. I tried to make an array but I faild, because I dont find what is correct for my task. I need about 5000 sample each of int value. Anybody have any idea about this problem ? If I have the datas then I have to exporting to an excel table . Thank you if anyone can help me.   T
  5. Hi all, 1. I'm working on alarms in FT view ME with rslogix 500. I have seen all the alarms in my plc program are kept in the N7:1 and N7:3 out of which all bits for N7:1 is used and 9 bits for N7:3 is used. So right now I'm creating the alarms messages for N7:1 I went and created tag with name ALARM1 digital bit and used the device address as ::[shortcut]N7:1/1 and then used the same alarm tag while creating alarms and kept trigger value as 1. But while reading some post, few of them has mentioned to use L16 L32 in address bit ::[shortcut]N7:1(L16) Can't I use this ::[shortcut]N7:1/1 ? 2. Basically I'm converting pv550 to pv700. So I went and check alarms in pv550 in panelview 32 and I have seen there we have use "ack tag" as N7:2. because in plc program it was mentioned in description of N7:2 as ALARM RESET ADDRESS ARRAY. DO I have to use this N7:2 in acknowledging the alarms. Please some one help me
  6. My problem is this: I'm using a UDT Array to store and calculate scrap quantities for individual stations on our machines. Every lot I clear those arrays using an FLL. I Source an empty array of 500 elements (So I may use one array for my varying lengths of arrays to clear. None of them are greater than 500 elements). My instruction looks like this: FLL Source: Empty_Array_500[0].Count               (Count is a DINT) (Empty_Array_500 is a UDT[500]) Dest:     StationTag[0].Count                           (Count is a DINT) (StationTag is the same UDT[50] or UDT[32] depending on the station being referenced) Length: 32 or 50                                                (Depending on the station, the length is 32 or 50 because the array tag for that station only needs so many array elements)   Somehow, after the FLL's for every station tag are completed, there are values left in some of my ".Count" in some of my arrays, but not all of them. I'd really appreciate some input on what I may be doing wrong or what to look out for.   Thanks!
  7. My problem is this: I'm using a UDT Array to store and calculate scrap quantities for individual stations on our machines. Every lot I clear those arrays using an FLL. I Source an empty array of 500 elements (So I may use one array for my varying lengths of arrays to clear. None of them are greater than 500 elements). My instruction looks like this: FLL Source: Empty_Array_500[0].Count               (Count is a DINT) (Empty_Array_500 is a UDT[500]) Dest:     StationTag[0].Count                           (Count is a DINT) (StationTag is the same UDT[50] or UDT[32] depending on the station being referenced) Length: 32 or 50                                                (Depending on the station, the length is 32 or 50 because the array tag for that station only needs so many array elements)   Somehow, after the FLL's for every station tag are completed, there are values left in some of my ".Count" in some of my arrays, but not all of them. I'd really appreciate some input on what I may be doing wrong or what to look out for.   Thanks!
  8. Hi there! I have a question with AB PLC. My problem:  I have some raw data...distance for example.When the machine starts,the sensor begins to send the information with the distance values. When data is received it is moved into an array. After the first 5 values the program calculates an average and the result is moved into another array.Currently after receiving the fifth value,thus filling the first array,making the calculation and sending the average to the other array,the program empties the entire first array instead of just always discarding the oldest value of the five,and recalculating the average with the newly arrived value every time. I tried to made this with ladder diagram using an an fifo load and unload but isnt working. Please help me if anybody can. Thank You.
  9. GT Designer3 Script Problem

    Hi,  I encountered a specific problem during work with GXWorks2 & GTDesigner3. In my part of group project I need to receive from proper script, array of values of sine wave. I need to get 1500 values of sine wave and fill registers in GXWorks and have no idea why my script does not run. I'm using simple while loop with no errors statement from Syntax Check. My script should calculate sine values from index 0 to 1500, and substitute it to registers D2000 - D3499. Look in attachments for better understanding my trouble.  I'm looking forward to hearing from you as soon as possible.  Greetings, Jan P.S. I'm new in Mitsubishi Equipment programming so if it's some kind of beginner's problem - please be merciful for me.
  10. Component test

    Hello all, I want to carry out some small tests on the reflex array WL27-3P3402S17, but I am not sure what's the simplest way to set up the array.(I just need to be able to read the values from the array). Is it through PLC or are there other options ?
  11. Hi, I have variable (named var1) with data type 'Word[Unsigned]/Bit String [16-bit]' with Array [0..7]. I want to put 16 variables with data type 'bit' in var1. Is there function for that? Also is it possible to put 16 variables (bit) like this: var1[0].0:=bit1; var1[0].1:=bit2 etc. I'm using GX Works 2 with CPU L02 Best Regards
  12. Hi, I have variable (named var1) with data type 'Word[Unsigned]/Bit String [16-bit]' with Array [0..7]. I want to put 16 variables with data type 'bit' in var1. Is there function for that? Also is it possible to put 16 variables (bit) like this: var1[0].0:=bit1; var1[0].1:=bit2 etc. I'm using GX Works 2 with CPU L02 Best Regards
  13. Hi guys, I'm using a Schneider Electric M340 PLC, I have a multi-dimensional array: Array[1..10,1..10] of real. To give a little background. Each of those 10 arrays contains 6 parameters for a controller. They're run through a test and the score is recorded in the 7th element. Now my problem is I need to sort those 10 arrays based on that 7th element. More specifically I need to pluck the best two performing ones and write them to a new array set.. I've tried writing my own sorting algorithm although I only manage to take the first, best performing one as opposed to the top two. This of course is programmed in ST. Any advice would be appreciated, Kind regards, Max
  14. Search a array

    Hi PLC guys I am in the middle of a project where i am to search a array that look like this (se pic). i need to search it for the element called .Vogn_ID the second one in the tbl_Ordre. There is 50 tbl_ordre containing Vogn_ID I have tried a FSC, but in my expression i can only be allowed to write like this (See pic). The problem, it will only search that array not all the 49 others. Anybody have a idea  
  15. Hello Everyone, haven't roamed here for a while.   So I'm having a little trouble using the Structure Data Type in Sysmac Studio/NJ. As an independent tool, it is powerful to create user data types, such as Ethernet/IP Tag Link to V680S RFID or any other EIP equipments. And it is way more powerful than the CJ2, since it has the ability for user defined offset, which CJ2 can't do.   But the problem is we cannot move/copy the content of the members to any other standard types. For example, I have a structure with 8 BYTE type members. Then I need to send those out via UDP or TCP/IP comms, which Function Block requires BYTE[] data type. Unfortunately data movement instructions such as MemCopy and AryMove didn't work at all to do the job. This was easily done in CJ2 since we can access each memory content directly. Currently I already resort to use customized Functions which will translates the Structure into BYTE[], but that would mean for every different protocols, I need to create a different Function.   I have seen this problem posted somewhere in the SS/NJ Improvement Request section, so I wonder has anyone know any update about this matter? Haven't checked the latest update yet (SS v1.14), but I'm certain that in SS v1.13 this feature is still unavailable.   Thanks!!!
  16. Hi, I need to create an Array Filled with random bool values to a certain Purcentage... ex : 25% of True...     would look somewhat like this.....   001011101011000010101011010100101010101... not like 111111111111111100000000000000000 or 00010001000100010001 I will be using a value introduced by the user as an Int from the HMI then create the Array with this random function...   Please Help... I am losing patience over this !!   Thanks
  17. I'm working on a project that is made easiest by using a sequencer. The process I have has 51 outputs. I've created the array as the steps that I need but how can each step have more than the standard 32 bits (DINT)? Is it possible to change the length of the DINT so every output is available at everything step?  Thanks.    Sorry if my description is vague I'm still learning some of the terminology. 
  18. Would anybody have a simple sample of how to use Arrays in ladder? I have a good understanding of arrays in VB, C, but can't seem to get a grip on how to use array with PLC & Ladder. Thanks
  19. I want to start off by saying my programming level in satisfactory at best and I need some help. Should get myself to school for this, but don't have the time. I have the following application that I could use some help with: When the equipment sees an "end of strip" input (bool)), I want to push the following down into an array say 100 elements deep. Coil Number (dint) Heat Number (dint) Coil Footage (real) # of prime pieces (dint) prime length (real) # of scrap pieces (dint) scrap length (real) Bundle Number (dint) All I want to do is populate this array at this time. Thanks for the help.
  20. Working with arrays

    Hi! I can not understend how to work with array from functional blocks. For example, I want to create some functional block (on ST lang.), send to it some array and recive from it some new array (FB make some monipulations with input array). FB code: FOR i:=0 TO 4 DOinputLoadArray:= outputLoadArray*2;END_FOR; How does look my main program (only on ST language) for send input and recive output arrays?
  21. I'm new to rslogix 5000, this is my second project and I need some advice from some of the experienced programmers out there. Sorry if this is a little long. I have a project that will drill and tap holes in a manifold, the manifold can be 3' to 10' in length and 1" to 4" in diameter. There a four rows of holes to be drilled, the number, row degree and size of hole can all be varied by the operator input to the recipe entry. I set this up to let each set of holes or hole to be a segment (just a label). I created an array 2 d for position and hole size. Which I was going to step through the array, one element at a time, no problem. Well, half way through the project the boss wanted to be able to sort the holes by the largest of the same size to the least in number and size. The reason for this is to keep from changing tools so often and make the system more efficient. I have done the motion with no problem, electronic gearing, ratio, computing the move distances. So I was surprised when this sorting issue kicked my back side. Any advice would be welcomed.
  22. Is there way to write a VB script that can write an Excel table into a 2D array for RsLogix 5000? I have looked around for proven examples, but so far have come up unsuccessful.