EasyManua.ls Logo

Siemens CPU 414-2 User Manual

Siemens CPU 414-2
160 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #44 background imageLoading...
Page #44 background image
Timer Instructions
42
S7-400 Instruction List
A5E00267845-01
Timer Instructions
Starting or resetting a timer. The time value must be in ACCU1-L. The instructions are triggered by an edge transition in the RLO; that is,
when the status of the RLO has changed between two calls.
In-
Length
Execution Time in s
In-
struc-
Address
Description
Length
in
Execution Time in
s
struc-
tion
Address
ID
Description
in
Words
CPU 412 CPU 414 CPU 416 CPU 417
SP Tf
T [e]
Start timer as pulse on edge
change from “0” to “1”
1
1)
/2 0.2
0.2+
0.12
0.12+
0.08
0.08+
0.06
0.06+
Timer para. 2 0.2+ 0.12+ 0.08+ 0.06+
SE Tf
T [e]
Start timer as extended pulse on
edge change from “0” to “1”
1
1)
/2 0.2
0.2+
0.12
0.2+
0.08
0.08+
0.06
0.06+
Timer para. 2 024+ 0.12+ 0.08+ 0.06+
SD Tf
T [e]
Start timer as ON delay on edge
change from “0” to “1”
1
1)
/2 0.2
0.2+
0.12
0.12+
0.08
0.08+
0.06
0.06+
Timer para. 2 0.2+ 01.2+ 0.08+ 0.06+
Status word for SP, SE, SD BR CC1 CC0 OV OS OR STA RLO /FC
Instruction evaluates: Yes
Instruction affects: 0 0
+ Plus time required for loading the address of the instruction (see page 20)
1)
With direct instruction addressing Timer No.: 0 to 255

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Siemens CPU 414-2 and is the answer not in the manual?

Siemens CPU 414-2 Specifications

General IconGeneral
Product type designationCPU 414-2
ArchitectureSIMATIC S7-400
Power Supply24 V DC
Number of DP master interfaces1
Number of PROFINET IO interfaces0
MPI/DP InterfaceIntegrated
DP Master/Slave Interfaces1
Operating Temperature0°C to 60°C
Relative Humidity10% to 95% (non-condensing)

Summary

Bit Logic Instructions

U/UN

Bit logic instructions for unconditional and unconditional NOT operations.

Logic Instructions with Timers and Counters

A/AN

AND/AND NOT logic instructions with timers and counters.

O/ON

OR/OR NOT logic instructions with timers and counters.

X/XN

EXCLUSIVE OR/EXCLUSIVE OR NOT logic instructions with timers and counters.

Timer Instructions

SP

Start timer as pulse on edge change from '0' to '1'.

SE

Start timer as extended pulse on edge change from '0' to '1'.

SD

Start timer as ON delay on edge change from '0' to '1'.

SS

Start timer as retentive ON delay on edge change from '0' to '1'.

SF

Start timer as OFF delay on edge change from '0' to '1'.

Counter Instructions

S

Presetting of counter on edge change from '0' to '1'.

R

Reset counter to '0' when RLO = '1'.

CU

Increment counter by 1 on edge change from '0' to '1'.

CD

Decrement counter by 1 on edge change from '0' to '1'.

FR

Enable counter on edge change from '0' to '1'.

Load Instructions for Timers and Counters

L

Load time or count values into ACCU1.

LC

Load time or count values in BCD format into ACCU1.

Integer Math (16 Bits)

+I

Add two 16-bit integers.

–I

Subtract one 16-bit integer from another.

*I

Multiply two 16-bit integers.

/I

Divide one 16-bit integer by another.

Integer Math (32 Bits)

+D

Add two 32-bit integers.

–D

Subtract one 32-bit integer from another.

*D

Multiply two 32-bit integers.

/D

Divide one 32-bit integer by another.

MOD

Divide 32-bit integer and load remainder into ACCU1.

Floating-Point Math (32 Bits)

+R

Add two 32-bit real numbers.

–R

Subtract one 32-bit real number from another.

*R

Multiply one 32-bit real number by another.

/R

Divide one 32-bit real number by another.

NEGR

Negate the real number in ACCU1.

ABS

Form the absolute value of the real number in ACCU1.

Square Root and Square Instructions (32 Bits)

SQRT

Calculate the square root of a real number in ACCU1.

SQR

Form the square of the real number in ACCU1.

Comparison Instructions (16-Bit Integers)

==I

Compare ACCU2-L equals ACCU1-L.

<>I

Compare ACCU2-L not equals ACCU1-L.

<I

Compare ACCU2-L less than ACCU1-L.

<=I

Compare ACCU2-L less than or equal to ACCU1-L.

>I

Compare ACCU2-L greater than ACCU1-L.

>=I

Compare ACCU2-L greater than or equal to ACCU1-L.

Comparison Instructions (32-Bit Integers)

==D

Compare ACCU2 equals ACCU1 (32-bit).

<>D

Compare ACCU2 not equals ACCU1 (32-bit).

<D

Compare ACCU2 less than ACCU1 (32-bit).

<=D

Compare ACCU2 less than or equal to ACCU1 (32-bit).

>D

Compare ACCU2 greater than ACCU1 (32-bit).

>=D

Compare ACCU2 greater than or equal to ACCU1 (32-bit).

Comparison Instructions (32-Bit Real Numbers)

==R

Compare ACCU2 equals ACCU1 (real numbers).

<>R

Compare ACCU2 not equals ACCU1 (real numbers).

<R

Compare ACCU2 less than ACCU1 (real numbers).

<=R

Compare ACCU2 less than or equal to ACCU1 (real numbers).

>R

Compare ACCU2 greater than ACCU1 (real numbers).

>=R

Compare ACCU2 greater than or equal to ACCU1 (real numbers).

Block Call Instructions

CALL FB q, DB q

Unconditional call of an FB with parameter transfer.

CALL SFB q, DB q

Unconditional call of an SFB with parameter transfer.

CALL FC q

Unconditional call of a function with parameter transfer.

CALL SFC q

Unconditional call of an SFC with parameter transfer.

UC

Unconditional call of blocks without parameter transfer.

CC

Conditional call of blocks without parameter transfer.

OPN

Open data blocks, instance data blocks, or use parameters.

Jump Instructions

JU

Jump unconditionally.

JC

Jump if RLO = '1'.

JCN

Jump if RLO = '0'.

JCB

Jump if RLO = '1', save RLO in BR bit.

JNB

Jump if RLO = '0', save RLO in BR bit.

JBI

Jump if BR = '1'.

JNBI

Jump if BR = '0'.

JO

Jump on stored overflow (OV = '1').

JOS

Jump on stored overflow (OS = '1').

JUO

Jump if 'unordered math instruction' (CC1=1 and CC0=1).

JZ

Jump if result = 0 (CC1=0 and CC0=0).

JP

Jump if result > 0 (CC1=1 and CC0=0).

JM

Jump if result < 0 (CC1=0 and CC0=1).

Related product manuals