Page 2 of 2

Re: Chevalier FCL-2480 Hickory Leadshine EL7 Build

Posted: Thu Apr 17, 2025 10:37 am
by centroid467
Ok, I did some poking around and it will be necessary to write or modify some macros. Specifically, M41, M42, and M43.

You can set the inputs using the Wizard but looking at a Hickory (Mill) PLC shows that they are more for informing the control of a manual range selection. I would set it up differently to avoid any conflicts in the PLC program. I'll try give you an example of a macro that could work soon. Also, it seems that you will need to make very small changes to the PLC, namely assigning the range switching outputs to reflect certain SV_M94_M95_x variables.



The gear ratios are used for internal speed calculations and should be populated. Thankfully, they are pretty easy to figure out. You divide the max speed in the lower range by the max speed in high range. So, with the numbers you gave, you would set it up for medium range ratio = 0.3369565 and low range ratio = 0.1081522.

The Wizard may also ask for the minimum speed in high range. That is the lowest speed you can command in high range that will produce usable torque. I'm not sure where that is used - I'll have to look into that.



As far as the inputs and outputs go, I would leave them unassigned in the PLC. So, do not assign the spindle range inputs in the Wizard. I believe the Wizard will generate M41, M42, and M43 macro templates.

Re: Chevalier FCL-2480 Hickory Leadshine EL7 Build

Posted: Sun Apr 20, 2025 12:05 pm
by Lloyddunn
Thanks for the info. I found these macros that I’m going to attach below on another tread but they are only two speed. Let me know what you think and if you have any advice for adding the third speed. Thanks a lot for the help.

Re: Chevalier FCL-2480 Hickory Leadshine EL7 Build

Posted: Mon Apr 21, 2025 4:53 pm
by centroid467
Those look pretty good to me!

I'd approach it by adding the mfunc42.mac following the pattern in the M41 and M43 samples.

Modify the M3 and M4 macros with:
* The correct inputs and outputs for your wiring
* The correct thresholds to switch between ranges
* Logic to switch between your three ranges - should be pretty easy to check using an ELSE clause or multiple IF/THEN statements
* N3000 block following the pattern of the N1000 and N2000 blocks to control shifting into the medium range