Okuma OSP

From Knowledge Base
Revision as of 16:16, 21 May 2024 by Andy (talk | contribs) (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>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.