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. Hello all. I have been working with an SLC 5/04 system, which houses various Digital and Analog INs and OUTs, up to Slot 29. I am currently mainly working with Slot 25, an Analog Input: 1746-NI16I. This is a system which has already been set up and has been running for the best part of 8-10 years. This particular card has had some spare inputs, one of which I am trying to connect to. In the Advanced Configuration, only a few Channels are actually "Enabled", and each channel is pretty much slightly different from another in terms of Input Type, Filter Frequency and Data Format. I am trying to set up Input 14, which is Channel 15, to "Enable" it, 4-20mA Input Type, Filter Frequency of 6 Hz and Data Format of either Raw/Proportional or Engineering Units. Now, after I have made my choices, I click apply, and then OK. I am then confronted by a pop-up which states: "Configuration Rung and Data Integer Data File Number: 25 Integer Data Element: 100 Rung to be inserted: XIC S2:1/15 COP #N25:100 #O0:25.0 24 At Program File Number: 4 82" I have the options of OK or Cancel. If I click OK, I now have LAD 4, Rung 82 Highlighted. This First Scan Bit and COP function were already here, but does that mean I have now altered what is being written to "#O:25.0"? I now Download the Changes. However, after all this, I am not getting any Analog input reading coming in from the Live PLC. What is this COP function? What does it do? How do I properly set up this Analog Card?   Thanks for your time, -Jame
  2. Hi, I have some trouble with a CJ2M-CPU33. My client did a backup to memory card earlier today, and after this we did some changes through remote link. Now the client wanted to restore the previous backup to the PLC and has done so, but the system would not function correctly. After going online on the PLC it seems like the PLC is stuck in "Stop/Programming Mode". When trying to change to "Monitor" or "Run" mode a dialog comes up containing the following message: "Failed to change the operating mode. The operating mode may be still changing in the PLC."  - All the dip switches are set to off after restoring backup - The PLC has been rebooted  - I have downloaded the application again through CX-programmer  - Verified that the PLC is set to start up in "Monitor mode" But nothing helps. The same message comes up when trying to change the operating mode.  Hoping anyone can help to resolve this issue as it is very critical for us and the client. In advance, thanks for any tips or help received. Best regards Stian
  3. GS2107 BASE SCREEN

    I am new with GS2107 WTBD, please anyone tell how to set the following initial things: Base screen overlap window1 overlap window2  superimpose window1 superimpose window2 Dialog Window Just want to make any new program for HMI, but not able to proceed without above settings.  
  4. ANALOGIC BIPOLAR OUTPUT - HELP

    Hello everyone,   I'm a student who recently started programming, and I could really use some help.  I have a CPU-31 CJ2M OMRON PLC and a ADO41-v1 analogic card. I need help programming an analogic scale with a bipolar signal -10V to +10V to then control a drive, which will then control the motor. If anyone could help me out of give me some examples I'd be really thankfull.   Thanks!
  5. Hello. How can I get bit addressing of defined variable in function block? For example: - I define variable type DUINT with name Double_VarI_INT. - I want to get or set one bit out of it (its double word). - If I use Double_VarI_INT.0 I got error. Best regards.
  6. Gx Works 2 ve fx2n için bir fonksiyon kütüphanesine ihtiyacım var. Servo ve step motor kontrolü için.   thank you
  7. PLC Training

    Hi Everyone We are setting up a initial training in PLC programming for technicians, I got some experience with SIEMENS S7 but this seems to be an expensive choice, we would like to opt for a budget PLC but at the same time would like a user friendly software for teaching......I would like to have views of users of other PLC brands such as OMRON, MITSUBISHI or even Schneider??? thanks Jay
  8. Struct as FB input

    Hello,  I am trying to define a struct as an input variable for a Function or Function Block. For example the function AddDelimiter (This is a standard Sysmac function), has a input variable with the variable type Struct, an it is possible to couple a struct to this input (See picture below). If i try to make my own function block with a struct or Structure as an input data type, i get the following error (See picture below). When I try to define a struct from the data types (In this case struct: Test) it doesn't give a error. But when I try to couple a struct to this input, that is a layer deeper than the function block struct i get the following error (See picture below). How can i define a struct as an function/ function block input? Thanks in advance.
  9. Hello,  I have a micrologix 1400 plc connected to a length measurement gauge. The gauge sends an analog value to the plc to an analog input. I convert the value into a dimension and send it to F8:0. but I need this value in three different steps in the program. Since i just have one element of float (F8:0) is there anyway i can store the value in a different location or create more floating point tags eg. F8:1. F8:2 ?    Thank You   
  10. Anyone ever used a Wait-for digital tag in a C Program? I have to use C in the Red Lion Programs.. but, I'm not at all proficient in C (or anything else for that matter ..) Here’s a nice problem for basic C programming .. I really need to solve it .. but, so far ... can't ... sigh!: I have an actuator that will be commanded to make sine wave motion.  The program that does that, in the actuator’s driver-controller, requires the actuator to first be in a zero position.  Homing has already been done, so the drive knows where the actuator is.  I cannot modify the sine wave program; but, can command a Move Absolute program in the drive, to take the actuator to zero, if it isn’t already there.  When the actuator is at zero, it is “In position” and a digital tag will go True. If the Tag is False, the actuator is not at zero, it’s at some other position,  and only the Move Absolute program can return the actuator to zero. So, when launching this position command program, In a Red Lion G3 HMI, using only Basic C programming, how would you write a control program that would test the status of the actuator’s position, and, finding it at zero (the “InPos” tag is true) would start the Sine Wave program.  And, If the “InPos” Tag is false, would start the Move Absolute program, which would return the actuator to zero, and when the actuator is In Position, would start the Sine Wave program. Here’s the tricky part. It will take only a few milliseconds to start the Move Absolute program (if required) .. but how do you get the “C” control program you are writing, to wait until the actuator actually reaches zero, and the “inPos” tag goes true … which could take several seconds? I don’t believe there is a WaitFor function in “C” , and you cannot send either the Move Absolute, or the Sine Wave program more than once .. so, if a loop is used, it can loop only one time .. presumably with conditional delays. (however that's done)  You cannot use Sleep().. that would be cheating.. the full program must run in the least amount of time, and you do not know how far the actuator is from zero. You could use if (! InPos) or if (InPos) to qualify what programs to run .. but, where does the “Wait for In position”  fit into C Programming?  You might be able to use Continue .. but, ya still have to wait for “InPos” to go True…..before running the Sine Wave.       Thanks Much, Regards, Michael
  11. I have recently come across a free virtual plc simulator called PLC Fiddle. It will enable you to create simple PLC ladder logic code within your browser. This is an ideal way in understanding PLC concepts for industrial automation. All of the basic PLC instructions that come with most plc units have been incorporated in this virtual PLC software.PLC Fiddle is currently in an early stage of development but is functional enough to be helpful to you in learning and understanding PLC concepts.  http://accautomation.ca/plc-fiddle-online-editor-and-simulator-in-your-browser/ YouTube Video: https://youtu.be/G43ZLOwu2dM www.plcfiddle.com Let me know what you think of this for a learning tool. Thanks, Garry
  12. Hello Friends,  I've been writing a program for several days now, Actually I'm an immature for CX programmer and also for plc programming, So I'd like to ask you, if there is any decent way ,,,,I mean a good method of starting to write a program and keeping the flow of it so, it is easy to keep track on what i've been doing from the beginning.??  Cuz sometimes I face the problem of loosing points that were written by myself but not remembering them, So I'd like to learn how to organize my written lines as a wanna be professional.   Thank you   :) 
  13. Programming cables

    Is there any website that provide all details about programming cables for all PLCs.  I have one local Indian plc "Genie NX" manufactured by GIC India. I want to make programming cable for same. but unable to get details. please let me know if anybody used it? http://gicindia.com/index.html for more info
  14. Hi,   I am using Omron CP1E NA 20DTD with built-in ANALOG inputs and output. I know how to deal with digital inputs. But I have no idea about analogue input wiring and programming. I tried connecting gefran LVDT PY2 directly to an analogue input of plc. But the indicator light did not turn on. Do I need to use any signal conditioner or converter? The output of lvdt is 0 to 25volts. I HAVE ATTACHED THE DATASHEET OF LVDT. DTS_PY2_06-2016_ENG.pdf
  15. Profibus Function Blocks for Q2ASCPU for Melsec ST Lite RIO inter-connection. Please assist in advising the attainment of such blocks - if any existing. Thanks
  16. Click PLC Series Tutorial

    This Click Series PLC tutorial will give you a good start in learning how to program this controller. Click PLC Series (Automation Direct) System Hardware – Video Installing the Software – Video Establish Communication – Video Numbering System and Addressing – Video Timers and Counters– Counter Video – Timer Video Compare and Math Instructions – Video Program Control Instructions – Video Shift Register – Video Drum Instruction – Video Send and Receive Instructions – Video AdvancedHMI Communiation – Video Create an Analog Voltage Input Tester for a PLC – Video Wiring Testing Analog PLC Input Click – VideoModbus RTU Click PLC Master to BRX PLC Slave Communication – Video If you have any questions or need further information, please contact me. Regards, Garry www.accautomation.ca
  17. Hi All, I'm still quite new to Unity and Modicon PLCs. I have a PLC program running in simulation mode for development/test and I'd like to follow the logic inside a running block. I can't seem to just double click the function block while online to see it's 'inside' logic. Is there a way to inspect the inside of a running function block? How can I check and diagnose the logic a running function block? Thanks!
  18. Hello I am kind new at Allen B. PLC and i have to make some changes in the PLC program: - add 2 safety switches. - add 4 photo sensor. just want to know what software do i need to make changes online. PLC \I have is  SLC 5/03 1747-L531 also have a touch scream terminal that i need to modify   panel view C600   thanks for your help guys.
  19. ESATR / EGATR Commands

    Good morning folks, I've browsed this forum often enough over the past few years that I think it's time I finally signed up.  Lots of good ideas and advice that I've benefited from and I hope to return the favour some day. So on to my question.... I'm currently knee deep in a project using a CJ2M PLC and I have to send and receive chunks of data over Ethernet/IP.  To do this, I'm using the ESATR and EGATR commands (set / get attribute).  I would like to know if these commands finish execution (ie. the ethernet port completes the transaction) even if the input conditions to the command are no longer true.  Specifically, if I use the "port ready" system flag (A202.00 is an input to my FB in this case) as a condition to trigger the ESATR command, this bit will go low once the port becomes busy (ie. during execution).  So will that interrupt the completion of the ESATR command resulting in an incomplete transaction and data loss?  I've looked through the help files on the command but don't get a clear picture of how it behaves. Perhaps the attached JPEG shows more clearly what I mean. Thanks, PC
  20. Hello All, A little bit about my current role. I am currently a Automation and Welding Robotics Programmer ( automotive industry ). I have been programming robotics for almost 4 years at my company, but this is all experience work, no qualifications. I enjoy the role but this is very insecure due to having no qualifications, if the company was to go under. I am currently working out in Hungary on a secondment with my company. The project was the introduction of a second line at one of our other plants. This has gone successfully and will be coming to an end come December.  While i have been here i have been working with a PLC Engineer ( Contractor ), After speaking with him about his role it intrigued me and felt it was something i would enjoy pursuing. Unfortunately it appears that he is a "knowledge is power" kinda guy which leaves me unable to learn anything from him.  So i am 30 Years of age this year... So my question is too any of you experienced and hopefully helpful individuals is...  Is 30 too old to start this career? if not then; Where is the best place to start learning about PLC Programming? What should i be learning? What courses are available? - Are there recognised governing bodies for this role? What career path would you suggest? I hope someone is willing to share info / answer some of my questions. Help in anyway would be greatly appreciated.
  21. Hello, I am currently working on programming my first sortation system.  Attached is a blue print of the in feed conveyors and their loadout lines.  As boxes merge together they will be scanned by the barcode scanner.  From there we will be told which lane each box must go down, from the WCS.   My question is, without encoders, what would be the best way to control this system? Counting the packages as they pass through the photoeye? Or setting timers?   Thanks, James Sorting Conveyor Layout.pdf
  22. Good day Please assist me - pertaining to the QSeries GXWorks2 Programming  - and in particular the utilization of the macrocode functionality. The information required includes; [1] Purpose of macrocode (incl advantages) [2] its utilization's effects on the PLC programming memory (it appears that it consumes more programming memory. [3] any reference documentation that could be used - containing specifically information regarding this feature (note most manuals doesn't discuss this)
  23. CJ2M-CPU32 and CJ1W-TC002 help

    Hi everyone. l have a project with omron plc but l dont know omron. l have CJ2M-CPU32 and CJ1W-TC002 also input and output units. do you have a example temperature control programme for this device ? 
  24. Starting Problem with FX2N-2LC

    Dear Experts, I have been trying to activate FX2N-2LC temperature control block but nothing could help. I have tried the ladder logic which is available in Mitsubishi manual but this is not any output from the module. Please help me or guide me to get rid over this problem, I am attaching the ladder diagram so you guys will get the Idea to where I am going wrong.   FX2N-2L Program.pdf
  25. FR-DU04 (FR-A500) vs FR-DU04-1 (FR-V500). Programming unit differences. (A VSD question) What is the difference between these units? Why are they not interchangeable. (Other than the fact that the FR-DU04-1 is used for vector VSD applications, and the FR-DU04 is intended for standard induction motor applications. Is this a matter of firmware differences?