Indirect Day of Month function

This example shows you how to create a project where a machine works according to a time entered by the user via the keypad.

  1. Select Indirect Clock Functions from the Clock menu of the Ladder toolbar.

  2. Select Day of the Month from the Indirect Clock Function menu.

  3. Enter the desired Operand, Address and Symbol. The Day of the Month function is a 32 - bit Bitmap. Therefore it requires two MIs / SIs.

The program automatically takes the next Operand from the one you enter. According to the following example, you enter MI 4 and the program assigns the end of the range to MI 5, the next MI.

  1. To enable the user to view and modify the Indirect Clock function values, you must now create HMI Displays and Variables. Click Variables on the Standard toolbar.

  2. The Variable Editor opens. Select Time Functions for each Variable. Link the Variable to the appropriate MI. Select the appropriate Variable Information Format for the time. Below is the Start Time Variable for the time in hours.

  3. The Day of Month Variable.

 

When you download the application to the controller, the user will use the Up/Down arrow keys to scroll through the days of the month. When the display shows the correct day, the user selects it by pressing the Enter key.

Note that in M90/91 controllers the Up key is numeric key 3, and the Down key is numeric key 6.

Known issue: In Jazz controllers, when the keypad is taken over by the Indirect Clock functions Day of Week, Day of Month, and Month, the current Up key is numeric key 3, and the Down key is numeric key 6. This will be fixed in a future release.

Related Topics

Clock Functions

Indirect Clock Function

Direct Clock function