Search the Community

Showing results for tags 'structured ladder'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 105 results

  1. Unconverted Ladder Code?

    Hi All, Please see attached screenshot: Whenever I want to save the ladder program or start simulation, this window pops-up. If I press 'yes' I loose the whole work. I tried to open existing program and modify it, but it did the same. When I clicked 'yes' I lost all modification and just the original program remained. (I made the program in the morning, opened and saved many times but it started popping this window later.) I work with FXCPU series, FX3U/FX3UC type, simple project in ladder. This worked well but now is not anymore. I use Melsoft GX Simulator! Can anyone advise why this is happening? It is very annoying! It is pointless to work on anything now! Many thanks
  2. Crane Positioning

    Hey folksI'm trying to make a Ladder program in Sysmac Studio to control a Crane.The crane gets via a HMI a position that it must drive to, first at high speed then in low speed this is controlled via encoder signal for fine positioning there are several sensors.For all this I have an NX1P2-9B24DT1, NX-EC0222 and 3G3MX2-A4030-ESomeone here who can help me with an example of how this can be done in Ladder.Many thanks in advance for your help.
  3. Hello everyone, I am new to PLC programming and will start working on Allen Bradley PLC. I have an experience in computer programming languages. Will learning ladder logic be a better option or starting with structured text as i have some knowledge about the syntax and programming of structured text?
  4. Hello!   I have a humidity sensor 0-10v and his measurepoints is for 10 to 90 humidity %. Using the Analog Amplifier, I set his measure range but theres a problem... he's only givin me integers numbers, and I need the decimal one's to. On the Analog Amplifier, with that range the program says that the gain on the measure is 0.08 for each number on the analog input, theres a way to see that decimal places? I tried increasing the measure range to 100-900 and set the decimal case to 1 but the gain turns to 0.8, with that I just can take jump number like 10.8->11.6->12.4. How can i do this on the way that I need? It's an LOGO 8! After setting measurement range from 100 to 900:
  5. Reset button with structured text

    Hi! Pls program: When you bush the safty button on/off.  You must bush the reset button to make the pls-program function again.  Q: How do I program the reset button in structured text (cx-programmer) ?        
  6. So I have a plc program where most of the outputs are based on a counter that goes from 0 to 1000. The counter speed is adjustable and is generally set to run through a full cycle (count from 0 to 1000) anywhere between 0.5 to 2 seconds. The problem is, when I try to energize an output by using an EQU instruction, it will almost always skip the count because the scan time is not fast enough. I've been using a LIM instruction which has been working, but its not quite as accurate as it needs to be. I switched the counter logic to be continuous to try to make it faster which made it almost perfectly accurate... But only in the continuous task; it made the other periodic task significantly less accurate. I was curious if any of you had any tips on how to remedy this or just general help. I am still relatively new to PLCs and ladder logic so any advice would be awesome, Thanks in advance! Edit: The purpose of the counter is to cycle through from 0 to 1000 over and over again. My outputs actuate during a certain interval within this cycle (For example I would say actuate from 300 to 800 and it would stop and end once it hit those values via an EQU or LIM instruction). I wrote the logic as follows: First I calculate how many cycles per minute I want to perform, using that value I calculate how many times I want to increment my counter per millisecond. Then a timer is given a preset of the total cycle time. While that timer is running I continuously multiply the timer's accumulated value by the "cycle count per millisecond" that I calculated earlier; the resulting value is the current count that all my outputs are based on... Hopefully that makes sense, I know it's not the best but I could not figure out a better way of doing it and I know rounding is certainly making the accuracy worse. My hardware is: Allen Bradely PLC (5069 l306erms2), 5069-ob16, 5069-ib16, and a Kinetix 5500s2 Driver for my motor(s)
  7. Hi there, I am fairly new to programming serial communications, especially with Mitsubishi PLCs. Can someone walk me through in ladder logic how to bring in ASCII to the PLC, store the data in the data registers. Then send the data out to another PC once an 'X' input is satisfied? ASCII code would go like the following: C2,0,1,123,2,ABC,3,456,CR
  8. Hi guys, I'm new in the forum and I'm quite new also in Sysmac programming, in ladder programming at all, to be honest.   I have some years of experience in programming CNC machines using C, on a owner platform. most of the functions I was using there were developed using "step sequences order". I mean, I had functions continuosly running where I was able to control the steps,  using the switch/case contstruct, and pass to a step to another just changing the reference variable. To be more clear, something like this:   functionStep = 0; switch (functionStep)   case 0:        if !(somethingToDoHereIsDone())                      break;       functionStep = 10;   case 10: .... and so on.   In the Sysmac programs I was able to see, something like this is possible to perform using register and AryShiftReg function. but I find it's quite complicated to manage if I want to insert intermediate steps in a second moment and most of all let an external part of the program to know in which "logical step" I am in my function.   Can you suggest me, in your experience, how can a sequencial function can be defined in Sysmac?   thanks a lot for your help.            
  9. Hi there! I recently discovered this forum and I find it pretty useful for sharing and learning about PLCs. The thing is I'm trying to make a Stack using the SSET(630) instruction in a CJ2M PLC. Reading Omron's W340 manual I saw that PLC memory address for the different stack channels is represented as "00010000" to "0001000F". So, in order to set the last stack word address as well as the pointer's address, how do you know those values? Or am I just misunderstanding something? Thanks in advance!   Edit: Solved, the definition of the stack was wrong!    
  10. 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
  11. 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
  12. Hi guys, since this is a forum for people starting out with TIA Portal, I would like to share with you my course that I developed for the last 6 months.  This course uses a real-life sample application and translates it into a fully functional TIA Portal PLC application.  This course of 2,5 hours consists mainly of video explanations with practical programming assignments to put your newly gained knowledge straight to work.  As a controls engineer, I have over 10 years of hands-on experience with TIA Portal ranging from software development, commissioning and troubleshooting. At the end of this course, you´ll be able to: Structure and program a real-life user application in TIA Portal Download and Troubleshoot a TIA PLC application Program function blocks (FB) using ladder logic Build global data structures using user-defined-data-types (UDT) and data blocks (DB) With the coupon link below, you can enrol for only $12.99 (might vary depending on the country you live in).  The course is normally $99.99, so you get an amazing all-round programming package for almost no money.  So go and check it out  Take me to the Course Now!      
  13. 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
  14. Did you always wanted to get started with Siemens TIA Portal programming, but you were never sure where to start or how to get the best performance out of the platform? Eager to upgrade your TIA skillset from an instructor with over 10 years of TIA experience in the field?   -> Then this course might be just for you! My course "Siemens TIA Portal - PLC Programming Basics" will take you through the steps of creating your very first TIA application - from structuring (very important!) and programming your application, to downloading and troubleshooting your application online.  The course is based on video lectures and is around 2.5 hours long, and consists of 40 lectures divided over 6 main chapters. The enrolment fee is offered at a huge discount at the moment, so take action while it lasts! Take me to the TIA Portal course, I´d like to check it out...   Thank you, and I hope to see you inside the course! Hans
  15. 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);  
  16. Control Panel

    Is it possible to view the values / states of all inputs, outputs and workbits (e.g. 64.00 through 64.15 on Omron CQM1 PLC) on a single screen or control panel within CX-Programmer software?  I'm trying to troubleshoot some ladder logic that I wrote and need to know the values of 5 or 6 inputs/outputs/workbits simultaneously.  Having to scroll up and down through my ladder logic repeatedly does not work well with code that changes state every 5-10 seconds or so. Any help is welcome.
  17. Hi, I can’t find an answer to the following and I was advised to ask it here.I’m programming an Omron CJ2M with an MD212 high speed I/O card. I usually do all my programming in Structured text, simply because I like it a lot over ladder or sft.Now, if I want to read the hight speed counter (incremental encoder), I have to make a ladder section and use the PRV instruction to store the present value in a chosen location.The manual says the current PV is stored in A271, but I can’t get a readout there. Apparently the only way to read it is through this instruction.Does anyone know if there is an equivalent to the PRV instruction for Structured text? or another way perhaps? Again, when I check the actual memory adress, there’s no value there withouth the use of the PRV instr.
  18. Q03UDVCPU

    I am new with PLC's and I am learning how to work with GX Works 2. I have two questions, 1st Question: Using a Q series PLC (Q03UDVCPU) Is it possible to convert the language of a project from ladder logic to structured text? 2nd Question: If I read a project from a PLC why is it always ladder logic? Is there any way to read out structured text?
  19. Hi I'm looking for Ladder Logic code that I could use for a plastic injection molding machine.  I am willing to purchase and/or modify existing code to meet our specifications.  We have lost the Ladder Logic out of the TI/Siemens Controller on our Newbury 100 Plastic Machine so we're looking at replacing both the PLC and the HMI interface with an Automation Direct Controller.  We have the HMI Basic Code for the Newbury but not the ladder.  I've pasted the manual below for our machine.  Any assistance would be much appreicated.  The manual was too large for me to post but I've posted a document with information about how we intend to upgrade which has a little information about the machine also. Newbury 100 upgrade logging.docx
  20. Hallo.  Can someone shed some light on how much memory st takes ? does it use more that traditional ladder? i find that a routine with a couple of thousands of lines uses over 500kB is there any tricks to lower the usage? Or is it just what it is, and buy bigger cpu’s
  21. Hey there, I have an "Italian safe CNG dispenser pm head". I googled about it and found that It is a plc board. So I searched how to program it. Then found it use ladder programming language. Now there are no tutorial or documentation about its programming. But I want to repair my damaged plc board. If I goto any technician they will charge a huge amount of money. So I thought I will repair it by my self. So need help about the software name its use and how can I program it.  If any of you guys know about it please provide me your precious knowledge. Use this printerest link for see my pm head(plc board) https://i.pinimg.com/564x/0e/d6/6c/0ed66cb9a1065ab10a07e0b9aadc6f0d.jpg   Thank you (TIA) Masud karim
  22. CCLINK program problem

    Hello everyone, I want to ask,, Does address mapping use this concept to do "remote i / o station" can be done? following the network parameter settings for CCLink and I tried to program with this ladder, is that correct?  
  23. Hi, I'm new to both structured text and Modicon. I'm having trouble compiling this tiny procedure, meant to scale a number to an integer when the operator changes it. Although I can set the page edit variable to @localparameters.iLTemp_SPt1 with no problems, I can't get this function to compile as either a local or global procedure. What am I doing wrong?  
  24. GX Work2 Comments in Arrays

    I am very new to the Mitsubishi PLC world (I have a lot of experience with A/B and Omron though).  I am having an issue trying to assign comments to an array of Globally scoped bits - I am also using Structured Ladder - NOT simple ladder.  Is it possible to do this?  I have contacted there tech support group and they were of little help.  I don't care if I update the label comment or the device comment, I just want to assign a simple comment that can be displayed (i.e. I am using this for step sequences).   Any help would be greatly appreciated!  
  25. ladder program

    Hello everyone, I want to know why the Y172 coil is ON / logic 1? whereas contact SM1 is worth OFF / logic 0? can anyone explain it to me ?