slcman

MrPLC Member
  • Content count

    360
  • Joined

  • Last visited

Posts posted by slcman


  1. Counter and FIFO are good option but if value can be write from HMI or another PLC, you may consider to check all integer when you need to meet the "all 0 value". I send you a example with NEQ instruction as suggestion. A good point is N7:100 will give you witch integer is not egal to zero. You can use it in your program to prompt warning or anyting else...

  2. OSR instruction mean rung will be on only for one scan, so bit B3:0/1 will be on for one scan only (off to on transistion of I:0/1) when start PB will be pressed. If start button is stuck (alway ON), stop command (I:0/0) will stop the motor and plc will need a new off to on transition of start PB for start the motor again. In the original program , if start PB is stuck, stop command will stop the motor but the motor will restart when you'll release stop PB. **the code I posted doesn't work in M1000, I attach screen capture for M1000. have fun

  3. As everybody say, good job! Comment are important in all program small or big. Your program do the job, but I can suggest you a small safety feature I usually add on start button; put a one shot on your start PB it will prevent accidental start if start PB is stuck. I wrote a example just cut and paste in RSLogix XIC I:0/1 OSR B3:0/0 B3:0/1 XIC I:0/0 BST XIC B3:0/1 NXB XIC O:0/0 BND OTE O:0/0

  4. I'm agree with Jesper for rearrange columns, if you found a way to do it, send it to the forum! But you don't have to drag the width of the columns for remove it, just go in view menu and uncheck the columns you want to remove.

  5. Here a example. I left only drive comm logic, I put a lot of comment for describe how program work. For be able to control drive thru logic command word, parameter #36 must be set at 5-comm. Same for speed ref, parameter #38 must be set to comm for be able to control speed ref thru comm. 22COM-E manual is good start : http://literature.rockwellautomation.com/i...um004_-en-p.pdf Use one 22COMM-E per drive is easy to program and comm is faster but more expensive. In multidrive mode 22COMM-E can control up to five drive, a good way to reduce cost. In multidrive mode, drive are connected together in DSI modus protocol as powerflex manual describe. One of these drive have ethernet adapter 22COMM-E. All comm use the same adapter so comm is slower (depend how drive is connected) see page 7-2 in 22COMM-E manual. In the controller, I created a user-Define Data type name Powerflex40. I use it for put all data I need for control drive, you can add you own tag. I configure the drive and adapter thru ethernet with drive executive lite, (created RSLink ethernet device driver). Drive explorer lite cannot communicate on ethernet. Like I say in previous post, don't forget to configure drive in single drive mode before turn the DIP sw in multidrive...I lost many hour to found how to configure drive! Really easy to do, all parameter of 22COMM-E is listed as a drive in drive executive software. In multidrive mode, you must use ethernet module CIP-Generic. Chapter 4 explain in detail how to configure ethernet adapter. If you change controller, you must reenter path in communication tab in all msg box. The project work, I test it. Rockwell don't recommend to write parameter in Eeprom too ofter, can cause dammage to Eeprom when reach maximum write cycle.Put 1 in paramter 207 Comm write mode in RAM instead save. This warning is not for Speed reference and logic command write. Wish help a bit, don't hesitate if you have any question. Comm_example.ACD

  6. FB in Siemens is similar to Add-On Instruction is AB logix series. In add-on you have Parameter and localtag, in FB you'll found instance data block attached to. FB can be call many time in the program, like Add-on instruction. Add-On instruction and Fb can be write protect. If you want, post the code (or the FB) we will verify if it's a Siemens code. wish I help...

  7. I figure out you talk about S7 block. In manager, open your project offline and online (2 windows), then you just have to drag and drop the data block you want to backup. You will keep your comment and symbol, take care : if you upload data block you lost symbol and comment.

  8. IT's work! I did few test today and everything work. I just want to share hint to member: I use 22COMM-E in multi drive mode. For be able to configure 22COMM-E with drive executive, you MUST configure the adapter in singledrive mode and when done, turn multidrive switch on. I lost few hour by trying to communicate with the adapter in multidrive mode before do their config.

  9. When a powerflex 40 is faulted, I would like to read fault #. I know how to access all parameter in the drive but not sure witch parameter is tha active fault value...it is d007? I did something similar in the past in DSI modbus, the adress was 8449 (0 when no fault in the drive, fault # when drive is faulted). Thanks

  10. First you should configure your 1769-HSC by add it to your projet. You can use up to 4 encoder on this card (depend of configuration). You can select a multiplier, for example with your 2000 PPR encoder X4 mean 8000 pulse per revoltion (card use rising and falling edge to do this). When your done, you'll get access to tag in your controller tag. HSC:0.currentcount is the high speed counter value, you can read it in your program. For more detail I suggest you some reading (about 170 page on 1769-HSC) at rockwell web site: http://literature.rockwellautomation.com/i...um006_-en-p.pdf have fun

  11. Hi all, I want to do a large amount of math operation with a compactlogix processor. I wrote to Rockwell support and they told me the ladder is the faster programming language, second is statement list & sequential and the slowest is function block. I'm surprise...I was thinking statement list will be faster than ladder! Anyone have some experience with different programming language? Ladder is really the faster ?

  12. Thanks everyone for the help and web site. Last question, it is a good idea to use C++ for build window based application? All documentation I see is for console (command window) it's hard to found documentation on where to start for do a project with windows, push button, textbox, ect... Suggestion for the Forum for administrator: The web site should have a C++, VB & JAVA section. We have a lot of member who know this code and they knowledge can be helpfull. Thanks again This forum is one of the most powerfull forum on the web...