Search the Community

Showing results for tags 'array'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 25 results

  1. Problem with array

    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
  2. Factory talk view

    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
  3. 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!
  4. 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!
  5. Looking for FIFO (First In First Out) array program examples for Mitsubishi PLC iQ-R R04CPU using GX Works3.
  6. Logix 5000, Array filling

    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.
  7. 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.
  8. I have an array of 1000 strings in an NJ controller, and I wish to read them into an NA HMI. To do this at the moment I am using Array.Copy within some vb code, but this seems to hang the screen as it takes way too long, if it ever completes at all. i.e. Array.Copy(NJ_array, NA_array, 1000) also, the docs for Array.Copy state that the destination array needs to be greater in size than the source array, which seems bizarre. Any recommendations on how to do this more efficiently?
  9. GX Works ARRAY usage

    Hi ALL! Do not compile project on GX Works: Type mismatch? But type is match!!! Equivalent project on Delta ISPSoft compile OK: What wrong?
  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. How do I edit an array size ARRAY[0..13] OF REAL to ARRAY[0..15] OF REAL? Sysmac Studio doesn't allow it to be done online, as far as I can see. If I do it offline and then go online and Synchronise, Transfer to Controller I receive error Any ideas?
  15. 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  
  16. 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!!!
  17. 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
  18. Array Step Length/DINT Length

    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. 
  19. 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!  
  20. I'm having a problem creating variable tag array in Citect SCADA V7.40. I looked every possible help, user guide... but no matter how i set array I cannot change value of any element of array beside first one. I configured my variable tag as shown below: Tag name: TestArray I/O Device: Internal (it's an OPC Factory Server) Address: V500[5], %MF4000[5], I2[5], F2[5] (I tried every one of these for REAL or INTEGER type based on user guide/forum posts) Data type: REAL, INTEGER   I tried every one of these but without success. If i try to set value of variable tag array element, example TestArray[1] and TestArray[4], by typing value in Number field (in Citect Runtime) every element of an array is giving me message #ERR, except first one. Other than that in Citect Runtime in All variable tags window, I can see TestArray tag as a single tag, not as an array Note that i'm not using these tags in Cicode but in Graphic Builder / Runtime. I need about about 50 user defined value tags to be sent to SQL DB by SCADA so remote PLC can read those values in order to define state of outputs. I would highly appreciate any kind of help, any tip. Thanks in advance!
  21. 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
  22. RSlogix5000 array

    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.
  23. 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?
  24. Array RSLogix Studio 5K

    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.
  25. Writing 2D array to RS5K tag

    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.