Okuma OSP

From Knowledge Base
Revision as of 17:42, 21 May 2024 by Andy (talk | contribs)

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.