Hello,
There are two types of inputs on the DC3IOB that can be used. The "simple" contact closure type
which are found on H20 & H21 such as limits, Estop etc... and the auxiliary type found on H18 & H19.
In this example, I'll use the "simple" type which detects a switch open/close anytime the input is
connected/disconnected from one of the "Commons" located on H20 or H21.
Implementing a Remote Cycle Start In Mach
Steps required to implement remote cycle start in Mach:
1. Wire in switch
2. Write remote cycle start Brain
3. Enable Brains
1. Wiring in switch
For this example, we will use Input31 on H20 which is currently labeled Rot Ack.
2. Write the Brain
Referring to Ajax inputs and outputs in Brains
All Ajax inputs and outputs are mapped directly to the Mach Modbus inputs and outputs.
Ajax input #1 (x- limit) is mapped to Modbus input number 1. Ajax Output 14 (SpindleEnable) is mapped to Modbus Output14
NOTE: This section has changed. I originally suggested using an OEMTrigger to avoid possible conflicts
when requesting a CycleStart from in the Brain. I was mistaken. Mach Brains offer a "button" type which
fires only momentarily and interacts with keypresses and softkeys smoothly. I apologize for any confusion.
FWIW The original code works fine, it just did so at the expense of consuming an OEMTrigger.
Starting with a blank Brain:
Click the plus sign to bring up the "Add Input" window and then select "Modbus"
Because we are using Ajax input 31 as cycle start, enter 31 into the box labled "Enter Modbus address to use"
Check the input box. Check "Bit only", use Bit 0[Bit0-15]
Select MacroModbus Emulation and Set CFG# to 0 -as shown below
- modbus_selects.gif (14.79 KiB) Viewed 4444 times
You can now see that Ajax input 31 has been included in the Brain (referenced as Modbus input 31)
Click on the input to highlight it green, then click the + to bring up the "Input Lobe" window.
Select "No Operation" (for this example, we just want to pass the state input through)
Click "ok"
Click on the "No Operation Pass Signal" token to highlight it green and then press the Lobe Termination symbol (Green upside down T)
Select "Button Press" button then scroll down and highlight "Cycle Start" and then "ok" to complete the rung.
The Brain is complete. Save your brain under whatever name you like.
.
- cycle_start_rung.gif (2.76 KiB) Viewed 4434 times
3. Enable Brains
In Mach, select "Operator"-> "Brain Control"
Click "Reload all Brains"
Find the brain you created and then click on it to highlight it.
Click the "Enabled" checkbox and then click "Reload all Brains" again.