EasyManua.ls Logo

Siemens S5-100U - Page 335

Siemens S5-100U
512 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
Loading...
Connecting the S5-100U to SINEC L1 S5-100U
Figure 13-2. Programming Example for Setting Parameters in FB1
LKF 1
TFY 65
L KH 4D00
TFW 66
L KY 100,0
TFW 67
L KH 4D00
TFW 69
L KY 101,0
TFW 70
L KH 4400
TFW 72
L KY 2,0
TFW 73
L KH 4400
TFW 75
L KY 3,0
TFW 76
L KH EE4D
L KH EA7F
TNB 14
L KH 0000
TFW 64
TFW 66
TFW 68
TFW 70
TFW 72
TFW 74
TFW 76
L KH 0080
T FY 100
L KH 0000
T FY 101
BE
STL
- Load slave number and
store it in flag byte 65
- Load “Flag” data identifier and store it
in flag byte 66
- Load flag byte 100 and store it
in flag byte 67
- Load “Flag” data identifier and store it
in flag byte 69
- Load flag byte 101 and store it
in flag byte 70
- Load “Data word” identifier and store it
in flag byte 72
- Store DB number “2” and DW number “0”
in flag bytes 73 and 74
- Load “Data word” identifier and store it
in flag byte 75
- Store DB number “3” and DW “0”
in flag bytes 76 and 77
- Transfer flag area FY64 to 67 to the system
data area:
- Load upper source address
- Load upper destination address
- Transfer a block of data 14 bytes long
Erase all buffer areas
- Load hexadecimal number “0000”
- Set all bits of FY64 to 77 to “0”
Default setting of the KBE;
Data can be received from the bus.
- Load binary number 1000 0000
- Set bit 7 to “1” and bits 6 to 0 to “0”
Default setting of the KBS;
Program has access to the send mailbox
- Load binary number 0000 0000
- Set bits 7 to 0 to “0”
Block end
Explanation
13-4
EWA 4NEB 812 6120-02

Table of Contents

Related product manuals