User manual

Publication LOGIX-AP010B-EN-P - May 2010 59
Software Conversions Instructions Chapter 3
On Delay Timer
The following example shows how a ON DELAY function in SIMATIC S5 can be converted into a similar function in
RSLogix 5000 software for Statement List and Ladder formats.
In S5 the time base is determined by the digit after the decimal point in the statement L KT xxx.y, where xxx denotes the
preset of the timer and y denotes the time base as one of the following:
.0 => 0.01sec
.1 => 0.1sec
.2 => 1sec
.3 => 10sec
In RSLogix 5000 software, the time base is in milliseconds.
The RSLogix 5000-equivalent bit/word for each bit/word used in the S5 in the following example is shown below.
Usage of the RES instruction is optional.
Function S5 RSLogix 5000
Timer Enable I1.0 data_bit1
Reset I1.1 data_bit2
Output Q4.0 out_bit1
S5 Statement List RSLogix 5000 Structured Text
AI1.0
L KT9.2
SR T3
AI1.1
RT3
AT3
=Q4.0
T2.Pre := 9000;
T2.Reset := data_bit2;
T2.TimerEnable := data_bit1;
out_bit1 := T2.DN;
where timer T2 is defined as data type FBD_TIMER in the
program tags as follows.