Small victory in the war against the Cincinnati cinturn 12u

More
07 Nov 2022 11:04 #256124 by tommylight

is there a limit to the number of serial io cards you can use ??

Yes, but it is so high i forgot about it as there is no chance i will ever need so much IO or other features in one place.
The following user(s) said Thank You: smc.collins

Please Log in or Create an account to join the conversation.

More
07 Nov 2022 14:14 #256139 by smc.collins
that's good news.

can you tame a peak at my turret hal a few pages back ??? i'm not surw i'm headed right way

Please Log in or Create an account to join the conversation.

More
07 Nov 2022 15:51 #256146 by tommylight
Will do later, still working, on a coffe brake on the phone.
I think i already did look at it, it uses carousel component, i am ashamed i did not have time to test that on my Mazak lathe since i already have the turret working, sorry Andy, just in case he reads this.
Took another job on retrofitting another old Messer plasma machine in pittyful contition. No documentation, so more fun chasing wires....

Please Log in or Create an account to join the conversation.

More
07 Nov 2022 18:11 - 08 Nov 2022 00:16 #256156 by smc.collins
sometimes, it's easier to just yank it all out and start over.

i wasted 2 months in my Cincinnati trying to decipher the factory wiring and finally just yanked it out.

appreciate the input
made a second pass at it today, attached
Attachments:
Last edit: 08 Nov 2022 00:16 by smc.collins.

Please Log in or Create an account to join the conversation.

More
14 Nov 2022 00:07 #256639 by smc.collins
got it running in sim, if anyone sees any errors please let me know. I still have no idea how the BCD encoding works and I am not sure how to properly add the home index switch. But it runs in simulation. All of this is from my clone Virtual machine install. It's a copy of my real machine
Attachments:

Please Log in or Create an account to join the conversation.

More
14 Nov 2022 00:18 #256644 by andypugh
BCD is just binary until you get to numbers > 9.

It's a daft way to encode a carousel, really, as it is wasteful.

BCD encodes each _digit_ of a decimal number in Binary.

So
10 = 0001 0000
99 = 1001 1001
85 = 1000 0101

Though some other encodings may be called "BCD" too.
Do you have a table of the sensor values for each tool position?
The following user(s) said Thank You: smc.collins

Please Log in or Create an account to join the conversation.

More
14 Nov 2022 00:51 - 14 Nov 2022 00:52 #256649 by smc.collins
###############################################################
#     Turret position switch decoding                         #
#                                                             #
#      Switch 1         Switch 2           Switch 3           #
#      Input  4         Input  5           Input  6           #
#                                                             #
# Pocket                                                      #
#    1.    On             Off                 Off             #
#    2.    Off            On                  Off             #
#    3.    On             On                  Off             # 
#    4.    Off            Off                 On              #
#    5.    On             Off                 On              #
#    6.    Off            On                  On              #
#                                                             #
###############################################################
Last edit: 14 Nov 2022 00:52 by smc.collins.

Please Log in or Create an account to join the conversation.

More
14 Nov 2022 00:55 - 14 Nov 2022 00:58 #256650 by smc.collins
Cincinnati calls it BCD in the schematics, it's just 3 roller limit switches and a home index switch for pocket 1.on off 24v , there are 2  cams with lobes to turn them on and off, I have considered putting a encoder on it , but the way the motor and the locking system work, it's only got 6 positions, I could use virtual positions, that would be super helpful if I can just wrap the turret, It can hold multiple tools per station. I also haven;t added the IO for the 7i77 yet, as I want to work it out in sims first.
Last edit: 14 Nov 2022 00:58 by smc.collins.

Please Log in or Create an account to join the conversation.

More
14 Nov 2022 11:13 #256677 by andypugh
OK, that's just simple binary and should be fully supported by "carousel"

Please Log in or Create an account to join the conversation.

More
14 Nov 2022 13:29 - 14 Nov 2022 23:05 #256686 by smc.collins
3 things

how do i define the switches ?? IE how do I create a set of binary input values that are translated to the tool pocket number ? I a binary table is required, how do I create and define it ?  line by line IE S1 true s2 true s3 fale = 5 " for example ?, a look up table ?  I have Googled and searched and even plowed through the C code on git hub, and I got nada. I've also extesnviely searched the forum. If there is information on this, point me to it please

i have a strobe switch that shows when the tool is in position,? it's also attached to a hydraulic pusher that aligns the carousel which has a tool locked switch. I assume these simply need to be defined in the Hal component ? any additional G code, examples are slim to none for this. 

There is a significant gap in documentation that is making this process difficult. No where in any of the documentation does it say that 

I need a hal file " stand alone hal file"
the hal file needs to call the component with load commands here's one I find confusing, if net means connect, why not just use conn, it's more intuitive. conn is short hand for connect. 
That hal file will require changes to the INI file, IE remaps
The Remap will need to occur in the INI file
The Gcode will need to be written to operate the component  calling from the carousel component
 A table of the binary numbers 0 .. 15 can be used to implement a Universal Binary Function using indexing operations. Given two 1-bit inputs X and Y, [i]all[/i] 16 possible functions can be encoded in a 4-bit opcode.[code]X Y  F|0 1 2 3 4 5 6 7 8 9 A B C D E F
- -    - - - - - - - - - - - - - - - -  
0 0    0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
0 1    0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1
1 0    0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
1 1    0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
       -     -   - -   -   -   -   - -
       0    ~X  ~Y ^   &   Y   X   | 1
      ZERO    NOT-Y   AND         OR
          NOT-X   XOR              ONE
  [/code]
Last edit: 14 Nov 2022 23:05 by smc.collins.

Please Log in or Create an account to join the conversation.

Moderators: piasdom
Time to create page: 0.254 seconds
Powered by Kunena Forum