Search the Community

Showing results for tags 'programming with function blocks'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 139 results

  1. Hi,  I write a CAM function to sync 2 axis (Rotary & linear). i am using a virtual servo as master, and 2 physical servos as slave. The problem i facing is, with the exact same CAM profile setting, when difference speed used will give difference result of movement. Below is my setting, Master axis     linear motor move 0-180degree   0-500mm 180-360          500-0   when running with slow speed, it move following the CAM profile setting, however, when moving in fast speed, the linear motor will only move halfway then start to moving back 0 already. Has anyone encounter this issue before? is it i missed out some setting? Thanks.
  2. Hi All, I need access to a the Safety function blocks within a safety CPU using sysmac studio on a machine we are upgrading.. Is there a generic password available to gain access? Best Regards, Paul  
  3. 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,
  4. Hello, In GX Works2, what do asterisks before function block input and output variable names mean? Thanks,    
  5. thumb wheel switch

    how to program a thumb wheel switch with delta plc using isp sowftware 
  6. Emerson 90-30

    I'm working with Emerson 90-30 on proficy machine edition and I'm trying to use a string variable to display words on a graphical panel in target 2 but withing the code itself on target one I cant seem to understand how the reference address works? can some one explain how string variables function and how to use them?
  7. Hi!Are you tired of skimming through menu bar items in TIA Portal in order to finally find that one command that you were looking for?So was I!So I´ve composed a handy one-page list of keyboard shortcuts to execute those commands in no time (FACT - 99% of them are executed using your left pinky and your left/right index finger ). Check out the list of keyboards shortcuts in the PDF attached below.For more practical tips and tricks on TIA Portal PLC programming -> go and have a look at my video course by clicking on the link below:https://lnkd.in/eipFaGm   Keyboard Shortcuts.pdf
  8. As the industry of plc and scada softwares continue to integrate more and more programming languages into their IDE, what is the most common language that should be learned by controls engineers (excluding Ladder Logic)?  I mainly use Python and VB for scripting but I am curious what languages other SCADA and PLC programming environments use. Should I be sticking to a specific language and learning it well or just know a little bit of them all? Let me know your thoughts!!
  9. Nematron DOS software

    We have an older Nematron system we are working on and requires some software. The system uses DOS 6.22 and launches Screen Ware 2 software and the Reliance DCS V1.01 to talk to the Rockwell AutoMax PLC that uses the Programming Executive Version 4.2. We have the Nematron parallel port keys (dongle) needed and are looking for installation media for editing. We also need information on the executables that open the screen files the ULTRA MAIN MENU is not available to us. We are interested in viewing the config for upgrade so even software that is newer and capable of converting and reading the program is fine. Any help is appreciated!!
  10. Hello all,   I am working on a batch computer for a concrete mixer, and the computer that was running the plant before has stopped functioning. It was an old PC running MS DOS. The code is encrypted and replacing it is not a cost effective option.   I therefore am looking into using a PLC to control this batch plant. I have a setup that was in progress by another employee who no longer works for us, it is a CLICK PLC from Automation Direct, and it is supposed to be paired with a EA9 T8CL touch screen HMI from the same company. I would like some advice on just some basics, I would greatly appreciate some input.   I essentially only have one input, and that is an analog scale, 0-20mA input. I have digital outputs for sand, gravel, cement powder, and a water meter for adding water to the mixture. I have one final output, an additive for reducing the required water in the concrete.   What I would like to create is a program that when it is told to start, looks at the scale, and if the scale is less than say 100 pounds, opens sand until it hits 1700 pounds (as an example), then turns it off. Then it turns on the gravel and adds that for another 1700 (again for example, all these are variable), turning the gravel off after. Next the cement, and so on. I don’t need someone to write the program for me, but can someone point me in the right direction on using an analog input to turn digital outputs on and off? Again, your help would be greatly appreciated.   Thanks for taking the time to read this long post.
  11. Version 1.0.0

    40 downloads

    PRNG algorithm packed into a functional block. As an example of using ST language for Omron CJ series PLC.
  12. Function block RANDOMIZE on ST View File PRNG algorithm packed into a functional block. As an example of using ST language for Omron CJ series PLC. Submitter drYurban Submitted 10/05/22 Category PLC Sample Code
  13. Version 1.0.0

    29 downloads

    An example on ST is the definition of the fronts of a discrete signal.
  14. Function block on ST for algorithm DIFU DIFD View File An example on ST is the definition of the fronts of a discrete signal. Submitter drYurban Submitted 10/05/22 Category PLC Sample Code
  15. valve_control

    Version 1.0.0

    49 downloads

    A working example of an FB to control a valve from an HMI panel. Controls closing/opening times, plus a little visualization.
  16. valve_control View File A working example of an FB to control a valve from an HMI panel. Controls closing/opening times, plus a little visualization. Submitter drYurban Submitted 10/05/22 Category PLC Sample Code
  17. cx programmer

    Hi everyone< i need some help with CX programmer i have written a programm as when i enter the Set value on HMI in D892 and press enter the Input 1100.01 energises and this executes Substract block (415) which sbstracts #6 fron D892 and saves it in D896. Them Comparison b;ock (300) compares D896 with #0 and as soon as D896 is equals to 0 the ouput flag W11.01 energises Now as u can see in the image below the value in D896 in substraction block and Comparison block are different and this is causing the output to energise at wron count . Why is there a difference In the D896 value?? 
  18. GX Works3 Projectlib Locked

    Hello, I have a problem that I need to solve in a PLC program has it's projectlib locked.  I work for a company that contracted a PLC programmer before my time to program their new version of their control cabinets. The company did not write any specific contract with the contractor and just relied on his work. The guy later delevered a buggy software that is kind of functional (the bugs came up at the commissioning after the guy was paid and now he refuses to help or to provide more consultations). I have as a task to freshen this up and make it work without bugs, the problem is that the Projectlib is locked and I cannot access the source code.  The only thing that I can changes that I can make to the code is to put some logical circuits between the I/O of the already existing function blocks, which solved some problems, but not all and it keeps one of the most important ones as well. Anyways, that's my story, so now my question is, is there and possible way of unlocking the projectlib? Any feedback would be highly appreciated. Thanks in advace!
  19. Hello all,  There are two pressure gauges in a line with a flow of water. The flow is controlled by the pumps which is controlled by the PID whose control variable is pressure gague -2 . In ideal condition the pressure gauge -2 remains at 55 psi and pressure gauge -1 stays at 82 PSI. But in the line if someone opens a manual valve then pressure gauge - 1 reads 100 psi because the pump is running as per pressure gauge 2 . Is is possible to clamp the PID so that pressure gauge 1 remains at 82 psi.    FYI: Pressure gauge 1 is right after the pumps and pressure gauge 2 is at the end of the line. 
  20. hello everyone, I using stepper 17HS2408, microstep driver, modul motion QD75D2, PLC QD3UDV,, i've been trying to use program Absolute in axis 2. When I trigger the command to run absolute program the current value is running but the stepper motor still not moving, is there any suggestion about this?
  21. Hi, I have quite a noobie question. I want to create a function block to do some simple operations on 2 variables. Both variables are In/Outs (see picture attached). How can I make this function accept variables regardless of the data type? Given these is just simple math I am able to use the same instructions in REAL, INT, UINT, etc. But, the function block only lets me assign one Data Type to the In/Out variables.
  22. GX Works 3 (R04CPU) Device Memory

    Hello,  GX Works 3 / R04CPU. I'm using the Device Memory so that I can link the HMI to my PLC. I've set aside some memory, in this case D3260, to be used as a Real (32 bits data, Float single precision) to be set by the HMI (operator adjustable setting) and read from the PLC. I thought I'd move D3260 into a local label for readability/testing purposes, and it says I cannot move an Int into a Real - which is fair enough, but, how/where do I set D3260 as a real? Do I use some Functions to take D3260 + D3261 and make it to a real, or define the data area as a real somewhere...   Dumb question I know, I'm new to GX Works 3. Thanks very muchly    
  23. Codesys

    Hello - I stumbled across some mention of Codesys and was curious if anyone here uses it. Pros/cons? prefer it over other programming software. Have it downloading currently (since you can download a free variation of the application) but it looks quite interesting. Also - what PLC hardware is programmed with it? Did not see that mentioned on their website when I was browsing through.
  24. Delta isp fb

    Does anyone have some delta isp function blocks they can share with me please
  25. hello Every one,    I am using a CP1-L PLC and want to communicate to domino ax350i printer over TCP/IP socket programming. For socket programming, I used Omron Function Block CPU012_SendCommand.  I defined network ID and node address. However, I am getting 0502 error which means routing table is not set yes. So, how can I set routing table for both devices?. my PLC on 192.168.250.1 and Printer is on 192.168.250.123 node 7000.    Can any one suggest me best way to do.  Thank you   attached file is for what I did in setting and program for the communication.