EasyManua.ls Logo

Siemens simatic s7-400 FM 450-1 - Page 47

Siemens simatic s7-400 FM 450-1
130 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...
Program
6.5 Technical specifications of the blocks
Counter module FM 450-1
Manual, 02/2014, A5E03648739-02
47
Example
The following contains an example of how you can implement the transfer of the module
address, the channel address, and the length of the user data to the DB in OB 100. The
symbol table contains the following assignments for this example:
FM450_DB_K1
DB 10
DB with the counter data for channel 1
FM450_DB_K2
DB 11
DB with the counter data for channel 2
You program the transfer in STL as follows:
STL
Channel 1
L 512
// Module address = 512
T FM450_DB_K1.MOD_ADR
// Transfer of module address
L P# 512.0
// Module address in pointer format
T FM450_DB_K1.CH_ADR
// Transfer of the channel address for channel 1
L 32
// User data interface length = 32
T FM450_DB_K1.U_D_LGTH
// Transfer of the user data interface length
Channel 2
L 512
// Module address = 512
T FM450_DB_K2.MOD_ADR
// Transfer of module address
L P# 544.0
// Module address + 32 in pointer format
T FM450_DB_K2.CH_ADR
// Transfer of the channel address for channel 2
L 32
// User data interface length = 32
T FM450_DB_K2.U_D_LGTH
// Transfer of the user data interface length

Table of Contents

Related product manuals