EasyManuals Logo

Siemens CPU 948 User Manual

Siemens CPU 948
548 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 #143 background imageLoading...
Page #143 background image
Example of DI operation
In function block FB 1, STEP 5 operations are executed whose operation
codes were transferred
by a calling block as formal operands FW 10, FW 12 and FW 14.
Which of the operation codes is executed is written by the calling block
as a consecutive number in flag word
FW 16.
The result of the executed operation is then entered in ACCU 1 and is
transferred to flag word FW 18.
FB 1
NAME :TEST
DECL :FW10 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KH
DECL :FW12 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KH
DECL :FW14 I/Q/D/B/T/C: D KM/KH/KY/KS/KF/KT/KC/KG: KH
:L FW 16 cons. number of formal operand
: with required operation code
:DI transferred operation code is executed
:T FW 16 result from ACCU 1
:BE
FB 2
:
:L KF +1
:T FW 16 cons. no. of formal operand with operation code
:JU =AUFR
:
:
AUFR :
:JU FB 1 call FB TEST
NAME :TEST
FW10 : KH 4A5A op. code "L IB 90", formal operand 1
FW12 : KH xxxx other operation code, formal operand 2
FW14 : KH yyyy other operation code, formal operand 3
:T FW 18 ACCU 1
→ FW 18
:BE
FW 10
4A5AH
:L IB 90
0001H
0001H
List of actual operands in FB 2 Principle of sequence in FB 1
xxxxH
yyyyH
Operationexecutedwith"DI"
(cons. no. of actual operand)
FW 12
FW 14
FW 16
ACCU 1
:L FW 16
:DI
Executive Operations
CPU 948 Programming Guide
C79000-G8576-C848-04
3 - 71

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Siemens CPU 948 Specifications

General IconGeneral
BrandSiemens
ModelCPU 948
CategoryController
LanguageEnglish

Related product manuals