panic mode

MrPLC Admin
  • Content count

  • Joined

  • Last visited

Community Reputation

41 Excellent


About panic mode

  • Rank
    Mitsubishi Moderator
  • Birthday 12/15/69

Contact Methods

  • Website URL
  • ICQ 0

Profile Information

  • Gender Male
  • Location Mississauga, ON
  • Country Canada
  • Interests many...

Recent Profile Visitors

6461 profile views
  1. UART (TTL)

    actually... i just had to look it up... this not conventional RS485 (or RS232) interface - there is also control line called "DIRECTION". I doubt you will be able to communicate like that - even if you use one of PLC outputs as direction signal, it will prpbably be very difficult to get the timing right (PLC I/O are updated in scan, communication is in overhead). If i was going to do this, i would have a microcontroller in between servo and PLC.    
  2. UART (TTL)

    MAX485 is used to interface devices using RS485 and TTL . full or half duplex does not imply hardware handshaking. Neither RS485 not TTL UART use it anyway.
  3. Ladder diagram

    you are welcome. depending on used PLC, instruction set will differ. specialized instructions are vendor specific so i tried making an example using only the most basic instructions. this should make porting to other platforms simple but it adds some restrictions of course (here it is size of word). nevertheless, idea is to learn concepts. once you can represent data in a form that corresponds to real world, you can use it any way you like. good luck...  
  4. Ladder diagram

    1-Sorry,Iam not understood all the ladder diagram. Can you explain it? i did ... in previous post. the whole point is that you should not focus on this ladder diagram and try to make your own. also syntax will be different. tip when programming, you need to understand what happens with information/data that you work. if you cannot explain it on paper, you don't understand it. 2-Where are the signals of sensor tracking position and rejection sensor in the ladder diagram? did you read at all...? IN1 and IN2 are in the diagram.    3-What do you mean by conveyor indexed signal? since you don't do decision making and processing on the spot, information need to be stored for later use (reject station is some distance away from station where you check for cap). this means that stored data (in PLC memory) need to corelate with physical situation you are looking at (bottles on conveyor and their position and their status to be rejected). so let's suppose we have bit field (i used an 16-bit integer which ws sufficient in this case). i am showing TWO bit fields here, first one represents bottles on conveyor, second one only shows locations that need to be rejected. in ladder example above, i only use the second one (that is all that we really need to know in this case). suppose no bottles need rejecting, then data will look like: 0000000000000000 ' no bottles present (just used for illustration) 0000000000000000 ' no bottles need to be rejected yet (this is our tracker)           ^               |           |______' reject position     after while it may looks something like this (i choose to track bottles as if they were moving to the left - new bottles are inserted on the right side): 0000000110101111 ' 7 bottles present, there are some gaps in bottle stream 0000000000000000 ' no bottles need to be rejected yet           ^               |           |______' reject position            eventually we may encounter bottle that has no cap or it has wrong cap 0000011010111111 ' 9 bottles present, there are some gaps in bottle stream 0000000000000001 ' bottle detected that will need to be rejected            ^               |           |______' reject position   but we need to wait until reject reaches certain position (this is why we must track conveyor) 0011010111111101 ' bottles keep shifting, there are some gaps in bottle stream 0000000000001000 ' bottle that will need to be rejected has traveled, information about reject is shifted in memory to keep track of the bottle position in the stream Eventually bottle to be rejected WILL reach our reject station: 1101011111110111 ' bottles keep shifting, there are some gaps in bottle stream 0000000000100000 ' reject reached reject station - KICK IT OUT, NOW!           ^               |           |______' reject position  
  5. Ladder diagram

    any concerns about thing called academic integrity? here is an example that is 99% complete but there is an intentional bug (or feature) and language is from another PLC so you still have to do something....
  6. Ladder diagram

    typical store info and use it later situation 1. you need a way to track information (FIFO or bit array plus another sensor to keep track of conveyor position) 2. every time you do a check, you need to            a) index your tracker (a bit field or FIFO)            b) check for cap present and             c) store result into your tracker (a bit field or FIFO) 3. use information in tracker (single entry) to trigger eject arm.    tracking conveyor position can be done by encoder or sensor counting gear teeth etc. implementation is yours...  
  7. Ladder diagram

  8. For i := 0 to 5 Do Variable1 := Struct[i].variable1 Variable2 := Struct[i].variable2 VariableX := Struct[i].variableX ... TON_instance(IN:=True, PT:=variable_in_seconds, Q=>TimeUp); ; use loop to wait... REPEAT ; do nothing... just wait UNTIL TimeUp End_For;
  9. Version V12 (2017)


    KUKA, Optional Interfaces for KRC4 Compact controller such as I/O, fast measure interface etc.
  10. View File KRC4 Compact Optional Interfaces KUKA, Optional Interfaces for KRC4 Compact controller such as I/O, fast measure interface etc. Submitter panic mode Submitted 03/02/18 Category Robots and Servos
  11. Digital Counter display with PLC

    details? generally counter can be driven by PLC output. but the output should be transistor type to avoid miscounting due relay contact bounce. if you plan to use counter as analog value display, one could use high speed output (Pulse Train Output) and reset signal.
  12. Question about chip PLC
  13. according to message, POU (Program Organization Unit) needed to do implicit checks is missing and need to be added into project. name of missing POU or function is CheckBounds. This is needed when using arrays for example. btw, message is only a warning...
  14. subroutine programme

    you don't have to, it is just a way to structure program. this is called modular programming and allows reusing same code in different parts of program without duplication.  
  15. array and string

    That IS an example in industrial automation. Anything automotive will have label (every component). Another examples would include logging data, part tracking using RFID tags, setting drive parameters, getting data from scale or flow meter or vision system or ECU and many more.   What kind of automation you do?