Okuma OSP: Difference between revisions

From Knowledge Base
(Created page with "== Part counting == Okuma OSP controls have 4 "work counters" (A, B, C, and D) that all increment when a program calls M02 or M30. OnTakt reads the work counter configured in the Okuma MTConnect adapter settings on the control. === Manually setting the part counter === The work counters can be adjusted from MDI or part programs by using the VWKCC system variables: * <code>VWKCC[1]</code> (work counter A) * <code>VWKCC[2]</code> (work counter B) * <code>VWKCC[3]</code>...")
 
No edit summary
Line 13: Line 13:


For example, a program can set work counter A to 42 by running <code>VWKCC[1]=42</code>, or manually increment work counter B by running <code>VWKCC[2]=VWKCC[2]+1</code>.
For example, a program can set work counter A to 42 by running <code>VWKCC[1]=42</code>, or manually increment work counter B by running <code>VWKCC[2]=VWKCC[2]+1</code>.
[[Category:OnTakt User Guide]]

Revision as of 16:42, 21 May 2024

Part counting

Okuma OSP controls have 4 "work counters" (A, B, C, and D) that all increment when a program calls M02 or M30.

OnTakt reads the work counter configured in the Okuma MTConnect adapter settings on the control.

Manually setting the part counter

The work counters can be adjusted from MDI or part programs by using the VWKCC system variables:

  • VWKCC[1] (work counter A)
  • VWKCC[2] (work counter B)
  • VWKCC[3] (work counter C)
  • VWKCC[4] (work counter D)

For example, a program can set work counter A to 42 by running VWKCC[1]=42, or manually increment work counter B by running VWKCC[2]=VWKCC[2]+1.