15.07.2013 Views

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

Automatic control function programming manual ladder language

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

14.3 Read the Current Date and Day in Week dtget<br />

Syntax<br />

14 - 2 en-938846/7<br />

dtget(&date)<br />

&date: Address of the memory block (11 bytes) where the date structure is<br />

to be stored.<br />

Operation<br />

Used to read the current date and the day in the week<br />

Date Block Structure<br />

Byte No. Data type Value<br />

byte 0 Day in week 0 to 6<br />

byte 1 Date 1 to 31<br />

byte 2 Month 1 to 12<br />

byte 3 Year 0 to 99<br />

byte 4 Hour 0 to 23<br />

byte 5 Minutes 0 to 59<br />

byte 6 Seconds 0 to 59<br />

Return code<br />

If OK<br />

0<br />

Error<br />

-1: The data was not updated<br />

Programming error causing a CPU fault<br />

Access to a prohibited address:<br />

- &date parameter error.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!