Im having a problem using the Pilsein command. Im' almost sure I have written the instruction an syntax correctly.
What is happening is the program runs properly without the "Pulsein Flow, FlowRate, mS" line but as soon as I un-comment it, compile and upload it, it freezes or halts the the loop.
Now for today's aggravation.
The problem I'm having is reading the Pulsein signal output very occasionally throws 0 (zero) This can be seen in screenshot, Capture4 below.
I'm driving the input wit a 1kHz signal from a signal generator The input is preconditioned with two gates of a 74HC14 Hex Inverter Schmitt Trigger.
I need to be able to pick up the lack of coolant flow when the Pump and Spindle Motor VFD is on.
This is the code I have so far. I think I need something that ignores the missing pulses for a minute or so. The entire projet so far is attached below.
Im having a problem using the Pilsein command. Im' almost sure I have written the instruction an syntax correctly.
What is happening is the program runs properly without the "Pulsein Flow, FlowRate, mS" line but as soon as I un-comment it, compile and upload it, it freezes or halts the the loop.
the full program is attached below.
Main: ;----- start main*******
Do
; FlowRate = 0
; Count = Count + 1
'' *Switch Pump and San On/Off ******
'' *Switch VFD and San On/Off ******
'' *END Switch Pump and San On/Off *****
'' *Start Coolant Flow Rate *****
; Pulse:
Pulsein Flow, FlowRate, mS
FlowRate = FlowRate ;/5 ;Divide by 2
Locate 1,15
Print FlowRate
Locate 1,16
Print " "
Loop
Last edit: Keith 2026-03-24
This has me really baffled ! it's working fine now - I don't understand...
Don't believe in Code Gremlins and fairy's
Now for today's aggravation.
The problem I'm having is reading the Pulsein signal output very occasionally throws 0 (zero) This can be seen in screenshot, Capture4 below.
I'm driving the input wit a 1kHz signal from a signal generator The input is preconditioned with two gates of a 74HC14 Hex Inverter Schmitt Trigger.
I need to be able to pick up the lack of coolant flow when the Pump and Spindle Motor VFD is on.
This is the code I have so far. I think I need something that ignores the missing pulses for a minute or so. The entire projet so far is attached below.
'' *End Coolant Flow Rate ********
Last edit: Keith 2026-03-26