auto backlight Demo Project of Nieznany (2)

background image

Demo Project for Auto. Backlight

1 v1.00

Demo Project for Auto. Backlight

background image

Demo Project for Auto. Backlight

2 v1.00

Table of Contents

1. Overview and Operation

2. Setting Up the Screen

3. Addresses

background image

Demo Project for Auto. Backlight

3 v1.00

1. Overview and Operation

[Overview]

Use Schedule function together with Macro to switch ON/OFF the backlight

automatically at a specified time.

[Operation]

Use Scheduler object to automatically adjust the brightness of the backlight.

Set the trigger time and Scheduler bit address to trigger this function at a

specified time.

When this object is in ON
status, backlight is getting
darker.

Schedule object for
automatically
adjusting backlight
brightness.

When this object is in
ON status, backlight is
getting brighter.

background image

Demo Project for Auto. Backlight

4 v1.00

2. Setting Up the Screen

2-1 Setting of the Scheduler.

Go to Objects/Scheduler.

background image

Demo Project for Auto. Backlight

5 v1.00

The Scheduler appears as below.

Click [New] to create a new schedule.

background image

Demo Project for Auto. Backlight

6 v1.00



In the [General] page, set the [Action Mode] and [Action Address].

Set the
Action
Address to
“LB 0”.

Set the Action Mode
for triggering [Bit ON].

background image

Demo Project for Auto. Backlight

7 v1.00



For [Time Set], select [Constant] and set the time of [Start] & [End].

Set the Start Time to
8:00:00
from Sunday to Saturday

Set the End Time to
8:00:04

background image

Demo Project for Auto. Backlight

8 v1.00

Set another Scheduler as below



In the [General] page, set the [Action Mode] and [Action Address].

Set the Action Mode
for triggering [Bit ON].

Set the
Action
Address to
“LB 1”.

Set the action

background image

Demo Project for Auto. Backlight

9 v1.00



For [Time Set], select [Constant] and set the time of [Start] & [End].

Set the Start Time to
18:00:00
from Sunday to Saturday

Set the End Time to
18:00:04

background image

Demo Project for Auto. Backlight

10 v1.00

2-2 Setting of the Macro

Go to Tools / Macro.

Click [New] to enter editing screen.

Use LB9040 to turn the backlight up/down in Macro.

background image

Demo Project for Auto. Backlight

11 v1.00



In the Macro editing screen, write a Macro for backlight up.

macro_command main()

bool a=1

short i

for i=0 to 30 step 1

SetData(a,"Local HMI", LB, 9040, 1)

next

end macro_command



Create another Macro for backlight down.

macro_command main()

bool a=1

short i

for i=0 to 30 step 1

SetData(a,"Local HMI", LB, 9041, 1)

next

end macro_command

background image

Demo Project for Auto. Backlight

12 v1.00

2-3 Setting of the Bit Lamp and Set Bit objects



Create two Bit Lamp objects set to LB0 and LB1 for displaying the

Scheduler object status. When LB0/LB1 is ON, the backlight is

activated.

background image

Demo Project for Auto. Backlight

13 v1.00

background image

Demo Project for Auto. Backlight

14 v1.00



Create two Set Bit objects set to LB0 and LB1, and select [Set OFF

when window opens] in [Attribute].

background image

Demo Project for Auto. Backlight

15 v1.00

background image

Demo Project for Auto. Backlight

16 v1.00

3. Addresses

The addresses used in this demo project are listed below. Please change

these addresses base on actual usage.

Addresses

Object ID

Detail

Window 10

Bit

LB-0

BL_0

Will be triggered by Scheduler 1

LB-1

BL_1

Will be triggered by Scheduler 2

LB-0

SB_0

Set OFF when window opens

LB-1

SB_1

Set OFF when window opens

LW-9017

ND_1

HMI time – second

LW-9018

ND_2

HMI time – minute

LW-9019

ND_3

HMI time – hour

LW-9020

ND_4

HMI time – day

LW-9021

ND_5

HMI time – month


Wyszukiwarka

Podobne podstrony:
American Woodworker Project Of Nieznany
kyoto protocol projected 2010 t Nieznany
First 2015 Reading and Use of E Nieznany
ang dla opiekunek demo id 63647 Nieznany
auto cad 2005 nauka VWUQLMDEZTB Nieznany (2)
polar bears make little use of Nieznany
PHYWE P2450500 Diffraction of m Nieznany
MATERIAL DLA STODENTOW IRM i OF Nieznany
A History of the Evolution of E Nieznany (2)
Houtzagers P On the Dialect of Nieznany
Guide to Selection and Use of D Nieznany
A Contrastive Analysis of Engli Nieznany (3)
PIRATES OF CARIBBEAN (Piraci z Nieznany
Effect of long chain branching Nieznany
Etnografia dla terapeutow demo Nieznany
Fundamentals of Polymer Chemist Nieznany
ISTQB Glossary of Testing Terms Nieznany

więcej podobnych podstron