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?
Spindle gear change using state of single input
Moderator: cnckeith
-
- 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
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.
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 (11.53 KiB) Viewed 1238 times
-
- Input Definitions.png (5.12 KiB) Viewed 1238 times