Search the Community

Showing results for tags 'timer blocks'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 62 results

  1. Sample blocks for S7 1200 plc's

    Hi experts, please share the sample blocks for the EDITABLE TIMER block it should be editable from HMI(Siemens). And also motor run hour block. Actually i am having all blocks in tia v12 version and sadly i dont have the old software to convert it again. So please share the blocks that it shoud be work in TIA V14 for s7 1200 plc's. Please note that the blocks should use add instructions to calculate the time because i don't have much memory.
  2. Hi,   I'm pretty new to allen Bradley and wanted to know if there was a function that could help me out. I have a rotation sensor which feeds back to the PLC via a digital input, once every half second or second once machine is up to speed - I want to record the off time of this DI (how long it is off between pulses, essentially how long it takes for drum to rotate once). Is there some way to record this time and use this value for compare logic? any help would be greatly appreciated.   PLC: Micrologix 1400 series B RSLogix 500 version 11.00.00 (CPR 9)
  3. Sorry first up for what may seem like a simple post / question, however I am pulling my hair out with reading the programming manual and have had no help from Mitsubishi's PLC technical support team.   I have a Mitsubishi Alpha 2 (AL2-10MR-A) that I am using to count the starts of a jacking pump via input one. The intention is to have output one operate when the jacking pump start count reaches 5 within a 24 hour period. When the 24 hour period has expired, the count will reset to zero. The count will also reset to zero when a manual keypad key is pressed. I have been able to figure out the counting and reset via the keypad no bother, however, including the 24 hour clock reset is proving difficult. Has anyone had any experience with adding the 24 clock function at all, and can offer advice or examples? This is being programmed directly via the keypad.   TIA
  4. Optimized Blocks

    Hello everyone, Are there any alternatives to WinCC at the moment that can handle using optimized blocks. In most other SCADA software, while importing tags, the option to optimize blocks should not be selected as they cannot import in this format. Ignition by Inductive Automation has a driver that can be purchased to solve this problem. I wanted to know if there are some other solutions to this issue.  Thanks!
  5. Time Input from NB Screen CP1L-E

    Hi guys,     I am trying to make a controller for an oven using MODBUS with a CP1L and an NB screen. My oven program will have 10 stages in one baking cycle, and the parameters for each stage can be modified individually (temperature, blower speed and time). I have set my number input in the NB screen to be a unsigned int of 2 integers and 2 decimals, and it writes to H4 in plc H memory. I move this value from H4 to W4 in the PLC, and input W4 into a timer (T0000). I have tried data manipulation and still have no success in getting this to work properly. My CP1L timer is set to BCD mode, as I am using premade MODBUS function blocks which are programmed with timers in BCD mode. Does anyone have any pointers regarding this? In the screenshot provided, the number i inputed in the HMI was 60.00.
  6. 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?
  7. TIA TP1500

    Hi all, I have communicated my tp1500 with Ab 1400 B series..the proble is I have setted setpoint of timer is 30min Accum...so I read my timer pv in hmi in that time ##will shows in hmi in that case I cross checked my program its twr running properly.   Another how to set date for tp 1500
  8. Hello, I want to count rotation time or cycle. I am using bellow code in the picture. If I set timer 10 ms, when counter working well, but I set timer 1 ms the counter working same how set timer 10 ms. I have question in my code is slow timer or counter and somebody give me advice how need count the rotation ms accuracy.    
  9. I am using CJ2M PLC.I want switch on a output for certain time by a timer and holding bit if interlocks satisfied.If interlock not OK timer has to hold the time and output should be off. if again interlocks OK again output has to ON upto balance time completion and has to give timer done output for reset holding bit.please suggest.
  10. 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
  11. 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
  12. Cycle Timer

    Hi all, I try to realize a cycle timer. A counter is triggered by a movement ( clamp close ) Then the machine does it things, piston here, and there and when the clamp closes again it should show me the real cycle time. Is there a timer/counter that is independent from the PLC cycle? I am using a CJ1M CPU11 Ver. 3.0
  13. hi every one! i'm new with PLC mitsubishi, i have a Fx3u board and using Gx developer i can config input interrupt pointer in GX developer  but i don't know how to config timer interrupt with GX developer. i have read a lot of manual but i don't understand... someone can help me?????  
  14. GX Developer timer command

    Hello everyone! Could someone help me and tell me what the "D212" means? I know that to define the time of a TIMER you must put a k and number (miliseg).   Help.... :(
  15. cqm1 timer problem

    Hi I put value #80 in word 60 I run timer 2 with word 60 I replace word 60 withe the value #10 I run timer 2 again with word 60                       but you see the timer counting down from 80 instead of 10 So the timer runs first the previous value of word 60 before he runs with the new value although you see the new value of word 60 appearing in the timer. How can I let the timer run immedeatly with the new value.   Thank you
  16. retentive timer

    I tried setting parameter in gx works 2 for plc q series of q03ude cpu. I set retentive timer to 1k and reducing special link relay to 1k from 2k. then I set 0 in latch 1 start and 5 in latch 1 end. Getting error c4129 and c4139. I changed it to just 16 points of device, then put 0 in latch 1 start and 15 in latch 1 end, still getting same error code. In mitsi pdf of basic course, it just said all I have to do is to go to parameter>device>set retentive timer value to 32 from 0 to use 32 timers total, but I just simply getting error code of f1028 How to make it right? Got it now, have to uncheck retentive timer in tools menu.
  17. Didnt know this before but should have anticipated it, I cant put 8 hours into say a TON or a TOF, etc. Only goes up to 2880 seconds, .8 of an hour. What would be the best way to go about this?
  18. Hi, everyone, I started learning very recently, and I have been writing this little program in which I communicate through RS-232 with a machine. Every time I send a command from the PLC I wait a couple milliseconds for the machine to send a response (a response must always exist, even if it's a mere acknowledgement response), then I save the response that the machine has sent. I organized my ladder logic by the commands that the PLC has to send to the machine (4 commands total, for example: execute this, give me status on that, etc). I started every ladder with an OSR and an AWA instruction, and when AWA is done I have a timer in the next rung to wait for the machine response, and after timer I have a ABL activated when TON is done. The Ladders are related in the sense that the end of each LAD contains a JSR instruction to the next command/ladder. So the commands/ladder always execute in a predefined sequence (LAD2 -> LAD3 -> LAD4 -> LAD5). The logic inside each ladder is like this (the last rung is a little different for the others, this is LAD2): ] start [ ----------------------------------------- [ OSR ] ] OSR OUTPUT BIT [ -------------------- [ AWA ] ] AWA/DN [ ---------------------------------- [ TON ] ] TON/DN [ ----------------------------------- [ ABL ] ] ABL/FD [ ------------------------------------ [ ARL ] ] test if ARL string is 0 [ ----------------[ JSR ] 1) Since I have to use timers so often in my program (they all last for the same period of time) I wonder if I could use the same timer every time (same Control File R6). But I'm quite lost on WHEN I would have to reset the timer, or if this would not be recommended at all, since the timer is still counting for more than one scan. Although I want to believe that the timer for that Ladder would never be counting after the JSR instruction, I think this is true only for the first time since the next time I turn "start" ON the ARL is not zero, so JSR would occur while the timer is still counting. I tried resetting my timer parallel to JSR and using the same timer in the next ladder, but then the timer only counted up for the first time "start" goes ON (I believe because the timer was constantly being reset at every scan). 2) Also using OSR with AWA was the only way I found of making AWA and TON to "behave" (that is, to make AWA only go ON once per start and the timer to go ON every time AWA is DONE). Would there be a better way to do this or is this acceptable? When I tried connecting "start" to AWA directly the program just didn't behave the way I expected at all, I believe because AWA would always be enabled for more than one scan, although I cannot explain why this would be a problem since AWA should only execute from the transition false to true, no? 3) I never clear my buffers or reset my ASCII instructions... when I try to clear in parallel with JSR some of the ASCII instructions' bit ER goes ON, and when resetting my ASCII instructions sometimes I don't see any before/after difference, but oftentimes I just see an undesirable behavior, and to be honest I'm not even sure where in the code I should do it, so I wonder if I should bother. More specifically, in which situations should I care about doing it when writing a program, and where in the program is it recommended to do it? So far I don't seem to have a problem, so I'm being willingly ignorant about it Any suggestion regarding my code/logic is much appreciated! Thank you!
  19. Hi! I just started with PLC programming. I am trying to get the time between a output signal and a input signal. The problem is that the time is ~200 ms but when i measure it with this code:   TONR(Timer1); IF PosFeedback <= PosFeedback_Min & not Timer1.Reset THEN Timer1.TimerEnable := 0; FullCloseDeltaTime[1] := Timer1.ACC; Timer1.Reset := 1; END_IF; IF (move & not Move_LastScan) THEN //Start timer Timer1.TimerEnable := 1; Timer1.Reset := 0; END_IF; Move_LastScan := move; i only get even values in intervalls of 50 ms like 150, 200 and 250 ms. I have changed the real time sample rate to 11 ms so i don't understand why i don't get a more exact result. And i can see in my trend that the time isn't exactly 150, 200 or 250 each time. I i tried and time my own click on a button and i see the problem is the timer, i only get values in an interval of 50 ms. Is there a way to make the timer more exact?
  20. S7-200 PLC Timer interrupt function program

    LD     I0.0 EU ATCH   INT_0, 21 ENI LDN    M0.0 A      I0.0 TON    T32, +1000 LD     T32 =      M0.0 LD     I0.0 ED DTCH   21 DISI         INT0   LDN    Q0.0 =       Q0.0  
  21. project or PLC mode

    Hi, I keep getting an error that project is in binary mode and plc is in BCD mode.  Wont let me change either. I must be trying in the wrong place...please point me to where i can change this in the PLC.   I am getting an error in my RXDU with a Honeywell barcode reader, on one machine, I am thinking it is related.   thanks for any help. 
  22. Product:             STEP7 Professional V13 Reference:           FB Declaration Static: Data type TON is not allowed here Description: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Hi, I'm using Step7 Prof V13 SP1 upd7 & WinCC Adv V13 SP1 upd7.    In my project I'm using a 312CPU, Article No.: 6ES7 312-1AE14-0AB0, Version: V3.3 & TP1500 Comfort, Article No.:6AV2 124-0QC02-0AX0, Version:13.0.1.0   My Issue: I've taken previously used FB from my Global library and inserted it into my new Project. In this FB I've declared an IEC Timer (TON) in the static section of the FB. When I go to upload to the PLC after TIA carries out the compilation I get error message 'Data type TON is not allowed here'. I've tried creating a new FB to test and had same issue for CTU,CTD,TOF.   See attached pics This is really strange as it has always functioned before! Has anyone seen or heard of this issue before? I'd appreciate any help, Cheers.
  23. GX Works2 Timer Example View File OUT_T on of delay timers in GX Works2 Submitter HwT Submitted 12/12/15 Category PLC Sample Code
  24. Version 1.0.0

    652 downloads

    OUT_T on of delay timers in GX Works2
  25. Siemens

    Hi, I am new to the forum and relatively new to PLC's and I am working on a project that controls several pumps and I would like to install a off delay timer that can be adjusted on the HMI for individual pumps, is this possible ? I am using Siemens TIA Portal V13 and I have a KP1200 comfort panel along with a S7-1500 PLC Any help would be greatly appreciated