
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 a 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
Summary of Contents for simatic s7-400 FM 450-1
Page 8: ...Table of contents Counter module FM 450 1 8 Manual 02 2014 A5E03648739 02 ...
Page 120: ...Spare parts Counter module FM 450 1 120 Manual 02 2014 A5E03648739 02 ...
Page 122: ...References Counter module FM 450 1 122 Manual 02 2014 A5E03648739 02 ...
Page 126: ...Glossary Counter module FM 450 1 126 Manual 02 2014 A5E03648739 02 ...
Page 130: ...Index Counter module FM 450 1 130 Manual 02 2014 A5E03648739 02 ...