Siemens SIMATIC TIWAY 1 User Manual Page 80

  • Download
  • Add to my manuals
  • Print
  • Page
    / 107
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 79
Programming
Examples
C-4
C.2 Example #1: Dual Communication Channels
This
program performs two functions:
D
It verifies that the module is set up correctly by checking the network
address, V Memory starting address, and redundant media setting.
D
It verifies that each station which should be active on the network is
logged in on the active channel lists (status words 1 and 2). If the
correct bit is not set, indicating that the module being read is not active
on the network, then the data for that module will not be valid.
C.2.1
Network
This program is designed for 8 stations with network addresses 1,
Configuration
2, 3, 4, 5, 6, 7, and 8. Status words 1 and 2 should look the same as those
shown above if everything is operating correctly
.
For simplicity
, this program will run in the P/C at network address 2
(station 2), although you may want to modify this to run in every P/C on
your network. In addition, the following assumptions have been made in
this program:
D
The active monitor will be selected as network address 1.
D
Dual communication channels are connected to all modules.
D
Station 2 will be located in Base 0, slots 1 and 2, with its I/O address
starting at WX1.
D
The starting address of the V Memory table in station 2 will be V1.
C.2.2
Program
This program is designed to first load the value of the V Memory
Operation
starting address (V1) into WY4 and WY5. W
ith 8 active stations this will
allocate a block of 128 V Memory locations in station 2 (V1-V128).
Page view 79
1 2 ... 75 76 77 78 79 80 81 82 83 84 85 ... 106 107

Comments to this Manuals

No comments