Professional Documents
Culture Documents
6ES7 398-8AA03-8BN0
Edition 1
Contents Contents
Parameter Ranges
Addr.
312* 313 314 314* 315/315-2/ 318-2 Description
ID
316-2
DIX 0.0 to 8191.7 0.0 to 0.0 to Data bit in instance DB
8191.7 65533.7
DI 1 to 63 1 to 127 1 to 127 1 to 2047 Instance data block
DIB 0 to 6143 0 to 8191 0 to 8191 0 to 65533 Data byte in instance DB
DIW 0 to 6142 0 to 8190 0 to 8190 0 to 65532 Data word in instance DB
DID 0 to 6140 0 to 8188 0 to 8188 0 to 65530 Data double word in instance DB
I 0.0 to 31.7 0.0 to 127.7 0.0 to 123.7 0.0 to 127.7 0.0 to Input bit (in PII)
2047.7 1
124.0 to – 124.0 to – – ... integrated inputs
127.7 127.7
IB 0 to 31 0 to 127 0 to 123 0 to 127 0 to 2047 1 Input byte (in PII)
124 to 127 – 124 to 127 – – ... integrated inputs
IW 0 to 30 0 to 127 0 to 122 0 to 126 0 to 2046 1 Input word (in PII)
124 to 126 – 124 to 126 – – ... integrated inputs
ID 0 to 28 0 to 124 0 to 120 0 to 124 0 to 2044 1 Input double word (in PII)
124 – 124 – – ... integrated inputs
L 0.0 to 255.7 0.0 to 255.7 0.0 to Local data bit
8191.7 2
LB 0 to 255 0 to 255 0 to 8191 2 Local data byte
LW 0 to 254 0 to 254 0 to 8190 2 Local data word
LD 0 to 252 0 to 252 0 to 8188 2 Local data double word
Parameter Ranges
Addr.
312* 313 314 314* 315/315-2/ 318-2 Description
ID
316-2
M 0.0 to 127.7 0.0 to 255.7 0.0 to 255.7 0.0 to Bit memory bit
1023.0
MB 0 to 127 0 to 255 0 to 255 0 to 1023 Bit memory byte
MW 0 to 126 0 to 254 0 to 254 0 to 1022 Bit memory word
MD 0 to 124 0 to 252 0 to 252 0 to 1020 Bit memory double word
Parameter Ranges
Addr. ID 312* 313 314 314* 315 315-2/ 318–2 Description
316–2
PQB
Q 0 to 31 0 to 31 0 to 767 0 to 751 0 to 767 0 to 1023 0 to 8191 Peripheral
p output
p byte
y
(direct I/O access)
124
256 to 383 256 to 383
PQW 0 to 30 0 to 30 0 to 766 0 to 750 0 to 766 0 to 1022 0 to 8190 Peripheral output
word (direct I/O ac-
256 to 382 256 to 382 cess)
PQD 0 to 28 0 to 28 0 to 764 0 to 748 0 to 764 0 to 1020 0 to 8188 Peripheral output
double word (direct
256 to 380 256 to 380 I/O access)
PIB 0 to 31 0 to 31 0 to 767 0 to 751 0 to 767 0 to 1023 0 to 8191 Peripheral
p input
p byte
y
(direct I/O access)
124 to 125
256 to 383 256 to 383
PIW 0 to 30 0 to 30 0 to 766 0 to 750 0 to 766 0 to 1022 0 to 8190 Peripheral
p input
p word
(direct I/O access)
124
256 to 382 256 to 382
PID 0 to 28 0 to 28 0 to 764 0 to 748 0 to 764 0 to 1020 0 to 8188 Peripheral input
double word
256 to 380 256 to 380 (direct I/O access)
T 0 to 63 0 to 127 0 to 127 0 to 511 Timer
Z 0 to 31 0 to 35 0 to 63 0 to 63 0 to 511 Counter
Parame- – – Instruction addressed
ter via parameter
B#16# – – Byte
W#16# Word
DW#16# Double word
hexadecimal
Parameter Ranges
Addr.
312* 313 314 314* 315/315–2, 318-2 Description
ID
316
D# – – IEC data constant
L# – – 32-bit integer constant
P# – – Pointer constant
S5T# – – S5 time constant (16 bits) 1
T# – 2 2 Time constant (16/32 bits)
TOD# – – IEC time constant
C# – – Counter constant (BCD–codiert)
2# – – Binary constant
B – – Constant, 2 or 4 Byte
(b1,b2)
B
(b1,b2,
b3,b4)
Registers
ACCU1 and ACCU2 (32 Bits) Area-internal address
00000000 00000bbb bbbbbbbb bbbbbxxx
The accumulators are registers for processing bytes, words or
double words. The operands are loaded into the accumulators, Area-crossing address
where they are logically gated. The result of the logic operation
10000yyy 00000bbb bbbbbbbb bbbbbxxx
(RLO) is in ACCU1.
Legend: b Byte address
CPU 318–2: also ACCU3 and ACCU4.
x Bit number
Accumulator designations: y Area identifier
(see section “Examples of Addressing”)
ACCU Bits
ACCUx (x = 1 to 4) Bits 0 to 31 Status Word (16 Bits)
ACCUx-L Bits 0 to 15
The status word bits are evaluated or set by the instructions.
ACCUx-H Bits 16 to 31
The status word is 16 bits long.
ACCUx-LL Bits 0 to 7
Bit Assignment Description
ACCUx-LH Bits 8 to 15
0 FC First check bit *
ACCUx-HL Bits 16 to 23
1 RLO Result of (previous) logic operation
ACCUx-HH Bits 24 to 31
2 STA Status *
3 OR Or *
Address Registers AR1 and AR2 (32 Bits) 4 OS Stored overflow
Examples of Addressing
Addressing Examples Description Addressing Examples Description
Direct Addressing Direct Addressing
L +27 Load 16-bit integer constant A I 0.0 ANDing of input bit 0.0
“27” into ACCU1
L IB 1 Load input byte 1 into ACCU1
L L#–1 Load 32-bit integer constant
“–1” into ACCU1 L IW 0 Load input word 0 into
ACCU1
L 2#1010101010101010 Load binary constant into
ACCU1 L ID 0 Load input double word 0 into
ACCU1
L DW#16#A0F0_BCFD Load hexadecimal constant into
ACCU1 Indirect Addressing of Timers/Counters
L ’END’ Load ASCII character into SP T [LW 8] Start timer; the timer number is
ACCU1 in local word 8
L T#500 ms Load time value into ACCU1 CU C [LW 10] Start counter; the counter num-
ber is in local data word 10
L C#100 Load count value into ACCU1
Area-Internal Memory-Indirect Addressing
L B#(100,12) Load 2-byte constant
A I [LD 12] AND operation: The address of
L B#(100,12,50,8) Load 4-byte constant Example: L P#22.2 the input is in local data double
T LD 12 word 12 as pointer
L P#10.0 Load area-internal pointer into A I [LD 12]
ACCU1
A I [DBD 1] AND operation: The address of
L P#E20.6 Load area-crossing pointer into the input is in data double
ACCU1 word 1 of the DB as pointer
L –2.5 Load real number into ACCU1 A Q [DID 12] AND operation: The address of
L D#1995–01–20 Load date the output is in data double
word 12 of the instance DB as
L TOD#13:20:33.125 Load time of day pointer
A Q [MD 12] AND operation: The address of
the output is in memory marker
double word 12 of the instance
DB as pointer
For area-crossing register-indirect addressing, bits 24 to 26 of the Example for sum of bit addresses 7:
address must also contain an area identifier. The address is in the
address register. LAR1 P#8.2
A I [AR1,P#10.2]
Area Coding Area
identifier (binary) hex. Result: Input 18.4 is addressed (by adding the byte and bit
P 1000 0000 80 I/O area addresses)
I 1000 0001 81 Input area
Q 1000 0010 82 Output area Example for sum of bit addresses7:
M 1000 0011 83 Bit memory area L MD 0 Random pointer, e.g. P#10.5
DB 1000 0100 84 Data area LAR1
DI 1000 0101 85 Instance data area A I [AR1,P#10.7]
L 1000 0110 86 Local data area
VL 1000 0111 87 Predecessor local data Result: Input 21.4 is addressed (by adding the byte and bit
(access to local data of addresses with carry)
invoking block see
page 15)
L B [AR1,P#8.0] Load byte into ACCU1: The
address is calculated from the
“pointer value in AR1+ P#8.0”
A [AR1,P#32.3] AND operation: The address of
the operand is calculated from
the “pointer value in AR1+
P#32.3”
The pages that follow contain examples for calculating the instruc-
tion run time for the various indirectly addressed instructions.
Examples of Calculations (for the CPU 314) Step 2: AND the input addressed in this way (you will find
the execution time in the tables in the chapter entitled
You will find a few examples here for calculating the execution “List of Instructions”)
times for the various methods of indirect addressing. Execution
times are calculated for the CPU 314. Typical Execution Time in s
Calculating the Execution Time for Area-Internal Calculating the Execution Time for Area-Crossing
Register-Indirect Addressing Memory-Indirect Addressing
Example: A I [AR1, P#34.3] Example: A [AR1, P#23.1] ... with I 1.0 in AR1
Step 1: Load the contents of AR1, and increment it by the Step 1: Load the contents of AR1, and increment them by
offset 34.3 (the time required is listed in the table on the offset 23.1 (the time required is in the table on
page 21) page 21)
Step 2: AND the input addressed in this way (you will find Step 2: AND the input addressed in this way (you will find
the execution time in the tables in the chapter entitled the execution time in the tables in the chapter entitled
“List of Instructions”) “List of Instructions”)
Step 2: AND the input addressed in this way (you will find
the execution time in the tables in the chapter entitled
“List of Instructions”)
List of Instructions page 16), you must add the time required for loading the address of
the particular instruction to the execution times listed (see page 21).
This chapter contains the complete list of S7-300 instructions. The
descriptions have been kept as concise as possible. You will find a Bit Logic Instructions
detailed functional description in the various STEP 7 reference
manuals. Examining the signal state of the addressed instruction and gating
Please note that, in the case of indirect addressing (examples see the result with the RLO according to the appropriate logic function.
In-
In Length
g Typical Execution Time in s
struc- Address Description in
Words Direct Addressing Indirect Addressing 1
tion Identifier
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316-2 316-2
A AND
I/Q a.b Input/output 1 2/2 0.7 0.2 0.3 0.1+ 2.5+ 2.0+ 1.6+ 0.1+
M a.b Bit memory 1 2/2 1.5 0.6 0.6 0.1+ 2.7+ 2.2+ 1.7+ 0.1+
L a.b Local data bit 2 2.2 0.8 0.9 0.1+ 3.0+ 2.2+ 1.8+ 0.1+
DBX a.b Data bit 2 5.2 2.7 2.8 0.1+ 4.2+ 2.8+ 2.5+ 0.1+
DIX a.b Instance data bit 2 5.2 2.7 2.8 0.1+ 4.2+ 2.8+ 2.5+ 0.1+
c[AR1,m] Register–ind., area–internal (AR1) 2 – – – – + + + +
c[AR2,m] Register–ind., area–internal (AR2) 2 – – – – + + + +
[AR1,m] Area-crossing via (AR1) 2 – – – – + + + +
[AR2,m] Area-crossing via (AR2) 2 – – – – + + + +
Parameter Via parameter 2 – – – – + + + +
Status word for: A BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – Yes – Yes Yes
Instruction affects: – – – – – Yes Yes Yes 1
In-
In Length Typical Execution Time in s
struc- Address Description in
Direct Addressing Indirect Addressing 1
tion Identifier Words
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316-2 316-2
AN AND NOT 0.4
I/Q a.b Input/output 1 2/2 0.7 1.4 0.5 0.5 0.1 2.9+ 2.2+ 1.9+ 0.1+
M a.b Bit memory 1 2/2 0.9 1.9 0.7 0.8 0.1 3.1+ 2.4+ 2.1+ 0.1+
L a.b Local data bit 2 3.6 2.5 0.9 1.0 0.1 3.4+ 2.4+ 2.2+ 0.1+
DBX a.b Data bit 2 5.5 3.0 3.1 0.1 4.6+ 2.9+ 2.8+ 0.1+
DIX a.b Instance data bit 2 5.5 3.0 3.1 0.1 4.6+ 2.9+ 2.8+ 0.1+
c[AR1,m] Register–ind., area–internal (AR1) 2 – – – – + + + +
c[AR2,m] Register–ind., area–internal (AR2) 2 – – – – + + + +
[AR1,m] Area-crossing via (AR1) 2 – – – – + + + +
[AR2,m] Area-crossing via (AR2) 2 – – – – + + + +
Parameter Via parameter 2 – – – – + + + +
Status word for: AN BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – Yes – Yes Yes
Instruction affects: – – – – – Yes Yes Yes 1
In-
In Length Typical Execution Time in s
struc- Address Description in
Direct Addressing Indirect Addressing 1
tion Identifier Words
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316-2 316-2
O OR
I/Q a.b Input/output 1 2/2 0.7 0.2 0.3 0.1 2.5+ 2.0+ 1.6+ 0.1+
M a.b Bit memory 1 2/2 1.5 0.6 0.7 0.1 2.7+ 2.2+ 1.7+ 0.1+
L a.b Local data bit 2 2.2 0.8 0.9 0.1 3.0+ 2.2+ 1.8+ 0.1+
DBX a.b Data bit 2 5.2 2.7 2.9 0.1 4.2+ 2.8+ 2.5+ 0.1+
DIX a.b Instance data bit 2 5.2 2.7 2.9 0.1 4.2+ 2.8+ 2.5+ 0.1+
c[AR1,m] Register–ind., area–internal (AR1) 2 – – – – + + + +
c[AR2,m] Register–ind., area–internal (AR2) 2 – – – – + + + +
[AR1,m] Area-crossing via (AR1) 2 – – – – + + + +
[AR2,m] Area-crossing via (AR2) 2 – – – – + + + +
Parameter Via parameter 2 – – – – + + + +
ON OR NOT
I/Q a.b Input/output 13/2 1.4 0.5 0.5 0.1 2.9+ 2.2+ 1.6+ 0.1+
M a.b Bit memory 12/2 1.9 0.7 0.8 0.1 3.1+ 2.4+ 2.0+ 0.1+
L a.b Local data bit 2 2.5 0.9 1.0 0.1 3.4+ 2.4+ 2.2+ 0.1+
DBX a.b Data bit 2 5.5 3.0 3.1 0.1 4.6+ 2.9+ 2.8+ 0.1+
DIX a.b Instance data bit 2 5.5 3.0 3.1 0.1 4.6+ 2.9+ 2.8+ 0.1+
c[AR1,m] Register–ind., area–internal (AR1) 2 – – – – + + + +
c[AR2,m] Register–ind., area–internal (AR2) 2 – – – – + + + +
[AR1,m] Area-crossing via (AR1) 2 – – – – + + + +
[AR2,m] Area-crossing via (AR2) 2 – – – – + + + +
Parameter Via parameter 2 – – – – + + + +
Status word for: O, ON BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – Yes Yes
Instruction affects: – – – – – 0 Yes Yes 1
1 Plus time required for loading the address of the instruction
(see page 21)
2 With direct instruction addressing
In-
In Length Typical Execution Time in s
struc- Address Description in
Direct Addressing Indirect Addressing 1
tion Identifier Words
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316-2 316-2
X EXCLUSIVE OR
I/Q a.b Input/output 2 0.7 0.2 0.3 0.1 2.5+ 1.9+ 1.6+ 0.1+
M a.b Bit memory 2 1.5 0.6 0.7 0.1 2.7+ 2.1+ 1.7+ 0.1+
L a.b Local data bit 2 2.2 0.8 0.9 0.1 3.0+ 2.1+ 1.9+ 0.1+
DBX a.b Data bit 2 5.2 2.8 2.9 0.1 4.2+ 2.6+ 2.5+ 0.1+
DIX a.b Instance data bit 2 5.2 2.8 2.9 0.1 4.2+ 2.6+ 2.5+ 0.1+
c[AR1,m] Register–ind., area–internal (AR1) 2 – – – – + + + +
c[AR2,m] Register–ind., area–internal (AR2) 2 – – – – + + + +
[AR1,m] Area-crossing via (AR1) 2 – – – – + + + +
[AR2,m] Area-crossing via (AR2) 2 – – – – + + + +
Parameter Via parameter 2 – – – – + + + +
XN EXCLUSIVE OR NOT
I/Q a.b Input/output 2 1.4 0.5 0.5 0.1 2.9+ 2.2+ 1.9+ 0.1+
M a.b Bit memory 2 1.9 0.7 0.8 0.1 3.1+ 2.4+ 2.0+ 0.1+
L a.b Local data bit 2 2.5 0.9 1.0 0.1 3.4+ 2.4+ 2.2+ 0.1+
DBX a.b Data bit 2 5.5 3.0 3.1 0.1 4.6+ 2.9+ 2.8+ 0.1+
DIX a.b Instance data bit 2 5.5 3.0 3.1 0.1 4.6+ 2.9+ 2.8+ 0.1+
c[AR1,m] Register–ind., area–internal (AR1) 2 – – – – + + + +
c[AR2,m] Register–ind., area–internal (AR2) 2 – – – – + + + +
[AR1,m] Area-crossing via (AR1) 2 – – – – + + + +
[AR2,m] Area-crossing via (AR2) 2 – – – – + + + +
Parameter Via parameter 2 – – – – + + + +
Status word for: X, XN BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – Yes Yes
Instruction affects: – – – – – 0 Yes Yes 1
1 Plus time required for loading the address of the instruction
(see page 21)
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2
312*/313 314/314* 318-2
316-2
A( AND left parenthesis 1 2.9 1.7 1.7 0.1
AN( AND NOT left parenthesis 1 2.9 1.7 1.7 0.1
O( OR left parenthesis 1 2.9 1.4 1.7 0.1
ON( OR NOT left parenthesis 1 2.9 1.4 1.7 0.1
X( EXCLUSIVE OR 1 2.9 1.4 1.7 0.1
left parenthesis
XN( EXCLUSIVE OR NOT 1 2.9 1.4 1.7 0.1
left parenthesis
Status word for: A(, AN(, O(, ON(, X(, BR CC 1 CC 0 OV OS OR STA RLO FC
XN(
Instruction depends on: Yes – – – – Yes – Yes Yes
Instruction affects: – – – – – 0 1 – 0
) Right parenthesis, popping an 1 3.3 1.7 1.9 0.1
entry off the nesting stack, gat-
ing the RLO with the current
RLO in the processor
Status word for: ) BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – Yes –
Instruction affects: Yes – – – – Yes 1 Yes 1
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
O ORing of AND operations 1 1.4 0.3 0.5 0.1
according to the rule:
AND before OR
Status word for: O BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – Yes – Yes Yes
Instruction affects: – – – – – Yes 1 – Yes
In
In- Length Typical Execution Time in s
struc- Address Description in
Words Direct Addressing Indirect Addressing 1
tion Identifier
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316-2 316-2
A AND
T Timer 1 2/2 2.4 0.8 0.9 0.1 3.3+ 2.2+ 2.1+ 0.1+
C Counter 1 2/2 1.7 0.6 0.6 0.1 3.0+ 1.9+ 1.8+ 0.1+
Timer para. Timer/counter 2 – – – – + + + +
Counter p. (addressed via parameter) – – – – + + + +
Status word for: A BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – Yes – Yes Yes
Instruction affects: – – – – – Yes Yes Yes 1
AN AND NOT
T Timer 13/2 3.0 1.0 1.1 0.1 3.7+ 2.4+ 2.3+ 0.1+
C Counter 1 2/2 2.4 0.8 0.9 0.1 3.3+ 2.2+ 2.1+ 0.1+
Timer para. Timer/counter 2 – – – – + + + +
Counter p. (addressed via parameter) – – – – + + + +
Status word for: AN BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – Yes – Yes Yes
Instruction affects: – – – – – Yes Yes Yes 1
In- Length
g Typical Execution Time in s
struc- Address Description i
in
Words Direct Addressing Indirect Addressing 1
tion Identifier
315 315
312*/ 314/ 312*/ 314/
315-2 318-2 315-2 318-2
313 314* 313 314*
316-2 316-2
O T OR timer 1 2/2 2.4 0.8 0.9 0.1 3.3+ 2.2+ 2.1+ 0.1+
C OR counter 13/2 1.7 0.6 0.6 0.1 3.0+ 1.9+ 1.8+ 0.1+
Timerpara. OR timer/counter 2 – – – – + + + +
Counter p. (addressed via parameter) – – – – + + + +
ON T OR NOT timer 14/2 3.0 1.0 1.1 0.1 3.7+ 2.4+ 2.3+ 0.1+
C OR NOT counter 15/2 2.4 0.8 0.9 0.1 3.3+ 2.2+ 2.1+ 0.1+
Timerpara. OR NOT timer/counter 2 – – – – + + + +
Counter p. (addressed via parameter) – – – – + + + +
X T EXCLUSIVE OR timer 2 2.4 0.8 0.9 0.1 3.3+ 2.2+ 2.1+ 0.1+
C EXCLUSIVE OR counter 2 1.7 0.6 0.6 0.1 3.0+ 1.9+ 1.8+ 0.1+
Timerpara. EXCLUSIVE OR timer/counter 2 – – – – + + + +
Counter p. (addressed via parameter) 2 – – – – + + + +
XN T EXCLUSIVE OR NOT timer 2 3.0 1.0 1.1 0.1 3.7+ 2.4+ 2.3+ 0.1+
C EXCLUSIVE OR NOT counter 2 2.4 1.0 0.9 0.1 3.3+ 1.2+ 2.1+ 0.1+
Timerpara. EXCLUSIVE OR NOT 2 – – – – + + + +
Counter p. timer/counter (addressed via – – – – + + + +
parameter)
Status word for: O, ON, X, XN BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – Yes Yes
Instruction affects: – – – – – 0 Yes Yes 1
Gating the contents of ACCU1 and/or ACCU1-L with a word or double word is either a constant in the instruction or in ACCU2.
double word according to the appropriate function. The word or The result is in ACCU1 and/or ACCU1-L.
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
AW AND ACCU2-L 1 1.7 0.5 0.6 0.1
AW k16 AND 16-bit constant 2 2.3 0.7 0.9 0.1
OW OR ACCU2-L 1 1.7 0.5 0.6 0.1
OW k16 OR 16-bit constant 2 2.3 0.7 0.9 0.1
XOW EXCLUSIVE OR ACCU2-L 1 1.7 0.5 0.6 0.1
XOW k16 EXCLUSIVE OR 16-bit 2 2.3 0.7 0.9 0.1
constant
AD AND ACCU2 1 3.4 1.9 2.0 0.1
AD k32 AND 32-bit constant 3 4.1 2.1 2.3 0.15
OD OR ACCU2 1 3.4 1.9 2.0 0.1
OD k32 OR 32-bit constant 3 4.1 2.1 2.3 0.15
XOD EXCLUSIVE OR ACCU2 1 3.4 1.9 2.0 0.1
XOD k32 EXCLUSIVE OR 32-bit 3 4.1 2.1 2.3 0.15
constant
Status word for: AW, OW, XOW, AD, BR CC 1 CC 0 OV OS OR STA RLO FC
OD, XOD
Instruction depends on: – – – – – – – – –
Instruction affects: – Yes 0 0 – – – – –
Examining the specified conditions for their signal status, and gat-
ing the result with the RLO according to the appropriate function.
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
A AND 1 1.5 0.5 0.6 0.1
==0 Result=0
(CC 1=0) and (CC 0=0)
>0 Result>0 1 2.3 0.7 0.9 0.1
(CC 1=1) and (CC 0=0)
<0 Result<0 1 2.3 0.7 0.9 0.1
(CC 1=0) and (CC 0=1)
<>0 Result0 1 1.5 0.5 0.6 0.1
((CC 1=0) and (CC 0=1) or
(CC 1=1) and (CC 0=0))
<=0 Result<=0 1 1.5 0.5 0.6 0.1
((CC 1=0) and (CC 0=1) or
(CC 1=0) and (CC 0=0))
>=0 Result>=0 1 1.5 0.5 0.6 0.1
((CC 1=1) and (CC 0=0) or
(CC 1=0) and (CC 0=0))
Status word for: A BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: Yes Yes Yes Yes Yes Yes – Yes Yes
Instruction affects: – – – – – Yes Yes Yes 1
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
A AND 1 1.5 0.5 0.6 0.1
UO unordered math instruction
(CC 1=1) and (CC 0=1)
OS AND OS=1 1 0.7 0.2 0.3 0.1
BR AND BR=1 1 0.7 0.2 0.3 0.1
OV AND OV=1 1 0.7 0.2 0.3 0.1
Status word for: A BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: Yes Yes Yes Yes Yes Yes – Yes Yes
Instruction affects: – – – – – Yes Yes Yes 1
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
AN ==0 AND NOT 1 1.5 0.5 0.6 0.1
Result=0
(CC 1=0) and (CC 0=0)
>0 Result>0 1 2.3 0.7 0.9 0.1
(CC 1=1) and (CC 0=0)
<0 Result<0 1 2.3 0.7 0.9 0.1
(CC 1=0) and (CC 0=1)
<>0 Result0 1 2.3 0.7 0.9 0.1
((CC 1=0) and (CC 0=1) or
(CC 1=1) and (CC 0=0))
<=0 Result<=0 1 0.7 0.2 0.3 0.1
((CC 1=0) and (CC 0=1) or
(CC 1=0) and (CC 0=0))
>=0 Result>=0 1 0.7 0.7 0.3 0.1
((CC 1=1) and (CC 0=0) or
(CC 1=0) and (CC 0=0))
UO unordered math instruction 1 2.3 0.7 0.9 0.1
(CC 1=1) and (CC 0=1)
OS OS=1 1 1.5 0.5 0.6 0.1
BR BR=1 1 1.5 0.5 0.6 0.1
OV OV=1 1 1.5 0.5 0.6 0.1
Status word for: AN BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: Yes Yes Yes Yes Yes Yes – Yes Yes
Instruction affects: – – – – – Yes Yes Yes 1
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
O ==0 OR 1 1.5 0.5 0.6 0.1
Result=0
(CC 1=0) and (CC 0=0)
>0 Result>0 1 2.3 0.7 0.9 0.1
(CC 1=1) and (CC 0=0)
<0 Result<0 1 2.3 0.7 0.9 0.1
(CC 1=0) and (CC 0=1)
<>0 Result0 1 1.5 0.5 0.6 0.1
((CC 1=0) and (CC 0=1) or
(CC 1=1) and (CC 0=0))
<=0 Result<=0 1 1.5 0.5 0.6 0.1
((CC 1=0) and (CC 0=1) or
(CC 1=0) and (CC 0=0))
>=0 Result>=0 1 1.5 0.5 0.6 0.1
((CC 1=1) and (CC 0=0) or
(CC 1=0) and (CC 0=0))
UO unordered math instruction 1 1.5 0.5 0.6 0.1
(CC 1=1) and (CC 0=1)
OS OS=1 1 0.7 0.2 0.3 0.1
BR BR=1 1 0.7 0.2 0.3 0.1
OV OV=1 1 0.7 0.2 0.3 0.1
Status word for: O BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: Yes Yes Yes Yes Yes – – Yes Yes
Instruction affects: – – – – – 0 Yes Yes 1
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
ON ==0 OR NOT 1 1.5 0.5 0.6 0.1
Result=0
(CC 1=0) and (CC 0=0)
>0 Result>0 1 2.3 0.7 0.9 0.1
(CC 1=1) and (CC 0=0)
<0 Result<0 1 2.3 0.7 0.9 0.1
(CC 1=0) and (CC 0=1)
<>0 Result0 1 2.3 0.7 0.9 0.1
((CC 1=0) and (CC 0=1) or
(CC 1=1) and (CC 0=0))
<=0 Result<=0 1 0.7 0.2 0.3 0.1
((CC 1=0) and (CC 0=1) or
(CC 1=0) and (CC 0=0))
>=0 Result>=0 1 0.7 0.7 0.3 0.1
((CC 1=1) and (CC 0=0) or
(CC 1=0) and (CC 0=0))
UO unordered math instruction 1 2.3 0.7 0.9 0.1
(CC 1=1) and (CC 0=1)
OS OS=1 1 1.5 0.5 0.6 0.1
BR BR=1 1 1.5 0.5 0.6 0.1
OV OV=1 1 1.5 0.5 0.6 0.1
Status word for: ON BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: Yes Yes Yes Yes Yes – – Yes Yes
Instruction affects: – – – – – 0 Yes Yes 1
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
X ==0 EXCLUSIVE OR 1 1.5 0.5 0.6 0.1
Result=0
(CC 1=0) and (CC 0=0)
>0 Result>0 1 2.3 0.7 0.9 0.1
(CC 1=1) and (CC 0=0)
<0 Result<0 1 2.3 0.7 0.9 0.1
(CC 1=0) and (CC 0=1)
<>0 Result0 1 1.5 0.5 0.6 0.1
((CC 1=0) and (CC 0=1) or
(CC 1=1) and (CC 0=0))
<=0 Result<=0 1 1.5 0.5 0.6 0.1
((CC 1=0) and (CC 0=1) or
(CC 1=0) and (CC 0=0))
>=0 Result>=0 1 1.5 0.5 0.6 0.1
((CC 1=1) and (CC 0=0) or
(CC 1=0) and (CC 0=0))
UO unordered math instruction 1 1.5 0.5 0.6 0.1
(CC 1=1) and (CC 0=1)
OS OS=1 1 0.7 0.2 0.3 0.1
BR BR=1 1 0.7 0.2 0.3 0.1
OV OV=1 1 0.7 0.2 0.3 0.1
Status word for: X BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: Yes Yes Yes Yes Yes – – Yes Yes
Instruction affects: – – – – – 0 Yes Yes 1
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
XN ==0 EXCLUSIVE OR NOT 1 1.5 0.5 0.6 0.1
Result=0
(CC 1=0) and (CC 0=0)
>0 Result>0 1 2.3 0.7 0.9 0.1
(CC 1=1) and (CC 0=0)
<0 Result<0 1 2.3 0.7 0.9 0.1
(CC 1=0) and (CC 0=1)
<>0 Result0 1 2.3 0.7 0.9 0.1
((CC 1=0) and (CC 0=1) or
(CC 1=1) and (CC 0=0))
<=0 Result<=0 1 0.7 0.2 0.3 0.1
((CC 1=0) and (CC 0=1) or
(CC 1=0) and (CC 0=0))
>=0 Result>=0 1 0.7 0.7 0.3 0.1
((CC 1=1) and (CC 0=0) or
(CC 1=0) and (CC 0=0))
UO unordered math instruction 1 2.3 0.7 0.9 0.1
(CC 1=1) and (CC 0=1)
OS OS=1 1 1.5 0.5 0.6 0.1
BR BR=1 1 1.5 0.5 0.6 0.1
OV OV=1 1 1.5 0.5 0.6 0.1
Status word for: XN BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: Yes Yes Yes Yes Yes – – Yes Yes
Instruction affects: – – – – – 0 Yes Yes 1
Edge-Triggered Instructions
In
In- Length Typical Execution Time in s
struc- Address Description in
Words Direct Addressing Indirect Addressing 1
tion Identifier
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316-2 316-2
FP I/Q a.b Detecting the positive edge in 2 2.0 0.7 0.8 0.2 3.6+ 2.7+ 2.4+ 0.2+
M a.b the RLO. The bit addressed in 2 3.5 1.4 1.5 0.2 3.9+ 2.9+ 2.7+ 0.2+
L a.b
ab the instruction is the auxiliary 2 38
3.8 15
1.5 16
1.6 02
0.2 4 1+
4.1+ 2 9+
2.9+ 2 7+
2.7+ 0 2+
0.2+
DBX a.b edge bit memory. 2 6.7 2.0 4.0 0.2 5.7+ 3.7+ 3.6+ 0.2+
DIX a.b 2 6.7 2.0 4.0 0.2 5.7+ 3.7+ 3.6+ 0.2+
c[AR1,m] 2 – – – – + + + +
c[AR2,m] 2 – – – – + + + +
[AR1,m] 2 – – – – + + + +
[AR2,m] 2 – – – – + + + +
Parameter 2 – – – – + + + +
Status word for: FP BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – Yes –
Instruction affects: – – – – – 0 Yes Yes 1
In-
In Length Typical Execution Time in s
struc- Address Description in
Words Direct Addressing Indirect Addressing 1
tion Identifier
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316-2 316-2
FN I/Q a.b Detecting the negtive edge in 2 2.6 0.9 1.0 0.2 3.8+ 2.9+ 2.6+ 0.2+
M a.b the RLO. The bit addressed in 2 3.8 1.6 1.6 0.2 4.1+ 3.1+ 2.8+ 0.2+
L a.b the intruction is the auxiliary 2 4.2 1.7 1.7 0.2 4.3+ 3.1+ 2.8+ 0.2+
DBX a.b edge bit memory. 2 6.8 2.2 4.1 0.2 5.8+ 4.0+ 3.7+ 0.2+
DIX a.b 2 6.8 2.2 4.1 0.2 5.8+ 4.0+ 3.7+ 0.2+
c[AR1,m] 2 – – – – + + + +
c[AR2,m] 2 – – – – + + + +
[AR1,m] 2 – – – – + + + +
[AR2,m] 2 – – – – + + + +
Parameter 2 – – – – + + + +
Status word for: FN BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – Yes –
Instruction affects: – – – – – 0 Yes Yes 1
Assigning the value “1” or “0” or the RLO o the addressed instruc-
tion. The instructions can be dependent on the MCR.
In
In- Length
g Typical Execution Time in s
struc- Address Description i
in
Words Direct Addressing Indirect Addressing 1
tion Identifier
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316-2 316-2
S I/Q a.b Set input/output to “1” 1 2/2 0.7 0.3 0.3 0.2 3.3+ 2.2+ 2.2+ 0.2+
(MCR-dependent) 1.4 1.4 0.5 0.2 4.4+ 3.4+ 2.9+ 0.2+
M a.b Set bit memory to “1” 12/2 1.9 0.8 0.8 0.2 3.7+ 2.4+ 2.5+ 0.2+
(MCR-dependent) 3.9 3.0 2.3 0.2 4.4+ 3.6+ 3.0+ 0.2+
L a.b Set local data bit to “1” 2 3.0 1.2 1.3 0.2 3.8+ 2.4+ 2.5+ 0.2+
(MCR-dependent) 4.9 3.1 2.9 0.2 3.9+ 3.6+ 2.5+ 0.2+
DBX a.b Set data bit to “1” 2 6.2 3.3 3.7 0.2 5.5+ 3.3+ 3.5+ 0.2+
(MCR-dependent) 7.3 4.5 4.3 0.2 6.6+ 4.4+ 4.1+ 0.2+
DIX a.b Set instance data bit to “1” 2 6.2 3.3 3.7 0.2 5.5+ 3.3+ 3.5+ 0.2+
(MCR-dependent) 7.3 4.5 4.3 0.2 6.6+ 4.4+ 4.1+ 0.2+
c[AR1,m] Register–ind., area–internal 2 – – – – + + + +
c[AR2,m] (AR1) 2 – – – – + + + +
[AR1,m] Register–ind., area–internal 2 – – – – + + + +
[AR2,m] (AR2) 2 – – – – + + + +
Parameter Area-crossing via (AR1) 2 – – – – + + + +
Area-crossing via (AR2)
Via parameter
Status word for: S BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – Yes –
Instruction affects: – – – – – 0 Yes – 0
In-
In Length
g Typical Execution Time in s
struc- Address Description i
in
Word Direct Addressing Indirect Addressing 1
tion Identifier
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316-2 316-2
R I/Q a.b Reset input/output to “0” 1 2/2 1.0 0.4 0.4 0.2 3.5+ 2.4+ 2.3+ 0.2+
(MCR-dependent) 1.4 1.4 0.5 0.2 4.6+ 3.5+ 3.0+ 0.2+
M a.b Set bit memory to “0” 1 2/2 2.2 0.9 0.9 0.2 3.8+ 2.5+ 2.6+ 0.2+
(MCR-dependent) 4.1 3.1 2.4 0.2 4.6+ 3.7+ 3.2+ 0.2+
L a.b Set local data bit to“ 0” 2 3.0 1.2 1.3 0.2 4.0+ 2.5+ 2.6+ 0.2+
(MCR-dependent) 5.1 3.2 3.0 0.2 4.1+ 3.7+ 2.7+ 0.2+
DBX a.b Set data bit to “0” 2 6.4 3.5 3.8 0.2 5.7+ 3.4+ 3.6+ 0.2+
(MCR-dependent) 7.3 4.6 4.3 0.2 6.7+ 4.5+ 4.3+ 0.2+
DIX a.b Set instance data bit to “0” 2 6.4 3.5 3.8 0.2 5.7+ 3.4+ 3.6+ 0.2+
(MCR-dependent) 7.3 4.6 4.3 0.2 6.7+ 4.5+ 4.3+ 0.2+
c[AR1,m] Register–ind., area–internal 2 – – – – + + + +
c[AR2,m] (AR1) 2 – – – – + + + +
[AR1,m] Register–ind., area–internal 2 – – – – + + + +
[AR2,m] (AR2) 2 – – – – + + + +
Parameter Area-crossing via (AR1) 2 – – – – + + + +
Area-crossing via (AR2)
Via parameter
Status word for: R BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – Yes –
Instruction affects: – – – – – 0 Yes – 0
In-
In Length
g Typical Execution Time in s
struc- Address Description i
in
Words Direct Addressing Indirect Addressing 1
tion Identifier
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316-2 316-2
= I/Q a.b Assign RLO to input/output 1 2/2 0.7 0.2 0.3 0.2 3.3+ 2.2+ 2.2+ 0.2+
(MCR-dependent) 1.4 1.4 0.5 0.2 4.4+ 3.4+ 2.9+ 0.2+
M a.b Assign RLO to bit memory 1 2/2 2.2 0.9 0.9 0.2 3.7+ 2.4+ 2.5+ 0.2+
(MCR-dependent) 3.9 3.0 2.3 0.2 4.4+ 3.6+ 3.0+ 0.2+
L a.b Assign RLO to local data bit 2 2.7 1.0 1.1 0.2 3.8+ 2.4+ 2.5+ 0.2+
(MCR-dependent) 4.6 3.1 2.6 0.2 3.6+ 3.6+ 2.3+ 0.2+
DBX a.b Assign RLO to data bit 2 6.4 3.3 3.8 0.2 5.7+ 3.3+ 3.6+ 0.2+
(MCR-dependent) 7.5 5.3 4.4 0.2 6.7+ 5.3+ 4.3+ 0.2+
DIX a.b Assign RLO to instance data bit 2 6.4 3.3 3.8 0.2 5.7+ 3.3+ 3.6+ 0.2+
(MCR-dependent) 7.5 5.3 4.4 0.2 6.7+ 5.3+ 4.3+ 0.2+
c[AR1,m] Register–ind., area–inter- 2 – – – – + + + +
c[AR2,m] nal(AR1) 2 – – – – + + + +
[AR1,m] Register–ind., area–inter- 2 – – – – + + + +
[AR2,m] nal(AR2) 2 – – – – + + + +
Parameter Area-crossing via (AR1) 2 – – – – + + + +
Area-crossing via (AR2)
Via parameter
Status word for: = BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – Yes –
Instruction affects: – – – – – 0 Yes – 0
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier Words
tion
312*/313 314/314* 315/315/316 318-2
CLR Set RLO to ”0” 1 0.7 0.2 0.3 0.1
Status word for: CLR BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – – –
Instruction affects: – – – – – 0 0 0 0
SET Set RLO to ”1” 1 0.7 0.2 0.3 0.1
Status word for: SET BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – – –
Instruction affects: – – – – – 0 1 1 0
NOT Negate RLO 1 0.7 0.2 0.3 0.1
Status word for: NOT BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – Yes – Yes –
Instruction affects: – – – – – – 1 Yes –
SAVE Save RLO to the BR bit 1 0.7 0.2 0.3 0.1
Status word for: SAVE BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – Yes –
Instruction affects: Yes – – – – – – – –
Timer Instructions
In-
In Length
g Typical Execution Time in s
struc- Address Description i
in
Words Direct Addressing Indirect Addressing 1
tion Identifier
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316-2 316-2
SP Tf Start timer as pulse
p on edge
g 1 2/2 14.0 8.4 9.2 0.2 14.3+ 8.8+ 9.7+ 0.2+
change from “0” to “1”
Timer para. 2 – – – – + + + +
SE Tf Start timer as exded ppulse on 1 2/2 14.0 8.4 9.2 0.2 14.3+ 8.8+ 9.7+ 0.2+
edge change from “0” to “1”
Timer para. 2 – – – – + + + +
SD Tf Start timer as ON delayy on edge
g 1 2/2 14.7 9.0 9.7 0.2 15.0+ 9.4+ 10.2+ 0.2+
change from “0” to “1”
Timer para 2 – – – – + + + +
SS Tf Start timer as retive ON delay
y 1 2/2 14.7 9.0 9.7 0.2 15.0+ 9.4+ 10.2+ 0.2+
on edge change from “0” to “1”
Timer para. 2 – – – – + + + +
SF Tf Start timer as OFF delayy on 1 2/2 15.0 9.2 10.0 0.2 15.4+ 9.6+ 10.5+ 0.2+
edge change from “1” to “0”
Timer para. 2 – – – – + + + +
Status word for: SP, SE, SD, SS, SF BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – Yes –
Instruction affects: – – – – – 0 – – 0
In-
In Length
g Typical Execution Time in s
struc- Address Description i
in
Words Direct Addressing Indirect Addressing 1
tion Identifier
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316-2 316-2
FR Tf Enable timer for restarting on 1 2/2 3.9 2.0 2.1 0.2 4.3+ 2.5+ 2.7+ 0.2+
edge change from “0”
0 to “1”1
Timer para. (
(reset edge bit memory for 2 – – – – + + + +
starting timer)
R Tf Reset timer 1 2/2 3.5 1.8 1.8 0.2 3.8+ 2.2+ 2.4+ 0.2+
Timer para. 2 – – – – + + + +
Status word for: FR, R BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – Yes –
Instruction affects: – – – – – 0 – – 0
Counter Instructions
In
In- Length
g Typical Execution Time in s
struc- Address Description i
in
Words Direct Addressing Indirect Addressing 1
tion Identifier
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316-2 316-2
S Cf Presetting
g of counter on edge
g 1 2/2 9.8 6.0 6.6 0.2 10.2+ 6.4+ 7.1+ 0.2+
change from “0” to “1”
Counter p. 2 – – – – + + + +
R Cf Reset counter to “0” 1 2/2 3.4 1.7 1.8 0.2 3.8+ 2.2+ 2.3+ 0.2+
Counter p. 2 – – – – + + + +
CU Cf Increment counter byy 1 on edge
g 1 2/2 4.8 2.6 2.8 0.2 5.2+ 3.1+ 3.4+ 0.2+
change from “0” to “1”
Counter p. 2 – – – – + + + +
CD Cf Decrement counter byy 1 on 1 2/2 5.1 2.8 3.0 0.2 5.3+ 3.2+ 3.5+ 0.2+
edge change from “0” to “1”
Counter p. 2 – – – – + + + +
FR Cf Enable counter on edge change 1 2/2 4.0 2.1 2.2 0.2 4.3+ 2.5+ 2.7 0.2+
from “0” 1 (reset edge bit
0 to “1”
Counter p. memory for up and down 2 – – – – + + + +
counting)
Status word for: S, R, CU, CD, FR BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – Yes –
Instruction affects: – – – – – 0 – – 0
Load Instructions
In-
In Length
g Typical Execution Time in s
struc- Address Description i
in
Words Direct Addressing Indirect Addressing 1
tion Identifier
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316-2 316-2
L Load ...
IB a Input byte 1 2/2 1.7 0.6 0.6 0.1 2.7+ 2.2+ 1.7+ 0.1+
QB a Output byte 1 2/2 1.7 0.6 0.6 0.1 2.7+ 2.2+ 1.7+ 0.1+
PIB a Peripheral input byte 2 < 30/ < 24/ <24 0.1 < 40/ 26+/ < 27 0.1+
< 21 3 < 533 < 30 3 <58 3/
/< 88 <92 4
4
MB a Bit memory byte 1 2/2 1.9 0.7 0.8 0.1 2.8+ 2.2+ 1.8+ 0.1+
LB a Local data byte 2 2.9 1.0 1.1 0.1 3.2+ 2.2+ 2.0+ 0.1+
DBB a Data byte 2 50
5.0 28
2.8 28
2.8 01
0.1 4 3+
4.3+ 2 8+
2.8+ 2 6+
2.6+ 0 1+
0.1+
DIB a Instance data byte 2 6.8 2.8 2.8 0.1 4.3+ 2.8+ 2.6+ 0.1+
... into ACCU1 2
g[AR1,m] Register–ind., area–internal (AR1) 2 – – – – + + + +
g[AR2,m] Register–ind., area–internal (AR2) 2 – – – – + + + +
B[AR1,m] Area-crossing (AR1) 2 – – – – + + + +
B[AR2,m] Area-crossing (AR2) 2 – – – – + + + +
Parameter Via parameter 2 – – – – + + + +
In-
In Length
g Typical Execution Time in s
struc- Address Description i
in
Words Direct Addressing Indirect Addressing 1
tion Identifier
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316-2 316-2
L Load ...
IW a Input word 1 2/2 2.4 0.8 0.9 0.1 2.9+ 2.1+ 1.9+ 0.1+
QW a Output word 1 2/2 2.4 0.8 0.9 0.1 2.9+ 2.1+ 1.9+ 0.1+
PIW a Peripheral input word < 40 < 29/ < 30 0.1 < 46/ 30+/ < 32 0.1+
<533/ < 30 3 <583/
<884 <92 4
MW a Bit memory word 2 2.7 1.0 1.1 0.1 3.2+ 2.4+ 2.1+ 0.1+
LW a Local data word 2 3.0 1.1 1.3 0.1 3.7+ 2.8+ 2.3+ 0.1+
DBW a Data word 1 2/2 57
5.7 33
3.3 33
3.3 01
0.1 5 2+
5.2+ 3 7+
3.7+ 3 2+
3.2+ 0 1+
0.1+
DIW a Instance data word 1 2/2 5.7 3.3 3.3 0.1 5.2+ 3.7+ 3.2+ 0.1+
... into ACCU1
h[AR1,m] Register–ind., area–internal (AR1) 2 – – – – + + + +
h[AR2,m] Register–ind., area–internal (AR2) 2 – – – – + + + +
W[AR1,m] Area-crossing via (AR1) 2 – – – – + + + +
W[AR2,m] Area-crossing via (AR2) 2 – – – – + + + +
Parameter Via parameter 2 – – – – + + + +
In-
In Length
g Typical Execution Time in s
struc- Address Description i
in
Words Direct Addressing Indirect Addressing 1
tion Identifier
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316-2 316-2
L Load ...
ID a Input double word 1 2/2 2.9 0.9 1.1 0.2 3.2+ 2.4+ 2.1+ 0.2+
QD a Output double word 1 2/2 2.9 0.9 1.1 0.2 3.2+ 2.4+ 2.1+ 0.2+
PID a Peripheral input double word 2 < 45 37/ < 40 0.2 < 65 39+/ < 42 0.2+
<1903 <2003
MD a Bit memory double word 1 2/2 3.4 1.4 1.5 0.2 3.7+ 2.7+ 2.5+ 0.2+
LD a Local data double word 2 3.7 1.5 1.6 0.2 4.2+ 3.1+ 2.7+ 0.2+
DBD a Data double word 2 70
7.0 44
4.4 43
4.3 02
0.2 6 5+
6.5+ 4 7+
4.7+ 4 2+
4.2+ 0 2+
0.2+
DID a Instance data double word 2 7.0 4.4 4.3 0.2 6.5+ 4.7+ 4.2+ 0.2+
... into ACCU1
i[AR1.m] Register–ind., area–internal (AR1) 2 – – – – + + + +
i[AR2,m] Register–ind., area–internal (AR2) 2 – – – – + + + +
D[AR1.m] Area-crossing via (AR1) 2 – – – – + + + +
D[AR2,m] Area-crossing via (AR2) 2 – – – – + + + +
Parameter Via parameter 2 – – – – + + + +
In-
In Length
g Typical Execution Time in s
struc- Address Description i
in
Words Direct Addressing Indirect Addressing 1
tion Identifier
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316-2 316-2
L Load ...
k8 8-bit constant into ACCU1-LL 1 1.7 0.6 0.6 0.1 – – – –
k16 16-bit constant into ACCU1-L 2 1.7 0.6 0.6 0.1 – – – –
k32 32-bit constant into ACCU1 3 2.0 0.7 0.8 0.15 – – – –
Parameter Load constant into ACCU1 2 – – – – + + + +
(addressed via parameter)
L 2#n Load 16-bit binary constant into 2 1.7 0.6 0.6 0.1 – – – –
ACCU1-L
Load 32-bit binary constant into 3 2.0 0.7 0.7 0.15 – – – –
ACCU1
L B#8#p Load 8-bit hexadecimal constant into 1 1.7 0.6 0.6 0.1 – – – –
ACCU1-L
W#16#p Load 16-bit hexadecimal constant 2 1.7 0.6 0.6 0.1 – – – –
into ACCU1-L
DW#16#p Load 32-bit hexadecimal constant 3 2.0 0.7 0.7 0.15 – – – –
into ACCU1-L
In-
In Length
g
struc- Address Description i
in Typical Execution Time in s
tion Words
Identifier
315/315-2/
312*/313 314/314* 318-2
316-2
L ’x’ Load 1 characters 1.2 0.6 0.7 0.1
L ’xx’ Load 2 characters 2 1.2 0.6 0.7 0.1
L ’xxx’ Load 3 characters 1.4 0.7 0.88 0.15
L ’xxxx’ Load 4 characters 3 1.4 0.7 0.88 0.15
L D# date Load IEC date (BCD) 3 1.2 0.6 0.8 0.15
L S5T# time Load S5 time constant (16 bits) 2 1.2 0.6 0.8 0.1
value
L TOD# time Load 32-bit time constant 3 1.4 0.93 0.88 0.15
value IEC time of day
L T# time Load 16-bit timer constant 2 1.2 0.7 0.88 0.1
value
al e
Load 32-bit timer constant 3 1.4 0.6 0.88 0.15
L C# count Load 16-bit counter constant 2 1.2 0.6 0.88 0.1
value
L P# bit Load bit pointer 3 1.4 0.7 0.88 0.15
pointer
L L# integer Load 32 bit integer constant 3 1.4 0.7 0.88 0.15
L Real num- Load real number 3 1.4 0.93 0.88 0.15
ber
In-
In Length
g Typical Execution Time in s
struc- Address Description i
in
Words Direct Addressing Indirect Addressing 1
tion Identifier
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316-2 316-2
L Tf Load time value 1 2/2 3.1 1.6 1.7 0.1 5.2+ 0.8+ 2.1+ 0.1+
Timer para. Load time value (addressed via 2 – – – – + + + +
parameter)
L Cf Load count value 1 2/2 2.9 1.6 1.5 0.1 5.2+ 0.8+ 2.1+ 0.1+
Counter Load count value (addressed via 2 – – – – + + + +
para. parameter)
LD Tf Load time value in BCD 1 2/2 8.1 5.4 5.4 0.3 15.6+ 4.6+ 5.9+ 0.3+
Timer para. Load time value in BCD 2 – – – – + + + +
(addressed via parameter)
LD Cf Load count value in BCD 1 2/2 7.4 5.0 4.9 0.3 14.2+ 4.2+ 5.4+ 0.3+
Counter Load count value (addressed via 2 – – – – + + + +
para. parameter)
Transfer Instructions
In
In- Length
g Typical Execution Time in s
struc- Address Description i
in
Words Direct Addressing Indirect Addressing 1
tion Identifier
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316 316
T Transfer contents of
ACCU1-LL to ...
IB a input byte 1 2/2 0.7 0.2 0.3 0.1 2.0+ 1.6+ 1.2+ 0.1+
(MCR-dependent) 2.6 1.3 1.4 0.1 2.5+ 2.0+ 1.6+ 0.1+
QB a output byte 1 2/2 0.7 0.2 0.3 0.1 2.0+ 1.6+ 1.2+ 0.1+
(MCR-dependent) 2.6 1.3 1.4 0.1 2.5+ 2.0+ 1.6+ 0.1+
PQB a peripheral output byte 1 3/2 < 30 24/ < 24 0.1 <35.5/ 25+/ < 27 0.1+
<404/ < 19 4 <45 4/
<475 < 50 5
(MCR-dependent) < 32 25/ < 25 0.1 <36.5/ 26+/ < 28 0.1+
<414/ < 20 4 < 46 4
<485 < 51 5
In-
In Length
g Typical Execution Time in s
struc- Address Description i
in
Words Direct Addressing Indirect Addressing 1
tion Identifier
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316 316
T MB a bit memory byte 1 2/2 0.9 0.4 0.4 0.1 2.2+ 1.7+ 1.3+ 0.1+
(MCR-dependent) 2.7 1.8 1.5 0.1 2.7+ 2.2+ 1.7+ 0.1+
LB a local data byte 2 1.5 0.6 0.6 0.1 2.5+ 1.8+ 1.5+ 0.1+
(MCR-dependent) 3.1 2.2 1.8 0.1 3.3+ 2.4+ 2.0 0.1+
DBB a data byte 2 4.6 2.9 2.5 0.1 3.9+ 2.7+ 2.3+ 0.1+
(MCR-dependent) 5.4 3.5 3.0 0.1 4.7+ 3.3+ 2.8+ 0.1+
DIB a instance data byte 2 4.6 2.9 2.5 0.1 3.9+ 2.7+ 2.3+ 0.1+
(MCR-dependent) 5.4 3.5 3.0 0.1 4.7+ 3.3+ 2.8+ 0.1+
T g[AR1.m] Register–ind., area–internal 2 – – – – + + + +
(AR1)
g[AR2,m] Register–ind., area–internal 2 – – – – + + + +
(AR2)
B[AR1.m] Area–crossing (AR1) 2 – – – – + + + +
B[AR2,m] Area–crossing (AR2) 2 – – – – + + + +
Parameter Via parameter 2 – – – – + + + +
In-
In Length
g Typical Execution Time in s
struc- Address Description i
in
Words Direct Addressing Indirect Addressing 1
tion Identifier
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316 316
T Transfer contents of
ACCU1-L to ...
IW input word 1 2/2 1.4 0.5 0.5 0.1 2.3+ 1.8+ 1.5+ 0.1+
(MCR-dependent) 2.7 1.4 1.5 0.1 2.8+ 2.2+ 1.8+ 0.1+
QW output word 1 2/2 1.4 0.5 0.5 0.1 2.3+ 1.8+ 1.5+ 0.1+
(MCR-dependent) 2.7 1.4 1.5 0.1 2.8+ 2.2+ 1.8+ 0.1+
PQW peripheral output word 1 3/2 < 34 <27/ < 27 0.1 <40 29+/ < 31 0.1+
<42 4/ <46 4/
< 50 5 <53 5
(MCR-dependent) < 36 <28/ < 28 0.1 < 42 <30+/ < 32 0.1+
<44 4/ <48 4/
< 52 5 <55 5
MW bit memory word 1 2/2 1.7 0.7 0.8 0.1 2.7+ 2.1+ 1.7+ 0.1+
(MCR-dependent) 3.0 2.0 1.8 0.1 3.2+ 2.6+ 2.1+ 0.1+
LW local data word 2 2.0 0.8 0.9 0.1 3.0+ 2.2+ 1.8+ 0.1+
(MCR-dependent) 3.4 2.4 2.0 0.1 3.8+ 2.8+ 2.3+ 0.1+
DBW data word 2 5.2 3.6 3.0 0.1 4.7+ 3.5+ 2.9+ 0.1+
(MCR-dependent) 6.1 4.2 3.5 0.1 5.6+ 4.1+ 3.4+ 0.1+
DIW instance data word 2 5.2 3.6 3.0 0.1 4.7+ 3.5+ 2.9+ 0.1+
(MCR-dependent) 6.1 4.2 3.5 0.1 5.6+ 4.1+ 3.4+ 0.1+
T h[AR1.m] Register–ind., area–internal(AR1) 2 – – – – + + + +
h[AR2,m] Register–ind., area–internal(AR2) 2 – – – – + + + +
W[AR1.m] Area–crossing (AR1) 2 – – – – + + + +
W[AR2,m] Area–crossing (AR2) 2 – – – – + + + +
Parameter Via parameter 2 – – – – + + + +
1 Plus time required for loading the address of the instruction
(see page 21)
2 With direct instruction addressing
3 Direct addressing with PQW 0 to 254
4 Integrated digital I/O for CPU 314*
5 Integrated analog I/O for CPU 314*
In-
In Length
g Typical Execution Time in s
struc- Address Description i
in
Words Direct Addressing Indirect Addressing 1
tion Identifier
315 315
312* 314 312* 314
315-2 318-2 315-2 318-2
313 314* 313 314*
316 316
T Transfer contents of
ACCU1 to ...
ID input double word 1 2/2 2.0 0.7 0.8 0.2 2.7+ 2.0+ 1.7+ 0.2+
(MCR-dependent) 3.0 1.7 1.8 0.2 3.2+ 2.4+ 2.1+ 0.2+
QD output double word 1 2/2 2.0 0.7 0.8 0.2 2.7+ 2.0+ 1.7+ 0.2+
(MCR-dependent) 3.0 1.7 1.8 0.2 3.2+ 2.4+ 2.1+ 0.2+
PQD peripheral output double word 1 2/2 < 38 < 31 < 31 0.2 < 42 < 32+ < 34 0.2+
(MCR-dependent) < 39 < 32 < 32 0.2 < 43 < 35+ < 35 0.2+
MD bit memory double word 1 2/2 2.7 1.2 1.3 0.2 3.3+ 2.7+ 2.2+ 0.2+
(MCR-dependent) 3.7 2.0 2.3 0.2 3.8+ 3.2+ 2.6+ 0.2+
LD local data double word 2 3.0 1.2 1.4 0.2 5.3+ 3.3+ 3.0+ 0.2+
(MCR-dependent) 4.1 2.2 2.6 0.2 6.2+ 3.9+ 3.5+ 0.2+
DBD data double word 2 6.7 4.9 4.1 0.2 6.2+ 4.9+ 4.0+ 0.2+
(MCR-dependent) 7.6 5.5 4.6 0.2 7.1+ 5.5+ 4.5+ 0.2+
DID instance data double word 2 6.7 4.9 4.1 0.2 6.2+ 4.9+ 4.0+ 0.2+
(MCR-dependent) 7.6 5.5 4.6 0.2 7.2+ 5.5+ 4.5+ 0.2+
T i[AR1.m] Register–ind., area–internal 2 – – – – + + + +
(AR1)
i[AR2,m] Register–ind., area–internal 2 – – – – + + + +
(AR2)
D[AR1.m] Area–crossing (AR1) 2 – – – – + + + +
D[AR2,m] Area–crossing (AR2) 2 – – – – + + + +
Parameter Via parameter 2 – – – – + + + +
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
LAR1 Load contents from ...
– ACCU1 1 0.7 0.2 0.3 0.2
AR2 Address register 2 1 0.7 0.2 0.3 0.2
DBD a Data double word 2 6.3 4.0 3.8 0.3
DID a Instance data double word 2 6.3 4.0 3.8 0.3
m 32-bit constant as pointer 3 1.4 0.4 0.5 0.2
LD a Local data double word 2 3.4 1.4 1.5 0.3
MD a Bit memory double word 2 3.0 1.2 1.4 0.3
... into AR1
LAR2 Load contents from ...
– ACCU1 1 0.7 0.2 0.3 0.2
DBD a Data double word 2 6.3 4.0 3.8 0.3
DID a Instance data double word 2 6.3 4.0 3.8 0.3
m 32-bit constant as pointer 3 1.4 0.4 0.5 0.2
LD a Local data double word 2 3.4 1.4 1.5 0.3
MD a Bit memory double word 2 3.0 1.2 1.4 0.3
... into AR2
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
CAR1 Transfer contents of AR1 to ...
– ACCU1 1 1.7 0.4 0.7 0.1
AR2 Address register 2 1 0.7 0.2 0.3 0.2
DBD a Data double word 2 6.9 3.9 4.3 0.2
DID a Instance data double word 2 6.9 3.9 4.3 0.2
m 32-bit constant as pointer 3 3.7 1.4 1.6 0.2
LD a Local data double word 2 3.4 1.2 1.5 0.2
MD a Bit memory double word 2
CAR2 Transfer contents of AR2 to ...
– ACCU1 1 1.7 0.4 0.7 0.1
DBD a Data double word 2 6.9 3.9 4.3 0.2
DID a Instance data double word 2 6.9 3.9 4.3 0.2
m 32-bit constant as pointer 3 3.7 1.4 1.6 0.2
LD a Local data double word 2 3.4 1.2 1.5 0.2
MD a Bit memory double word 2
CAR – Exchange the contents of AR1 1 1.4 0.7 0.5 0.4
and AR2
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
L STW Load status word 1 into ACCU1 2.4 1.4 1.5 0.1
Status word for: L STW BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: Yes Yes Yes Yes Yes 0 0 Yes 0
Instruction affects: – – – – – – – – –
T STW Transfer ACCU1 (bits 0 to 8) to 2.2 1.5 1.4 0.1
the status word1
Status word for: T STW BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – – –
Instruction affects: Yes Yes Yes Yes Yes – – Yes –
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
L DBNO Load number of data block 1 5.1 3.1 3.3 0.1
L DINO Load number of instance data 1 5.1 3.1 3.3 0.1
block
L DBLG Load length of data block into 1 1.7 0.6 0.6 0.1
byte
L DILG Load length of instance data 1 1.7 0.6 0.6 0.1
block into byte
Integer Math (16 Bits) CPU 318–2: ACCU3 and ACCU4 are then transferred to ACCU2
and ACCU3.
Math instructions on two 16-bit words. The result is in ACCU1 and
ACCU1-L, resp.
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
+I – Add 2 integers (16 bits) 1 2.4 1.5 1.5 0.1
(ACCU1-L)=(ACCU1-L)+
(ACCU2-L)
–I – Subtract 1 integer from another 1 2.6 1.8 1.6 0.1
(16 bits)
(ACCU1-L)=(ACCU2-L)–
(ACCU1-L)
Integer Math (32 Bits) CPU 318–2: ACCU3 and ACCU4 are then transferred to ACCU2
and ACCU3.
Math instructions on two 32-bit words. The result is in ACCU1.
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
+D – Add 2 integers (32 bits) 1 3.1 1.8 2.0 0.1
(ACCU1)=(ACCU2)+
(ACCU1)
–D – Subtract 1 integer from another 1 4.0 2.3 2.7 0.1
(32 bits)
(ACCU1)=(ACCU2)–
(ACCU1)
Floating-Point Math (32 Bits) CPU 318–2: ACCU3 and ACCU4 are then transferred to ACCU2
and ACCU3.
The result of the math instruction is in ACCU1. The execution time
of the instruction depends on the value to be calculated.
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
+R – Add 2 real numbers (32 bits) 1 < 60 < 50 < 35 0.6
(ACCU1)= (ACCU2)+(ACCU1)
–R – Subtract 1 real number from 1 < 60 < 50 < 35 0.6
another (32 bits)
(ACCU1)= (ACCU2)–(ACCU1)
*R – Multiply 1 real number by another 1 < 60 < 50 < 35 1.4
(32 bits)
(ACCU1)=(ACCU2)*(ACCU1)
/R – Divide 1 real number by another 1 < 60 < 50 < 40 2.1
(32 bits)
(ACCU1)=(ACCU2):(ACCU1)
Status word for: +R, –R, *R, /R BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – – –
Instruction affects: – Yes Yes Yes Yes – – – –
NEGR – Negate the real number in ACCU1 1 0.7 1.0 0.3 0.1
ABS – Form the absolute value of the real 1 0.7 0.4 0.3 0.1
number in ACCU1
Status word for: NEGR, ABS BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – – –
Instruction affects: – – – – – – – – –
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312* 313/314/314* 318-2
316-2
SQRT – Calculate the square root of a real 1 – < 1000 < 1000 40
number in ACCCU1
SQR – Form the square of a real number 1 – < 300 < 300 1,4
in ACCU1
Status word for: SQRT, SQR BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – – –
Instruction affects: – Yes Yes Yes Yes – – – –
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312* 313/314/314* 318-2
316-2
LN – Form the natural logarithm of a 1 – < 650 < 650 < 35
real number in ACCU1
EXP – Calculate the exponential value 1 – < 1500 < 1500 < 35
of a real number in ACCU1 to
the base e (= 2.71828)
Status word for: LN, EXP BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – – –
Instruction affects: – Yes Yes Yes Yes – – – –
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312* 313/314/314* 318-2
316-2
SIN – Calculate the sine of a real number 1 – < 900 < 900 31
ASIN – Calculate the arcsine of a real 1 – < 2500 < 2500 74
number
COS – Calculate the cosine of a real num- 1 – < 900 < 900 32
ber
ACOS – Calculate the arccosine of a real 1 – < 2500 < 2500 77
number
TAN – Calculate the tangent of a real 1 – < 900 < 900 35
number
ATAN – Calculate the arctangent of a real 1 – < 900 < 900 32
number
Status word for: SIN, ASIN, COS, BR CC 1 CC 0 OV OS OR STA RLO FC
ACOS, TAN, ATAN
Instruction depends on: – – – – – – – – –
Instruction affects: – Yes Yes Yes Yes – – – –
Adding Constants
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
+ i8 Add an 8-bit integer constant 1 0.7 0.2 0.3 0.1
+ i16 Add a 16-bit integer constant 2 0.7 0.2 0.3 0.1
+ i32 Add a 32-bit integer constant 3 1.5 0.4 0.6 0.15
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
+AR1 – Add the contents of ACCU1-L 1 0.7 0.3 0.3 0.2
to those of AR1
+AR1 m Add a pointer constant to the 2 0.7 0.6 0.3 0.2
contents of AR1
+AR2 – Add the contents of ACCU1-L 1 0.7 0.3 0.3 0.2
to those of AR2
+AR2 m Add pointer constant to the con- 2 0.7 0.6 0.3 0.2
tents of AR2
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
==I – ACCU2-L=ACCU1-L 1 2.3 1.4 1.4 0.1
<>I – ACCU2-LACCU1-L 1 2.4 1.6 1.5 0.1
<I – ACCU2-L<ACCU1-L 1 2.4 1.6 1.5 0.1
<=I – ACCU2-L<=ACCU1-L 1 2.3 1.4 1.4 0.1
>I – ACCU2-L>ACCU1-L 1 2.4 1.3 1.5 0.1
>=I – ACCU2-L>=ACCU1-L 1 2.3 1.4 1.4 0.1
Status word for: ==I, <>I, <I, <=I, >I, BR CC 1 CC 0 OV OS OR STA RLO FC
>=I
Instruction depends on: – – – – – – – – –
Instruction affects: – Yes Yes 0 – 0 Yes Yes 1
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
==D – ACCU2=ACCU1 1 3.1 1.9 2.0 0.1
<>D – ACCU2ACCU1 1 3.1 1.9 2.0 0.1
<D – ACCU2<ACCU1 1 3.1 1.9 2.0 0.1
<=D – ACCU2<=ACCU1 1 3.1 1.9 2.0 0.1
>D – ACCU2>ACCU1 1 3.1 1.9 2.0 0.1
>=D – ACCU2>=ACCU1 1 3.1 1.9 2.0 0.1
Status word for: ==D,< >D, <D, <=D, >D, BR CC 1 CC 0 OV OS OR STA RLO FC
>=D
Instruction depends on: – – – – – – – – –
Instruction affects: – Yes Yes 0 – 0 Yes Yes 1
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
==R – ACCU2=ACCU1 1 < 70 < 50 < 45 0.4
<>R – ACCU2ACCU1 1 < 70 < 50 < 45 0.4
<R – ACCU2<ACCU1 1 < 70 < 50 < 45 0.4
<=R – ACCU2<=ACCU1 1 < 70 < 50 < 45 0.4
>R – ACCU2>ACCU1 1 < 70 < 50 < 45 0.4
>=R – ACCU2>=ACCU1 1 < 70 < 50 < 45 0.4
Status word for: ==R, <>R, <R, <=R, BR CC 1 CC 0 OV OS OR STA RLO FC
>R, >=R
Instruction depends on: – – – – – – – – –
Instruction affects: – Yes Yes Yes Yes 0 Yes Yes 1
Shift Instructions
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
SLW – Shift the contents of ACCU1-L to 1 3.0 1.5 2.0 0.1
the left
left. Positions that become free
SLW 0 ... 15 are provided with zeros. 1.8 0.6 0.7 0.1
SLD – Shift the contents of ACCU1 to the 1 4.5 1.7 3.1 0.1
left Positions that become free are
left.
SLD 0 ... 32 provided with zeros. 4.9 2.9 3.1 0.1
SRW – Shift the contents of ACCU1-L to 1 3.0 1.5 2.0 0.1
right Positions that become
the right.Positions
SRW 0 ... 15 free are provided with zeros. 1.8 0.6 0.7 0.1
SRD – Shift the contents of ACCU1 to the 1 4.5 1.7 3.1 0.1
right Positions that become free are
right.Positions
SRD 0 ... 32 provided with zeros. 4.9 2.9 3.2 0.1
SSI – Shift the contents of ACCU1-L 1 2.9 1.6 1.8 0.1
with sign to the right.Positions that
SSI 0 ... 15 b
become ffree are provided
id d with
i h the
h 1.8 0.6
6 0.7 0.1
sign (bit 15).
Status word for: SLW, SLD, SRW, SRD, BR CC 1 CC 0 OV OS OR STA RLO FC
SSI
Instruction depends on: – – – – – – – – –
Instruction affects: – Yes Yes Yes – – – – –
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
SSD – Shift the contents of ACCU1 with 1 4.5 1.7 3.1 0.1
sign to the right 49
4.9 29
2.9 32
3.2 01
0.1
SSD 0 ... 32
Status word for: SSD BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – – –
Instruction affects: – Yes Yes Yes – – – – –
Rotate Instructions
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
RLD – Rotate the contents of ACCU1 1 4.8 3.3 3.3 0.1
to the left 53
5.3 34
3.4 34
3.4 01
0.1
RLD 0 ... 32
RRD – Rotate the contents of ACCU1 1 5.0 3.3 3.5 0.1
to the right 54
5.4 34
3.4 35
3.5 01
0.1
RRD 0 ... 32
Status word for: RLD, RRD BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – – –
Instruction affects: – Yes Yes Yes – – – – –
RLDA – Rotate the contents of ACCU1 2.9 1.9 1.9 0.1
one bit position to the left
through condition code bit
CC 1
RRDA – Rotate the contents of ACCU1 2.9 1.9 1.9 0.1
one bit position to the right
through condition code bit
CC 1
Status word for: RLDA, RRDA BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – – –
Instruction affects: – Yes 0 0 – – – – –
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
CAW – Reverse the order of the bytes in 1 0.7 0.2 0.3 0.1
ACCU1-L.
LL, LH becomes LH, LL.
CAD – Reverse the order of the bytes in 1 1.7 0.6 0.6 0.1
ACCU1.
LL, LH, HL, AA becomes HH,
HL, LH, LL.
TAK – Swap the contents of ACCU1 1 2.0 0.7 0.8 0.1
and ACCU2
ENT – The contents of ACCU2 and 1 – – – 0.1
ACCU3 are transferred to
ACCU3 and ACCU4.
LEAVE – The contents of ACCU3 and 1 – – – 0.1
ACCU4 are transferred to
ACCU2 and ACCU3.
PUSH – The contents of ACCU1 are 1 0.7 0.2 0.3 0.1
transferred to ACCU2
CPU 318–2: The contents of
ACCU1, ACCU2 and ACCU3
are transferred to ACCU2,
ACCU3 and ACCU4.
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
POP – The contents of ACCU2 are 1 0.7 0.2 0.3 0.1
transferred to ACCU1
CPU 318–2: The contents of
ACCU2, ACCU3 and ACCU4
are transferred to ACCU1,
ACCU2 and ACCU3.
INC 0 ... 255 Increment ACCU1-LL 1 0.7 0.2 0.3 0.1
DEC 0 ... 255 Decrement ACCU1-LL 1 0.7 0.2 0.3 0.1
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
BLD 0 ... 255 Program display instruction: 1 0.7 0.2 0.3 0.1
Is treated by the CPU like a null
operation instruction.
NOP 0 Null Operation instruction: 1 0.7 0.2 0.3 0.1
1 0.7 0.2 0.3 0.1
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
RND – Convert a real number into a 1 < 35 < 28 < 20 0.4
32-bit integer.
RND– – Convert a real number into a 1 < 35 < 28 < 20 0.4
32-bit integer. The number is
rounded to the next whole num-
ber.
RND+ – Convert a real number into a 1 < 35 < 28 < 20 0.4
32-bit integer. The number is
rounded to the next whole num-
ber.
TRUNC – Convert a real number into a 1 < 35 < 28 < 20 0.4
32-bit integer. The places after
the decimal point are truncated.
Status word for: RND, RND–, RND+, BR CC 1 CC 0 OV OS OR STA RLO FC
TRUNC
Instruction depends on: – – – – – – – – –
Instruction affects: – – – Yes Yes – – – –
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
INVI – Form the ones complement of 1 0.7 0.2 0.3 0.1
ACCU1-L
INVD – Form the ones complement of 1 0.7 0.2 0.3 0.1
ACCU1
Status word for: INVI, INVD BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – – –
Instruction affects: – – – – – – – – –
NEGI – Form the twos complement of 1 2.3 1.6 1.5 0.1
ACCU1-L (integer)
NEGD – Form the twos complement of 1 3.1 1.8 2.0 0.1
ACCU1 (double integer)
Status word for: NEGI, NEGD BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – – –
Instruction affects: – Yes Yes Yes Yes – – – –
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
BE – End block 1 4.9 4.1 2.8 2.0
BEU – End block unconditionally 1 – – – –
Status word for: BE, BEU BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – – –
Instruction affects: – – – – 0 0 1 – 0
BEC – End block conditionally if 5.9 4.4 3.2 2.2
RLO = “1”
Status word for: BEC BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – Yes –
Instruction affects: – – – – Yes 0 1 1 0
Exchanging the two current data blocks. The current shared data
block becomes the current instance data block, and vice versa. The
condition code bits are not affected.
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
CDB – Exchange shared data block and 1 1.0 0.3 0.4
instance data block
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
JU LABEL Jump unconditionally 1 1/2 1.8 1.7 1.8 0.5
Status word for: JU BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – – –
Instruction affects: – – – – – – – – –
JC LABEL Jump if RLO = “1” 1 1/2 2.3 2.0 1.5 0.5
JCN LABEL Jump if RLO = “0” 2 2.6 2.3 1.6 0.5
Status word for: JC, JCN BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – Yes –
Instruction affects: – – – – – 0 1 1 0
JCB LABEL Jump if RLO = “1”. 2 2.9 2.2 1.8 0.5
Save the RLO in the BR bit
JNB LABEL Jump if RLO = “0”. 2 2.9 2.4 1.8 0.5
Save the RLO in the BR bit
Status word for: JCB, JNB BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – Yes –
Instruction affects: Yes – – – – 0 1 1 0
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
JBI LABEL Jump if BR = “1” 2 2.3 2.1 1.5 0.5
JNBI LABEL Jump if BR = “0” 2 2.3 2.1 1.5 0.5
Status word for: JBI, JNBI BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: Yes – – – – – – – –
Instruction affects: – – – – – 0 1 – 0
JO LABEL Jump on stored overflow 1 1/2 2.3 2.1 1.5 0.5
(OV = “1”)
Status word for: JO BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – Yes – – – – –
Instruction affects: – – – – – – – – –
JOS LABEL Jump on stored overflow 2 2.6 2.2 1.6 0.5
(OS = “1”)
Status word for: JOS BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – Yes – – – –
Instruction affects: – – – – 0 – – – –
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
JUO LABEL Jump if “unordered instruction” 2 2.8 2.3 1.8 0.5
(CC 1=1 and CC 0=1)
JZ LABEL Jump if result=0 1 1/2 2.7 2.2 1.7 0.5
(CC 1=0 and CC 0=0)
JP LABEL Jump if result>0 1 1/2 2.7 2.4 1.8 0.5
(CC 1=1 and CC 0=0)
JM LABEL Jump if result<0 1 1/2 3.0 2.4 1.8 0.5
(CC 1=0 and CC 0=1)
JN LABEL Jump if result00 1 1/2 2.8 2.3 1.8 0.5
(CC 1=1 and CC 0=0) or
(CC 1=0) and (CC 0=1)
JMZ LABEL Jump if resultv0 2 2.4 2.1 1.5 0.5
(CC 1=0 and CC 0=1) or
(CC 1=0 and CC 0=0)
JPZ LABEL Jump if resultw0 2 2.4 2.2 1.6 0.5
(CC 1=1 and CC 0=0) or
(CC 1=0) and (CC 0=0)
Status word for: JUO, JZ, JP, JM, BR CC 1 CC 0 OV OS OR STA RLO FC
JN, JMZ, JPZ
Instruction depends on: – Yes Yes – – – – – –
Instruction affects: – – – – – – – – –
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
JL LABEL Jump distributor 2 3.2 3.9 2.7 0.7
This instruction is followed by a
list of jump instructions.
The operand is a jump label to
subsequent instructions in this
list.
ACCU1-L contains the number
of the jump instruction to be
executed.
LOOP LABEL Decrement ACCU1-L and jump 2 2.4 1.7 1.6 0.5
if ACCU1-L0
(loop programming)
Status word for: JL, LOOP BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – – –
Instruction affects: – – – – – – – – –
In- Length
Address
struc- Description in Typical Execution Time in s
Identifier
tion Words
315/315-2/
312*/313 314/314* 318-2
316-2
MCR( Open an MCR zone. 1 3.0 1.6 1.7 0.1
Save the RLO to the MCR
stack.
Status word for: MCR( BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – Yes –
Instruction affects: – – – – – 0 1 – 0
)MCR Close an MCR zone. 1 2.8 1.5 1.6 0.1
Pop an entry off the MCR stack.
Status word for: )MCR BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – – –
Instruction affects: – – – – – 0 1 – 0
MCRA Activate the MCR 1 0.7 0.2 0.3 0.1
MCRD Deactivate the MCR 1 0.7 0.2 0.3 0.1
Status word for: MCRA, MCRD BR CC 1 CC 0 OV OS OR STA RLO FC
Instruction depends on: – – – – – – – – –
Instruction affects: – – – – – – – – –
From:
Name: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Position: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Company: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Address: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Telephone: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Please give the document the grades you think it merits from
1 = good to 5 = bad.
Execution time in s
Address is in ... 312*/ 314/ 315/315-2/ 318-2
313 314* 316-2
Bit memory area M
Word 1.7 0.7 0.8 0.2
Double word 3.5 2.3 2.1 0.3
Data block DB/DX
Word 5.2 2.8 3.0 0.2
Double word 6.7 3.9 4.1 0.3
Local data area L
Word 2.0 0.8 0.9 0.2
Double word 3.7 2.6 2.2 0.3
AR1/AR2 (area-inter- 3.0 1.9 1.7 0.0
nal)
AR1/AR2 (area-cros- 4.9 3.9 3.2 0.0
sing)
Parameter (word) ... 4.0 2.5 2.1 0.2
for:
Timers
Counters
Block calls
Parameter (double 7.3 5.3 4.3 0.3
word) ... for
Bit, byte, words
and double words
You will find examples of how to calculate execution times for the
various indirectly-addressed instructions on page 20 ff. in the sec-
tion entitled “Execution Times for Indirect Addressing”.