Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - edmund

Pages: [1]
1
Technical support / Re: stepper motor encoder pulse measurement
« on: January 15, 2003, 10:05:25 PM »
Motor using is a  DC permanent magnet motor, employing a digital tachometer feedback with TTL Pulse Stream.

So what can i use to get the feedback pulse over a sampling time of, say 1 minute? Because the speed of the motor is changing (but not very frequently), so i will need to know if the speed is becoming faster or slower, so the PLC can changing the time delay to make the output on faster or slower.


2
Technical support / stepper motor encoder pulse measurement
« on: January 15, 2003, 04:41:04 PM »
Can i use the HSC for stepper motor pulse measurement? or can i use PMON to measure 2?

Can u tell me what is the general guidlines for entering values for the PIDDEF?

3
Technical support / how to turn off the stepcount command?
« on: January 15, 2003, 08:36:51 PM »
i am using the stepcount command to read the step count. but i just need to take the counts for a duration of 1 minutes, how to take the stepcount readings & turn off the stepcount so that i just got the data collected over 1 minutes only?

4
Technical support / Re: Commands to use for reading stepper motor enco
« on: January 15, 2003, 09:44:20 PM »
(dCusF)1
' The ADC 0 to 4096 correspond to 1.0 to 100.0 seconds.
DM[1]=ADC(1)/40 'connect to the potentiometer.    

   IF getTimerSV(1) <> DM[1]  
      setTimerSV 1, DM[1]      'save data in data memory 1 to Timer SV
   ENDIF

(CusF)2
STEPSPEED 1,DM[2],20  'Just to simulate stepper motor is moving & changing the speed
STEPMOVE 1,100000,10   'with simulated encoder feedback.
A=STEPCOUNTABS(1)       'Analog encoder pulse input(1).

(dCusF)3
A=B
IF A=0 THEN          'A is the variable for STEPCOUNT &
   C=DM[1]           'B is the variable for DELAY timer setting
ELSE                 'A is set 0 for stop to moving position
   C=200000/B
ENDIF

IF getTimerSV(1) <> C
   setTimerSV 1, C
ENDIF

My task is to change the time delay of the timer (in turns activate an output) once there is a change in the speed of the conveyor which is fitted with an encoder.
So when the speed of the conveyor increase,the delay time become shorter.

From my above commands, i am just trying to get a sampling time,say in 1 minute how many stepcounts, so can u suggest a way to do it?

Kindly reply, thanks alot!

5
Technical support / Re: Commands to use for reading stepper motor enco
« on: January 13, 2003, 08:59:33 PM »
stepspeed 1,2000,20
stepmove 1,5000,10
a=1000
a=stepcount(1)+1
b=1/a*90000+1      
'a is variable for stepcount & b is variable for time delay

IF getTimerSV(1) <> b
      setTimerSV 1, b
   ENDIF

Can i enter the above command to get "a" as the variable for stepcount? But i cannot get the compute/result of "b" from the command "b=1/a*90000+1" because the simulation keep getting a value of zero for "b"?

Pls kindly help me on the above-mentioned problem.

6
Technical support / Re: Commands to use for reading stepper motor enco
« on: January 13, 2003, 07:45:50 PM »
Thanks 4 answering my above question!

I got another problem, it is possible to use a PID control with input feedback signal from the stepper motor encoder (detecting changing of speed) to control the time delay? Can you show me the way to do with "TBASIC"?

*the speed of the motor is inversely proportional to the time delay

What is the rules for entering values 4 the Proportional Gain, Integral Gain & the Differential Gain?

7
Technical support / Commands to use for reading stepper motor encoder?
« on: January 12, 2003, 10:52:55 PM »
I am new to Trilogic product.  I am trying to program the PLC to receive the feedback pulse signal from the stepper motor. I read the Trilogic help file & i think it is the command "STEPCOUNT", but the PLC software does not recongnize the "STEPCOUNT" command (I had entered the command as such "STEPCOUNT 1".

Please kindly show me the proper command to receive pulse signal from stepper motor encoder?

Pages: [1]