FC162
3.3
Programming Example
Comments on the test program
Introduction
The selected example shows how the parameter assignments of a module
could look like.
Modes
The example with indirect parameter assignment covers all possible modes
(i.e. the entire instruction set). The example of direct parameter assignment,
however, is limited to the following modes:
Data blocks
All data blocks that are necessary for accommodating the data exist and have
been established.
The example employs data blocks of the following names:
The FC 62 function in the test program uses direct parameter setting; FC 63 uses
indirect parameter setting. In indirect parameter setting, flag words or flag bytes
are specified at the input parameters of the FC 162.
The B#(0,1) (cold restart) resets the parameters upon a restart. A warm restart
is not permitted. The CPU branches to STOP mode in this case.
7–24
Command
B#(0,2)
Parameter setting
B#(3,1)
Read actual value
B#(2,1)
Read controller parameters
B#(1,2)
Modify controller parameters
B#(1,1)
Modify setpoints
B#(2,2)
Changeover to automatic mode
B#(2,3)
Changeover to manual mode
B#(0,4)
Changeover to setpoint 1
B#(0,5)
Changeover to setpoint 2
DB-A
DB-B
DB-C
DB-A'
DB-C'
Message frame
number
–
17
0
0
0
0
0
0
0
DB 162
DB 163
DB 164
DB 172
DB 173
IP244
C79000–B8576–C866–01