Search the Community

Showing results for tags 'plz help to stop/run my function by clicking button'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 57 results

  1. RSLogix5000 Transfer function Bumpless transfer between two inputs. If criteria or FLAG is true, then transfer from input-1 to input-2 at a prescribed ramp rate, and then release the output to match the selected input without rate restrictions.  Issue: The issue is that upon the status of particular input (FLAG), the control valve demand jumps from 0 to whatever the output of the PID’s Low Select value is (maybe 50% or 80% or other). Request: Ideally, I would like to mimic or replicate the Transfer algorithms provided in other control systems, as described below . The TRANSFER algorithm performs a transfer between the two inputs.  The output is equal to the IN2 input if the digital input FLAG is TRUE, and the IN1 input if the digital input FLAG is FALSE.  The algorithm automatically performs a bumpless transfer between the track input and the selected input when a tracking request is removed.  The algorithm ramps to the selected input (IN1 or IN2) at the specified track ramp rate (TRR1 or TRR2).  Internal tracking may be selected to allow a bumpless transfer between IN1 and the IN2 inputs.  Individual track ramp rates may be initialized to ramp from the IN1 to the IN2 and from the IN2 to the IN1. Attached is RSLogix5000 program "transfer.acd" Thanks.
  2. Hello, I am trying to have single press and double press etc. functionality in my PLC program where for example, single press will turn on the motor whereas double press will turn on the motor for 5 seconds. Is it possible to achieve using ladder logic in sysmac studio, if yes, how? Thank you in advance.
  3. Allen bradley Micro850

    Hello, I am new to automation and I do a project with a Micro850 Plc. I am more comfortable with logic block so I write my program in Function Block langage on Connected Component Workbench software version 12. I would like to make flashing a light but I don't know wich block to use and how to program it ... Could you help me. Thank you
  4. Hello, In past i was using Siemens S7 300 and Simatic 5.3. So a long time ago. I restart look back to plc because i need to monitor the temperature of my heating system. So bought a plc that is a IEC61131-3 standard and  OpenPCS as Develop software.  So i begin to play with OpenPCS because  Im very rusty.  SO i create a function, that i named FC_TEST . When i compile the below code i get an error E: S5004: Function blocks instances are invalid in 'FUNCTION'-POUs, STRUCTs, and in ARRAYs.  It seams that Timer block inside the function FC_TEST are not allowed, i understood right ? (*  --------- DECLARATION  ---------  *) VAR_INPUT T_1 : TIME ; (*Declare T_1 as a Time Input ==> Set the Time of Timer *) START : BOOL; (*Declare START ad BOOL Input ==> Start The Time of the TIMER *) END_VAR VAR MY_TON : TON; (*Instantiate MY_TON as Timer type TON*)  END_VAR (*  --------- FC PROGRAM  ---------  *) MY_TON(IN := START , PT := T_1 ); FC_TEST := MY_TON.Q;   (*  --------- CALL THE FC---------  *) tmp2 := FC_TEST(T#2s, I0_0);  (* I0_0 is a input*) Thanks  Marco  
  5. Hello, I've got a problem with a Motion control sequence. In my code i would like to perform operation like: When package move on optice sensor position it stopping and perform MC_Move operation. It's moving for X lenght, but sometimes it stop a little bit after sensor and i would like to stop MC_Move instruction faster - directly when state on sensor goes down. Which instruction use and how to code it to make it good. I already made something like. **pseudocode** seq=1: if sensor then            MC_MOVE_instruction_execute=True;            seq=2 seq=2:            f_trig(sensor)            If MC_MOVE_instruction_done or MC_STOP_instruction_done then            MC_MOVE_instruction_execute=False;            seq=3 seq3:         REST OF THE CODE   SR_INSTRUCTION(S=F_TRIG.q, R=MC_STOP_instruction_done OR SEQ=3) MC_STOP_INSTRUCTION_EXECUTE=SR_INSTRUCTION.Q   Am i doing it right or there is another way? Thanks in advance.        
  6. I'm using simple function block, one input and one output, like in this example: Problem I have is how to call function block and use inverted (NOT) value , ie instead 5.01 I need to use NOT (5.01) . Of course I could create new symbols that are inverted values of actual inputs but i'm trying to avoid that, number of addresses is significant.
  7. To calculate a walking or moving average I want to use WSFT and SUM in a function block. Does anybody have experience with this? The idea is to take a 1 hour average of a proces value and store this average value each hour. The software then have to calculate the walking or moving average over say 4 hours or 12 hours with a maxium of 24 hours. See attached files with logic but then not in a function block     Walking_AVG.cxp Walking_AVG.opt Walking_AVG.bak
  8. I can debug my plc app with simulator. I created some function block, and inside functionblock I can inspect in and out parameters, as well as local variables. But in/out parameters values are not shown. Any solution? Im using Sysmac Studio 1.29.2 and selected a NX PLC in my project.
  9. Function Block addressing

    Hello all.  I have a program which has 8 function blocks. I recently added extra functionality to one of the programs (not the function blocks). I added the new variables to the global symbols table and added the new code, but when I compiled the new code, the variable addresses in three of the function blocks had changed. This is a problem, because we use memory cassettes to download new versions of code, so when the new version is downloaded to a machine in some far flung part of the world, these variables will be overwritten (they are hours run variable, so are important for servicing purposes).   My understanding is that CX assign's variable addresses in Function Blocks and we have no control over this. Bit if I only added variables to the Global symbol table, why are the FB addresses affected??   Any input appreciated. 
  10. Latch switch

    Hello  I'm quite new with GT Designer 3. I'm writing code for the GOT2107 HMI. I have a few push buttons that works fine when pressed the switch lights up as you touch the switch. But now I want a latching switch. Every time the switch is pressed the light on the switch should alternate. How do I get a switch's lamp to stay on after pressing it?   Thank you Marinus
  11. Hi everyone, Using Cicode programming ... I'm try to make a function empressed Button's input command that still running forever until the user press the Button again .. so if i press the Button at first the function inside Button will be running , But i wonder to terminate that function by press same button second time or don't mind if you suppose other Button for stop running the function ... plz help to make a code or something else to stop running of my function.
  12. Pointer Device memory

    To those who don't know the GX Works2 compiler treats any function block referenced used in your code as a place to copy the entire set of code data into your program. Function block calls are not handled like pointers even though the should be. [You'll consume all your pointer space by thinking function blocks are great.]
  13. Hey, I recently started trying my hand at creating function blocks. At the moment I'm trying to create a PID function block, however I keep getting this error: "ERROR: Variable does not have enough size." No idea why it does this. Can anyone help?  
  14. Help needed with MM430

    Hi everyone, Now I used Micromaster 430 controlled by a PLC. I set parameters as follows: P0010: 0  P0100: 0 P0700: 2 (using BOP-2) P0701: 1 (start) P0702:12 Terminal 3+4: Connected to Analog output of the PLC  Terminal 5: connected to 24V via a relay which is controlled by the PLC DIP switch1 on (analog input1 with 0-20mA) When I turn on the relay to power to terminal 5, the inverter runs about 5 seconds, then stop automatically while terminal 5 is still powered. There are no fault and no alarm. I checked the parameter P0947 and P2110 with value 0. Especially, when I set P0700 = 1 (using Start button in Panel), the inverter runs well without stop automatically. Please give me some solutions.  
  15. Hi Guys I was wondering if any one of you could tell me how to set up some basic button functions? I need a basic instruction on how the followering button setup, could be done on the HMI, preferable with exaples or tutorials etc. !!! I´m working with the current setup: NX1P2, using Sysmac Studio, Module version 1.25.1.0, along with a NA5-Terminal, version 1.18 !!!  START_VALVE_1_BUTTON = Toggle, Momentary, Set or ?? - (Need the START_VALVE_1_BUTTON to activate ON_BUTTON & OFF_BUTTON flashing, indicating selection option, ON or OFF, meaning activating start valve 1 mode, or deactivate the mode). START_VALVE_2_BUTTON = Toggle, Momentary, Set or ?? - (Need the START_VALVE_2_BUTTON to activate ON_BUTTON & OFF_BUTTON flashing, indicating selection option, ON or OFF, meaning activating start valve 2 mode, or deactivate the mode). ON_BUTTON = Toggle, Momentary, Set or ?? - (Need the OK_BUTTON & the OFF_BUTTON to flash simoustaniously, after START_VALVE_1_BUTTON, or START VALVE_2_BUTTON has been pushed). OFF_BUTTON = Toggle, Momentary, Set or ?? - (Need the ON_BUTTON & the OFF_BUTTON to flash simoustaniously, after START_VALVE_1_BUTTON, or START VALVE_2_BUTTON has been pushed).  !!! Hoping to hear BACK from some of you VERY soon, because I need the know_how ASAP. !!! !!! Write soon !!!
  16. Internal function block variables

    I have a function block where the first internal variable is showing as address H1420 in the Global Symbol table. When I add another retained variable to the function block then save and compile the code, the variable address in the global symbol table shifts from H1420 to H1488.  I need to retain the address as I will be downloading code and I need to ensure the address if H1420 stays with that variable.    Can anyone help with this?
  17. Remote Run/stop on FX0

    Hello, I'm working on a project where I'm trying to create Remote Acces to old PLC's. The Mitsubishi FX0-20MR-ES is one of those PLC's. I got the remote access working by using a Serial to Ethernet converter, but I just found out that FX0 serie can only be put in Run or Stop mode by manually flipping the RUN/STOP switch on the PLC. I was wondering if there is any software solution that enables me to "simulate" the stop function while the switch is still set on RUN. That way I can still program the PLC from a remote location. I know this is possible with some PLC's by turning off a whole registry in the software, that way the PLC thinks it is in STOP while it's actually still running. I just don't know how this would work with the FX0. I hope someone can give me the solution I'm looking for. I'm looking forward to the reactions, Jimmy
  18. Omron Function Block variables

    Hello all.  I posted earlier in the week regarding downloading new code to an Omron PLC, but I think the question was a bit vague. As a follow up, and hopefully to clarify, I have the following query. I have created an upgraded program which will be downloaded by field techs using memory cassettes. The revised area of code is essentially a Function Block which amends service lamp behaviour, and in creating it, I have amended the existing function block and added new Internal variables. Is there any way I can ensure that the new variables don''t over write or move the existing  variables in the PLC, because this is what is happening when I download it.    HELP!!!!!!!!!
  19. hello.   I've been trying to communicate this omron plc CP1L-EM30DT1-D, with a yaskawa inverter cimr-vu4a0004faa. but i can't figure out how to make de correct mov or configuration in de DM. i need to run/stop, change frequency.    some help, please. :) 485PRUEBA.cxp 485PRUEBA.opt
  20. Hi All, I am doing an application that use servo motor to feed plastic film to a target length (set by operator), and it need to stop immediately if marker sensor is ON. This application is control by Omron CP1E PLC. It will feed plastic film in 500-1000mm/s depends on the target length set by operator. It is require to stop immediately if the servo feed length more than 90% of the target length and the marker sensor is ON. However, is there any possibility for the servo to stop immediately once the condition is meet? As I am using PLS2(887) to feed with target length, and INI(880) to stop immediately, however, it cannot get the desired result as servo not able to stop immediately after marker sensor is ON, I am not sure is because of the PLC scan time, or servo need time to deceleration (deceleration rate assigned to #FFFF). Appreciate anyone able to assist on this. Thank you.
  21. 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
  22. 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
  23. Dear All               Could you people help me to solve this issue. I need a Function in cx-supervisor with Push Button.I want Bit ON, when I pressed the button, and when I release the button then this bit goes OFF. Sorry for my bad English its not my native language.
  24. 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.
  25. Gx Works 2 ve fx2n için bir fonksiyon kütüphanesine ihtiyacım var. Servo ve step motor kontrolü için.   thank you