All Activity

This stream auto-updates   

  1. Past Hour
  2. Today
  3. Arithmetic behavior causing a quick zero

    Also to your note about 16 or 32 bit results, if it were 32 output it should strongly affect my other arithmetics who rely on that device that may get unintentionally modified. But all my arithmetic results are accurate, just having this sweeping zero... But respecting your thoughts I did the following and I find this to be an acceptable solution. Originally I was using D100 as my buffer to do calculations before sending the final result to d121, for example, via the arithmetic output. If the arithmetic still outputs 32 bit then it captures D122 which is my next analog input result that I don't want to have messed with. So lets back up the buffer entry to D99 so it has D100 to claim making a 32bit buffer (because D101 is one of my raw analog input devices). I then have all arithmetics for all my analog input readings dump into that 32bit buffer, and then add a new MOV step to move just the D99 16bit info to D121. Attached is my new working code. This eliminate my sweeping zero issue. None of my calculations break past 16bits but it is apparent that the arithmetic is 32bit output despite the documentation saying 16bit and was 'capturing' or 'freezing' or 're-initializing' the 32bits to 0 before doing arithmetics, and my sweeping zero was the second byte of that 32 bits that I would see in my HMI. So had my calculations overflowed 16bits, it would probably had shown non-zero instead of a sweeping zero. I supposed my outputs were also always accurate because there was always 0 in the second byte of the arithmetic. If it were non-zero then my other arithmetics would feed in that value and go all bonkers. But zero kept them level headed.   I still, totally, ignored labels in this solution. If you have good documentation or youtube videos on applying labels that would be much appreciated. Otherwise I will keep doing what I know best which is all devices. I spent a good hour trying to figure out the labels but it was fighting me really bad.   Otherwise, thanks very much!! You helped a lot.
  4. Allen Bradley Explicit Messaging

    Does anyone still have that EDS file ?   I'm looking for it for 3 weeks now!
  5. Arithmetic behavior causing a quick zero

    I mean, I can get it to change errors doing various foolish combinations of data type and array sizes, but this is not too productive because I don't know what it is asking for. It eventually just says the data type doesn't work with the device. I have been looking around on youtube and am surprisingly not finding any explanations on setting up arithmetics with labels...
  6. NX1P2 conection a CJ2M

    If you map a BOOL[160] as you input variable in the NX1P2 you will automatically convert the 20 bytes into bits  
  7. Arithmetic behavior causing a quick zero

    I did find an Array Element option when configuring the label type, but that did not resolve the error adding a second element to the array.
  8. Arithmetic behavior causing a quick zero

    I am using labels now, but please be skeptical of my application of them. I have never used labels before. I get an error when I convert saying to specify an array label of '2' elements or more to the label being used. I attached an image. I'm fiddling with it to try to make it work unless you know what that's all about? The documentation doesn't seem to share what this error means. In C I would assume it just wants me to make an array of 2 elements like [a,b] but I don't know how to do that here. Nor do I understand why? This is a simple multiply operation. The two elements are D101 and AI_CALC_BUFF in this case. Should I also have the raw data from my analog module go into a label as well? The documentation hinted that labels are fussy with 'trigger' events, don't know if that includes my analog module... I'll fidget with that. What do you think?
  9. Omron NA5-NX1P2 - Password page

    Pending information I'm unaware of, the button with Level 5 security would be disabled before login. It would become enabled upon Login(). I do this with a separate button. Use a normal button then go to the Events and Actions tab and set the "Click" event to Login(). This will show the login prompt. You can additionally display the current logged on user via a Data Edit object. Set it for Text then use "_HMI_CurrentUserName" in the Expression.
  10. Wrong values on FX3U

     OUT_C_32  is needed to activate the high speed counter Dmov is for the values  
  11. MX OPC Could not connect to server

    I would get an IT person to help you collect a wireshark capture, to see how far the connection attempt packets get.  And therefore let you focus on where they stop.
  12. Wrong values on FX3U

    I know what the difference is between C250 and C251, but it's just different on this PLC. I'm going to try the OUT_C_32 instruction. What's the difference between this and DMOV? But the changing values based on which labels/devices are in the view sounds like a bug? I'm trying to display the D8340 and ACTUAL_DEPTH values on the HMI, but there it just stays 0.
  13. Wrong values on FX3U

    There is a difference between C250 and C251. 1-phase 2-count input & 2-phase 2-count input To activate the counter use OUT_C_32 instruction As for the monitoring keep in mind that the program is running much faster then you are monitoring.  So many scan have been processed which changed some values. Active open or closed is only what you programmed the depending on the value of the bit it will be filled blue. So a normally closed which bit is off will be blue filled p.s. For real production i would not use a clone !!!!!
  14. Arithmetic behavior causing a quick zero

    You should use labels than you would have gotten an error,  Some instructions Like multiplcation the result is 32 bit so it uses 2 Registers. So if you enter D120 (it's also D121) When you use labels you have to define the type so you would have gotten a notification when building the project
  15. MX OPC Could not connect to server

    @Gambit Yes, I'm pretty sure that I've already started the server. So now I don't really know what to do.
  16. Yesterday
  17. Fx5UPLC

    You can flash it with SD card. Everything will be cleared to factory settings, including program, passwords and filtering.
  18. Accessing specific bits in a word.

    Figured it out. D100.a is the tenth bit. So... D100.A D100.B D100.C D100.D D100.E D100.F It's in hex for selecting which bit to access, but the device number is decimal. Kinda funny but makes sense.
  19. Accessing specific bits in a word.

    Hello, quick question, Using the syntax D100.1 as shown above works up to D100.9, but in GXworks3 D100.10 is a syntax error. These are 16 bit devices, how do we access the remaining bits like this?
  20. NX1P2 conection a CJ2M

    I made an Ethernet connection between an NX1P2 and a CJ2M using network configurator and I already have a real-time data input and output connection in the memory of both plcs. I need to send a 20-byte word and when the NX1P2 is modified in the CJ2M using Sysmac Studio, it receives that string of bits, decompresses each bit to be able to activate the NX1P2 outputs.
  21. Arithmetic behavior causing a quick zero

    Hello! I have a tricky issue I cannot resolve. I have an array of 16 independent arithmetic groups where one arithmetic operation group happens and then the next group according to a timer. An arithmetic group is a simple divide and then multiply. I attached an image of the first few groups, there are 16 in total. Background: Arithmetic Operation 1: What happens is when T1 = 1, then D101 gets divided by K32 and stored in D100 (a memory buffer / placeholder) Then D100 gets multiplied by 5 and stored in a unique final destination D121. And then this operation group is done. When T1= 2, the next operation in the ladder happens which is the same code but instead D102 for source value, and D122 for final destination. D100 is always the same buffer memory. There are 16 total operation like this in an array. They calculate accurately so the issue I am about to explain I technically can ignore but... anyways --> The Problem: D122 from the second operation group, for example, will be reset to 0 during that operation group's time. It releases the correct calculated value when the timer moves to the next group. So more specifically, if when T1 = 2 controls D122 who is presently 4000mV, when T1 is = 2, D122 becomes 0mV during this operation time. When T1=3 to move to the next operation group, then the correct 4000mV is displayed (correctly) again.   This is annoying because I have an HMI showing all 16 voltage measurements and there's this sweeping 0 that moves through all the results as the timer counts up, like a refresh 0 showing who's beig updated. It doesnt mess with any accuracy it just makes them all flash zero during their respective calculation time. Hope that makes sense...   It might get annoying later when I start plotting charts in real-time because occasionally this zero lines up with the sample rate of my slower refreshing chart and it will store a random zero in the plot. Might make my field technicians concerned. Initial Thoughts: Since it seemed like it was just held at 0 during the 10ms window (each timer integer is 10ms), then I thought I could try to one-shot it and maybe it will release the resultant number immediately after calculation which is nano seconds. But apparently the P in my arithmetic syntax is already one-shot code: https://forums.mrplc.com/index.php?/topic/4873-one-shot-with-a-math-function/ So I do not know what to do. I just want it to update my value without showing 0. Experiments: The workaround I found was to give more space for my operations like, if my resultant data locations are D121, D122, D123.. etc. The hold-zero issue goes away if I space it out like D121, D123, D125, etc... But I have data constraints that might happen in this large project so I am trying to be space efficient. This arithmetic I am using is supposed to be 16bit only and it's influencing and somehow giving it the next entire 16bit device makes it happier? I don't understand. Again, I get the correct results. I could just ignore this. I might even keep it as a screen saver type function I dunno, I just want to understand the consequences of this phenomenon. Also...: If you know a more efficient way to do my operations I would be much appreciative but don't have to. Thanks!  
  22. Fx5UPLC

    Hi I have mitsubhishi FX5UCPU plc few days ago I had put ip filtering in this. Now my PC has damaged and forget the password. Is there any possibility to connect with this plc.
  23. Wrong values on FX3U

    This is my first time programming a PLC, so I probably make a lot of rookie mistakes. I'm trying to upgrade a keyseater machine by exchanging damaged mechanical parts with new electronics. Because this is my first time working with a PLC, I ordered a cheap FX3U clone on AliExpress, just to try. I'm using a Structured Project in GX Works 2 for programming. I already got some functions working, but I'm having a bit of trouble with encoder input en position output. I'm using function C250 for a quadrature encoder. This is actually C251 on the original FX3U, so there might be more differences between the original and Ali version. Sometimes C250 works, but sometimes it stays at 0 counts. My first guess, is there a way to "activate" this function? Or should it be always on? I see ladder examples using a coil to write K9999 to C251. But I'm using structured ladder. Is DMOV K9999 to C250 the right way to "activate" this function? The second problem is D8340. According to the manual, this value is the actual step count of the step/dir output used by DRVI for example. I want to use this value to calculate the tool position. When monitoring this value in GX Works 2, the value is always wrong. Sometimes it keeps changing between 0 and 10 without any inputs or outputs changing. Sometimes a much higher value, don't remember what exactly, but also +/- 10. But what is even more strange, when I have this value on screen while monitoring, other values are wrong. Some closed contacts are open, some open contacts are closed and numeric values are wrong. When I scroll the D8340 label out of view, the values are good. See the attached screenshots. Is this a bug or am I doing something wrong?
  24. PL7 TSX Micro

    yes Unitel01 Network Build is as follows 7 sections of a machine Section 1 and 4 have tsx premium all other sections are TSX Micro NETWORK they have a print out where the following is identified and i was able to open the offline settings on the hmi's to verify the config of the PLC"s on the Network plc 1 (1,1) plc 2(1,2) plc 3 (1,3) plc 4 (1,10) plc 5 (1,11) plc 6 (1,12) plc 7 (AB micrologix ) plc 8(ab compact logix) all PLC's have pcmcia to talk plc to plc plc 1 has a tsx p9y100  profibus master card in slot 6 talking out to other I/O bricks and blocks all magelis HMI'S are connected to an AUX or TER and Aux port depending on QTY. Where they have a multi cable running to terminal blocks All PLC Programs and Identical wording and by sections they sit on their respective words and interact with each other     Resolution: When connecting any Magelis HMI to the Aux or TER port the HMI will Consume (2) addresses from the starting point you configure in the HMI application. Using the Device Configuration settings the user is obliged to setup the base address [server] and no. consecutive addresses.     Yes so the HMI project the customer has are not the original, but from another machine similiar build , vintage, and manufacturer.   limited to number of images i can upload. each PLC  is setup like below on ch0 and ch 1 is the
  25. Omron NA5-NX1P2 - Password page

    Ok, I think this is what I need but just to use on certain buttons now on the main operating screen. But just to make sure I got this right.. If I program a button with access Level 5, and someone tries to enable that button, it'll have a pop-up window to type in a Username and Password? Then only people with level 5 access can access that page?
  26. MX OPC Could not connect to server

    During installation you didn't set start automatically when booting the PC. So it looks like the OPC server has't started. Have you started the server ? Basicallly your screencapture is already providing the correct steps   
  27. Etherway 3.3 View File Omron Etherway 3.3, download from myOmron website. Submitter sonicjw Submitted 04/18/24 Category Utilities
  28. Etherway 3.3

    Version 3.3

    0 downloads

    Omron Etherway 3.3, download from myOmron website.
  29. Load more activity