Search the Community

Showing results for tags 'retain variables'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 16 results

  1. Hi All,Cx-Supervisor, NJ501-1340, Sysmac Gateway.I have been writing an update for a project and converting to this new controller.It's a pretty big project.Using a combination of Ladder and ST.Using Cx-Supervisor 3.5.I created some new Variables in Studio and made them Publish only.Started to create Points in Supervisor and made them I/O connected to the variables in Studio. No problems everything was connecting and working just fine.Then one of the points would not update. I could change it in the PLC and it would not change On the HMI.I deleted it and recreated it and it did the same thing. (sometimes points in Supervisor just stop working and recreating them fixes it).I then copied the control and pasted the old point into it and it did the same. Then other started to fail. Showing no reaction.I stopped the gateway and restarted, no help, I rebuilt the HMI, nope.The can check the tags in Sysmac gateway and they always change when the PLC changes but not the HMI.I checked the point maintenance in Supervisor and it would not change.I dumped all the affected variable in the PLC and in the HMI and recreated them. Then it got stranger.I could change some on the HMI and it would show in the PLC but not the other way.This is on Bools and UINTS.Stopped CX-server, tried using it with Win8 compatibility. nope.Pulling my hair out now. I should be coding but I'm trying to get the apps to work.Any ideas will be used with thanks.Peter
  2. Yesterday one of the guys on the shop floor had a fatal error on a NX PLC. The error code points to a power interruption during program download. From what I hear it wasn't apparent that there was a power outage (maybe I didn't get the full story?). Regardless there was a fatal error and the only option seems to be to clear all memory. We did this but forgot to power cycle so had to do this a few times before we did more reading. After clearing the fatal error, we realized that all retain variable values were cleared. For this we had to manually input some values back into memory to get the machine going again.  Is there a way to store retained values into like a spreadsheet? We had to go back to some screenshots that I had taken to put some of our values back. It's ok but not entirely convenient. I remember you can upload the memory values from a CJ2 PLC and keep it as a .mem file. Then you can just download this again to restore the PLC memory values. I don't think the NX PLC has this? I am also reading up now on the NX PLC backup function. It seems like doing a backup will also store the retain variable values. Maybe this is the only way to backup and restore?
  3. Hey! Is there any possibility to acces the PLC variables in GXWorks from another program? Like I want to read and write the I/O-s or Merkes in the Mitsubishi PLC from another program Could someone help me with this? Thank you!
  4. Sysmac Studio

    Hello ,  Is my frist project on Omron and also on Sysmac Studio .  I have one PLC NX1P2 - 9024DT1 I write a sample program on ST with internal variable ( struct ) but i receive an information that i dont have permition to write on Var  Ps.  I can uploaded file with image   
  5. Hello, In my ladder program I have 7 different arrays (containing REAL values) all members of a structure and I wish to extract certain values from the arrays and put them on another structure consisting of REAL values (not arrays). Which is the best way to do that ? I tried AryMove command but I get an error "Conversion from REAL to ANY_ELEMENTARY[], ENUM[], STRUCT[] is impossible. To get a better understanding of my structures and arrays here is an example: Struct wheel_data Global variable SWheel of wheel_data rad[1...10] of real, vary[1...10] of real, varx[1...10] of real struct. 2 wheel Global variable Wheel1, .... , wheel10 of wheel rad REAL, vary REAL, varx REAL what I wish to do is to copy Swheel.rad[1]  to wheel1.rad,  Swheel.vary[1] to wheel1.vary, Swheel.varx[1] to wheel1.varx 2nd structure Swheel.rad[2]  to wheel2.rad,  Swheel.vary[2] to wheel2.vary, Swheel.varx[2] to wheel2.varx until I fill all 10 wheel structure instances with values Thanks in advance.
  6. Still learning Sysmac Studio......how do I gain access to System Variables like 'PageIndex" so my PLC can be notified what Page the HMI is on?  Also, how can I execute an 'Acknowledge All' from the PLC so I can reset the 'Alarm Viewer Popup' from my PLC? Thanks,
  7. I'm having trouble specifying a memory location using the AT specification for an array in the Global Variable tab. I've tried a number of different ways to do so, and searched around online but haven't been able to find anything about how to do this. All I have to go from is the rather cryptic "AT specifications are specified separately for each variable. Set them for all elements and members of array, structure, and union variables." from page 6-62 of the Software User's Manual (W501). That seems to imply that it can be done somehow, but I am not sure how. Right now I have created array elements as independent variables, and then use a FOR loop with a CASE statement to put the proper variable into the array for use later in the program. This doesn't seem particularly efficient, and I have to imagine there is a better way. Any advice on this is greatly appreciated. Thanks!
  8. Omron Function Block variables

    Hello all.  I posted earlier in the week regarding downloading new code to an Omron PLC, but I think the question was a bit vague. As a follow up, and hopefully to clarify, I have the following query. I have created an upgraded program which will be downloaded by field techs using memory cassettes. The revised area of code is essentially a Function Block which amends service lamp behaviour, and in creating it, I have amended the existing function block and added new Internal variables. Is there any way I can ensure that the new variables don''t over write or move the existing  variables in the PLC, because this is what is happening when I download it.    HELP!!!!!!!!!
  9. Retain Memory CJ2m-CPU31

    Hi All, Just to verify if the "memory card" , in attached document Page 4 highlighted area ,  provides Omron CJ2M CPU21 to retain memory when powered off? If yes, for how long can the memory lasts without being charged? Isit capacitor or battery? Thanks in advance. Regards, Summer cj2m-cpu31.pdf
  10. Hello everyone, I am new to omron stuff. I have been given a task to execute a timer with retentive values on power off. I want to retain timer value when plc turn on after shut down. Timer should be start from where it stops on power failure. How to do that could anyone help me out here?
  11. Second day using Proficy. Needing to cookie cut from a template program that references I/O devices in the HMI variables. Currently I have to edit each one individually, and there are thousands of tags to be changed, times the number of cloned systems I am creating. How can I automate this mind numbing, and error prone work?
  12. Good afternoon,   I need to convert a UINT (16-bit unsigned integer) to a DINT ( 32-bit signed integer).   Apparently we can't directly assign a UINT variable's value to a DINT's or vice versa. I also couldn't find a way of casting UINT as DINT.   The reason why I need to do it is because I'm receiving data from a socket. The RXLength is a UINT but in order to scroll through  the data array (USINT[1..1])  I need to use a DINT as the array's index, but I can't compare the array index to the array's length because they are incompatible types.   Is there a cast statement similar to:       myDINTvar := (DINT) myUINTvar;   I also tried the following but it didn't work:       myDINTvar :=  (myUINTvar * 1);   Any help will be deeply appreciated.   
  13. Hi at all! A little brief to understand my situation... I'm creating a new project with an analog input (4-20mA) to determine the level of a tank. The instrument send me a value that correspond 4mA => 0% and 20mA => 100%. With the AI_Conditioner UDFB from RA i can correctly rescale the mA value to a %.  Then I need to "estimate" the volume of that tank, so with radius and lenght i can calculate it (no problem so far). But after that, the value is too much variable (the 4-20mA is not very stable)... So to resolve I can accept to rounding to the nearest 20... But, how can I do? There is already an UDFB made for it? Thank you at all!
  14. Alpha2 Help?

    Hi Although I have used programming languages like basic and C for many years, I have recently tried to get to grips with programming (with the software (not direct)) the Alpha2 I have to admit that I am struggling! I have made a little progress since I worked out that you have to build almost everything at a very low level. But I still can not work out how you make variables that can be used in the program? For example : If condition A is true X = 10; But if condition A is false then X = 2. I have tried using the bit inputs on the math FBs to enable/disable values of X, but although this will initially alter the value , sending a 0 bit merely freezes the calculation and the value does not change. It seems like it should be such a simple thing to do? Is there a fundamental concept I am missing? Any help would be greatly appreciated
  15. In my present project, I have to interface an energy meter that has its kWh count in 64 bit Double format. Now that Vijeo citect hasn't a facility to create tags of the "double' type I am looking for a work-around to this problem. Thanks for any help/advise in this matter
  16. Hi friends, Can anybody tell me when to use a local-Static variable and when to use a Local Temp variable whilst creating a Function-Block in S7 -1500 using TIA portal. Thanks for looking in. Best wishes.