Author Topic: Measuring pulse frequency  (Read 10333 times)

Mikkel Steen Pedersen

  • Guest
Measuring pulse frequency
« on: September 30, 2002, 02:37:02 AM »
I'm using a T100MD1616+ PLC for my project, among other functions i want to measure the rotation speed of a wheel (just as descriped in the user manual page 1-10).

I'm using an inductive sensor and the input works fine when i count the pulses normally.

When use the PMON, PULSEFREQUENCY commands nothing happes (not even an error code)

What can be wrong???

- pulse frequency range 0-200 Hz is that to slow?


Regards

Mikkel
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: Measuring pulse frequency
« Reply #1 on: September 30, 2002, 10:29:41 AM »
Pulse measurement channel #1 maps to input #3, PM channel #2 maps to input #4.

You need to execute PMON 1 once only. Then connect your pulse signal to input #3, and whenever you execute

X = PULSEFREQUENCY(1)

the frequency of incoming pulses will be assigned to variable X.

The same goes for PMON 2 and  PULSEFREQUENCY(2). However, remember that you should connect the pulses to input #4 in this case.

TBASIC is a generic language and PM1 and PM2 happen to share the same inputs terminals as input #3 and input #4 for T100MD+ PLC.
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

Mikkel

  • Guest
Re: Measuring pulse frequency
« Reply #2 on: October 08, 2002, 08:59:18 PM »
I've done what you described and it now works perfectly. ;D


Regards

Mikkel
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »