Hi everyone,
I'm just getting started with Fatek PLCs and currently working with the Fatek FBS-20MCT-AC (12 inputs, 8 outputs). I'm using the HSPSO (High-Speed Pulse Output) function for NC position control to drive a stepper motor.
I'm now trying to integrate a limit switch as an external interrupt. The goal is:
When the limit switch is pressed, the stepper motor should immediately reverse direction.
A few points:
Is there a way to toggle direction (Y1) using an internal flag or register in the PLC, based on an external interrupt input?
Any suggestions, examples, or function block tips would be greatly appreciated!
I'm just getting started with Fatek PLCs and currently working with the Fatek FBS-20MCT-AC (12 inputs, 8 outputs). I'm using the HSPSO (High-Speed Pulse Output) function for NC position control to drive a stepper motor.
I'm now trying to integrate a limit switch as an external interrupt. The goal is:
When the limit switch is pressed, the stepper motor should immediately reverse direction.
A few points:
- The PLC is of the sinking type.
- The limit switch outputs 24V by default, and drops to 0V (negative edge trigger) when pressed.
- I'm using Y0 for pulse output and Y1 for direction.
Is there a way to toggle direction (Y1) using an internal flag or register in the PLC, based on an external interrupt input?
Any suggestions, examples, or function block tips would be greatly appreciated!