1. Trigger a Radar Sensor: The core goal was to get a specific physical output from the OKUMA CNC/PLC system to activate an external radar sensor. This involved selecting an available physical output (identified as YV37, corresponding to physical address 000.6, linked to the logical variable oSPS1).
2. Measure Pipe Eccentricity: The radar sensor is used specifically to measure the eccentricity of a tube before it is machined. This pre-machining measurement is crucial for ensuring the tube is properly centered.
3. Inform the Operator for Correction: The information gathered by the sensor about the tube's eccentricity is intended to tell the operator what compensation or shimming (supplements) is needed on the chuck jaws to correct the tube's centering.
4. Control via M-codes: The triggering of the sensor (activating/deactivating the corresponding physical output) is intended to be controlled directly from the CNC part program using specific miscellaneous functions (M-codes), specifically M58 to activate the sensor trigger signal and M59 to deactivate it.
5. Integrate into Existing PLC Logic: This required modifying the machine's existing PLC program within the D300win software, integrating the control of the chosen output (oSPS1) into a relevant logic block (block 21 of CHK1Z042).
6. Interface with External Hardware: The objective also implicitly required understanding and addressing the hardware interface, noting the need for an external relay due to the CNC's sinking output circuit versus the measurement device's sourcing circuit.
In essence, the larger objective was to add a non-standard, custom pre-machining process step to the machine's operation – automated tube eccentricity measurement – to improve setup accuracy and potentially machining quality by providing actionable feedback to the operator before the cutting process begins, all triggered seamlessly via the standard CNC part program using M-codes. This utilized an existing, but unused, physical output channel on the machine