Opto 22

43044 Business Park Drive, Temecula, CA 92590 USA
Local & outside the USA:(951) 695-3000
Toll-Free within the USA:(800) 321-6786
Fax: (951) 695-3095
Email: sales@opto22.com

Tech Tip: Improved "Get Chart Status" Command

PAC Control

Firmware 9.1d marks an improvement to the Get Chart Status command in PAC Control.

When a chart is first started, it can take up to 100 ms before it is in the running state. If you start a chart and then immediately use the Get Chart Status command to verify that it is running, it might be too soon to know for sure. The improved command resolves this issue by giving you more information.

In the past, Get Chart Status returned a 32-bit integer with four bits of information. Now we've added an additional bit to indicate whether the chart is in that gray area (in the process of starting, but not yet running).

Here are the returned bits and their possible values:

  • Bit 0: Running? (0=No; 1=Yes)
  • Bit 1: Suspended? (0=No; 1=Yes)
  • Bit 2: In Step Mode? (0=No; 1=Yes)
  • Bit 3: In Break Mode? (0=No; 1=Yes)
  • Bit 17: Starting? (0=Chart is not in the process of starting; 1=Chart is in the process of starting or is currently running)

You can take advantage of the improved Get Chart Status command by using controller firmware 9.1d (make sure you get the firmware for your controller model). The Help file and the Command Reference don't mention it yet but will be updated for the next release of PAC Control. In the meantime, here are some more tips for using the better-than-ever command:

  • Put the return value in a 32-bit integer, not a float. That way you can check the individual bits.
  • To find out if a chart is running, check both bit 0 and bit 17. If both bits are 0, the chart hasn't been started yet. If 0=0 and 17=1, the chart is starting. If both are 1, the chart is running.

Questions? Comments? Contact Opto 22 Product Support.


Nueva Página en la cual Enlista los Videos y Documentos en Español de Opto 22

Recursos en Español

Para la comodidad de nuestros clientes de habla hispana, ahora ofrecemos una página la cual enlista todo el contenido disponible en español.

La nueva página incluye videos, documentos, enlaces para encontrar un distribuidor de Opto 22 en su región y más.

Contacte un distribuidor de Opto 22 en su área para productos, soporte técnico, entrenamiento, y servicios de integración.

Visite la página de Recursos en Español.



Learn Website Tricks for Faster Access

Opto 22 Website Tour

Take a quick tour of the Opto 22 website and learn some valuable tricks.

Our new pdf shows you how to quickly find and do what you need on the Opto 22 website:

  • See direct links to products, downloads, or documents you've looked at recently.
  • Search using helpful tricks.
  • Get email alerts for changes to the products or documents you care about.
  • Build I/O configurations and BOMs you can save to work with later.
  • Use icons for faster actions.
  • Compare products and see which products work together.

Find the information you need now. Use it the way you want.
See the Opto 22 Website Tour pdf.


Join the OptoFamily on Facebook

Opto 22 on Facebook

Learn more about the people behind the products.

Opto 22's Facebook postings take you behind the scenes to find out more about the OptoFamily and what we do as a company.

"Like" the Opto 22 company page on Facebook, and you'll receive Opto 22 updates in your Facebook newsfeed. Get photos and news you'll never see anywhere else. A great way to interact and communicate with us!

Like Opto on Facebook.

My.Opto22

All Opto22

Request Information
  • FREE Product Brochure
  • Product Demonstration
  • PreSales Engineering Assistance

Opto 22 Product Support

Opto 22 Product Support is FREE Monday through Friday 7 a.m. to 5 p.m. Pacific Time

Product Support Numbers:

Local: (951) 695-3080
Toll-Free: (800) 835-6786
Fax: (951) 695-3017
support@opto22.com

Products

None

Downloads

None

Documents

None