26.10.2012 Views

Statement List (STL) - DCE FEL ČVUT v Praze

Statement List (STL) - DCE FEL ČVUT v Praze

Statement List (STL) - DCE FEL ČVUT v Praze

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Timer Instructions<br />

12.2 Location of a Timer in Memory and Components of a<br />

Timer<br />

Area in Memory<br />

Timers have an area reserved for them in the memory of your CPU. This memory<br />

area reserves one 16-bit word for each timer address. The ladderlogic instruction set<br />

supports 256 timers. Please refer to your CPU’s technical information to establish<br />

the number of timer words available.<br />

The following functions have access to the timer memory area:<br />

• Timer instructions<br />

• Updating of timer words by means of clock timing. This function of your CPU in<br />

the RUN mode decrements a given time value by one unit at the interval<br />

designated by the time base until the time value is equal to zero.<br />

Time Value<br />

Bits 0 through 9 of the timer word contain the time value in binary code. The time<br />

value specifies a number of units. Time updating decrements the time value by one<br />

unit at an interval designated by the time base. Decrementing continues until the<br />

time value is equal to zero. You can load a time value into the low word of<br />

accumulator 1 in binary, hexadecimal, or binary coded decimal (BCD) format.<br />

You can pre-load a time value using either of the following formats:<br />

• W#16#txyz<br />

- Where t = the time base (that is, the time interval or resolution)<br />

- Where xyz = the time value in binary coded decimal format<br />

• S5T#aH_bM_cS_dMS<br />

- Where H = hours, M = minutes, S = seconds, and MS = milliseconds;<br />

user variables are: a, b, c, d<br />

- The time base is selected automatically, and the value is rounded to the next<br />

lower number with that time base.<br />

The maximum time value that you can enter is 9,990 seconds, or 2H_46M_30S.<br />

<strong>Statement</strong> <strong>List</strong> (<strong>STL</strong>) for S7-300 and S7-400 Programming<br />

12-2 A5E00706960-01

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

Saved successfully!

Ooh no, something went wrong!