AC Drive China Forum
Forum » PLC - Programmable Logic Controller » INTERFACE WITH PLC
Topics: INTERFACE WITH PLC on PLC - Programmable Logic Controller
#1
Start by
Chintan patel
12-15-2013 08:05 PM

INTERFACE WITH PLC

i would like to know how to interface 4*4 keypad and servo motor with plc??
12-15-2013 10:27 PM
Top #2
David Ford, PE
12-15-2013 10:27 PM
Contact the PLC manufacturer, if you already have it. Otherwise, select a servo system that has PLC capabilities.
12-16-2013 01:04 AM
Top #3
Chris Pietras
12-16-2013 01:04 AM
I would suggest (if you don't already have a PLC) to use an Arduino. It has build in PWM for your servo, and there are libraries already for the 4*4 keypad and the Servo movements.
12-16-2013 03:34 AM
Top #4
David Ford, PE
12-16-2013 03:34 AM
Here we go with the toy again.
12-16-2013 06:27 AM
Top #5
Chris Pietras
12-16-2013 06:27 AM
Sorry my $13 solution wasn't any help. I'm sure there is a way to do it for $800 or more. :)
12-16-2013 08:59 AM
Top #6
David Ford, PE
12-16-2013 08:59 AM
So just how much power can you control and how much logic can you do for $13?
12-16-2013 11:41 AM
Top #7
Chris Pietras
12-16-2013 11:41 AM
ATmega328 microcontroller
Input voltage - 7-12V
14 Digital I/O Pins (6 PWM outputs)
6 Analog Inputs
32k Flash Memory
16Mhz Clock Speed

A lot more then what is needed for the decoding of a 4*4 keypad and sending pulses to a servor.
12-16-2013 02:01 PM
Top #8
Chintan patel
12-16-2013 02:01 PM
for my industrial application i can not use arduino.
12-16-2013 04:25 PM
Top #9
Roger Martineau
12-16-2013 04:25 PM
No problem ! Easy project. Use any brand PLC, like Schneider M340 or Rockwell ControlLogix !
12-16-2013 06:56 PM
Top #10
Chintan patel
12-16-2013 06:56 PM
Thank you Roger.
12-19-2013 08:20 PM
Top #11
Ravi
12-19-2013 08:20 PM
Chintan, are you talking about 8 bit parallel data bus? or your data is coming in 1 byte (8 bit) packets?, not clear.

if you don't want to use microcontrollers, then, in plc you have to make ladders with timers, the timers need to be programed carefully to generate PWM pulses & accordingly, on every PWM o/p of timers turn on & off the o/p elements (servo i/p's, which will need a motor driver to take TTL level pwm o/p from plc & translate the logic levels matching to servo motor you are using), you need to study about the servo motor you are using, step size, voltage & current ratings, accordingly you have to put motor drivers which will finally drive the servo motor.

about the matrix keypad, make 4 i/p's & 4 o/p's in ladder diagram and as Jean said you have to scan the 4 i/p lines continuously with a defined delay, you have to consifder a key denounce delay & confirmation routine to confirm the valid key pressed & finally get the hex codes for pressed keys. Connect keypad in multiplexed format, each column ise sourced by ext. dc voltage on board & connect series resistors according to the concerned PLC pin's sink current ratings. to generate the key debounce delays again you have use a timer API in you PLC ladder software.

you can use any cheap PLCs like AB - control logix 1000 (this work doesn't need high end featured PLCs) or semens S5 or any other vendor.
Reply to Thread