Do" Operation, For Cpu 103 And Higher - Siemens S5-100U User Manual

Simatic s5 programmable controller
Hide thumbs Also See for S5-100U:
Table of Contents

Advertisement

STEP 5 Operations
8.2.9

"DO" Operation, for CPU 103 and Higher

Use the "DO" operation to process STEP 5 statements as indexed operations. This allows you to
change the parameter of an operand during control program processing (see Table 8-19).
Operation
Operand
DO
ID
FW
DW
"DO" Statements
"DO flag word or data word x" is a two-word statement that is unaffected by the RLO. "DO"
consists of the following two statements:
The first statement contains the "DO" operation and a flag word or data word.
The second statement defines the operation and the operand identifier you want the control
program to process. You must enter 0 or 0.0 as the parameter.
The control program works with the parameter that is stored in the flag word or data word. This
parameter is the one called up in the first statement. If you want to index binary operations, inputs,
outputs, or flags, you input the bit address in the high byte of this word. You input the byte address
in the low byte. In any other instance, the high byte must be "0".
You can combine the following operations with the "DO" statement:
Table 8-20. Operations That Can Be Combined with the "DO" Statement
1
A
, AN, O, ON
S, R, =
FR T, RT, SF T, SD T, SP T, SS T, SE T,
FR C, RC, SC, CD C, CU C
L, LD, T
JU=, JC=JZ=, JN=, JP=, JM=, JO=
SLW, SRW
D, I
C DB, JU, JC, TNB
1
In combination with "DO FW," the "A I" operation becomes the "A Q" operation if the byte address in
the data word or flag word is higher than 127.
Caution
!
Damage to the system.
Performing operations that are not listed in Table 8-20 will damage your system.
Perform only those operations that are listed in Table 8-20.
8-54
Table 8-19. Overview of the "DO" Operation
Processing a flag word or data word
Parameter
0 to 254
0 to 255
Operations
Meaning
Explanations
Boolean logic operations
Set/reset operations
Timer operations
Counter operations
Load and transfer operations
Jump operations
Shift operations
Decrement and increment
Block calls
EWA 4NEB 812 6120-02
S5-100U

Advertisement

Table of Contents
loading

Table of Contents