Siemens SIMATIC S5 IP 281 Equipment Manual page 65

Hide thumbs Also See for SIMATIC S5 IP 281:
Table of Contents

Advertisement

Example:
Writing load register 1 (32 bits)
Prerequisites:
With word commands:
With byte commands:
Example:
Writing load register 1 (16 bits)
Prerequisites:
With word commands:
With byte commands:
* Register address = basic address + offset
3 – 6
– Load value is in DB 20.
DW 10 (high word, bits 31 to 16)
DW 11 (low word, bits 15to O)
– Counting mode 2 or 4 is selected (i.e., offset= 4).
– Basic address of the module: 136
L
KH
1
Set register set 1 for access to the load register
}
T PY 136
C DB 20
Call data block 20
L DW 10
T PW 140')
L DW 11
T PW 142*) ~
L
KH
1
Set register set 1
}
T PY 136
C DB 20
Call data block 20
L DL 10
T PY 140' \
L DR
10
T PY 141 *
Transfer load value from DB to 1P 281
L DL 11
T PY 142*
L DR 11
T PY 143* I
– Load value is in DB 20.
DW 11 (bits 15 to O)
– Counting mode 1 or3 is selected (i.e., offset= 6).
– Basic address of the module: 136
L
KH
Set register set 1
}
T PY 136
C DB 20
Call data block 20
L DW 11
Transfer load value from DB to 1P 281
T PW 142' }
L
KH
1
Set register set 1
}
T PY 136
Call data block 20
C DB 20
L DL 11
T PY 142*
Transfer load value from DB to 1P 281
L DR 11
T PY 143* }
R 11192

Advertisement

Table of Contents
loading

Table of Contents