Search the Community

Showing results for tags 'sysmac studio structure text'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 193 results

  1. 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
  2. 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?
  3. 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 !
  4. 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.  
  5. 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.
  6. 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
  7. 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?
  8. 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
  9. 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? 
  10. 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 
  11. 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.
  12. 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? 
  13. E-Designer

    I have E-Designer 7.52 Build 344 installed on 3 windows 7 laptops the 2 that the problem is on are Pro 64 and the 1 thats working is Home Premium 64 but I seem to recall having this problem on the the Home one 9 years ago and getting it sorted but cant remember how The problem In Alarms,  Alarms New Alarm Alarm text: When typing cursor stays at left side and can only be moved to the right by the arrow key then jumps to left side after letter is pressed or you can type in reverse Signal:        Typing works normal OK:             Entry is not valid ;May not be blank Copy: Ok: Same result Properties:Ok:Same again Is there anyone who can help me with this as the laptop that works is on its last legs Thanks  
  14. 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     
  15. 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
  16. 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?
  17. I'm working on simple structured text program which takes in DWORD values, does some math on them and then outputs in DWORD type. What data type should I be using and how can I make this work?  This is one of the lines from the code(everything DWORD) and I get 'operator not supported by DWORD data type' XPos3 := XPos1 + (2*XIncrement);  
  18. Humming Noise in Motor

    We are using NX1P2 Controller with servomotor compatible with servo drive R88D-1SN it produces noise during operation low noise at low speed and hig noise at high speed we have 2 more axis which doesn't produce any such type of noise.   It also produces vibration in the motor.
  19. I am trying to display the time from an Accumulation timer. Using a data display object I am able to see the time in the following format 00:00:00.0000000. Is there a way to format the time without the decimal seconds I just want to see 00:00:00 (hours:minutes:seconds)
  20. Hi there, I have a controller NX1P2-1140DT. I want to control a VFD with modbus serial communication. Can someone help me start from scratch ?
  21. NX1P2 Modbus RTU Code and Write Up. View File This code is designed to implement Modbus RTU on an NX1P2 Controller using the NX1W-CIF11, NX1W-CIF12 or NX-CIF105 module (mounted to controller or EtherCAT coupler).  Created by an Omron Engineer. Submitter Michael Walsh Submitted 05/22/20 Category Tutorials and Quickstarts
  22. Version 2.12

    161 downloads

    This code is designed to implement Modbus RTU on an NX1P2 Controller using the NX1W-CIF11, NX1W-CIF12 or NX-CIF105 module (mounted to controller or EtherCAT coupler).  Created by an Omron Engineer.
  23. As the title says, Studio 1.40 crashes if I try to run it in VMWare Workstation (version 14.1.8). I had to disable the "Accelerate 3D graphics" option in VMWare in order to install this upgrade, this has never been an issue before on earlier versions of Studio. I thought I could then re-enable it but this causes Studio to crash as soon as you start it up. I've not spent any time running it with 3D graphics disabled to know if it can run stable. Or if having it disabled causes problems with Studio or other software on my Omron VM. Has anyone else experienced this issue or have any insight?  
  24. Hello all,   My coworker is running into an issue where his version of Sysmac Studio has been updated, but this is causing a version mismatch from an existing project.  He has called Omron, and they are saying that there's no way to downgrade the OS.    Project operating system version = 7.4.0 Device Operating System version =  7.3.0   So the OS on the NA5 would need to be upgraded to match the version of Sysmac.  Does anyone have any suggestions to revert the automatic upgrade that has occurred? Any help would be appreciated!
  25. Has anyone had issues using the Auto-Updater and Administrative Rights?  I am running Windows 10 Pro, 64Bit.  I need to update Sysmac Studio from 1.31 to 1.4.....when I run Auto Updater (as Administrator) I always get the error "Log on the PC as a user who has an administrative right when install" and it never makes it past the first module of the CX-One Update.  I even gave the issue over to my IT guy and he has absolute full rights to every nook and cranny on my laptop. I was told that I needed to allow the CX-One to updates as well since they share some of the same components. My IT guy even tried to do the "download" and install individual modules of the update and that still didn't work. Currently waiting on callback from OMRON Tech Support, thought I'd pose the question here as well....thanks.