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.1 General Description of the Date-Time Stamp Function<br />

The current date is read by <strong>function</strong> tmget().<br />

The system date is managed by a date-time stamp saved in the global memory.<br />

A CNC page allows the operator to reset the date-time stamp.<br />

Date-Time Stamp Function<br />

14.2 Read the Current Date tmget<br />

Syntax<br />

tmget(&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.<br />

Date Block Structure<br />

Byte No. Data type Value<br />

bytes 0 - 1 Year 0 to 65535<br />

byte 2 Month 1 to 12<br />

byte 3 Day 1 to 31<br />

byte 4 Hour 0 to 23<br />

byte 5 Minutes 0 to 59<br />

byte 6 Seconds 0 to 59<br />

bytes 7 - 8 Milliseconds 0 to 999 (Accuracy around 50 ms)<br />

Return code<br />

If OK<br />

0<br />

Error<br />

-1: The date was not updated.<br />

Programming error causing a CPU fault<br />

Access to a prohibited address:<br />

- &date parameter error.<br />

14 Date-Time Stamp Function<br />

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

14

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

Saved successfully!

Ooh no, something went wrong!