Exercise: Setting the function of a vending machine with the Scheduler feature
...
Create three
...
BOOL
...
tags named
...
“Washer”,
...
“Light”,
...
and “Vending”.
...
b) Click [Tools] - [Script Editor], then press the icon and select [Create New Action List]. The user will need to create three action lists that write a value of '1' to the previously created tags.
...
c) Click [Tools] - [Scheduler] to open the [Scheduler] window.
d) Add a new schedule by pressing the icon. The user will need to create three schedules. The configuration for each schedule can be found below. If the user would like to observe the operation
...
Create 3 different action lists by clicking Tools > Script Editor… > click + icon > Create New Commands > name the first action list “Activate Vending” > click Add New Command, then assign the value “true” to the “Vending” tag > click OK.
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
Create 3 different schedules by clicking Tools > Schedule Editor… > click + icon. Each Schedule Title will be “Activate Vending”, “Activate Washer”, and “Activate Light”.
Configure the schedule setup based on the information provided below and make sure to assign a corresponding action in the Action section.
Activate Vending: Start on 2023-03-01 at 07:30 military time and repeat every 1 day.
Activate Washer: Start on 2023-03-22 at 07:45 military time and repeat once a week every Wednesday.
Activate Light: Start on 2023-03-01 at 18:00 military time and repeat once every first day of the month.
Create three different text boxes and bind the “Vending”, “Washer”, and “Light” tags to the Text property of their respective text boxes.
...
...
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”.
...