KFlop Notes

Hey Dynomotion: Wheres the goddamm Emergency Stop switch functionality??

 


KLOP IO:

JR1 = Molex power connection

  • Pin 1 = +12v (not used by KFLOP, just passed through)
  • Pin2, 3 = Gnd
  • Pin 5 = +5v for KFLOP

JP2 = JTAG

J3 = power KFLOP off USB

JP4 = KFLOP AUX#0 (16 pin Ribbon connector)

  • +5V on JP4.1
  • +12V on JP4.2
  • +3.3V on JP4.3
  • RESET# (output) on JP4.4
  • bits 16-18 on JP4.5-7
  • GND on JP4.8-9
  • bits 19-25 on JP4.10-16
  • NOT 5V tolerant
  • bits 26-33 have PWM out as well available

JP5 = GPIO#1 / LV Differential connector (RJ45)

  • bits 36-43

JP6 = KFLOP AUX#1 (16 pin Ribbon connector)

  • +5V on JP6.1
  • +12V on JP6.2
  • +3.3V on JP6.3
  • RESET# (output) on JP6.4
  • bits 26-28 on JP6.5-7
  • GND on JP6.8-9
  • bits 29-35 on JP6.10-16
  • NOT 5V tolerant

JP7= Primary IO (26 pin ribbon connector)

  • +3.3V on JP7.1-2
  • +12V from JR1 on JP7.3
  • RESET# (output) on JP7.4
  • bits 44-45 on JP7.5-6 ARE NOT 5V tolerant
  • bits 0-15 on JP7.7 to JP7.22 ARE 5V tolerant
  • +5V on JP7.23-24
  • Gnd on JP7.25-26
  • Sink/source 10mA
  • Mapped to fixed functions (Output channel, Encoders, Limits etc, but can be freely used if these functions are not)

Alternatively, it's useful to see what KFLOP bits live on which connectors to determine which ones to use:

bits Connector  
0-15 JP7.7-22 5V tolerant
16-18 JP4.5-7  
19-25 JP4.10-16  
26-28 JP6.5-7  
29-35 JP6.10-16  
36-43 JP5 (RJ45)  
44-45 JP7.5-6  

 


Configuring for basic Step/Dir..

Has ability to control 8 motors, these have fixed output pins

Output channel (KFlop terminology) Step IO bit/pin (MUX = 0) Dir IO bit/pin (MUX = 1) Step IO bit/pin (MUX = 1) Dir IO bit/pin (MUX = 1)
0 8 / JP7.15 9 / JP7.16 22 / JP4.13 23 / JP4.14
1 10 / JP7.17  11 / JP7.18 24 / JP4.15 25 / JP4.16
2 12 / JP7.19 13 / JP7.20 26 / JP6.13 27 / JP6.14
3 14 / JP7.21 15 / JP7.22 28 / JP6.15 29 / JP6.16
4 36 / JP5.1 37 / JP5.2    
5 38 / JP5.3 39 / JP5.4    
6 40 / JP5.5 41 / JP5.6    
7 42 / JP5.7 43 / JP5.8    

Limit switches are recommended to be on 12-15

 


So, my mapping..

Note that KFLOP is expensive.. so to protect it:

  • Outputs will be buffered through 74HCT125 (VDD = 5V) to get from 3.3V to 5V
  • Inputs will be buffered through 74HC125 (VDD = 3.3V) to get to 3.3V

Motor outputs will 4 channels of Step/Dir bits 8-15 / JP17.15-22

Inputs:

  • Home X: 0
  • Home Y: 1
  • Home Z: 2
  • EStop: 3
Outputs broken out to RJ11 with bits 6 & 7 available for Manual Tape actuator & blow if needed later:
  • 4: Pneumatic Z
  • 5: Vacuum
  • 6: spare
  • 7: spare

So, breakout PCB mapping:

Bit Function Direction Breakout jack
0 / JP7.7 Home X Input J-X-Limit
1 Home Y Input J-Y-Limit
2 Home Z Input J-Z-Limit
3 ESTOP? Input J-EStop
4 / JP7.11 Z Solenoid
Output J-Output.1
5 Vacuum Output J-Output.2
6 Spare Output J-Output.3
7 Spare Output J-Output.4
8 / JP7.15 X Step Output J-OC0.1
9 X Dir Output J-OC0.2
10 Y Step Output J-OC0.3
11 Y Dir Output J-OC1.1
12 / JP7.19 Z Step Output J-OC1.2
13 Z Dir Output J-OC2.1
14 A Step Output J-OC2.2
15 A Dir Output J-OC2.03

I cant see how KFLOP integrates a physical ESTOP switch and I won't run my machine without one.. so I'll expect to feed the physical enable switch through to the Stepper drivers...

Each stepper driver PCB will require:

  • Gnd
  • Step
  • Dir
  • Enable

May require some of:

  • 5V
  • 12V
  • 24V
  • 36V
12V, 24V & 36V will be wired separately as required from PSU's
Leaves (for a 6 pin connection):
  • Step
  • Dir
  • Enable
  • Spare
  • Gnd
  • 5V

The A stepper is connected via RJ11 4-4:

Stepper driver pin 1 = A+, etc

KFLOP-sch-A01.jpg KFLOP-pcb-A01.jpg

 

 


KFLOP setup process
  • Install KFLOP software
  • Connect KFLOP to PC & install driver
  • Config Each Axis
  • Tune each axis
  • Save user flash

KMotion tool:

  • Config & Flash: Configure each axis:
    • No Input
    • Step & Dir
    • Input channel (+8 to get driven as LVTTL)
    • Inv Dist Per Cycle:
      • T5 belt, 16 tooth belt = 80mm per revolution
      • 0.9 Deg stepper microstepped via TB6560 at 1/8 = 3200 steps per revolution
      • Distance (mm) per (micro)step = 3200/80 = 1/40 = 0.025
    • Limit switches:
      • Stop when low ticked
      • Same bit for Neg & Pos
      • Stop motor drive / kill motor = same because no enable signal coming out of KFLOP to drivers..