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, can you help me how to make program indirect address for plc omron? I use PLC CP1E Thanks
  2. can you help me? bring me some example to build function block program with Gx Works? I use Q02U CPU   thanks
  3. where are the FB libraries

    Hello, Im looking for the in built function blocks, but i cannot find it in the program files/ omron folder where the manual says (even with search for *.cxf), perhaps i dont have it installed, but where can i get them from? As i remember i downloaded cx-one from the official omron web page after login etc, so thats why i dont understand why am i missing the fb libraries What else place there is to find useful FB-s? Thanks!
  4. Hello.   A colleague sent me a screenshot (attached) with a peculiar issue. An ADD function that only sends 0 as the outcome, and a DTOS function that only sends " . I have confirmed that all variables used in the ADD block are declared as integers, and both SumInt6 and String10 are not currently being modified somewhere else.  This impatient colleague is baffled, while I am just sharing this issue in the hopes that someone will eventually come with the simple answer that we are overlooking, or a complex one that we could never hope to realize by ourselves.   Thanks in advance.
  5. Unable to Monitor in GXworks2

    Hi! Anyone can help regarding this issue. I'm not able to monitor the Motor Block that I have created. there's no error either in the output screen but i'm thinking what is the cause of not running in the simulation which shows the Motor Folder RED  even it was compiled. thanks for the help!     Note: I'm new in mitsubishi.
  6. Hello,     I am working in microprocessor industries, now I am doing reverse engineering for PPC SECS communication program in Visual C++ 6.0 for Mitsubishi PLC(Model Q50UDEHCPU). Did anyone from you have worked with this program PPC? I need to find out the what are doing each function from this program? Like hostproc, data, mainproc, otherproc, plcproc, qbproc queue, offline, send_c, QBFFunc32.
  7.  Hi, im from brazil and need some help, some days ago i buy a programmer CQM1-PRO01-E beacause one plc CPM2B are deceased, we have another equipaments with this one, but CX programmer not response and de are trying day after day, but with this programmer i want copy and paste the logic from other PLC. Can you help with copy and paste on programmer CQM1?
  8. Help Programming a Beckhoff PLC

    I have a very simple problem that I need help with.  I have some programming experience but I am brand new to PLCs and structured text.  I am using TwinCat 3 to program a Beckhoff CX9020.  My goal is to read the temperature from my thermocouple and open or close a valve based on the temperature.  I have successfully connected the PLC to the TwinCat software and I am able to see the value of the thermocouple increase and decrease when I touch it with my fingers.  I need to link that value to a variable in my code so I can have the valve act on it.  I don't know how to properly address the inputs and outputs.  Thank you!
  9. Function block self-made

    Hi, i want to make a function block which will contain a block GP.CPRTCL (for predefined comm protocol). GP.CPRTCL has an input "Un" who only receives constant (H,K). On input of my own function block i can set a constant variable, but inside block that variable isn't a constant anymore (GP.CPRTCL doesn't recognize a variable). Is there a way for receiving constant variable in GP.CPRTCL block ("Un") if it is in another block. Regards
  10. Looking for programmer help

    Hello, I am not sure if this is an appropriate place for this but we are a company that does electrical engineering for material handling systems in north Dallas, TX. We are looking for an experienced Siemens programmer to help train one of our engineers.He is writing a program from scratch and has not worked with Siemens before. We would need this person on-site for a few days to a week and they will be compensated as well as travel expenses paid. Our engineer will have very specific questions to ask as he is very experienced and has been doing this for many years- this is just a new system for him. If you are interested in this opportunity please contact me as soon as possible. 
  11. Hello, I got a new work job to design a cycle tester for a mechanism to make sure will work for at least 5000 cycles open - close. I never made a pls program I start researching few days ago and seams to be very complicate to make it. I have a TM221C16R PLC from Schneider. please help me with some instructions. the cycle tester will have a start pushbutton, stop pushbutton, door open switch, one air cylinder with solenoid to push and pull and a counter. Thank you, Romica
  12. Hello. I'm trying to use index addressing inside function block.  The command *D200 doesn't work. Is it necessary to use IR0, ID0,... inside function block? Thanks. Best regards
  13. Hello to all! Kindly provide me 1-Download link for RS logix 5000 v7.2 .i have a program which is designed in old version of Rs logix 5000 and i m unable to open it on v20.0 2- ControlLogix 5550 1756-L1 controller Serial Cable pinout [plc to pc]-Programming cable Thanks
  14. Hi, I am a beginner to PLC. I am currently working on a home project with Allen Bradley 1100 model. The project is to build a door open-shut cycle tester.  The motor I have purchased is a Bodine Brushless DC34B/FV INTEGRAmotor. My goal is to utilize the Allen Bradley to to control the motor and then the motor drive a shaft to open/shut the door. Through the LCD screen the of PLC, we can set and view the amount of cycles.  I have finished the initial stage of wiring. But not sure how should I start on the programming part. Could any of you give me any hints on the programming portion? Thank you so much. 
  15. in Citect i use the following function to associate various Tags with the next popup window, in the previous versions the tags passed to the trend fine since upgrading to 7.4 the trend pens dont display but all the values display fine.  FUNCTION // function AssPIDPopup // Expand a full set of PID tags and open // the PID block supergenie AssPIDPopUp(STRING sSGenie,STRING sBasePIDTag)     AssVarTags(-2,0,sBasePIDTag + "_PV");      AssVarTags(-2,1,sBasePIDTag + "_SP");      AssVarTags(-2,2,sBasePIDTag + "_OP");      AssVarTags(-2,3,sBasePIDTag + "_MAN");      // Now the tags for the PID tuning SG     AssVarTags(-2,4,sBasePIDTag + "_KP");      AssVarTags(-2,5,sBasePIDTag + "_KI");      AssVarTags(-2,6,sBasePIDTag + "_KD");      AssPopUp(sSGenie);      END I added a button to run the following code FUNCTION Loadtrend()     TrnSetPen(19, 1,  AssInfoEx(1,0));     TrnSetPen(19, 2,  AssInfoEx(2,0));     TrnSetPen(19, 3,  AssInfoEx(3,0));     Prompt("Test");      END     when clicked the pens set to the trend fine, i tried to run the code from a function but it did not work. i am new to citect and am sure i am missing something stupid.
  16. hey!  I'm pretty new to PLC's, and I'm supposed to ''teach'' the people at my internship how this PLC works, but I have encountered a problem.  I've gotten pretty far with all the digital programming and understanding how everything works, but I just can't figure out how the analog inputs/outputs and programming works...... I've had a fair explaination on PID and how this works. I've searched the web as well to figure out what PLC instructions to use.    I hope you can answer my following questions.    1, what are the most used PLC instruction blocks which I can use for temperature control, and how am I supposed to use them? 2, Could you please give me an example on how to use PID and what numbers will I need for the calculations? 3, what are the most used PLC Instruction blocks (apart form the analog ones) that I should include in my tutorial?   this is my setup: Ethernet switch MOXA EDS-205 Plc voeding PA202 PLC CPU CJ1MCPU11-ETN Digital IN (16x) CJ1W-ID211 (SL) Digital IN (16x) CJ1W-ID211 (SL) Analog IN (8x) CJ1W-AD081 (SL) Analog IN (8x) CJ1W-AD081 (SL) TRANS OUT (16x) CJ1W-OD212 (SL) TRANS OUT (16x) CJ1W-OD212 (SL) Analog OUT (4x) CJ1W-DA041 (SL)   thank you soo much for looking at my question and considering helping me! the OMRON helpdesk hasn't been very helpfull.    kind regards,    Deuslupos,
  17. There are a lot of instructions in function block that are missing the enable input that is present when programming in ladder logic, such as  ADD or MOV.  It seems to be very limiting. The only way around it that I know of is to write your own function block in ladder logic or statement list and use that. I seems rather limiting of a language if it relies on other languages for it to be usable. Does anyone know why the enable bit was left out in many function blocks when it is so useful in ladder logic? Pat
  18.  hello there ! all the variables are reals ... can anyone explain why i get a different result when i calculate c2 first ??? the two programs shown in the pictures are exactly the same ... the only difference is the posistion of c1 and c2 . please help me . It's not a logic  attitude in programming ..... Any ideas? Thank you
  19. I'm having trouble with some very basic programming using function blocks. Specifically Connect Components FB programming, but I think it is a general, common application. Using ladder logic, it is easy to set a value based on the status of a bit. If the bit is false, move a zero into the variable. If the bit is true, move and 88.0 into the value. This relies on the enable bit of the mov instruction in ladder logic. Many function block instructions do not have enable bits. How would I change the value of a variable based on the status of a bit using function block programming? A real world example: You have a two position selector switch. If it is turned to the left, the drive runs at 0 Hz. (off) if it is to the right, it runs at 88.0 Hz. Or if you have a 4 position selector and want to select between 4 speeds. This should be a simple task, right? I've called the tech connect support line a few times and sent them a few emails and they haven't been able to figure it out. This is such a basic task. Thanks, Pat
  20. I am used to programming a1s Plc using the old melsec medoc. Can I program from a Windows 10 laptop and if so what software would I need? Also cables? Thanks p
  21. Hi there I'm an embedded software engineer mostly programming C/C++ in Linux and have very little knowledge of the PLC environment.  Recently my attention was diverted towards integrating C/C++ (Linux software) into PLC and then presumably as a function block which is supported with something called PLCOpen. Is that right ? How is multithread support in PLC in general ? and/or with the these function blocks or what ever might become instead when integrating/porting C/C++ code into PLC.  The current situation is purely embedded Linux environment with open-source 3rd party userland that our code relies heavily on. How feasible is to port such environment over to PLC (given that the system supports it) ? I've been looking into B&R Automation Studio 4 and having a hard time to establish concrete feeling on how difficult/easy it is to port the code.  Hope anyone can give me a slight insight into this.  Kind regards Einar
  22. PAROCK1 for HMI/SCADA View File Now a software solution is available for your Modbus (MB) needs in Rockwell/Allen-Bradley Control Logix or Compact Logix (Clgx) family processors, instead of a traditional 3rd party hardware like Prosoft MVI-56, Molex SST-SR4-CLX-RLL etc.  It is an Add-on instruction (AOI) for PLC/PAC firmware v16 or later, (other solutions are available for pre v16 systems).  For hardware interface, use PLC’s channel 0 (serial) or TCP/IP Interface module(s) to have as many MB TCP/IP devices or serial devices.  (Some limits apply based on system configurations, Comm. settings depending on HW used.) Connect any MB Client/Master or Server/Slave device(s) to your CLgx PLC, including flow computers, analyzers, VFDs, Power Monitors, Level gauges, Smart I/O, etc.  All the MB public/native function codes are supported.  32-Bit integers/floats as single entity are supported with byte and word level swapping. A separate utility automates the data mapping to your PLC logic.  Features -Serial Master (BASIC required Option); TCP; Slave; Redundancy; More than 5000 accumulative registers; MB CFC (Custom/Private Function Code) Support; Data mapping too – Between PAROCK1 & your PLC logic; Packaged with Rockwell; TCP/IP Interface Module; Volume Discounts; Annual Support Requirements -Rockwell/AB-CLgx processor with v16 or later.  Contact PCI for earlier versions. -If using CPU’s Chan0, you cannot use Chan0 for any other user mode activity. You can use it for non-user mode activities -TCP/IP Interface Modules from Rockwell/AB supported, are: -1756-EN2xx ControlLogix® Ethernet/IP communication modules, firmware revision 5.007 or later -1756-EWEB ControlLogix Ethernet/IP web server module, firmware revision 4.006 or later -1768-EWEB CompactLogix Ethernet/IP web server module, firmware revision 1.002 or later -1769-L30ER, 1769-L30ERM, 1769-L30ER-NSE, 1769-L33ER, 1769-L33ERM, and 1769-L36ERM CompactLogix controllers, firmware revision 20.011 or later -1769-L24ER-QB1B, 1769-L24ER-QBFC1B, 1769-L27ERM-QBFC1B CompactLogix controllers, firmware revision 20.011 or later -1769-L16ER, 1769-L18ER, 1769-L18ERM CompactLogix controllers, firmware revision 20.011 or later Other Related Services/Items -Custom PLC Add-on instructions building -PLC upgrades, troubleshooting, applications -PC Windows, iOS5, Linux, Mobile devices Comm. Drivers -Custom development, Technology Transfer Services  -Other Non-AB communication drivers for serial or TCP  -Full control system integration, training, architecture design This driver can be conviniently used with Visual Studio in development of complete large scale complex HMI/SCADA Systems. It can be used to perform advanced reporting MES, analytics, IoT, Big data type apps. One example is available to download here For More Info Overview of Parijat Drivers: Click here  Additional supporting Info about Parijat Drivers:Click here Complete Related Driver options: Click here     Submitter Scadadoctor Submitted 03/10/16 Category Other PLC Demo Software
  23. Hello, I am a student that has been taught ladder logic for three years( on many different plc's ) but, I would like to learn an alternative method is there any way to convert ladder into Function Block or some other type of programming in RS logic 5000 or any other controller? If not can some one explain the basics of Function Block programming.
  24. Siemens S7-1500 and SICK

    Hello all, Let me start by saying that although I have been working with PLCs for 20+ years I am very (as in brand) new to the Siemens world (my wheelhouse is AB). That being said I have a Siemens S7-1500 (1511 specifically) CPU with a couple of SICK multi-turn Profi-Net encoders (AFM60A-S4NB018x12) that I need to talk to. - I am using TIA v13 with all of the updates. - I have the GSD file from SICK for the encoder. - I have no clue what I am doing - I can see the encoder values update in the watch table as I move the encoder. All fine and dandy so far... Here's where the white flag is going up.... - I am of the belief that there are existing function blocks out there 'somewhere' that can read and write to the base parameters. I have contacted our local rep who deferred me to SICK. I have emailed and left messages with them and have not gotten a return anything thus far. Here's our application... We are attaching each encoder to its own rotary gear mechanism. The rotary will need to turn in the CW direction approximately 400 degrees then return to its start point by rotating in the CCW direction by the same amount. If/When production/maintenance needs to 'rehome' the assembly, the expectation is that they 'pin' the drive in a known location then a bit would be set within the CPU that would assign a specific value to the encoder's actual position. In the SICK manual (8015078/YIX6/2015-01-16) on page 31 (section 3.6.3) there is reference to Preset control. This is what I believe we need to perform the aforementioned function. Does anyone have any examples that they could share on how to read/write to these encoders by use of a Function Block or other? Relatively desperate for help at this point. Can post test code if need be. Thank you in advance, TLAF
  25. PLC Programmer Job

    Hi there! I`m a PLC programmer from Romania and i work in automotive industry. I know to program in Step 7 and in Codesys. I`ve been working with S7-300 from Siemens and Wago 750-881. I am also designing the electrical drawing for my project in a software called WSCAD. I am trying to leave abroad because i have a low salary here and i am wasting my knowledge. Can anyone give me an advice or help me with finding a normal paying job in plc programming? Thank you very much in advance and have a really nice day!