Search the Community

Showing results for tags 'sysmac studio structure text'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 313 results

  1. Hi:         I am planning to use NX with Encoder Card  couple with Omron Rotary Encoder for measuring product length. ( GX-EC0211 /EC0241) or may be (NX-EC0112, I read there is proble with this card , here https://forums.mrplc.com/index.php?/topic/34896-problem-pulse-reading-with-fast-counter-card-in-nx2/ ), but whatever it is I need to know is there any specific Instruction in Sysmac Studio that is tailored for Fast Counter or Encoder (something Like PRV in CX Programmer or special function in CJ-CT021 where start/stop counter and changeable preset counter are available).  The Length measurement is straight forward and is only a small part of the overall program.  Basically is Start ---> measure to length----> Cut --->Repeat again.  I read through the Instruction Reference Manual and I am unable to find one.   Anyone have any idea or any sample program (Sysmac Studio only ) that I can refer to ?    Thanks     
  2. Hi there,  I am considerably new with setting up E/IP on OMRON's NX1P2 PLC. I have been trying to connect a Keyence IV-G to my PLC with E/IP connection (because there's no analog I/O available) and struggling with getting a connection going between PLC and camera. I connect these two through an unmanaged network switch, which I believe doesn't need any further configuration. I have set tags on Built-in E/IP inside SYSMAC Studio, and when I monitor them it says "normally resolved". Unfortunately, it still has red dot which means connection is cannot be established. The error I'm getting is "Tag data link connection timeout". Maybe built-in E/Ip just doesnt work for this case? I have yet to try getting connected with Network Configurator, but have the feeling that it will just accomplish the same thing that I did with Built-in E/IP inside Sysmac Studio.
  3. Structured text syntax error

    I'm writing a Function Block in Structured text language. I'm only testing, so the function doesn't do what it has to do. However, my first step is make a for loop inside a while loop, this is for increment the value of a index register while a condition is true.   My code so far:   WHILE X100 DO;          FOR ID_INDEX := 0 TO 99 BY 1 ID_INDEX;         ID_INDEX := ID_INDEX + 1;     END_FOR;                     END_WHILE;     X100 is my boolean for general start. ID_INDEX is the index for a array that I want to manipulate.   The errors that GXWORKS2 tells me are the following:   -  Cannot find 'END_WHILE' in a statement. Please check the error display statement or the preceding one.    C8006 -  Parser error.    C1200   This is the first time that I write code on Mitsubishi structured text, so I based on the examples that I saw on the structured text manual.   
  4. Ok, so I was tasked with setting up a virtual for our development team to be able to use to quickly deploy projects hmi, emulated plc, and studio 5000 project together on one virtual.  The main reason for this is when we get a project, many times we have to wait for an available plc.  We have plc’s in our rack but they can’t be used because they are being used for other projects.  I’ve used the compatibility matrix that Rockwell has but my boss wants to stick with Windows 10 Professional like we do in most our projects but according to the matrix, it looks like having FactoryTalk View SE Enterprise version 10, Studio 5000 Logix version 33 and Studio 5000 Logix Emulate version 33, FactoryTalk Gateway 6.11 and RSLinx 4.11 (mainly for communication to the emulated plc) but in the matrix says Windows 7 and Windows Server 2012  is the best choice.  I’ve ran into issues with Emulate opening, it takes up to 20 minutes to open.  Our licenses are on a server and accessed using FactoryTalk Activation Manager and all the activations are there.  Any suggestions would be appreciated.
  5. Hi  I want to use in sysmac the number of the active page in nb designer. for example if I am in page number 5, the program in sysmac recovers in a variable the value 5 THANKS
  6. ROTARY AXIS POSITION ERROR

    Our C axis which is a rotary axis doesn't perform commanded postion, for eg if we give command of 360 deg, then it will only rotate 359 deg and for next time it will rotate 358 and so on for every rotation. i.e for every rotation its complete degree is reduced by 1 deg.  And system doesnt show any error.  By providing command of 360 deg, if we rotate or axis for 15 times then the last position at which it will stop will he 345 deg.    Please share valuable inputs to resolve that problem.
  7. Hello, I am trying to have single press and double press etc. functionality in my PLC program where for example, single press will turn on the motor whereas double press will turn on the motor for 5 seconds. Is it possible to achieve using ladder logic in sysmac studio, if yes, how? Thank you in advance.
  8. This is my first post so let me know if there is anything wrong with my post. I am learning Studio 5000 right now for an internship and created a simple project involving a pushbutton and some LEDs. Now I am trying to create an HMI for it in View Designer. My problem now is that I cannot establish a connection to the project because I do not have a physical HMI connected to my plc (Logix 5380). I can't find any way to emulate an HMI module so that I can get it to run. When I emulate my HMI project it tells me "Unable to reach controller TEST" where test is the name of my plc program. I added a module that matched the model in my HMI program (panelview 5510 2715p-t7wd) which I arbitrarily picked at random. But when I go into references and try to add HMI to Controller Path it does not show up (I'm assuming it's because it is faulting in the plc program since it doesn't actually exist). Is there not a way to emulate an HMI or add a virtual HMI to my studio 5000 program that I could connect to from View Designer?
  9. hello   I want to control my servomotor in manual mode from an ethercat network. Where I can find the JOG FWD and REV information in the frames exchanged between R88d-1S servo and sysmac studio
  10. OMRON SYSMAC STUDIO

    In omron Sysmac Under configuration tab --- axis setting----- Operation Setting  Under Monitor Heading there is a term " In-Position Range" and " Zero Position Range " what does these term means and what happen if we increase or decrease value under these term.  Image was not attached, as it was failed due to some reason 
  11. Hello, can we do the simulation between sysmac and nb designer thanks
  12. Good Morning I am a beginner in PLC programming using the Sysmac Studio software and please help me if you can  I'm trying to make an omron NX1P2 PLC read some message via Socket UDP to my PC through the Socket Test program, do you have or know any program with an example application in ladder? thank you
  13. DWord to Data Types

    Hello everyone, In Siemens and Rockwell I am used to transferring a double word to a tag that has a UDT data type of 32 bools. Which the binary bits (31..0) of the double word would align with the bits in a UDT data type of bool. If it was in a function block in Siemens I would call the double word address and move it to Area Register Address and transfer data to a tag of udt data type internal of the function block or could call a Move Block as well which will byte swap the bits but can be fixed with an STL call instruction (CAW). Since I am new to Sysmac Studio, how would I be able to do this? Looking at every Data Movement and Data Type Conversion functions all want a form of an array or elementary type, some wanting source and destination to be the same type. Any ideas?
  14. Hello,  Sorry I'm newbie with omron plc programming. I'm wondering how can i simulate plc program on sysmac studio with Hmi on Nb designer without hardware. because I want testing my program and my plc and hmi connection before buying hardware. Thanks in advance !
  15. I have a simple question that might be hard to answer: Is it contraindicated to set tags that are continuously updated, such as analog values, as "Retained" ? I'm not sure if "Retained" values are in flash, and if they're written every time the value changes or only on power loss. I have a background in embedded programming, where I had to take memory write cycles into account. I'm working on my first SYSMAC project, and I'm used to Allen Bradley at this point, where FB instances are accessible from everywhere. The fact we cant read or write function blocks from the HMI in SYSMAC is a pain. As a workaround, I'm using structures and I would prefer not splitting the parameters and working-values in different structures. This is my first post here and I didn't see a search function, so I apologize if this was already answered.  
  16. Structure Text REAL constant

    Hello. I'm having difficulties of how to write REAL constant in ST. For example (Gap1 is defined as REAL): Gap1:= UDINT_TO_REAL(P_Cycle_Time_Value) / +1000.0;     RETURNS ERROR ERROR:   Conversion cannot convert from Integer Literal to REAL I have also tried 1000.0 If I use:  Gap1:= UDINT_TO_REAL(P_Cycle_Time_Value) / INT_TO_REAL(1000);  COMPILES OK My question.. How do I write REAL constant in Structure text? I don't want to use  INT_TO_REAL anytime I want to do calculations with constants.. Thanks. BR.
  17. Hello Folks... The pictures show it all... I just need to produce a one-shot inside the IF...THEN, and the Oneshot's input bit goes from 0 to 1 as you see from the trend, but the output bit is not going to 1, or giving a pulse ? can anyone help me understand why i am not getting a pulse in this code ? And is there another easy way to get pulse inside IF...THEN without changing the condition which activates the if loop ? Thanks in advance for your time
  18. Union

    Hello! I am trying to get hold of the bits in a word, i have read that union is the way to go. My problem is that i cant figure out how union works. I have made a union between a word (16bit) and an array(0...15). The way I understood this was that the word now automaticly updates the array so that when the least significant bit in the word should update array[00] and so on. This is not happening. When I monitor the variables I can see the word change, but nothing happens with the array. Have I misunderstood the consept and what should I do to get hold of the bits?
  19. Flip flop in structured text

    Hi all i've been trying to make a simple timer in structured text which is turned on and off by a single input, all instances of flip flops i have found seem to be 2 input. any help or examples would be appreciated example of programs; Pulse signal received, start timer Pulse signal received stop timer
  20. Our IT department is on their annual crack down on administrator access and 'unauthorized' software. This year they are demanding to know why I need to run my laptop with administrator access. Besides the Simulator, what other functions will I not be able to use without administrator access? 
  21. Hi guys, I just starting to use Sysmac Studio. Its a bit confusing as I am currently used to CJ series PLC. Usually, we can use P_1sec, P_0_2s and so on to create a simple clock pulse timer function. However, I couldn't find the command or FB to do that in Sysmac Studio. Anybody could explain on how to do that in Sysmac? Thanks 
  22. Ok so I recently got the Factory i/o software to practice plc programming more in depth.  I got it working easily enough with the siemens TIA software and I am now trying to get it to work with the Omron Sysmac Studio software.  I am not sure if it is possible or not.  I have access to the hardware but I was really hoping to use the simulation like I can in TIA.  Any insight would be appreciated on the subject.
  23. Simulator Platform

    Hi. I am new with omron and i am looking for a suitable platform to simulate sysmac studio.  For example Siemens PLC have a special interphase whereby its simulator can connect with Factory IO software  so the simulation can be done using 3D like objects.  is there any open source (if possible ) platform that can connect with sysmac studio simulator to help with the 3d simulation?  Any suggestions? 
  24. Timers and Structured Text

    Hello group. I am practicing ST programming and am doing this by converting an existing Ladder Logic program into Structured Text. I have created the following attachment and I can see my BOOL objects change state when I touch the respective buttons on my HMI.  The issue I am having is the Accumulating Timer will not start timing when the conditions are met. Can someone with experience in ST advise me what I am missing or doing wrong. Thanks
  25. Sysmac Studio 1.31.0.10 crash sometimes, often when copying things like color palettes, string in the Output Window, etc. It's always with NA not NX. I have a corrupted project because Sysmac Studio crash and save the project. NEVER use this file, restarts with the old file is better. The text fields does not appear on all objects on the HMI and it's never the same object each time your download to HMI! Check images below. Font is "No Value". Do you know how to resolve this problem?