Using I/Os in S7–400H
13.5 Other options for connecting redundant I/Os
S7-400H
210
System Manual, 03/2012, A5E00267695-11
Example in STL
The required elements of the user program (OB 1, OB 122) are listed below.
Table 13- 6 Example of redundant I/O, OB 1 part
STL Description
NOP 0;
SET;
R ATTEMPT2;
//Initialization
A MODA;
//Read module A first?
JCN CMOB;
//If not, continue with module B
CMOA: SET;
R IOAE_BIT;
//Delete IOAE bit
L PID 8;
//Read from CPU 0
A IOAE_BIT;
//Was IOAE detected in OB 122?
JCN IOOK;
//If not, process access OK
A ATTEMPT2;
//Was this access the second attempt?
JC CMO0;
//If yes, use substitute value
SET;
R MODA;
//Do not read module A first any more
//in future
S ATTEMPT2;
CMOB: SET;
R IOAE_BIT;
//Delete IOAE bit
L PID 12;
//Read from CPU 1
A IOAE_BIT;
//Was IOAE detected in OB 122?
JCN IOOK;
//If not, process access OK
A ATTEMPT2;
//Was this access the second attempt?
JC CMO0;
//If yes, use substitute value
SET;
S MODA;
//Read module A first again in future
S ATTEMPT2;
JU CMOA;
CMO0: L SUBS;
//Substitute value
IOOK:
//The value to be used is in ACCU1
Содержание SIMATIC S7-400H
Страница 24: ...Preface 1 1 Preface S7 400H 24 System Manual 03 2012 A5E00267695 11 ...
Страница 46: ...Getting Started 4 5 Special layout features of SIMATIC Manager S7 400H 46 System Manual 03 2012 A5E00267695 11 ...
Страница 120: ...Memory concept 10 1 Overview of the memory concept of S7 400H CPUs S7 400H 120 System Manual 03 2012 A5E00267695 11 ...
Страница 258: ...Communication 14 8 General issues regarding communication S7 400H 258 System Manual 03 2012 A5E00267695 11 ...
Страница 354: ...Synchronization modules 18 3 Selecting fiber optic cables S7 400H 354 System Manual 03 2012 A5E00267695 11 ...
Страница 434: ...Technical data 20 6 Runtimes of the FCs and FBs for redundant I Os S7 400H 434 System Manual 03 2012 A5E00267695 11 ...
Страница 460: ...Function modules and communication processors supported by the S7 400H S7 400H 460 System Manual 03 2012 A5E00267695 11 ...