07.03.2014 Views

Introduction.

Introduction.

Introduction.

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Workshop PG5<br />

Resources<br />

3.1.2 Time<br />

Most of the PCD's have a built in RTC (real time clock ). ( PCD1.M120/130<br />

and all the PCD2/4/6). You can load the date and time into a register with a<br />

special instruction.<br />

The example shows you how to read the time in your program.<br />

Instruction list program:<br />

COB 0<br />

0<br />

RTIME R 1<br />

ECOB<br />

FUPLA program:<br />

(FBox: Time Related, Time )<br />

This program reads the time from the clock and copies the value into register<br />

R1. Look what the value represents:<br />

R 1 = 093510<br />

09 o'clock 35 minutes and 10 seconds<br />

R 2 = 073990210<br />

week 07, day no. 3 ( Wednesday ), the<br />

10th of Feb 99<br />

© Saia-Burgess Controls Ltd. Page 3-2

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

Saved successfully!

Ooh no, something went wrong!