beautypg.com

Date, Applicable program areas operands, Flags – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 421: 2 instructions, S through s+3: new clock setting, Operand specifications

background image

2-385

2 Instructions

CP1E CPU Unit Instructions Reference Manual(W483)

Clo

c

k

I

n

stru

ctio

ns

2

D

A

TE

DATE

Applicable Program Areas

Operands

S through S+3: New Clock Setting

Note S through S+3 must be in the same data area.

Operand Specifications

Flags

Instruction

Mnemonic

Variations

Function

code

Function

CLOCK ADJUSTMENT

DATE

@DATE

735

Changes the internal clock setting to the setting in
the specified source words.

Symbol

DATE

Area

Step program areas

Subroutines

Interrupt tasks

Usage

OK

OK

OK

Operand

Description

Data type

Size

S

First source word

LWORD

4

Area

Word addresses

Indirect DM addresses

Constants

CF

Pulse bits

TR bits

CIO

WR

HR

AR

T

C

DM

@DM

*DM

S

OK

OK

OK

OK

OK

OK

OK

OK

OK

---

---

---

---

Name

Label

Operation

Error Flag

P_ER

ON if the new clock setting in S through S+3 is not within the specified range.

OFF in all other cases.

ON when DATE instruction is executed for CP1E-E

- .

S: First source word

DATE(735)

S

15

8

0

7

S

15

8

0

7

S+1

15

8

0

7

S+2

15

8

0

7

S+3

Seconds:
00 to 59 (BCD)

Minutes: 00 to 59 (BCD)

Hour:
00 to 23 (BCD)

Day: 01 to 31 (BCD)

Month:
01 to 12 (BCD)

Year: 00 to 99 (BCD)

Always set to 00.

Day of

the week: 00 = Sunday

01 = Monday
02 = Tuesday
03 = Wednesday
04 = Thursday
05 = Friday
06 = Saturday

This manual is related to the following products: