beautypg.com

Rockwell Automation 1772-L8_LW_LWP_LX_LXP,D17726.5.8 User Manual User Manual

Page 259

background image

EAF

Process Control Instructions

Chapter 16

16-48

Leap Year and the Day of the Week

Leap year is displayed as a number representing the number of years since
the last leap year. For example:

–[GET]–[GET]–
00A

00B

In the first Get:

000 represents leap year
001 represents the first year since leap year
002 represents the second year since leap year
003 represents the third year since leap year

In the second Get, the day of the week is displayed as a number from 1-7.
You may set this Get to any number from 1-7. It increments each day at
midnight. After it increments to 7, it starts over again at 1.

Word format for set and read leap year and the day of the week functions
are the same. The only difference between the two EAFs is their function
number: set leap year and the day of the week is 12; read is 17.

Enter EAF rungs like those shown in Figure 16.17.

Figure 16.17

Set and Read Leap Year and the Day of the Week Input and Display

Rungs

EXECUTE AUX

FUNCTION NUMBER:

DATA ADDR:

RESULT ADDR:

11

010

010

00

060

003

G

061

003

G

FUNCTION

011

EXECUTE AUX

FUNCTION NUMBER:

DATA ADDR:

RESULT ADDR:

17

010

070

003

071

007

G

FUNCTION

070

G

Enter the Leap Year and Day of the Week values and set the condition bit
(01100) true. Then, set the leap year and day of the week by resetting the
condition bit (01100).