Search the Community

Showing results for tags 'sysmac'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 185 results

  1. MOVE data

    Hello,   Seeking for assistance on how to program the below conditions, If I wanted to see the history of the total numbers per hour, like it will be displayed in my HMI Events Screen. How will I do it? Attached image is the one I am trying to work on, but still not working. Do you have any other suggestions what to use in the program for me to be able to display the logs per hour? Thank you for any help you may give.
  2. Hi all, I'm working on my migration from CJ series to Sysmac (NJ/NX).  I've encountered something I think is  a simple answer but I just can't find anything in the documentation or forums that has gave me a concrete answer. I want to increment a variable by one.  Is it not possible to insert a raw integer into the value field of the function?  (Please ignore the P_Off as this is only for test purposes only) I know I can create a variable and make it a constant of one but that just seems odd to have to go through that many steps to do so.     EDIT:  I should add the variable I'm trying to increment is a UINT (Unsigned Integer) The error I get is:   EDIT2: While I solved my problem with this instance by using the Increment function, my root question still remains.  How do you supply a value of a number to a parameter of a function without creating a symbol for that parameter?   Thank you all for your time,
  3. Hi, I'm working on a projects where i need the button text to be dynamic.(assigned by a string variable) i have not been able to figure out how to accomplish this easily. I made a workaround with placing a label over the button and have the label refer to a string, but it would be soo much easier and smoother to just have the button text assigned a variable. I would think i could access the the text field through code ,like: Btn_1.Text=My_Btn_String_1, but have had no luck with this. Would Greatly appreciate any help. Thanks, Frank.  
  4. Hi, we have one PLC that throws many errors on task period exceeded. checking the status, this warning have come over 15000 times since when ever it started couting it. Max cycle time is 2.83ms while max allowed task is the default(?) 2ms. We think it has something to do with the block for the barcode scanning. this blockas around 134ns cycle time when it seems normal, all other blocks is around 4-8 ns. How can we make sure what part that sometimes exceeds the 2 ms execution time?
  5. Hello, I have problem with Import and Export data from PLC to USB drivers. I want to write script in Subroutine and I have working script in VB language from the Tia portal, Script is in the attachment but when I want to copy the script to Sysmac it gives many errors. Please give me some advice, how to write such a script.       CsvToDB.txt DbToCsv.txt
  6. In the last update of Sysmac Studio (1.55) I would like to turn off the feature, see image. Can you help me?
  7. Hi All, I'm looking to setup communications between a digital force gauge and an Omron NX-CIF1010 RS232 serial communication interface.  Here is the Output Protocol from the Force Gauges Manual: Output Protocol RS-232 Parameter - Baudrate: 9600 - Data-Bit: 8 - Parity: none - Stop-bit: 1 The measured value is requested by the PC by the ASCII Sign “9”. I've tried to follow the youtube video, "How to communicate via RS 232 using an NX CIF to a PC" however setting up communication between the force gauge instead of a PC is proving difficult. How to communicate via RS 232 using an NX CIF to a PC - YouTube This is quite new to me so I'm trying to get my head around it at the moment so please correct me if I'm wrong. I'm reading values from the Force gauge in ASCII and I need to convert those values into another numerical value data type. I've seen in CX-Programmer, ASCII values being converted into Floating Point values using the "FVAL" instruction using Data registers however I can't use the same approach in Sysmac Studio. Do I need to clear the serial buffer everytime before I look to receive a numerical value from the force gauge? Here are details regarding the screenshots I've included below: 1) CIF101 Parameters to read Force Gauge Output Protcol in Sysmac Studio which should be matching the force gauges output protocol. 2) CIF101 IO Map in Sysmac Studio - ** I'm unsure if this is where I need to be linking the "RcvDat" input of the "NX_SerialRcv" function block? 3) CIF101 Sending Data Function Block - "NX_SerialBufClear" function block setup - "port_id" data type has been changed to "_sDevice_Port". 4) CIF101 Receiving Data Function Block - "NX_SerialRcv" function block setup 5) Global Variable - Array [0..3] OF BYTE - used in "RcvDat" input of "NX_SerialRcv" function block  6) Internal Variables Created  to send and receive data 7) Force Gauge RS232 Configuration 8) Force Gauge Output Protocol   Any help would be greatly appreciated. Paul  
  8. I am trying to create an Alarm handler for an NA5 HMI that can tell the end-user the 1SAN Drive AL Status code and an Annunciation according to the manual: I621. I already am using a similar method to use MFaultLvl.Codes in a Case statement that creates a message found in motion controller manuals. Ie. 16#6449: Fault_Axis0 := '1S Axis Immediate Stop Input'; I want to use the AL Status to create messages based on the Hex Code generated by the Alarm ie 16#20: DriveAlarm_Axis1 := '1S Overload Error'; 20hex being the AL Status from the Drive. However I  cannot find how to access AL Status from the Troubleshooter.   Thanks
  9. Hi! I want to change the keyboard shortcut of bookmarks function in Sysmac Studio, but I can't found any way to do that. On the windows "Shortcut key customization" on Bookmarks section I see some dark grey rectangle on "ShortcutKey" column, and I can't edit or add key. On the Sysmac manual on the section A-5-7 - "changing shortcut keys" I read that Bookmarks shortcut keys can't changed if "Controller" is selected from the Setting Target Drop-down List. But I haven't any other option on the drop-down list, and I don't understand how to change that. How can I change Bookmarks shortcut keys? Sorry but I can't upload image on this topic, the forum tell me that there is a problem on upload and contact the administrator.   Andrea.
  10. Hi everyone! I am attempting to read EIP tags from an Allen-Bradley ControlLogix from an Omron NX1P2 using the Sysmac Studio function block "CIPUCMMRead." I have been successful in reading arrays and single variables no problem. However, when I want to read arrays from a structure in the Allen-Bradley PLC, I always get an error code in the CIPUCMMRead ErrorID of either 0400 or 1C00 for ErrorID and ErrorIDEx is FF00 2105 depending on what I enter in for Size on the function block (attaching screenshots with both error codes).   The errors show on multiple "read" function blocks at once but it only affects data coming out of the function block where I try to read in a BOOL array from a structure in the ControlLogix PLC. If I enter a UINT#1 for the Size, I get ErrorID 0400. If I enter UINT#2, 3, or 4, I get ErrorID 1C00 with ErrorIDEx being FF00 2105. I've been digging for a while and can't find that specific combo of codes, but it looks like it's a size issue. From what I can tell, the Size is in Bytes. So if I have 32 Bools it should be a Size of UINT#4 max, right? Any help would be greatly appreciated! The function block having issues is setup the exact same as the other two that read from the same structure; I even copied and pasted them from each other and just changed the FB name and the postfix in the SrcDat string (from MyBools to MyDints/MyReals). Here are the screenshot: 1. Allen-Bradley Structure 2. CIPUCMMRead Function Block with size 4 3. CIPUCMMRead Function Block with size 1
  11. Hi everyone,  I recently started in the automation industry and am currently working on an Omron project.    So I have two programs, one on Sysmac Studio (which has the HMI) and the other on CX-Programmer. I am trying to simulate both simultaneously using the Sysmac Studio HMI. Is there any way I can do that where for example I can toggle stuff on and off from the Sysmac HMI and get feedback from the CX-Programmer ladder?    Thank you in advance. 
  12. Hello, I am working on a project currently that uses a windows application on a PC to communicate with an NX1P2 controller to read and write variables data. I found a course on Udemy which has a Visual Studio project with OMRON DLLs that are used for these communications. I confirmed with OMRON that they do have official DLLs for this, but the technical support guy has told me he is trying to find them himself.   I have attached a screenshot of the DLL references.  I am really looking for the DLL libraries, aswell as the documentation on their functionality to I can use them to communicate. Any help would be greatly appreciated!  
  13. Hi, I'm Jovel, I'm new to learning how to program PLC. Just want to learn how to use Omron Sysmac Studio . I have a question about the Data Type Data Type - Structure ( Offset Type - Offset Byte )  / Union   I Don't Understand this 2 Data types and how going to use them, can anyone teach me and have a sample program? Thank you
  14. Hi, currently I'm facing a problem between  NB10W-TW01B and NX102-1200 PLC. The problem is after I assign the area/variable using W/H/D and Download it to HMI, The HMI will Pop up PLC Response Error, anyone knows how to fix it ?? I have experience using NB HMI with NX1P2 and NJ PLC, didn't have this error before  
  15. Is there any one-shot instruction in sysmac studio? I am running a simulator to test the program but I can not work with LD and LDN instructions.
  16. Hi, is there a way to upload the safety program that is in the PLC, so i can get a complete project?  
  17. 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)
  18. Does anyone know how to change the reading on Omron servo motor reading from negative to positive? The encoder is reading negative values when it is moving in the forward direction.  I am using 1S servo on NX1P2 controller on Sysmac studio software.  Please suggest. 
  19. Just added a Keyence IV3 vision sensor to my NX1P2 system and have a little issue with the Tag Set / data structure. The Input and Output assemblies imported with the .eds file are an Input assembly of 101 with 394 byte size and an Output assembly of 242 with a 12 byte size. The problem I have is that the 101 Input assy size of 394 bytes does not allow me the OK/NG status of the vision tools from 17 to 64. I need an additional 6 bytes to access these bits in my data allocation table. My question is, Is it possible to modify this Input assy  to a larger size that is acceptable to the NX1 data structure. I tried just altering the size in my Ethernet IP connections tab and creating the corresponding tags in the data structure and it resolved and transferred OK but then would not allow my IV3 sensor to go online and communicate via Ethernet IP. How can I resolve this?
  20. Hi,   I'm developing an application in C# and need to communicate with a plc omron NX1P2. How can i do it? With cx-compolet? Or is there another way?  
  21. hi, at my current customer, they have a machine that shows ethercat problems after power cycling the machine/plc. When the PLC re-connects, or tries to, to the NX-ECC203 nodes, it can stop at a random node and refuse to connects to it and the rest downstream. One solution we have found, is to power cycle the last working node before the one that refuses to connect, then the EtherCat seems to work all the way, unless it stops at another later node. The PLC has 23 ethercat nodes, Most are NX-EVV203, 5 robots. Where the EtherCat connection stops at, seems little random, but the power cycling of the last working in that daisy chain, seems to work where the problem lies.   Any suggestions what could be done to fix this problem? Between the PLC and the EtherCat nodes, sits a GX-JC06 EtherCat switch, all EtherCat-cables to and from it, plus the module it self has been exchanged for new items, the problems persists.  
  22. Hello all, I am attempting to sort a selection list via 'part-selection' buttons. Ex. a certain type of model is selected, I only want to have the members of the array which match that model to be selectable. I can move the members into a 'display' array just fine based on comparison, but I'm fuzzy on how to put those 'non-zero' array members into a selectable array in Sysmac HMI code   See For loop attached   Thanks!
  23. HI everyone, I'm new in Sysmac Studio and I entered recently in the IAG creation, I have a question, is it possible to edit directly in the main project (not the IAG project) a label into a IAG? My IAG project is composed by a rectangle and a label on this and i want to see the string that i write when i edit the label directly in the Sysmac.
  24. Has anyone found Omron NX IO to be unreliable? I have 2 racks of various NX analogue and digital IO where connections between the IO modules appear to fail when modules are prodded with a finger. System will be running fine without error, then prodding/pushing IO modules will cause TS lamp to flash red on module and cause CPU to throw various errors such as image below. After cycling power, system will start up and run fine with no errors present. Doesn't appear to be related to any particular module and where a particular module looks suspect, fault symptoms will not follow suspected faulty module when swapping with other modules of same type in the rack. Contacts on sides of modules are clean with no dirt or corrosion visible. System has been installed for 24 months and these issues started appearing at around 12 months and seems like it is getting worse. Local Omron tech support are saying solution is to "re-seat" the modules by sliding modules in and out of the rack 10 times. Strangely enough, this actually improves situation for a while and then modules will start playing up again. I am wondering if this is typical of NX IO modules? The connector arrangement on sides of the modules on close inspection looks like it may be prone to spring/wire side of connection jumping out of shallow grove in mating module.  
  25. 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