(blue star)

This section explains the basics of the feature. Please utilize the feature according to your site environment.

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

a) Create three digital tags named ‘VENDING’, ‘LIGHT’, and ‘WASHER’.

b) Click [Tools] – [Schedule] to bring up the ‘Schedule List’ dialog box.

c) Press the [Add Schedule] button and add each schedule as shown below.

Enter each tag name and value into the text field, then press [Add] to register the tag, as shown below.

   

d) There should be four schedules in the ‘Schedule List’ dialog box as shown below. Press [Save and Close] to saves the schedules.

e) Create a touch object for opening the ‘Schedule Setting’ dialog box.

Function

Touch

Action

Command Expression

Command

ScheduleConfig();

   

f) Launch the project in Xpanel. Each function of the vending machine activates at the designated time according to the schedule settings. Every day, the power is turned on at 6:30, and the washer operates at 6:31. The light turns on at 18:30, and both the power and light are turned off at 23:30. You can change the time data of the schedule by pressing the touch object.