Author Topic: New to PLCs. Is this possible?  (Read 11049 times)

DrGreen

  • Newbie
  • Posts: 1
    • View Profile
New to PLCs. Is this possible?
« on: January 11, 2007, 04:53:55 PM »
I have a fair amount (years) of experience with elecronic hardware at the component level and instrument control experience using Vbasic.  However, I am new to PLCs.  My application involves a simple form of motion control.  I want to take input from a position sensor which outputs data in the a/b quadrature phase form and dump this data into the plc.  I want the plc to interupt the motor that moves the position sensor in certain increments.  For example, when the operator pushes a button the motor will start to move and after things have moved X millimeters I want an output from the PLC to interupt the motor.  I know this is possible using the counters in the PLC but I need it to go both ways.  For example if I want the motor to move the sensor in 100 millimeter increments I want to be able to push a button and have  the work move 100 millimeters to the left.  The next time I may want to make the work move 100 millimeters to the right.  Is it possible to use counters this way?  Can the counter send an interupt on more than one count condition?  If not, is it possible to wire several counter inputs together and have one count up and the other count down?  Once the PLC interupts the motor the counters can be reset.  The PLC does not need to know absolute position of the sensor.  
« Last Edit: January 11, 2007, 04:55:07 PM by DrGreen »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:New to PLCs. Is this possible?
« Reply #1 on: January 11, 2007, 07:28:15 PM »
The T100MD+ or T100MX+ has two channels of encoder inputs that automatically inrement/decrement its high speed counter based on the direction of the quadrature pulses. You can use the HSCDEF function to define an interrupt service custom function to be triggered when the count reach a certain value. The new target count can be set anytime using the HSCDEF command so it should be able to handle your requirement.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS