Spindle gear change using state of single input

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
GranDan
Posts: 10
Joined: Mon Oct 22, 2018 6:43 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 40BD322E7843-0906181181
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

Spindle gear change using state of single input

Post by GranDan »

I want to tell acorn the spindle range, High or Low, using the state of a single input. High = Input Open Low = Input Closed
How can I map that and insure the Wizard can't overwrite it?
GranDan
Posts: 10
Joined: Mon Oct 22, 2018 6:43 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 40BD322E7843-0906181181
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

Re: Spindle gear change using state of single input

Post by GranDan »

Solved: Created new input definition SpindleRangeSW assigned to Input 3 in this case. Commanded M41 and M43 based on state of Input 3 with IF THEN statements. Had to remove SpindleRangeLow from one line as it is no longer recognized as valid. The attached screen captures show this. I copied and commented out the IF M41 line so I can go back and see the unedited stock code if necessary - line 3542. Line 3544 is the same with SpindleRangeLow edited out. Lines 3538 and 3540 are the new commands, which effectively preempt any other M41 or M43 commands. In the Wizard Input 3 is unused, and therefore it doesn't overwrite the SpindleRangeSW definition in the PLC src.
Next step is customize the VCP to make the corresponding buttons look more like annunciations, since they cannot control the spindle range state. Although the LEDs accomplish the same goal.
Attachments
SpindleRangeSW.png
SpindleRangeSW.png (11.53 KiB) Viewed 1238 times
Input Definitions.png
Input Definitions.png (5.12 KiB) Viewed 1238 times
Post Reply