Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 4 Next »

Exercise: Setting the function of a vending machine with the Scheduler feature

  1. Create three BOOL tags named “Washer”, “Light”, and “Vending”.

  2. Create 3 different action lists by clicking Tools > Script Editor… > click + icon > Create New Action List. Name the first action list “Activate Vending”, then assign the value “true” to the “Vending” tag > click OK.

  3. Repeat this step for the second and third action list called “Activate Washer” and “Activate Light”. Make sure to assign a corresponding tag in the Parameters section

  4. Create 3 different schedules by clicking Tools > Schedule Editor… > click + icon. Each Schedule Title will be “Activate Vending”, “Activate Washer”, and “Activate Light”.

  5. Configure the schedule setup based on the information provided below and make sure to assign a corresponding action in the Action section.

    1. Activate Vending: Start on 3/22/2022 at 07:30 military time and repeat every 1 day.

    2. Activate Washer: Start on 3/22/2022 at 07:45 military time and repeat once a week every Wednesday.

    3. Activate Light: Start on 3/1/2022 at 18:00 military time and repeat once every first day of the month.

  6. Create three different text boxes and bind the “Vending”, “Washer”, and “Light” tags to the Text property of their respective text boxes.

  7. To observe the operation of the scheduler, adjust the scheduled start date to occur the current date and start times to occur within the next 5 minutes, then run the simulator. At the scheduled start time of their respective schedule, the tag values should display “1”.

  • No labels