Section 9. input/output instructions – Campbell Scientific TD Operating System Addendum for CR510, CR10X, and CR23X User Manual

Page 41

Advertising
background image

AD-9-1

SECTION 9. INPUT/OUTPUT INSTRUCTIONS

*** 18 MOVE TIME TO INPUT LOCATION ****

FUNCTION

This instruction takes current time or date
information and does a modulo divide (see
Instruction 46) on the time/date value with the
number specified in the second parameter. The
result is stored in the specified Input Location.

Entering 0 or a number greater than the
maximum value of the time/date for the modulo
divide will result in the actual time/date value
being stored.

PARAMETER 1 CODES

Code

Time/Date Units

00

Seconds into day (maximum 86400)

01

Minutes into day (maximum 1440)

02

Hours into year (maximum 8784)

03

Hours into day (maximum 24)

04

Day of month (maximum 31)

05

Month of year (maximum 12)

06

YR MO DAY HR MIN SEC

PARAM

DATA

NUMBER

TYPE

DESCRIPTION

01:

2

Time/Date Code

02:

4

Number to modulo
divide by

03:

4

Input Location Number

Input Locations altered: 1

Advertising