Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Creating an Analog Clock

  1. Create 4 analog tags with “INT16” for Type and “Local” for I/O Device.

  2. Create a clock interface manually or search “3D Silver Clock” in the Graphic Library, then drag and drop the image to the page.

  3. Create an hour hand and a minute hand for the clock using the Line tool, or search “Arrows” in the Graphic Library, then drag and drop the image to the page.

  4. Once the clock has been created, the user will need to create three scripts. One script establishes a real-time clock and writes the current hour and minute into their own tags, and the other two are used to control the rotation of the hands of the clock.

...